[02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:55]accept exits with 9 [03:07:55]New connection [03:07:55]New thread 3067284836 created [03:07:55]Thread 3067141476 joined [03:07:55]Waiting for new connection... [03:07:55] Sock 9.Parse request [03:07:55]Sock 9.Check first char [03:07:55]Sock 9.First char is OK [03:07:55]request: POST /json_proto HTTP/1.0 [03:07:55]Method: POST [03:07:55]URL: /json_proto [03:07:55]Method is POST - this is cgi request [03:07:55]url: /json_proto [03:07:55]query_string will be loaded in cgi processing [03:07:55]execute_cgi json_proto POST (null) [03:07:55]execute_cgi path=json_proto method=POST [03:07:55]POST find Content-Length [03:07:55]Host: 172.17.50.196:8080 [03:07:55]Content-Length: 1019 [03:07:55]Content-Type: application/json [03:07:55] [03:07:55]POST finish read [03:07:55]Found Content-Length = 1019 [03:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335444", "tax_sys" : 0, "items" : [ { "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:55]execute_script... [03:07:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335444", "tax_sys" : 0, "items" : [ { "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:55]POST & json_proto [03:07:55]process_json_proto [03:07:55]json parsed OK: [03:07:55]protocol is kg_v1.0 [03:07:55]action value=close_receipt [03:07:55]process_action close_receipt [03:07:55]cmd_close_receipt [03:07:55]MH_GetDate [03:07:55]Write to MH i2c: F0 00 00 EC 6F 4A [03:07:55]Write i2c OK [03:07:55]MH_I2C_Read... [03:07:55]Read from MH i2c: F0 [03:07:55]MH_I2C_Read... [03:07:55]Read from MH i2c: F0 09 00 [03:07:55]MH_I2C_Read... [03:07:55]Read from MH i2c: F0 09 00 EC 6F 00 93 F4 22 67 72 0D 1C 67 65 [03:07:55]GetLastDocTimeStamp 1730343053 [03:07:55]current date 1730344083 [03:07:55]FM_GetShiftState [03:07:55]SAM_PROTO_GetShiftState [03:07:55]wFMCommunicate request_size=4 [03:07:55]MH_SAM_APDU [03:07:55]CAPDU: 80 13 01 00 [03:07:55]Write to MH i2c: E2 08 00 ED 6F 80 13 01 00 00 00 00 00 D9 [03:07:55]Write i2c OK [03:07:55]MH_I2C_Read... [03:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:55]Read from MH i2c: E2 [03:07:55]MH_I2C_Read... [03:07:55]Read from MH i2c: E2 0E 00 [03:07:55]MH_I2C_Read... [03:07:55]Read from MH i2c: E2 0E 00 ED 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 02 [03:07:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:07:55]wFMCommunicate OK [03:07:55]SAM_PROTO_GetShiftState done [03:07:55]FM_GetShiftState done [03:07:55]opened in 1730332621 [03:07:55]opened+sec_in_day 1730419021 [03:07:55]quantity*price = 14900 [03:07:55]sum+1 = 14901 [03:07:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 224.00 НСП 1% : 1.98 НДС 12% : 23.78 Наличными: 224.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 40 31.10.2024 03:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139563 ФПД: 279111444492721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T030803&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139563&fm=279111444492721&tin=02508201610067®Number=0000000000091631&sum=22400 0 [03:07:56]StoreToDocumentArchive [03:07:56]shift 557 fd 139563 [03:07:56]save to /storage/0557/doc_00139563 [03:07:56]save last doc name /storage/0557/doc_00139563 to /storage/kkm_last_doc_name [03:07:56]save OK [03:07:56]Clear old archive folders... [03:07:56]ProcessDocumentItem done err = 0, tmpTLVsize=427 [03:07:56]tlvbuf is 01251430 [03:07:56]SAM_PROTO_ClearQueue [03:07:56]wFMCommunicate request_size=4 [03:07:56]MH_SAM_APDU [03:07:56]CAPDU: 80 09 00 00 [03:07:56]Write to MH i2c: E2 08 00 FA 6F 80 09 00 00 00 00 00 00 DB [03:07:56]Write i2c OK [03:07:56]MH_I2C_Read... [03:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:07:56]Read from MH i2c: E2 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 03 00 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 03 00 FA 6F 00 90 00 DD [03:07:56]RAPDU: 90 00 [03:07:56]wFMCommunicate OK [03:07:56]SAM_PROTO_ClearQueue done [03:07:56]KKMCreateOFDPacket [03:07:56]OFDProtocolAddRootSTLVToBuf [03:07:56]FM_MakeSignedData [03:07:56]FM_MakeSignedData [03:07:56]SAM_PROTO_SignData [03:07:56]wFMCommunicate request_size=4 [03:07:56]MH_SAM_APDU [03:07:56]CAPDU: 80 0D 01 02 [03:07:56]Write to MH i2c: E2 08 00 FB 6F 80 0D 01 02 00 00 00 00 E3 [03:07:56]Write i2c OK [03:07:56]MH_I2C_Read... [03:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:07:56]Read from MH i2c: E2 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 03 00 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 03 00 FB 6F 00 90 00 DE [03:07:56]RAPDU: 90 00 [03:07:56]wFMCommunicate OK [03:07:56]wFMCommunicate request_size=255 [03:07:56]MH_SAM_APDU [03:07:56]CAPDU: 80 0D 02 02 FA 03 00 AB 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 [03:07:56]Write to MH i2c: E2 02 01 FC 6F 80 0D 02 02 FA 00 03 00 AB 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 00 45 [03:07:56]Write i2c OK [03:07:56]MH_I2C_Read... [03:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:56]Read from MH i2c: E2 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 03 00 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 03 00 FC 6F 00 90 00 DF [03:07:56]RAPDU: 90 00 [03:07:56]wFMCommunicate OK [03:07:56]wFMCommunicate request_size=186 [03:07:56]MH_SAM_APDU [03:07:56]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 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 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 28 00 00 00 F4 03 04 00 93 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 21 02 00 35 04 06 00 FD D9 B2 80 71 B1 [03:07:56]Write to MH i2c: E2 BD 00 FD 6F 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 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 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 28 00 00 00 F4 03 04 00 93 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 21 02 00 35 04 06 00 FD D9 B2 80 71 B1 00 00 EF [03:07:56]Write i2c OK [03:07:56]MH_I2C_Read... [03:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:57]Read from MH i2c: E2 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: E2 03 00 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: E2 03 00 FD 6F 00 90 00 E0 [03:07:57]RAPDU: 90 00 [03:07:57]wFMCommunicate OK [03:07:57]wFMCommunicate request_size=4 [03:07:57]MH_SAM_APDU [03:07:57]CAPDU: 80 0D 03 02 [03:07:57]Write to MH i2c: E2 08 00 FE 6F 80 0D 03 02 00 00 00 00 E8 [03:07:57]Write i2c OK [03:07:57]MH_I2C_Read... [03:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:07:57]Read from MH i2c: E2 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: E2 0B 00 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: E2 0B 00 FE 6F 00 C3 D8 A8 F3 36 70 E2 52 90 00 F9 [03:07:57]RAPDU: C3 D8 A8 F3 36 70 E2 52 90 00 [03:07:57]wFMCommunicate OK [03:07:57]SAM_PROTO_SignData done [03:07:57]FM_MakeSignedData done [03:07:57]CreateOFDProtocolMessage [03:07:57]wFMCommunicate request_size=4 [03:07:57]MH_SAM_APDU [03:07:57]CAPDU: 80 11 00 00 [03:07:57]Write to MH i2c: E2 08 00 FF 6F 80 11 00 00 00 00 00 00 E8 [03:07:57]Write i2c OK [03:07:57]MH_I2C_Read... [03:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:57]Read from MH i2c: E2 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: E2 17 00 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: E2 17 00 FF 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 43 [03:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:07:57]wFMCommunicate OK [03:07:57]CreateOFDProtocolMessage done [03:07:57]OFDSenderStorePacket 139563 [03:07:57]StoreOFDPacket docnum=139563 [03:07: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 BF 01 00 00 59 6F B7 01 78 C1 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 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 28 00 00 00 F4 03 04 00 93 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 21 02 00 35 04 06 00 FD D9 B2 80 71 B1 C3 D8 A8 F3 36 70 E2 52 [03:07:57]CheckFolder [03:07:57]dirname=/storage/ofd_packets [03:07:57]CheckFolder done [03:07:57]ProducePacketName [03:07:57]name=ofd_packets/00139563 [03:07:57]NVStorageSaveData ofd_packets/00139563 [03:07:57]File name is /storage/ofd_packets/00139563 [03:07:57]Write 477 bytes [03:07:57]NVStorageSaveData done [03:07:57]OFDSenderStorePacket done [03:07:57]KKMCreateOFDPacket done [03:07:57]NVStorageSaveData kkm_last_timestamp [03:07:57]File name is /storage/kkm_last_timestamp [03:07:57]Write 4 bytes [03:07:57]NVStorageSaveData done [03:07:57]ExternCall_PrintAddStr [03:07:57]wPrintStart [03:07:57]Write to MH i2c: 01 00 00 00 70 70 [03:07:57]OFD Sender: Processing packet 139563 [packets to send 34, broken 33] [03:07:57]ProducePacketName [03:07:57]name=ofd_packets/00139563 [03:07:57]OFD Sender: To server: pG, [03:07:57]CommunicateWithHost lk.salyk.kg:30040 [03:07:57]ConnectInit lk.salyk.kg [03:07:57]Write i2c OK [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: 01 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: 01 07 00 [03:07:57]MH_I2C_Read... [03:07:57]Read from MH i2c: 01 07 00 00 70 00 00 00 00 00 FF 0F 85 [03:07:57]RasterBufferAndPrint [03:07:57]line Счет N : (3)335444 [03:07:57]line ИНН: 02508201610067 [03:07:57]line Контрольно-Кассовый Чек [03:07:57]line ПРОДАЖА [03:07:57]line Товар: 4607015235333 [03:07:57]line Пряники Яшкино с вареной сгущенкой 350г [03:07:57]line 1.000 * 149.00 [03:07:57]line = 149.00 [03:07:57]line НДС 12% НСП 1% [03:07:57]line > о реализуемом товаре [03:07:57]line Товар: 4870112002775 [03:07:57]line Шок батончик ALBENI BITES 80гр [03:07:57]line 1.000 * 75.00 [03:07:57]line = 75.00 [03:07:57]line НДС 12% НСП 1% [03:07:57]line > о реализуемом товаре [03:07:57]line ИТОГО: 224.00 [03:07:57]line НСП 1% : 1.98 [03:07:57]line НДС 12% : 23.78 [03:07:57]line Наличными: 224.00 [03:07:57]line Безнал.: 0.00 [03:07:57]line Место: АЗС № 101 "Партнер Нефть" [03:07:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:07:57]line СНО: Общий режим [03:07:57]line Чек 40 31.10.2024 03:08 [03:07:57]line Смена: 557 ФФД: 1.0 [03:07:57]line ЗНМ: 0300000081 [03:07:57]line РНМ: 0000000000091631 [03:07:57]line Версия ККМ: 001 [03:07:57]line ФМ: 0000000000874669 [03:07:57]line ФД: 139563 [03:07:57]line ФПД: 279111444492721 [03:07:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T030803&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139563&fm=279111444492721&tin=02508201610067®Number=0000000000091631&sum=22400 [03:07:57]line 0 [03:07:57]written 0, free lines is 4095 [03:07:57]Connected sock=10 [03:07:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BF 01 00 00 59 6F B7 01 78 C1 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 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 28 00 00 00 F4 03 04 00 93 F4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 21 02 00 35 04 06 00 FD D9 B2 80 71 B1 C3 D8 A8 F3 36 70 E2 52 [03:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 85 09 47 00 00 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 21 02 00 F4 03 04 00 42 A0 22 67 B6 04 01 00 00 CC B7 83 3E 77 AA 2F 64 [03:07:57]CommunicateWithHost err = 0 [03:07:57]CheckOFDResponse [03:07:57]1017 (14) - 77093643461234 [03:07:57]1041 (16) - 0000000000874669 [03:07:57]1040 (4) - 139563 [03:07:57]1012 (4) - 30.10.2024 21:08 [03:07:57]1206 (1) - 0 [03:07:57]OFD Sender: Remove packet 139563 [03:07:57]ProducePacketName [03:07:57]name=ofd_packets/00139563 [03:07:57]NVStorageDeleteData [03:07:58]Write to MH i2c: 01 00 00 30 70 A0 [03:07:58]Write i2c OK [03:07:58]MH_I2C_Read... [03:07:58]Read from MH i2c: 01 [03:07:58]MH_I2C_Read... [03:07:58]Read from MH i2c: 01 07 00 [03:07:58]MH_I2C_Read... [03:07:58]Read from MH i2c: 01 07 00 30 70 00 00 00 00 00 A1 0C 54 [03:07:58]RasterBufferAndPrint [03:07:58]line [03:07:58]line [03:07:58]line [03:07:58]line [03:07:58]line [03:07:58]written 0, free lines is 3239 [03:07:58]MH_Cut [03:07:58]Write to MH i2c: D1 01 00 37 70 01 79 [03:07:58]Write i2c OK [03:07:58]MH_I2C_Read... [03:07:58]Read from MH i2c: D1 [03:07:58]MH_I2C_Read... [03:07:58]Read from MH i2c: D1 01 00 [03:07:58]MH_I2C_Read... [03:07:58]Read from MH i2c: D1 01 00 37 70 00 78 [03:07:58]Write to MH i2c: 01 00 00 38 70 A8 [03:07:58]Write i2c OK [03:07:58]MH_I2C_Read... [03:07:58]OFD Sender: No OFD packet to send [03:07:58]*** Cut start [03:07:58]*** Partial cut [03:07:58]*** CUTSNS_PIN = 1 [03:07:58]*** CUTSNS_PIN = 0 [03:07:59]*** Brake cut motor [03:07:59]Read from MH i2c: 01 [03:07:59]MH_I2C_Read... [03:07:59]*** Stop cut motor [03:07:59]*** Cut end [03:07:59]Read from MH i2c: 01 07 00 [03:07:59]MH_I2C_Read... [03:07:59]Read from MH i2c: 01 07 00 38 70 00 00 00 00 00 FF 0F BD [03:07:59]process_action close_receipt done [03:07:59]requested_data is exist [03:07:59]produce_requested_data [03:07:59]requested_item fm.sn is exist - process it [03:07:59]wFMCommunicate request_size=4 [03:07:59]MH_SAM_APDU [03:07:59]CAPDU: 80 11 00 00 [03:07:59]Write to MH i2c: E2 08 00 39 70 80 11 00 00 00 00 00 00 23 [03:07:59]Write i2c OK [03:07:59]MH_I2C_Read... [03:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:59]Read from MH i2c: E2 [03:07:59]MH_I2C_Read... [03:07:59]Read from MH i2c: E2 17 00 [03:07:59]MH_I2C_Read... [03:07:59]Read from MH i2c: E2 17 00 39 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [03:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:07:59]wFMCommunicate OK [03:07:59]requested_item fd.num is exist - process it [03:07:59]SAM_PROTO_GetFieldsCounters [03:07:59]wFMCommunicate request_size=4 [03:07:59]MH_SAM_APDU [03:07:59]CAPDU: 80 13 00 00 [03:07:59]Write to MH i2c: E2 08 00 3A 70 80 13 00 00 00 00 00 00 26 [03:07:59]Write i2c OK [03:07:59]MH_I2C_Read... [03:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:07:59]Read from MH i2c: E2 [03:07:59]MH_I2C_Read... [03:07:59]Read from MH i2c: E2 62 00 [03:07:59]MH_I2C_Read... [03:07:59]Read from MH i2c: E2 62 00 3A 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 2B 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [03:07: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 2B 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:07:59]wFMCommunicate OK [03:07:59]SAM_PROTO_GetFieldsCounters done [03:07:59]requested_item shift.num is exist - process it [03:07:59]requested_item shift.opened is exist - process it [03:07:59]req_shift_opened [03:07:59]FM_GetShiftState [03:07:59]SAM_PROTO_GetShiftState [03:07:59]wFMCommunicate request_size=4 [03:07:59]MH_SAM_APDU [03:07:59]CAPDU: 80 13 01 00 [03:07:59]Write to MH i2c: E2 08 00 3B 70 80 13 01 00 00 00 00 00 28 [03:07:59]Write i2c OK [03:07:59]MH_I2C_Read... [03:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:59]Read from MH i2c: E2 [03:07:59]MH_I2C_Read... [03:07:59]Read from MH i2c: E2 0E 00 [03:07:59]MH_I2C_Read... [03:07:59]Read from MH i2c: E2 0E 00 3B 70 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 51 [03:07:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:07:59]wFMCommunicate OK [03:07:59]SAM_PROTO_GetShiftState done [03:07:59]FM_GetShiftState done [03:07:59]req_shift_opened done [03:07:59]requested_item shift.open_date is exist - process it [03:07:59]req_shift_open_date [03:07:59]req_shift_open_date done [03:07:59]produce_requested_data done [03:07:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139563,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [03:07:59]process_action_free close_receipt [03:07:59]json_value_free [03:07:59]json_value_free done [03:07:59]process_json_proto returns [03:07:59]Send response to host [03:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139563,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [03:07:59]free response buf [03:07:59]execute_script done [03:07:59]execute_script returns [03:07:59]free content buf [03:07:59]Sock 9.Close socket [03:07:59]Sock 9.Thread stoped [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:51]accept exits with 8 [03:12:51]New connection [03:12:51]New thread 3067141476 created [03:12:51]Thread 3067284836 joined [03:12:51]Waiting for new connection... [03:12:51] Sock 8.Parse request [03:12:51]Sock 8.Check first char [03:12:51]Sock 8.First char is OK [03:12:51]request: POST /json_proto HTTP/1.0 [03:12:51]Method: POST [03:12:51]URL: /json_proto [03:12:51]Method is POST - this is cgi request [03:12:51]url: /json_proto [03:12:51]query_string will be loaded in cgi processing [03:12:51]execute_cgi json_proto POST (null) [03:12:51]execute_cgi path=json_proto method=POST [03:12:51]POST find Content-Length [03:12:51]Host: 172.17.50.196:8080 [03:12:51]Content-Length: 632 [03:12:51]Content-Type: application/json [03:12:51] [03:12:51]POST finish read [03:12:51]Found Content-Length = 632 [03:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335445", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:51]execute_script... [03:12: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)335445", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:51]POST & json_proto [03:12:51]process_json_proto [03:12:51]json parsed OK: [03:12:51]protocol is kg_v1.0 [03:12:51]action value=close_receipt [03:12:51]process_action close_receipt [03:12:51]cmd_close_receipt [03:12:51]MH_GetDate [03:12:51]Write to MH i2c: F0 00 00 3C 70 9B [03:12:51]Write i2c OK [03:12:51]MH_I2C_Read... [03:12:51]Read from MH i2c: F0 [03:12:51]MH_I2C_Read... [03:12:51]Read from MH i2c: F0 09 00 [03:12:51]MH_I2C_Read... [03:12:52]Read from MH i2c: F0 09 00 3C 70 00 BC F5 22 67 72 0D 1C 67 E0 [03:12:52]GetLastDocTimeStamp 1730344083 [03:12:52]current date 1730344380 [03:12:52]FM_GetShiftState [03:12:52]SAM_PROTO_GetShiftState [03:12:52]wFMCommunicate request_size=4 [03:12:52]MH_SAM_APDU [03:12:52]CAPDU: 80 13 01 00 [03:12:52]Write to MH i2c: E2 08 00 3D 70 80 13 01 00 00 00 00 00 2A [03:12:52]Write i2c OK [03:12:52]MH_I2C_Read... [03:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:52]Read from MH i2c: E2 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 0E 00 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 0E 00 3D 70 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 53 [03:12:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:12:52]wFMCommunicate OK [03:12:52]SAM_PROTO_GetShiftState done [03:12:52]FM_GetShiftState done [03:12:52]opened in 1730332621 [03:12:52]opened+sec_in_day 1730419021 [03:12:52]quantity*price = 6000 [03:12:52]sum+1 = 6001 [03:12:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 41 31.10.2024 03:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139564 ФПД: 13044257719497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T031300&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139564&fm=13044257719497&tin=02508201610067®Number=0000000000091631&sum=6000 0 [03:12:53]StoreToDocumentArchive [03:12:53]shift 557 fd 139564 [03:12:53]save to /storage/0557/doc_00139564 [03:12:53]save last doc name /storage/0557/doc_00139564 to /storage/kkm_last_doc_name [03:12:53]save OK [03:12:53]Clear old archive folders... [03:12:53]ProcessDocumentItem done err = 0, tmpTLVsize=271 [03:12:53]tlvbuf is 01262C90 [03:12:53]SAM_PROTO_ClearQueue [03:12:53]wFMCommunicate request_size=4 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 09 00 00 [03:12:53]Write to MH i2c: E2 08 00 4A 70 80 09 00 00 00 00 00 00 2C [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 4A 70 00 90 00 2E [03:12:53]RAPDU: 90 00 [03:12:53]wFMCommunicate OK [03:12:53]SAM_PROTO_ClearQueue done [03:12:53]KKMCreateOFDPacket [03:12:53]OFDProtocolAddRootSTLVToBuf [03:12:53]FM_MakeSignedData [03:12:53]FM_MakeSignedData [03:12:53]SAM_PROTO_SignData [03:12:53]wFMCommunicate request_size=4 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 0D 01 02 [03:12:53]Write to MH i2c: E2 08 00 4B 70 80 0D 01 02 00 00 00 00 34 [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 4B 70 00 90 00 2F [03:12:53]RAPDU: 90 00 [03:12:53]wFMCommunicate OK [03:12:53]wFMCommunicate request_size=255 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC F5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [03:12:53]Write to MH i2c: E2 02 01 4C 70 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC F5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 F0 [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 4C 70 00 90 00 30 [03:12:53]RAPDU: 90 00 [03:12:53]wFMCommunicate OK [03:12:53]wFMCommunicate request_size=30 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 2C 21 02 00 35 04 06 00 0B DD 1A 59 04 C9 [03:12:53]Write to MH i2c: E2 21 00 4D 70 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 2C 21 02 00 35 04 06 00 0B DD 1A 59 04 C9 00 00 AF [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]OFD Sender: No OFD packet to send [03:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 4D 70 00 90 00 31 [03:12:53]RAPDU: 90 00 [03:12:53]wFMCommunicate OK [03:12:53]wFMCommunicate request_size=4 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 0D 03 02 [03:12:53]Write to MH i2c: E2 08 00 4E 70 80 0D 03 02 00 00 00 00 39 [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 0B 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 0B 00 4E 70 00 68 DC 33 FA 90 8E F4 09 90 00 C6 [03:12:53]RAPDU: 68 DC 33 FA 90 8E F4 09 90 00 [03:12:53]wFMCommunicate OK [03:12:53]SAM_PROTO_SignData done [03:12:53]FM_MakeSignedData done [03:12:53]CreateOFDProtocolMessage [03:12:53]wFMCommunicate request_size=4 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 11 00 00 [03:12:53]Write to MH i2c: E2 08 00 4F 70 80 11 00 00 00 00 00 00 39 [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 17 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 17 00 4F 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [03:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:12:53]wFMCommunicate OK [03:12:53]CreateOFDProtocolMessage done [03:12:53]OFDSenderStorePacket 139564 [03:12:53]StoreOFDPacket docnum=139564 [03:12: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 23 01 00 00 B7 17 1B 01 66 1B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC F5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2C 21 02 00 35 04 06 00 0B DD 1A 59 04 C9 68 DC 33 FA 90 8E F4 09 [03:12:53]CheckFolder [03:12:53]dirname=/storage/ofd_packets [03:12:53]CheckFolder done [03:12:53]ProducePacketName [03:12:53]name=ofd_packets/00139564 [03:12:53]NVStorageSaveData ofd_packets/00139564 [03:12:53]File name is /storage/ofd_packets/00139564 [03:12:53]Write 321 bytes [03:12:53]NVStorageSaveData done [03:12:53]OFDSenderStorePacket done [03:12:53]KKMCreateOFDPacket done [03:12:53]NVStorageSaveData kkm_last_timestamp [03:12:53]File name is /storage/kkm_last_timestamp [03:12:53]Write 4 bytes [03:12:53]NVStorageSaveData done [03:12:53]ExternCall_PrintAddStr [03:12:53]wPrintStart [03:12:53]Write to MH i2c: 01 00 00 50 70 C0 [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: 01 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: 01 07 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: 01 07 00 50 70 00 00 00 00 00 FF 0F D5 [03:12:53]RasterBufferAndPrint [03:12:53]line Счет N : (3)335445 [03:12:53]line ИНН: 02508201610067 [03:12:53]line Контрольно-Кассовый Чек [03:12:53]line ПРОДАЖА [03:12:53]line Товар: 4700000160204 [03:12:53]line Вода Легенда 1,5л [03:12:53]line 1.000 * 60.00 [03:12:53]line = 60.00 [03:12:53]line НДС 12% НСП 1% [03:12:53]line > о реализуемом товаре [03:12:53]line ИТОГО: 60.00 [03:12:53]line НСП 1% : 0.53 [03:12:53]line НДС 12% : 6.37 [03:12:53]line Наличными: 60.00 [03:12:53]line Безнал.: 0.00 [03:12:53]line Место: АЗС № 101 "Партнер Нефть" [03:12:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:12:53]line СНО: Общий режим [03:12:53]line Чек 41 31.10.2024 03:13 [03:12:53]line Смена: 557 ФФД: 1.0 [03:12:53]line ЗНМ: 0300000081 [03:12:53]line РНМ: 0000000000091631 [03:12:53]line Версия ККМ: 001 [03:12:53]line ФМ: 0000000000874669 [03:12:53]line ФД: 139564 [03:12:53]line ФПД: 13044257719497 [03:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T031300&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139564&fm=13044257719497&tin=02508201610067®Number=0000000000091631&sum=6000 [03:12:54]OFD Sender: Processing packet 139564 [packets to send 34, broken 33] [03:12:54]ProducePacketName [03:12:54]name=ofd_packets/00139564 [03:12:54]OFD Sender: To server: pG, [03:12:54]CommunicateWithHost lk.salyk.kg:30040 [03:12:54]ConnectInit lk.salyk.kg [03:12:54]line 0 [03:12:54]written 0, free lines is 4095 [03:12:54]Connected sock=10 [03:12: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 23 01 00 00 B7 17 1B 01 66 1B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BC F5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2C 21 02 00 35 04 06 00 0B DD 1A 59 04 C9 68 DC 33 FA 90 8E F4 09 [03:12: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 09 01 47 00 89 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 2C 21 02 00 F4 03 04 00 6B A1 22 67 B6 04 01 00 00 B8 DD 95 3E 39 BC CA 44 [03:12:54]CommunicateWithHost err = 0 [03:12:54]CheckOFDResponse [03:12:54]1017 (14) - 77093643461234 [03:12:54]1041 (16) - 0000000000874669 [03:12:54]1040 (4) - 139564 [03:12:54]1012 (4) - 30.10.2024 21:13 [03:12:54]1206 (1) - 0 [03:12:54]OFD Sender: Remove packet 139564 [03:12:54]ProducePacketName [03:12:54]name=ofd_packets/00139564 [03:12:54]NVStorageDeleteData [03:12:54]Write to MH i2c: 01 00 00 78 70 E8 [03:12:54]Write i2c OK [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: 01 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: 01 07 00 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: 01 07 00 78 70 00 00 00 00 00 09 0D 05 [03:12:54]RasterBufferAndPrint [03:12:54]line [03:12:54]line [03:12:54]line [03:12:54]line [03:12:54]line [03:12:54]written 0, free lines is 3346 [03:12:54]MH_Cut [03:12:54]Write to MH i2c: D1 01 00 7F 70 01 C1 [03:12:54]Write i2c OK [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: D1 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: D1 01 00 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: D1 01 00 7F 70 00 C0 [03:12:54]Write to MH i2c: 01 00 00 80 70 F0 [03:12:54]Write i2c OK [03:12:54]MH_I2C_Read... [03:12:54]OFD Sender: No OFD packet to send [03:12:55]*** Cut start [03:12:55]*** Partial cut [03:12:55]*** CUTSNS_PIN = 1 [03:12:55]*** CUTSNS_PIN = 0 [03:12:55]*** Brake cut motor [03:12:55]Read from MH i2c: 01 [03:12:55]MH_I2C_Read... [03:12:55]*** Stop cut motor [03:12:55]*** Cut end [03:12:55]Read from MH i2c: 01 07 00 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: 01 07 00 80 70 00 00 00 00 00 FF 0F 05 [03:12:55]process_action close_receipt done [03:12:55]requested_data is exist [03:12:55]produce_requested_data [03:12:55]requested_item fm.sn is exist - process it [03:12:55]wFMCommunicate request_size=4 [03:12:55]MH_SAM_APDU [03:12:55]CAPDU: 80 11 00 00 [03:12:55]Write to MH i2c: E2 08 00 81 70 80 11 00 00 00 00 00 00 6B [03:12:55]Write i2c OK [03:12:55]MH_I2C_Read... [03:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:55]Read from MH i2c: E2 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 17 00 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 17 00 81 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C6 [03:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:12:55]wFMCommunicate OK [03:12:55]requested_item fd.num is exist - process it [03:12:55]SAM_PROTO_GetFieldsCounters [03:12:55]wFMCommunicate request_size=4 [03:12:55]MH_SAM_APDU [03:12:55]CAPDU: 80 13 00 00 [03:12:55]Write to MH i2c: E2 08 00 82 70 80 13 00 00 00 00 00 00 6E [03:12:55]Write i2c OK [03:12:55]MH_I2C_Read... [03:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:12:55]Read from MH i2c: E2 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 62 00 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 62 00 82 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 2C 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [03:12: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 2C 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:12:55]wFMCommunicate OK [03:12:55]SAM_PROTO_GetFieldsCounters done [03:12:55]requested_item shift.num is exist - process it [03:12:55]requested_item shift.opened is exist - process it [03:12:55]req_shift_opened [03:12:55]FM_GetShiftState [03:12:55]SAM_PROTO_GetShiftState [03:12:55]wFMCommunicate request_size=4 [03:12:55]MH_SAM_APDU [03:12:55]CAPDU: 80 13 01 00 [03:12:55]Write to MH i2c: E2 08 00 83 70 80 13 01 00 00 00 00 00 70 [03:12:55]Write i2c OK [03:12:55]MH_I2C_Read... [03:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:56]Read from MH i2c: E2 [03:12:56]MH_I2C_Read... [03:12:56]Read from MH i2c: E2 0E 00 [03:12:56]MH_I2C_Read... [03:12:56]Read from MH i2c: E2 0E 00 83 70 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 99 [03:12:56]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:12:56]wFMCommunicate OK [03:12:56]SAM_PROTO_GetShiftState done [03:12:56]FM_GetShiftState done [03:12:56]req_shift_opened done [03:12:56]requested_item shift.open_date is exist - process it [03:12:56]req_shift_open_date [03:12:56]req_shift_open_date done [03:12:56]produce_requested_data done [03:12:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139564,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [03:12:56]process_action_free close_receipt [03:12:56]json_value_free [03:12:56]json_value_free done [03:12:56]process_json_proto returns [03:12:56]Send response to host [03:12:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139564,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [03:12:56]free response buf [03:12:56]execute_script done [03:12:56]execute_script returns [03:12:56]free content buf [03:12:56]Sock 8.Close socket [03:12:56]Sock 8.Thread stoped [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:39:04]ConnectInit Can't connect to host [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:02]accept exits with 10 [03:51:02]New connection [03:51:02]New thread 3067141476 created [03:51:02]Thread 3067284836 joined [03:51:02]Waiting for new connection... [03:51:02] Sock 10.Parse request [03:51:02]Sock 10.Check first char [03:51:02]Sock 10.First char is OK [03:51:02]request: POST /json_proto HTTP/1.0 [03:51:02]Method: POST [03:51:02]URL: /json_proto [03:51:02]Method is POST - this is cgi request [03:51:02]url: /json_proto [03:51:02]query_string will be loaded in cgi processing [03:51:02]execute_cgi json_proto POST (null) [03:51:02]execute_cgi path=json_proto method=POST [03:51:02]POST find Content-Length [03:51:02]Host: 172.17.50.196:8080 [03:51:02]Content-Length: 669 [03:51:02]Content-Type: application/json [03:51:02] [03:51:02]POST finish read [03:51:02]Found Content-Length = 669 [03:51:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335449", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 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" ] } } [03:51:02]execute_script... [03:51:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335449", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 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" ] } } [03:51:02]POST & json_proto [03:51:02]process_json_proto [03:51:02]json parsed OK: [03:51:02]protocol is kg_v1.0 [03:51:02]action value=close_receipt [03:51:02]process_action close_receipt [03:51:02]cmd_close_receipt [03:51:02]MH_GetDate [03:51:02]Write to MH i2c: F0 00 00 65 71 C5 [03:51:02]Write i2c OK [03:51:02]MH_I2C_Read... [03:51:02]Read from MH i2c: F0 [03:51:02]MH_I2C_Read... [03:51:02]Read from MH i2c: F0 09 00 [03:51:02]MH_I2C_Read... [03:51:02]Read from MH i2c: F0 09 00 65 71 00 AF FE 22 67 72 0D 1C 67 06 [03:51:02]GetLastDocTimeStamp 1730345362 [03:51:02]current date 1730346671 [03:51:02]FM_GetShiftState [03:51:02]SAM_PROTO_GetShiftState [03:51:02]wFMCommunicate request_size=4 [03:51:02]MH_SAM_APDU [03:51:02]CAPDU: 80 13 01 00 [03:51:02]Write to MH i2c: E2 08 00 66 71 80 13 01 00 00 00 00 00 54 [03:51:02]Write i2c OK [03:51:02]MH_I2C_Read... [03:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:02]Read from MH i2c: E2 [03:51:02]MH_I2C_Read... [03:51:02]Read from MH i2c: E2 0E 00 [03:51:02]MH_I2C_Read... [03:51:02]Read from MH i2c: E2 0E 00 66 71 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7D [03:51:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:51:02]wFMCommunicate OK [03:51:02]SAM_PROTO_GetShiftState done [03:51:02]FM_GetShiftState done [03:51:02]opened in 1730332621 [03:51:02]opened+sec_in_day 1730419021 [03:51:02]quantity*price = 8900 [03:51:02]sum+1 = 8901 [03:51:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 45 31.10.2024 03:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139568 ФПД: 192234893733797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T035111&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139568&fm=192234893733797&tin=02508201610067®Number=0000000000091631&sum=8900 0 [03:51:03]StoreToDocumentArchive [03:51:03]shift 557 fd 139568 [03:51:03]save to /storage/0557/doc_00139568 [03:51:03]save last doc name /storage/0557/doc_00139568 to /storage/kkm_last_doc_name [03:51:03]save OK [03:51:03]Clear old archive folders... [03:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=284 [03:51:04]tlvbuf is 01167540 [03:51:04]SAM_PROTO_ClearQueue [03:51:04]wFMCommunicate request_size=4 [03:51:04]MH_SAM_APDU [03:51:04]CAPDU: 80 09 00 00 [03:51:04]Write to MH i2c: E2 08 00 73 71 80 09 00 00 00 00 00 00 56 [03:51:04]Write i2c OK [03:51:04]MH_I2C_Read... [03:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:51:04]Read from MH i2c: E2 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 73 71 00 90 00 58 [03:51:04]RAPDU: 90 00 [03:51:04]wFMCommunicate OK [03:51:04]SAM_PROTO_ClearQueue done [03:51:04]KKMCreateOFDPacket [03:51:04]OFDProtocolAddRootSTLVToBuf [03:51:04]FM_MakeSignedData [03:51:04]FM_MakeSignedData [03:51:04]SAM_PROTO_SignData [03:51:04]wFMCommunicate request_size=4 [03:51:04]MH_SAM_APDU [03:51:04]CAPDU: 80 0D 01 02 [03:51:04]Write to MH i2c: E2 08 00 74 71 80 0D 01 02 00 00 00 00 5E [03:51:04]Write i2c OK [03:51:04]MH_I2C_Read... [03:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:51:04]Read from MH i2c: E2 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 74 71 00 90 00 59 [03:51:04]RAPDU: 90 00 [03:51:04]wFMCommunicate OK [03:51:04]wFMCommunicate request_size=255 [03:51:04]MH_SAM_APDU [03:51:04]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2D 00 00 00 F4 03 04 00 AF FE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [03:51:04]Write to MH i2c: E2 02 01 75 71 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2D 00 00 00 F4 03 04 00 AF FE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 31 [03:51:04]Write i2c OK [03:51:04]MH_I2C_Read... [03:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:04]Read from MH i2c: E2 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 75 71 00 90 00 5A [03:51:04]RAPDU: 90 00 [03:51:04]wFMCommunicate OK [03:51:04]wFMCommunicate request_size=43 [03:51:04]MH_SAM_APDU [03:51:04]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 21 02 00 35 04 06 00 AE D6 2C 8D EF A5 [03:51:04]Write to MH i2c: E2 2E 00 76 71 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 21 02 00 35 04 06 00 AE D6 2C 8D EF A5 00 00 75 [03:51:04]Write i2c OK [03:51:04]MH_I2C_Read... [03:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:04]Read from MH i2c: E2 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 03 00 76 71 00 90 00 5B [03:51:04]RAPDU: 90 00 [03:51:04]wFMCommunicate OK [03:51:04]wFMCommunicate request_size=4 [03:51:04]MH_SAM_APDU [03:51:04]CAPDU: 80 0D 03 02 [03:51:04]Write to MH i2c: E2 08 00 77 71 80 0D 03 02 00 00 00 00 63 [03:51:04]Write i2c OK [03:51:04]MH_I2C_Read... [03:51:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:51:04]Read from MH i2c: E2 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 0B 00 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 0B 00 77 71 00 00 26 0F EE 23 59 84 08 90 00 8F [03:51:04]RAPDU: 00 26 0F EE 23 59 84 08 90 00 [03:51:04]wFMCommunicate OK [03:51:04]SAM_PROTO_SignData done [03:51:04]FM_MakeSignedData done [03:51:04]CreateOFDProtocolMessage [03:51:04]wFMCommunicate request_size=4 [03:51:04]MH_SAM_APDU [03:51:04]CAPDU: 80 11 00 00 [03:51:04]Write to MH i2c: E2 08 00 78 71 80 11 00 00 00 00 00 00 63 [03:51:04]Write i2c OK [03:51:04]MH_I2C_Read... [03:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:04]Read from MH i2c: E2 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 17 00 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: E2 17 00 78 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BE [03:51:04]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:04]wFMCommunicate OK [03:51:04]CreateOFDProtocolMessage done [03:51:04]OFDSenderStorePacket 139568 [03:51:04]StoreOFDPacket docnum=139568 [03:51:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 05 13 28 01 6C ED 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2D 00 00 00 F4 03 04 00 AF FE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 21 02 00 35 04 06 00 AE D6 2C 8D EF A5 00 26 0F EE 23 59 84 08 [03:51:04]CheckFolder [03:51:04]dirname=/storage/ofd_packets [03:51:04]CheckFolder done [03:51:04]ProducePacketName [03:51:04]name=ofd_packets/00139568 [03:51:04]NVStorageSaveData ofd_packets/00139568 [03:51:04]File name is /storage/ofd_packets/00139568 [03:51:04]Write 334 bytes [03:51:04]NVStorageSaveData done [03:51:04]OFDSenderStorePacket done [03:51:04]KKMCreateOFDPacket done [03:51:04]NVStorageSaveData kkm_last_timestamp [03:51:04]File name is /storage/kkm_last_timestamp [03:51:04]Write 4 bytes [03:51:04]NVStorageSaveData done [03:51:04]ExternCall_PrintAddStr [03:51:04]wPrintStart [03:51:04]Write to MH i2c: 01 00 00 79 71 EA [03:51:04]Write i2c OK [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: 01 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: 01 07 00 [03:51:04]MH_I2C_Read... [03:51:04]Read from MH i2c: 01 07 00 79 71 00 00 00 00 00 FF 0F FF [03:51:04]RasterBufferAndPrint [03:51:04]line Счет N : (3)335449 [03:51:04]line ИНН: 02508201610067 [03:51:04]line Контрольно-Кассовый Чек [03:51:04]line ПРОДАЖА [03:51:04]line Товар: 4700040114137 [03:51:04]line Султан чай 1л. зел лимон [03:51:04]line 1.000 * 89.00 [03:51:04]line = 89.00 [03:51:04]line НДС 12% НСП 1% [03:51:04]line > о реализуемом товаре [03:51:04]line ИТОГО: 89.00 [03:51:04]line НСП 1% : 0.79 [03:51:04]line НДС 12% : 9.45 [03:51:04]line Наличными: 89.00 [03:51:04]line Безнал.: 0.00 [03:51:04]line Место: АЗС № 101 "Партнер Нефть" [03:51:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:51:04]line СНО: Общий режим [03:51:04]line Чек 45 31.10.2024 03:51 [03:51:04]line Смена: 557 ФФД: 1.0 [03:51:04]line ЗНМ: 0300000081 [03:51:04]line РНМ: 0000000000091631 [03:51:04]line Версия ККМ: 001 [03:51:04]line ФМ: 0000000000874669 [03:51:04]line ФД: 139568 [03:51:04]line ФПД: 192234893733797 [03:51:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T035111&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139568&fm=192234893733797&tin=02508201610067®Number=0000000000091631&sum=8900 [03:51:04]OFD Sender: Processing packet 139568 [packets to send 34, broken 33] [03:51:04]ProducePacketName [03:51:04]name=ofd_packets/00139568 [03:51:04]OFD Sender: To server: pG, [03:51:04]CommunicateWithHost lk.salyk.kg:30040 [03:51:04]ConnectInit lk.salyk.kg [03:51:04]line 0 [03:51:04]written 0, free lines is 4095 [03:51:04]Connected sock=9 [03:51: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 30 01 00 00 05 13 28 01 6C ED 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2D 00 00 00 F4 03 04 00 AF FE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 21 02 00 35 04 06 00 AE D6 2C 8D EF A5 00 26 0F EE 23 59 84 08 [03:51: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 E8 70 47 00 F2 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 21 02 00 F4 03 04 00 5E AA 22 67 B6 04 01 00 00 4E F3 3C EB 48 9D 51 A6 [03:51:05]CommunicateWithHost err = 0 [03:51:05]CheckOFDResponse [03:51:05]1017 (14) - 77093643461234 [03:51:05]1041 (16) - 0000000000874669 [03:51:05]1040 (4) - 139568 [03:51:05]1012 (4) - 30.10.2024 21:51 [03:51:05]1206 (1) - 0 [03:51:05]OFD Sender: Remove packet 139568 [03:51:05]ProducePacketName [03:51:05]name=ofd_packets/00139568 [03:51:05]NVStorageDeleteData [03:51:05]Write to MH i2c: 01 00 00 A1 71 12 [03:51:05]Write i2c OK [03:51:05]MH_I2C_Read... [03:51:05]Read from MH i2c: 01 [03:51:05]MH_I2C_Read... [03:51:05]Read from MH i2c: 01 07 00 [03:51:05]MH_I2C_Read... [03:51:05]Read from MH i2c: 01 07 00 A1 71 00 00 00 00 00 0D 0D 33 [03:51:05]RasterBufferAndPrint [03:51:05]line [03:51:05]line [03:51:05]line [03:51:05]line [03:51:05]line [03:51:05]written 0, free lines is 3350 [03:51:05]MH_Cut [03:51:05]Write to MH i2c: D1 01 00 A8 71 01 EB [03:51:05]Write i2c OK [03:51:05]MH_I2C_Read... [03:51:05]Read from MH i2c: D1 [03:51:05]MH_I2C_Read... [03:51:05]Read from MH i2c: D1 01 00 [03:51:05]MH_I2C_Read... [03:51:05]Read from MH i2c: D1 01 00 A8 71 00 EA [03:51:05]Write to MH i2c: 01 00 00 A9 71 1A [03:51:05]Write i2c OK [03:51:05]MH_I2C_Read... [03:51:05]OFD Sender: No OFD packet to send [03:51:05]*** Cut start [03:51:05]*** Partial cut [03:51:05]*** CUTSNS_PIN = 1 [03:51:06]*** CUTSNS_PIN = 0 [03:51:06]*** Brake cut motor [03:51:06]Read from MH i2c: 01 [03:51:06]MH_I2C_Read... [03:51:06]*** Stop cut motor [03:51:06]*** Cut end [03:51:06]Read from MH i2c: 01 07 00 [03:51:06]MH_I2C_Read... [03:51:06]Read from MH i2c: 01 07 00 A9 71 00 00 00 00 00 FF 0F 2F [03:51:06]process_action close_receipt done [03:51:06]requested_data is exist [03:51:06]produce_requested_data [03:51:06]requested_item fm.sn is exist - process it [03:51:06]wFMCommunicate request_size=4 [03:51:06]MH_SAM_APDU [03:51:06]CAPDU: 80 11 00 00 [03:51:06]Write to MH i2c: E2 08 00 AA 71 80 11 00 00 00 00 00 00 95 [03:51:06]Write i2c OK [03:51:06]MH_I2C_Read... [03:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:06]Read from MH i2c: E2 [03:51:06]MH_I2C_Read... [03:51:06]Read from MH i2c: E2 17 00 [03:51:06]MH_I2C_Read... [03:51:06]Read from MH i2c: E2 17 00 AA 71 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:51: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:51:06]wFMCommunicate OK [03:51:06]requested_item fd.num is exist - process it [03:51:06]SAM_PROTO_GetFieldsCounters [03:51:06]wFMCommunicate request_size=4 [03:51:06]MH_SAM_APDU [03:51:06]CAPDU: 80 13 00 00 [03:51:06]Write to MH i2c: E2 08 00 AB 71 80 13 00 00 00 00 00 00 98 [03:51:06]Write i2c OK [03:51:06]MH_I2C_Read... [03:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:51:06]Read from MH i2c: E2 [03:51:06]MH_I2C_Read... [03:51:06]Read from MH i2c: E2 62 00 [03:51:06]MH_I2C_Read... [03:51:06]Read from MH i2c: E2 62 00 AB 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 30 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [03:51: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 30 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:51:06]wFMCommunicate OK [03:51:06]SAM_PROTO_GetFieldsCounters done [03:51:06]requested_item shift.num is exist - process it [03:51:06]requested_item shift.opened is exist - process it [03:51:06]req_shift_opened [03:51:06]FM_GetShiftState [03:51:06]SAM_PROTO_GetShiftState [03:51:06]wFMCommunicate request_size=4 [03:51:06]MH_SAM_APDU [03:51:06]CAPDU: 80 13 01 00 [03:51:06]Write to MH i2c: E2 08 00 AC 71 80 13 01 00 00 00 00 00 9A [03:51:06]Write i2c OK [03:51:06]MH_I2C_Read... [03:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:06]Read from MH i2c: E2 [03:51:06]MH_I2C_Read... [03:51:06]Read from MH i2c: E2 0E 00 [03:51:06]MH_I2C_Read... [03:51:06]Read from MH i2c: E2 0E 00 AC 71 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C3 [03:51:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:51:06]wFMCommunicate OK [03:51:06]SAM_PROTO_GetShiftState done [03:51:06]FM_GetShiftState done [03:51:06]req_shift_opened done [03:51:06]requested_item shift.open_date is exist - process it [03:51:06]req_shift_open_date [03:51:06]req_shift_open_date done [03:51:06]produce_requested_data done [03:51:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139568,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [03:51:06]process_action_free close_receipt [03:51:06]json_value_free [03:51:06]json_value_free done [03:51:06]process_json_proto returns [03:51:06]Send response to host [03:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139568,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [03:51:06]free response buf [03:51:06]execute_script done [03:51:06]execute_script returns [03:51:06]free content buf [03:51:06]Sock 10.Close socket [03:51:06]Sock 10.Thread stoped [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:02]accept exits with 8 [03:56:02]New connection [03:56:02]New thread 3067284836 created [03:56:02]Thread 3067141476 joined [03:56:02]Waiting for new connection... [03:56:02] Sock 8.Parse request [03:56:02]Sock 8.Check first char [03:56:02]Sock 8.First char is OK [03:56:02]request: POST /json_proto HTTP/1.0 [03:56:02]Method: POST [03:56:02]URL: /json_proto [03:56:02]Method is POST - this is cgi request [03:56:02]url: /json_proto [03:56:02]query_string will be loaded in cgi processing [03:56:02]execute_cgi json_proto POST (null) [03:56:02]execute_cgi path=json_proto method=POST [03:56:02]POST find Content-Length [03:56:02]Host: 172.17.50.196:8080 [03:56:02]Content-Length: 724 [03:56:02]Content-Type: application/json [03:56:02] [03:56:02]POST finish read [03:56:02]Found Content-Length = 724 [03:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335450", "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" ] } } [03:56:02]execute_script... [03:56:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335450", "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" ] } } [03:56:02]POST & json_proto [03:56:02]process_json_proto [03:56:02]json parsed OK: [03:56:02]protocol is kg_v1.0 [03:56:02]action value=close_receipt [03:56:02]process_action close_receipt [03:56:02]cmd_close_receipt [03:56:02]MH_GetDate [03:56:02]Write to MH i2c: F0 00 00 AD 71 0D [03:56:02]Write i2c OK [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: F0 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: F0 09 00 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: F0 09 00 AD 71 00 DB FF 22 67 72 0D 1C 67 7B [03:56:02]GetLastDocTimeStamp 1730346671 [03:56:02]current date 1730346971 [03:56:02]FM_GetShiftState [03:56:02]SAM_PROTO_GetShiftState [03:56:02]wFMCommunicate request_size=4 [03:56:02]MH_SAM_APDU [03:56:02]CAPDU: 80 13 01 00 [03:56:02]Write to MH i2c: E2 08 00 AE 71 80 13 01 00 00 00 00 00 9C [03:56:02]Write i2c OK [03:56:02]MH_I2C_Read... [03:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:02]Read from MH i2c: E2 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: E2 0E 00 [03:56:02]MH_I2C_Read... [03:56:02]Read from MH i2c: E2 0E 00 AE 71 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C5 [03:56:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:56:02]wFMCommunicate OK [03:56:02]SAM_PROTO_GetShiftState done [03:56:02]FM_GetShiftState done [03:56:02]opened in 1730332621 [03:56:02]opened+sec_in_day 1730419021 [03:56:02]quantity*price = 28500 [03:56:02]sum+1 = 28501 [03:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 46 31.10.2024 03:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139569 ФПД: 62282733125466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T035611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139569&fm=62282733125466&tin=02508201610067®Number=0000000000091631&sum=28500 0 [03:56:04]StoreToDocumentArchive [03:56:04]shift 557 fd 139569 [03:56:04]save to /storage/0557/doc_00139569 [03:56:04]save last doc name /storage/0557/doc_00139569 to /storage/kkm_last_doc_name [03:56:04]save OK [03:56:04]Clear old archive folders... [03:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=304 [03:56:04]tlvbuf is 0115AC70 [03:56:04]SAM_PROTO_ClearQueue [03:56:04]wFMCommunicate request_size=4 [03:56:04]MH_SAM_APDU [03:56:04]CAPDU: 80 09 00 00 [03:56:04]Write to MH i2c: E2 08 00 BB 71 80 09 00 00 00 00 00 00 9E [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:56:04]Read from MH i2c: E2 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 BB 71 00 90 00 A0 [03:56:04]RAPDU: 90 00 [03:56:04]wFMCommunicate OK [03:56:04]SAM_PROTO_ClearQueue done [03:56:04]KKMCreateOFDPacket [03:56:04]OFDProtocolAddRootSTLVToBuf [03:56:04]FM_MakeSignedData [03:56:04]FM_MakeSignedData [03:56:04]SAM_PROTO_SignData [03:56:04]wFMCommunicate request_size=4 [03:56:04]MH_SAM_APDU [03:56:04]CAPDU: 80 0D 01 02 [03:56:04]Write to MH i2c: E2 08 00 BC 71 80 0D 01 02 00 00 00 00 A6 [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:56:04]Read from MH i2c: E2 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 BC 71 00 90 00 A1 [03:56:04]RAPDU: 90 00 [03:56:04]wFMCommunicate OK [03:56:04]wFMCommunicate request_size=255 [03:56:04]MH_SAM_APDU [03:56:04]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 2E 00 00 00 F4 03 04 00 DB FF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 [03:56:04]Write to MH i2c: E2 02 01 BD 71 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 2E 00 00 00 F4 03 04 00 DB FF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 00 00 A9 [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:04]Read from MH i2c: E2 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 BD 71 00 90 00 A2 [03:56:04]RAPDU: 90 00 [03:56:04]wFMCommunicate OK [03:56:04]wFMCommunicate request_size=63 [03:56:04]MH_SAM_APDU [03:56:04]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 31 21 02 00 35 04 06 00 38 A5 54 2E FF 5A [03:56:04]Write to MH i2c: E2 42 00 BE 71 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 31 21 02 00 35 04 06 00 38 A5 54 2E FF 5A 00 00 02 [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:04]Read from MH i2c: E2 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 03 00 BE 71 00 90 00 A3 [03:56:04]RAPDU: 90 00 [03:56:04]wFMCommunicate OK [03:56:04]wFMCommunicate request_size=4 [03:56:04]MH_SAM_APDU [03:56:04]CAPDU: 80 0D 03 02 [03:56:04]Write to MH i2c: E2 08 00 BF 71 80 0D 03 02 00 00 00 00 AB [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:56:04]Read from MH i2c: E2 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 0B 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 0B 00 BF 71 00 21 E1 AE 2A 19 42 29 1B 90 00 25 [03:56:04]RAPDU: 21 E1 AE 2A 19 42 29 1B 90 00 [03:56:04]wFMCommunicate OK [03:56:04]SAM_PROTO_SignData done [03:56:04]FM_MakeSignedData done [03:56:04]CreateOFDProtocolMessage [03:56:04]wFMCommunicate request_size=4 [03:56:04]MH_SAM_APDU [03:56:04]CAPDU: 80 11 00 00 [03:56:04]Write to MH i2c: E2 08 00 C0 71 80 11 00 00 00 00 00 00 AB [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:04]Read from MH i2c: E2 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 17 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: E2 17 00 C0 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [03:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:56:04]wFMCommunicate OK [03:56:04]CreateOFDProtocolMessage done [03:56:04]OFDSenderStorePacket 139569 [03:56:04]StoreOFDPacket docnum=139569 [03:56:04]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 7D 75 3C 01 DD D8 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 2E 00 00 00 F4 03 04 00 DB FF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 31 21 02 00 35 04 06 00 38 A5 54 2E FF 5A 21 E1 AE 2A 19 42 29 1B [03:56:04]CheckFolder [03:56:04]dirname=/storage/ofd_packets [03:56:04]CheckFolder done [03:56:04]ProducePacketName [03:56:04]name=ofd_packets/00139569 [03:56:04]NVStorageSaveData ofd_packets/00139569 [03:56:04]File name is /storage/ofd_packets/00139569 [03:56:04]Write 354 bytes [03:56:04]NVStorageSaveData done [03:56:04]OFDSenderStorePacket done [03:56:04]KKMCreateOFDPacket done [03:56:04]NVStorageSaveData kkm_last_timestamp [03:56:04]File name is /storage/kkm_last_timestamp [03:56:04]Write 4 bytes [03:56:04]NVStorageSaveData done [03:56:04]ExternCall_PrintAddStr [03:56:04]wPrintStart [03:56:04]Write to MH i2c: 01 00 00 C1 71 32 [03:56:04]Write i2c OK [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: 01 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: 01 07 00 [03:56:04]MH_I2C_Read... [03:56:04]Read from MH i2c: 01 07 00 C1 71 00 00 00 00 00 FF 0F 47 [03:56:04]RasterBufferAndPrint [03:56:04]line Счет N : (3)335450 [03:56:04]line ИНН: 02508201610067 [03:56:04]line Контрольно-Кассовый Чек [03:56:04]line ПРОДАЖА [03:56:04]line Товар: 8901086040022 [03:56:04]line Жидкость стеклоомывающая ПН -20 4,5л [03:56:04]line 1.000 * 285.00 [03:56:04]line = 285.00 [03:56:04]line НДС 12% НСП 1% [03:56:04]line > о реализуемом товаре [03:56:04]line ИТОГО: 285.00 [03:56:04]line НСП 1% : 2.52 [03:56:04]line НДС 12% : 30.26 [03:56:04]line Наличными: 285.00 [03:56:04]line Безнал.: 0.00 [03:56:04]line Место: АЗС № 101 "Партнер Нефть" [03:56:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:56:04]line СНО: Общий режим [03:56:04]line Чек 46 31.10.2024 03:56 [03:56:04]line Смена: 557 ФФД: 1.0 [03:56:04]line ЗНМ: 0300000081 [03:56:04]line РНМ: 0000000000091631 [03:56:04]line Версия ККМ: 001 [03:56:04]line ФМ: 0000000000874669 [03:56:04]line ФД: 139569 [03:56:04]line ФПД: 62282733125466 [03:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T035611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139569&fm=62282733125466&tin=02508201610067®Number=0000000000091631&sum=28500 [03:56:04]line 0 [03:56:04]OFD Sender: Processing packet 139569 [packets to send 34, broken 33] [03:56:04]ProducePacketName [03:56:04]name=ofd_packets/00139569 [03:56:04]OFD Sender: To server: pG, [03:56:04]CommunicateWithHost lk.salyk.kg:30040 [03:56:04]ConnectInit lk.salyk.kg [03:56:04]written 0, free lines is 4095 [03:56:05]Connected sock=10 [03:56: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 44 01 00 00 7D 75 3C 01 DD D8 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 2E 00 00 00 F4 03 04 00 DB FF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 31 21 02 00 35 04 06 00 38 A5 54 2E FF 5A 21 E1 AE 2A 19 42 29 1B [03:56: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 8A CA 47 00 14 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 31 21 02 00 F4 03 04 00 8A AB 22 67 B6 04 01 00 00 2B B6 75 4B AE 47 2C CB [03:56:05]CommunicateWithHost err = 0 [03:56:05]CheckOFDResponse [03:56:05]1017 (14) - 77093643461234 [03:56:05]1041 (16) - 0000000000874669 [03:56:05]1040 (4) - 139569 [03:56:05]1012 (4) - 30.10.2024 21:56 [03:56:05]1206 (1) - 0 [03:56:05]OFD Sender: Remove packet 139569 [03:56:05]ProducePacketName [03:56:05]name=ofd_packets/00139569 [03:56:05]NVStorageDeleteData [03:56:05]Write to MH i2c: 01 00 00 EA 71 5B [03:56:05]Write i2c OK [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: 01 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: 01 07 00 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: 01 07 00 EA 71 00 00 00 00 00 FF 0C 6D [03:56:05]RasterBufferAndPrint [03:56:05]line [03:56:05]line [03:56:05]line [03:56:05]line [03:56:05]line [03:56:05]written 0, free lines is 3335 [03:56:05]MH_Cut [03:56:05]Write to MH i2c: D1 01 00 F1 71 01 34 [03:56:05]Write i2c OK [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: D1 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: D1 01 00 [03:56:05]MH_I2C_Read... [03:56:05]Read from MH i2c: D1 01 00 F1 71 00 33 [03:56:05]Write to MH i2c: 01 00 00 F2 71 63 [03:56:05]Write i2c OK [03:56:05]MH_I2C_Read... [03:56:05]OFD Sender: No OFD packet to send [03:56:06]*** Cut start [03:56:06]*** Partial cut [03:56:06]*** CUTSNS_PIN = 1 [03:56:06]*** CUTSNS_PIN = 0 [03:56:06]*** Brake cut motor [03:56:06]Read from MH i2c: 01 [03:56:06]MH_I2C_Read... [03:56:06]*** Stop cut motor [03:56:06]*** Cut end [03:56:06]Read from MH i2c: 01 07 00 [03:56:06]MH_I2C_Read... [03:56:06]Read from MH i2c: 01 07 00 F2 71 00 00 00 00 00 FF 0F 78 [03:56:06]process_action close_receipt done [03:56:06]requested_data is exist [03:56:06]produce_requested_data [03:56:06]requested_item fm.sn is exist - process it [03:56:06]wFMCommunicate request_size=4 [03:56:06]MH_SAM_APDU [03:56:06]CAPDU: 80 11 00 00 [03:56:06]Write to MH i2c: E2 08 00 F3 71 80 11 00 00 00 00 00 00 DE [03:56:06]Write i2c OK [03:56:06]MH_I2C_Read... [03:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:06]Read from MH i2c: E2 [03:56:06]MH_I2C_Read... [03:56:06]Read from MH i2c: E2 17 00 [03:56:06]MH_I2C_Read... [03:56:06]Read from MH i2c: E2 17 00 F3 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 39 [03:56: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:56:06]wFMCommunicate OK [03:56:06]requested_item fd.num is exist - process it [03:56:06]SAM_PROTO_GetFieldsCounters [03:56:06]wFMCommunicate request_size=4 [03:56:06]MH_SAM_APDU [03:56:06]CAPDU: 80 13 00 00 [03:56:06]Write to MH i2c: E2 08 00 F4 71 80 13 00 00 00 00 00 00 E1 [03:56:06]Write i2c OK [03:56:06]MH_I2C_Read... [03:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:56:06]Read from MH i2c: E2 [03:56:06]MH_I2C_Read... [03:56:06]Read from MH i2c: E2 62 00 [03:56:06]MH_I2C_Read... [03:56:06]Read from MH i2c: E2 62 00 F4 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 31 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [03:56: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 31 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:56:06]wFMCommunicate OK [03:56:06]SAM_PROTO_GetFieldsCounters done [03:56:06]requested_item shift.num is exist - process it [03:56:06]requested_item shift.opened is exist - process it [03:56:06]req_shift_opened [03:56:06]FM_GetShiftState [03:56:06]SAM_PROTO_GetShiftState [03:56:06]wFMCommunicate request_size=4 [03:56:06]MH_SAM_APDU [03:56:06]CAPDU: 80 13 01 00 [03:56:06]Write to MH i2c: E2 08 00 F5 71 80 13 01 00 00 00 00 00 E3 [03:56:06]Write i2c OK [03:56:06]MH_I2C_Read... [03:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:06]Read from MH i2c: E2 [03:56:06]MH_I2C_Read... [03:56:06]Read from MH i2c: E2 0E 00 [03:56:06]MH_I2C_Read... [03:56:06]Read from MH i2c: E2 0E 00 F5 71 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0C [03:56:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:56:06]wFMCommunicate OK [03:56:06]SAM_PROTO_GetShiftState done [03:56:06]FM_GetShiftState done [03:56:06]req_shift_opened done [03:56:06]requested_item shift.open_date is exist - process it [03:56:06]req_shift_open_date [03:56:06]req_shift_open_date done [03:56:06]produce_requested_data done [03:56:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139569,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [03:56:06]process_action_free close_receipt [03:56:06]json_value_free [03:56:06]json_value_free done [03:56:06]process_json_proto returns [03:56:06]Send response to host [03:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139569,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [03:56:06]free response buf [03:56:06]execute_script done [03:56:06]execute_script returns [03:56:06]free content buf [03:56:06]Sock 8.Close socket [03:56:06]Sock 8.Thread stoped [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [03:59:59]accept exits with 9 [03:59:59]New connection [03:59:59]New thread 3067141476 created [03:59:59]Thread 3067284836 joined [03:59:59]Waiting for new connection... [03:59:59] Sock 9.Parse request [03:59:59]Sock 9.Check first char [03:59:59]Sock 9.First char is OK [03:59:59]request: POST /json_proto HTTP/1.0 [03:59:59]Method: POST [03:59:59]URL: /json_proto [03:59:59]Method is POST - this is cgi request [03:59:59]url: /json_proto [03:59:59]query_string will be loaded in cgi processing [03:59:59]execute_cgi json_proto POST (null) [03:59:59]execute_cgi path=json_proto method=POST [03:59:59]POST find Content-Length [03:59:59]Host: 172.17.50.196:8080 [03:59:59]Content-Length: 891 [03:59:59]Content-Type: application/json [03:59:59] [03:59:59]POST finish read [03:59:59]Found Content-Length = 891 [03:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335451", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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 }]} ], "payments": [ { "type": 0, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:59]execute_script... [03:59: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)335451", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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 }]} ], "payments": [ { "type": 0, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:59]POST & json_proto [03:59:59]process_json_proto [03:59:59]json parsed OK: [03:59:59]protocol is kg_v1.0 [03:59:59]action value=close_receipt [03:59:59]process_action close_receipt [03:59:59]cmd_close_receipt [03:59:59]MH_GetDate [03:59:59]Write to MH i2c: F0 00 00 F6 71 56 [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: F0 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: F0 09 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: F0 09 00 F6 71 00 C8 00 23 67 72 0D 1C 67 B3 [03:59:59]GetLastDocTimeStamp 1730346971 [03:59:59]current date 1730347208 [03:59:59]FM_GetShiftState [03:59:59]SAM_PROTO_GetShiftState [03:59:59]wFMCommunicate request_size=4 [03:59:59]MH_SAM_APDU [03:59:59]CAPDU: 80 13 01 00 [03:59:59]Write to MH i2c: E2 08 00 F7 71 80 13 01 00 00 00 00 00 E5 [03:59:59]Write i2c OK [03:59:59]MH_I2C_Read... [03:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:59]Read from MH i2c: E2 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 0E 00 [03:59:59]MH_I2C_Read... [03:59:59]Read from MH i2c: E2 0E 00 F7 71 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0E [03:59:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [03:59:59]wFMCommunicate OK [03:59:59]SAM_PROTO_GetShiftState done [03:59:59]FM_GetShiftState done [03:59:59]opened in 1730332621 [03:59:59]opened+sec_in_day 1730419021 [03:59:59]quantity*price = 8900 [03:59:59]sum+1 = 8901 [03:59:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 44.00 = 44.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 133.00 НСП 1% : 1.18 НДС 12% : 14.12 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 47 31.10.2024 04:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139570 ФПД: 261537974286849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040008&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139570&fm=261537974286849&tin=02508201610067®Number=0000000000091631&sum=13300 0 [04:00:01]StoreToDocumentArchive [04:00:01]shift 557 fd 139570 [04:00:01]save to /storage/0557/doc_00139570 [04:00:01]save last doc name /storage/0557/doc_00139570 to /storage/kkm_last_doc_name [04:00:01]save OK [04:00:01]Clear old archive folders... [04:00:01]ProcessDocumentItem done err = 0, tmpTLVsize=389 [04:00:01]tlvbuf is 0116BDA0 [04:00:01]SAM_PROTO_ClearQueue [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 09 00 00 [04:00:01]Write to MH i2c: E2 08 00 04 72 80 09 00 00 00 00 00 00 E8 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 04 72 00 90 00 EA [04:00:01]RAPDU: 90 00 [04:00:01]wFMCommunicate OK [04:00:01]SAM_PROTO_ClearQueue done [04:00:01]KKMCreateOFDPacket [04:00:01]OFDProtocolAddRootSTLVToBuf [04:00:01]FM_MakeSignedData [04:00:01]FM_MakeSignedData [04:00:01]SAM_PROTO_SignData [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 0D 01 02 [04:00:01]Write to MH i2c: E2 08 00 05 72 80 0D 01 02 00 00 00 00 F0 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 05 72 00 90 00 EB [04:00:01]RAPDU: 90 00 [04:00:01]wFMCommunicate OK [04:00:01]wFMCommunicate request_size=255 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [04:00:01]Write to MH i2c: E2 02 01 06 72 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 95 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 06 72 00 90 00 EC [04:00:01]RAPDU: 90 00 [04:00:01]wFMCommunicate OK [04:00:01]wFMCommunicate request_size=148 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C8 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 32 21 02 00 35 04 06 00 ED DE 0E 0D 7A 01 [04:00:01]Write to MH i2c: E2 97 00 07 72 80 0D 02 02 8F 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C8 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 32 21 02 00 35 04 06 00 ED DE 0E 0D 7A 01 00 00 CE [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 03 00 07 72 00 90 00 ED [04:00:01]RAPDU: 90 00 [04:00:01]wFMCommunicate OK [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 0D 03 02 [04:00:01]Write to MH i2c: E2 08 00 08 72 80 0D 03 02 00 00 00 00 F5 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 0B 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 0B 00 08 72 00 FF 37 7A F0 21 DF DF C0 90 00 35 [04:00:01]RAPDU: FF 37 7A F0 21 DF DF C0 90 00 [04:00:01]wFMCommunicate OK [04:00:01]SAM_PROTO_SignData done [04:00:01]FM_MakeSignedData done [04:00:01]CreateOFDProtocolMessage [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 11 00 00 [04:00:01]Write to MH i2c: E2 08 00 09 72 80 11 00 00 00 00 00 00 F5 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 17 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 17 00 09 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 50 [04:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:00:01]wFMCommunicate OK [04:00:01]CreateOFDProtocolMessage done [04:00:01]OFDSenderStorePacket 139570 [04:00:01]StoreOFDPacket docnum=139570 [04:00: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 99 01 00 00 D3 78 91 01 BA 79 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C8 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 32 21 02 00 35 04 06 00 ED DE 0E 0D 7A 01 FF 37 7A F0 21 DF DF C0 [04:00:01]CheckFolder [04:00:01]dirname=/storage/ofd_packets [04:00:01]CheckFolder done [04:00:01]ProducePacketName [04:00:01]name=ofd_packets/00139570 [04:00:01]NVStorageSaveData ofd_packets/00139570 [04:00:01]File name is /storage/ofd_packets/00139570 [04:00:01]Write 439 bytes [04:00:01]NVStorageSaveData done [04:00:01]OFDSenderStorePacket done [04:00:01]KKMCreateOFDPacket done [04:00:01]NVStorageSaveData kkm_last_timestamp [04:00:01]File name is /storage/kkm_last_timestamp [04:00:01]Write 4 bytes [04:00:01]NVStorageSaveData done [04:00:01]ExternCall_PrintAddStr [04:00:01]wPrintStart [04:00:01]Write to MH i2c: 01 00 00 0A 72 7C [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: 01 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: 01 07 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: 01 07 00 0A 72 00 00 00 00 00 FF 0F 91 [04:00:01]RasterBufferAndPrint [04:00:01]line Счет N : (3)335451 [04:00:01]line ИНН: 02508201610067 [04:00:01]line Контрольно-Кассовый Чек [04:00:01]line ПРОДАЖА [04:00:01]line Товар: 4700040114137 [04:00:01]line Султан чай 1л. зел лимон [04:00:02]line 1.000 * 89.00 [04:00:02]line = 89.00 [04:00:02]line НДС 12% НСП 1% [04:00:02]line > о реализуемом товаре [04:00:02]line Товар: 4870112003925 [04:00:02]line Конд ULKER-Albeni 40gr (6*24) [04:00:02]line 1.000 * 44.00 [04:00:02]line = 44.00 [04:00:02]line НДС 12% НСП 1% [04:00:02]line > о реализуемом товаре [04:00:02]line ИТОГО: 133.00 [04:00:02]line НСП 1% : 1.18 [04:00:02]line НДС 12% : 14.12 [04:00:02]line Наличными: 133.00 [04:00:02]line Безнал.: 0.00 [04:00:02]line Место: АЗС № 101 "Партнер Нефть" [04:00:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:00:02]line СНО: Общий режим [04:00:02]line Чек 47 31.10.2024 04:00 [04:00:02]line Смена: 557 ФФД: 1.0 [04:00:02]line ЗНМ: 0300000081 [04:00:02]line РНМ: 0000000000091631 [04:00:02]line Версия ККМ: 001 [04:00:02]line ФМ: 0000000000874669 [04:00:02]line ФД: 139570 [04:00:02]line ФПД: 261537974286849 [04:00:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040008&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139570&fm=261537974286849&tin=02508201610067®Number=0000000000091631&sum=13300 [04:00:02]OFD Sender: Processing packet 139570 [packets to send 34, broken 33] [04:00:02]ProducePacketName [04:00:02]name=ofd_packets/00139570 [04:00:02]OFD Sender: To server: pG, [04:00:02]CommunicateWithHost lk.salyk.kg:30040 [04:00:02]ConnectInit lk.salyk.kg [04:00:02]line 0 [04:00:02]written 0, free lines is 4095 [04:00:02]Connected sock=10 [04:00: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 99 01 00 00 D3 78 91 01 BA 79 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C8 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 32 21 02 00 35 04 06 00 ED DE 0E 0D 7A 01 FF 37 7A F0 21 DF DF C0 [04:00: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 3E 6C 47 00 6C 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 32 21 02 00 F4 03 04 00 77 AC 22 67 B6 04 01 00 00 9F EE 7E D0 EA 93 5F 61 [04:00:02]CommunicateWithHost err = 0 [04:00:02]CheckOFDResponse [04:00:02]1017 (14) - 77093643461234 [04:00:02]1041 (16) - 0000000000874669 [04:00:02]1040 (4) - 139570 [04:00:02]1012 (4) - 30.10.2024 22:00 [04:00:02]1206 (1) - 0 [04:00:02]OFD Sender: Remove packet 139570 [04:00:02]ProducePacketName [04:00:02]name=ofd_packets/00139570 [04:00:02]NVStorageDeleteData [04:00:02]Write to MH i2c: 01 00 00 38 72 AA [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: 01 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: 01 07 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: 01 07 00 38 72 00 00 00 00 00 CB 0C 88 [04:00:02]RasterBufferAndPrint [04:00:02]line [04:00:02]line [04:00:02]line [04:00:02]line [04:00:02]line [04:00:02]written 0, free lines is 3284 [04:00:02]MH_Cut [04:00:02]Write to MH i2c: D1 01 00 3F 72 01 83 [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: D1 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: D1 01 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: D1 01 00 3F 72 00 82 [04:00:02]Write to MH i2c: 01 00 00 40 72 B2 [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]OFD Sender: No OFD packet to send [04:00:03]*** Cut start [04:00:03]*** Partial cut [04:00:03]*** CUTSNS_PIN = 1 [04:00:03]*** CUTSNS_PIN = 0 [04:00:03]*** Brake cut motor [04:00:03]Read from MH i2c: 01 [04:00:03]MH_I2C_Read... [04:00:03]*** Stop cut motor [04:00:03]*** Cut end [04:00:03]Read from MH i2c: 01 07 00 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: 01 07 00 40 72 00 00 00 00 00 FF 0F C7 [04:00:03]process_action close_receipt done [04:00:03]requested_data is exist [04:00:03]produce_requested_data [04:00:03]requested_item fm.sn is exist - process it [04:00:03]wFMCommunicate request_size=4 [04:00:03]MH_SAM_APDU [04:00:03]CAPDU: 80 11 00 00 [04:00:03]Write to MH i2c: E2 08 00 41 72 80 11 00 00 00 00 00 00 2D [04:00:03]Write i2c OK [04:00:03]MH_I2C_Read... [04:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:03]Read from MH i2c: E2 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: E2 17 00 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: E2 17 00 41 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 88 [04:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:00:03]wFMCommunicate OK [04:00:03]requested_item fd.num is exist - process it [04:00:03]SAM_PROTO_GetFieldsCounters [04:00:03]wFMCommunicate request_size=4 [04:00:03]MH_SAM_APDU [04:00:03]CAPDU: 80 13 00 00 [04:00:03]Write to MH i2c: E2 08 00 42 72 80 13 00 00 00 00 00 00 30 [04:00:03]Write i2c OK [04:00:03]MH_I2C_Read... [04:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:00:04]Read from MH i2c: E2 [04:00:04]MH_I2C_Read... [04:00:04]Read from MH i2c: E2 62 00 [04:00:04]MH_I2C_Read... [04:00:04]Read from MH i2c: E2 62 00 42 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 32 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [04:00:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 32 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:00:04]wFMCommunicate OK [04:00:04]SAM_PROTO_GetFieldsCounters done [04:00:04]requested_item shift.num is exist - process it [04:00:04]requested_item shift.opened is exist - process it [04:00:04]req_shift_opened [04:00:04]FM_GetShiftState [04:00:04]SAM_PROTO_GetShiftState [04:00:04]wFMCommunicate request_size=4 [04:00:04]MH_SAM_APDU [04:00:04]CAPDU: 80 13 01 00 [04:00:04]Write to MH i2c: E2 08 00 43 72 80 13 01 00 00 00 00 00 32 [04:00:04]Write i2c OK [04:00:04]MH_I2C_Read... [04:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:04]Read from MH i2c: E2 [04:00:04]MH_I2C_Read... [04:00:04]Read from MH i2c: E2 0E 00 [04:00:04]MH_I2C_Read... [04:00:04]Read from MH i2c: E2 0E 00 43 72 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5B [04:00:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:00:04]wFMCommunicate OK [04:00:04]SAM_PROTO_GetShiftState done [04:00:04]FM_GetShiftState done [04:00:04]req_shift_opened done [04:00:04]requested_item shift.open_date is exist - process it [04:00:04]req_shift_open_date [04:00:04]req_shift_open_date done [04:00:04]produce_requested_data done [04:00:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139570,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:00:04]process_action_free close_receipt [04:00:04]json_value_free [04:00:04]json_value_free done [04:00:04]process_json_proto returns [04:00:04]Send response to host [04:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139570,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:00:04]free response buf [04:00:04]execute_script done [04:00:04]execute_script returns [04:00:04]free content buf [04:00:04]Sock 9.Close socket [04:00:04]Sock 9.Thread stoped [04:00:05]accept exits with 8 [04:00:05]New connection [04:00:05]New thread 3067284836 created [04:00:05]Thread 3067141476 joined [04:00:05]Waiting for new connection... [04:00:05] Sock 8.Parse request [04:00:05]Sock 8.Check first char [04:00:05]Sock 8.First char is OK [04:00:05]request: POST /json_proto HTTP/1.0 [04:00:05]Method: POST [04:00:05]URL: /json_proto [04:00:05]Method is POST - this is cgi request [04:00:05]url: /json_proto [04:00:05]query_string will be loaded in cgi processing [04:00:05]execute_cgi json_proto POST (null) [04:00:05]execute_cgi path=json_proto method=POST [04:00:05]POST find Content-Length [04:00:05]Host: 172.17.50.196:8080 [04:00:05]Content-Length: 638 [04:00:05]Content-Type: application/json [04:00:05] [04:00:05]POST finish read [04:00:05]Found Content-Length = 638 [04:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335452", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:05]execute_script... [04:00:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335452", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:05]POST & json_proto [04:00:05]process_json_proto [04:00:05]json parsed OK: [04:00:05]protocol is kg_v1.0 [04:00:05]action value=close_receipt [04:00:05]process_action close_receipt [04:00:05]cmd_close_receipt [04:00:05]MH_GetDate [04:00:05]Write to MH i2c: F0 00 00 44 72 A5 [04:00:05]Write i2c OK [04:00:05]MH_I2C_Read... [04:00:05]Read from MH i2c: F0 [04:00:05]MH_I2C_Read... [04:00:05]Read from MH i2c: F0 09 00 [04:00:05]MH_I2C_Read... [04:00:05]Read from MH i2c: F0 09 00 44 72 00 CE 00 23 67 72 0D 1C 67 08 [04:00:05]GetLastDocTimeStamp 1730347208 [04:00:05]current date 1730347214 [04:00:05]FM_GetShiftState [04:00:05]SAM_PROTO_GetShiftState [04:00:05]wFMCommunicate request_size=4 [04:00:05]MH_SAM_APDU [04:00:05]CAPDU: 80 13 01 00 [04:00:05]Write to MH i2c: E2 08 00 45 72 80 13 01 00 00 00 00 00 34 [04:00:05]Write i2c OK [04:00:05]MH_I2C_Read... [04:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:05]Read from MH i2c: E2 [04:00:05]MH_I2C_Read... [04:00:05]Read from MH i2c: E2 0E 00 [04:00:05]MH_I2C_Read... [04:00:05]Read from MH i2c: E2 0E 00 45 72 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5D [04:00:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:00:05]wFMCommunicate OK [04:00:05]SAM_PROTO_GetShiftState done [04:00:05]FM_GetShiftState done [04:00:05]opened in 1730332621 [04:00:05]opened+sec_in_day 1730419021 [04:00:05]quantity*price = 7000 [04:00:05]sum+1 = 7001 [04:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 48 31.10.2024 04:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139571 ФПД: 143609791311219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040014&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139571&fm=143609791311219&tin=02508201610067®Number=0000000000091631&sum=7000 0 [04:00:06]StoreToDocumentArchive [04:00:06]shift 557 fd 139571 [04:00:06]save to /storage/0557/doc_00139571 [04:00:06]save last doc name /storage/0557/doc_00139571 to /storage/kkm_last_doc_name [04:00:06]save OK [04:00:06]Clear old archive folders... [04:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=273 [04:00:06]tlvbuf is 013540D0 [04:00:06]SAM_PROTO_ClearQueue [04:00:06]wFMCommunicate request_size=4 [04:00:06]MH_SAM_APDU [04:00:06]CAPDU: 80 09 00 00 [04:00:06]Write to MH i2c: E2 08 00 52 72 80 09 00 00 00 00 00 00 36 [04:00:06]Write i2c OK [04:00:06]MH_I2C_Read... [04:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:00:06]Read from MH i2c: E2 [04:00:06]MH_I2C_Read... [04:00:06]Read from MH i2c: E2 03 00 [04:00:06]MH_I2C_Read... [04:00:06]Read from MH i2c: E2 03 00 52 72 00 90 00 38 [04:00:06]RAPDU: 90 00 [04:00:06]wFMCommunicate OK [04:00:06]SAM_PROTO_ClearQueue done [04:00:06]KKMCreateOFDPacket [04:00:06]OFDProtocolAddRootSTLVToBuf [04:00:06]FM_MakeSignedData [04:00:06]FM_MakeSignedData [04:00:06]SAM_PROTO_SignData [04:00:06]wFMCommunicate request_size=4 [04:00:06]MH_SAM_APDU [04:00:06]CAPDU: 80 0D 01 02 [04:00:06]Write to MH i2c: E2 08 00 53 72 80 0D 01 02 00 00 00 00 3E [04:00:06]Write i2c OK [04:00:06]MH_I2C_Read... [04:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:00:06]Read from MH i2c: E2 [04:00:06]MH_I2C_Read... [04:00:06]Read from MH i2c: E2 03 00 [04:00:06]MH_I2C_Read... [04:00:06]Read from MH i2c: E2 03 00 53 72 00 90 00 39 [04:00:06]RAPDU: 90 00 [04:00:06]wFMCommunicate OK [04:00:06]wFMCommunicate request_size=255 [04:00:06]MH_SAM_APDU [04:00:06]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 30 00 00 00 F4 03 04 00 CE 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [04:00:06]Write to MH i2c: E2 02 01 54 72 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 30 00 00 00 F4 03 04 00 CE 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 0B [04:00:06]Write i2c OK [04:00:06]MH_I2C_Read... [04:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:07]Read from MH i2c: E2 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 03 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 03 00 54 72 00 90 00 3A [04:00:07]RAPDU: 90 00 [04:00:07]wFMCommunicate OK [04:00:07]wFMCommunicate request_size=32 [04:00:07]MH_SAM_APDU [04:00:07]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 33 21 02 00 35 04 06 00 82 9C C2 98 ED 73 [04:00:07]Write to MH i2c: E2 23 00 55 72 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 33 21 02 00 35 04 06 00 82 9C C2 98 ED 73 00 00 D4 [04:00:07]Write i2c OK [04:00:07]MH_I2C_Read... [04:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:07]Read from MH i2c: E2 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 03 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 03 00 55 72 00 90 00 3B [04:00:07]RAPDU: 90 00 [04:00:07]wFMCommunicate OK [04:00:07]wFMCommunicate request_size=4 [04:00:07]MH_SAM_APDU [04:00:07]CAPDU: 80 0D 03 02 [04:00:07]Write to MH i2c: E2 08 00 56 72 80 0D 03 02 00 00 00 00 43 [04:00:07]Write i2c OK [04:00:07]MH_I2C_Read... [04:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:00:07]Read from MH i2c: E2 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 0B 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 0B 00 56 72 00 E0 35 35 C1 42 65 B2 CC 90 00 74 [04:00:07]RAPDU: E0 35 35 C1 42 65 B2 CC 90 00 [04:00:07]wFMCommunicate OK [04:00:07]SAM_PROTO_SignData done [04:00:07]FM_MakeSignedData done [04:00:07]CreateOFDProtocolMessage [04:00:07]wFMCommunicate request_size=4 [04:00:07]MH_SAM_APDU [04:00:07]CAPDU: 80 11 00 00 [04:00:07]Write to MH i2c: E2 08 00 57 72 80 11 00 00 00 00 00 00 43 [04:00:07]Write i2c OK [04:00:07]MH_I2C_Read... [04:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:07]Read from MH i2c: E2 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 17 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 17 00 57 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9E [04:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:00:07]wFMCommunicate OK [04:00:07]CreateOFDProtocolMessage done [04:00:07]OFDSenderStorePacket 139571 [04:00:07]StoreOFDPacket docnum=139571 [04:00: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 25 01 00 00 03 A0 1D 01 12 B9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 30 00 00 00 F4 03 04 00 CE 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 33 21 02 00 35 04 06 00 82 9C C2 98 ED 73 E0 35 35 C1 42 65 B2 CC [04:00:07]CheckFolder [04:00:07]dirname=/storage/ofd_packets [04:00:07]CheckFolder done [04:00:07]ProducePacketName [04:00:07]name=ofd_packets/00139571 [04:00:07]NVStorageSaveData ofd_packets/00139571 [04:00:07]File name is /storage/ofd_packets/00139571 [04:00:07]Write 323 bytes [04:00:07]NVStorageSaveData done [04:00:07]OFDSenderStorePacket done [04:00:07]KKMCreateOFDPacket done [04:00:07]NVStorageSaveData kkm_last_timestamp [04:00:07]File name is /storage/kkm_last_timestamp [04:00:07]Write 4 bytes [04:00:07]NVStorageSaveData done [04:00:07]ExternCall_PrintAddStr [04:00:07]wPrintStart [04:00:07]Write to MH i2c: 01 00 00 58 72 CA [04:00:07]Write i2c OK [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: 01 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: 01 07 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: 01 07 00 58 72 00 00 00 00 00 FF 0F DF [04:00:07]RasterBufferAndPrint [04:00:07]line Счет N : (3)335452 [04:00:07]line ИНН: 02508201610067 [04:00:07]line Контрольно-Кассовый Чек [04:00:07]line ПРОДАЖА [04:00:07]line Товар: 4700002082931 [04:00:07]line Водка Хорошая 0,1л [04:00:07]line 1.000 * 70.00 [04:00:07]line = 70.00 [04:00:07]line НДС 12% НСП 1% [04:00:07]line > о реализуемом товаре [04:00:07]line ИТОГО: 70.00 [04:00:07]line НСП 1% : 0.62 [04:00:07]line НДС 12% : 7.43 [04:00:07]line Наличными: 70.00 [04:00:07]line Безнал.: 0.00 [04:00:07]line Место: АЗС № 101 "Партнер Нефть" [04:00:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:00:07]line СНО: Общий режим [04:00:07]line Чек 48 31.10.2024 04:00 [04:00:07]line Смена: 557 ФФД: 1.0 [04:00:07]line ЗНМ: 0300000081 [04:00:07]line РНМ: 0000000000091631 [04:00:07]line Версия ККМ: 001 [04:00:07]line ФМ: 0000000000874669 [04:00:07]line ФД: 139571 [04:00:07]line ФПД: 143609791311219 [04:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040014&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139571&fm=143609791311219&tin=02508201610067®Number=0000000000091631&sum=7000 [04:00:07]line 0 [04:00:07]OFD Sender: Processing packet 139571 [packets to send 34, broken 33] [04:00:07]ProducePacketName [04:00:07]name=ofd_packets/00139571 [04:00:07]OFD Sender: To server: pG, [04:00:07]CommunicateWithHost lk.salyk.kg:30040 [04:00:07]ConnectInit lk.salyk.kg [04:00:07]written 0, free lines is 4095 [04:00:07]Connected sock=10 [04:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 03 A0 1D 01 12 B9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 30 00 00 00 F4 03 04 00 CE 00 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 33 21 02 00 35 04 06 00 82 9C C2 98 ED 73 E0 35 35 C1 42 65 B2 CC [04:00: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 FC 19 47 00 30 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 33 21 02 00 F4 03 04 00 7C AC 22 67 B6 04 01 00 00 38 67 8E 08 AC 9A E4 2F [04:00:08]CommunicateWithHost err = 0 [04:00:08]CheckOFDResponse [04:00:08]1017 (14) - 77093643461234 [04:00:08]1041 (16) - 0000000000874669 [04:00:08]1040 (4) - 139571 [04:00:08]1012 (4) - 30.10.2024 22:00 [04:00:08]1206 (1) - 0 [04:00:08]OFD Sender: Remove packet 139571 [04:00:08]ProducePacketName [04:00:08]name=ofd_packets/00139571 [04:00:08]NVStorageDeleteData [04:00:08]Write to MH i2c: 01 00 00 80 72 F2 [04:00:08]Write i2c OK [04:00:08]MH_I2C_Read... [04:00:08]Read from MH i2c: 01 [04:00:08]MH_I2C_Read... [04:00:08]Read from MH i2c: 01 07 00 [04:00:08]MH_I2C_Read... [04:00:08]Read from MH i2c: 01 07 00 80 72 00 00 00 00 00 16 0D 1C [04:00:08]RasterBufferAndPrint [04:00:08]line [04:00:08]line [04:00:08]line [04:00:08]line [04:00:08]line [04:00:08]written 0, free lines is 3368 [04:00:08]MH_Cut [04:00:08]Write to MH i2c: D1 01 00 87 72 01 CB [04:00:08]Write i2c OK [04:00:08]MH_I2C_Read... [04:00:08]Read from MH i2c: D1 [04:00:08]MH_I2C_Read... [04:00:08]Read from MH i2c: D1 01 00 [04:00:08]MH_I2C_Read... [04:00:08]Read from MH i2c: D1 01 00 87 72 00 CA [04:00:08]Write to MH i2c: 01 00 00 88 72 FA [04:00:08]Write i2c OK [04:00:08]MH_I2C_Read... [04:00:08]OFD Sender: No OFD packet to send [04:00:08]*** Cut start [04:00:08]*** Partial cut [04:00:08]*** CUTSNS_PIN = 1 [04:00:08]*** CUTSNS_PIN = 0 [04:00:09]*** Brake cut motor [04:00:09]Read from MH i2c: 01 [04:00:09]MH_I2C_Read... [04:00:09]*** Stop cut motor [04:00:09]*** Cut end [04:00:09]Read from MH i2c: 01 07 00 [04:00:09]MH_I2C_Read... [04:00:09]Read from MH i2c: 01 07 00 88 72 00 00 00 00 00 FF 0F 0F [04:00:09]process_action close_receipt done [04:00:09]requested_data is exist [04:00:09]produce_requested_data [04:00:09]requested_item fm.sn is exist - process it [04:00:09]wFMCommunicate request_size=4 [04:00:09]MH_SAM_APDU [04:00:09]CAPDU: 80 11 00 00 [04:00:09]Write to MH i2c: E2 08 00 89 72 80 11 00 00 00 00 00 00 75 [04:00:09]Write i2c OK [04:00:09]MH_I2C_Read... [04:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:09]Read from MH i2c: E2 [04:00:09]MH_I2C_Read... [04:00:09]Read from MH i2c: E2 17 00 [04:00:09]MH_I2C_Read... [04:00:09]Read from MH i2c: E2 17 00 89 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [04:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:00:09]wFMCommunicate OK [04:00:09]requested_item fd.num is exist - process it [04:00:09]SAM_PROTO_GetFieldsCounters [04:00:09]wFMCommunicate request_size=4 [04:00:09]MH_SAM_APDU [04:00:09]CAPDU: 80 13 00 00 [04:00:09]Write to MH i2c: E2 08 00 8A 72 80 13 00 00 00 00 00 00 78 [04:00:09]Write i2c OK [04:00:09]MH_I2C_Read... [04:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:00:09]Read from MH i2c: E2 [04:00:09]MH_I2C_Read... [04:00:09]Read from MH i2c: E2 62 00 [04:00:09]MH_I2C_Read... [04:00:09]Read from MH i2c: E2 62 00 8A 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 33 21 02 00 0E 04 04 00 2D 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 B1 [04:00: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 33 21 02 00 0E 04 04 00 2D 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 [04:00:09]wFMCommunicate OK [04:00:09]SAM_PROTO_GetFieldsCounters done [04:00:09]requested_item shift.num is exist - process it [04:00:09]requested_item shift.opened is exist - process it [04:00:09]req_shift_opened [04:00:09]FM_GetShiftState [04:00:09]SAM_PROTO_GetShiftState [04:00:09]wFMCommunicate request_size=4 [04:00:09]MH_SAM_APDU [04:00:09]CAPDU: 80 13 01 00 [04:00:09]Write to MH i2c: E2 08 00 8B 72 80 13 01 00 00 00 00 00 7A [04:00:09]Write i2c OK [04:00:09]MH_I2C_Read... [04:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:09]Read from MH i2c: E2 [04:00:09]MH_I2C_Read... [04:00:09]Read from MH i2c: E2 0E 00 [04:00:09]MH_I2C_Read... [04:00:09]Read from MH i2c: E2 0E 00 8B 72 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A3 [04:00:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:00:09]wFMCommunicate OK [04:00:09]SAM_PROTO_GetShiftState done [04:00:09]FM_GetShiftState done [04:00:09]req_shift_opened done [04:00:09]requested_item shift.open_date is exist - process it [04:00:09]req_shift_open_date [04:00:09]req_shift_open_date done [04:00:09]produce_requested_data done [04:00:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139571,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:00:09]process_action_free close_receipt [04:00:09]json_value_free [04:00:09]json_value_free done [04:00:09]process_json_proto returns [04:00:09]Send response to host [04:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139571,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:00:09]free response buf [04:00:09]execute_script done [04:00:09]execute_script returns [04:00:09]free content buf [04:00:09]Sock 8.Close socket [04:00:09]Sock 8.Thread stoped [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:48]accept exits with 9 [04:02:48]New connection [04:02:48]New thread 3067141476 created [04:02:48]Thread 3067284836 joined [04:02:48]Waiting for new connection... [04:02:48] Sock 9.Parse request [04:02:48]Sock 9.Check first char [04:02:48]Sock 9.First char is OK [04:02:48]request: POST /json_proto HTTP/1.0 [04:02:48]Method: POST [04:02:48]URL: /json_proto [04:02:48]Method is POST - this is cgi request [04:02:48]url: /json_proto [04:02:48]query_string will be loaded in cgi processing [04:02:48]execute_cgi json_proto POST (null) [04:02:48]execute_cgi path=json_proto method=POST [04:02:48]POST find Content-Length [04:02:48]Host: 172.17.50.196:8080 [04:02:48]Content-Length: 604 [04:02:48]Content-Type: application/json [04:02:48] [04:02:48]POST finish read [04:02:48]Found Content-Length = 604 [04:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335453", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:48]execute_script... [04:02: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)335453", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:48]POST & json_proto [04:02:48]process_json_proto [04:02:48]json parsed OK: [04:02:48]protocol is kg_v1.0 [04:02:48]action value=close_receipt [04:02:48]process_action close_receipt [04:02:48]cmd_close_receipt [04:02:48]MH_GetDate [04:02:48]Write to MH i2c: F0 00 00 8C 72 ED [04:02:48]Write i2c OK [04:02:48]MH_I2C_Read... [04:02:48]Read from MH i2c: F0 [04:02:48]MH_I2C_Read... [04:02:48]Read from MH i2c: F0 09 00 [04:02:48]MH_I2C_Read... [04:02:48]Read from MH i2c: F0 09 00 8C 72 00 71 01 23 67 72 0D 1C 67 F4 [04:02:48]GetLastDocTimeStamp 1730347214 [04:02:48]current date 1730347377 [04:02:48]FM_GetShiftState [04:02:48]SAM_PROTO_GetShiftState [04:02:48]wFMCommunicate request_size=4 [04:02:48]MH_SAM_APDU [04:02:48]CAPDU: 80 13 01 00 [04:02:48]Write to MH i2c: E2 08 00 8D 72 80 13 01 00 00 00 00 00 7C [04:02:48]Write i2c OK [04:02:48]MH_I2C_Read... [04:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:48]Read from MH i2c: E2 [04:02:48]MH_I2C_Read... [04:02:48]Read from MH i2c: E2 0E 00 [04:02:48]MH_I2C_Read... [04:02:48]Read from MH i2c: E2 0E 00 8D 72 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A5 [04:02:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:02:48]wFMCommunicate OK [04:02:48]SAM_PROTO_GetShiftState done [04:02:48]FM_GetShiftState done [04:02:48]opened in 1730332621 [04:02:48]opened+sec_in_day 1730419021 [04:02:48]quantity*price = 4400 [04:02:48]sum+1 = 4401 [04:02:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 44.00 НСП 1% : 0.39 НДС 12% : 4.67 Наличными: 44.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 49 31.10.2024 04:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139572 ФПД: 48582086396527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040257&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139572&fm=48582086396527&tin=02508201610067®Number=0000000000091631&sum=4400 0 [04:02:49]StoreToDocumentArchive [04:02:49]shift 557 fd 139572 [04:02:49]save to /storage/0557/doc_00139572 [04:02:49]save last doc name /storage/0557/doc_00139572 to /storage/kkm_last_doc_name [04:02:49]save OK [04:02:49]Clear old archive folders... [04:02:49]ProcessDocumentItem done err = 0, tmpTLVsize=275 [04:02:49]tlvbuf is 011AD7C0 [04:02:49]SAM_PROTO_ClearQueue [04:02:49]wFMCommunicate request_size=4 [04:02:49]MH_SAM_APDU [04:02:49]CAPDU: 80 09 00 00 [04:02:49]Write to MH i2c: E2 08 00 9A 72 80 09 00 00 00 00 00 00 7E [04:02:49]Write i2c OK [04:02:49]MH_I2C_Read... [04:02:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:02:49]Read from MH i2c: E2 [04:02:49]MH_I2C_Read... [04:02:49]Read from MH i2c: E2 03 00 [04:02:49]MH_I2C_Read... [04:02:49]Read from MH i2c: E2 03 00 9A 72 00 90 00 80 [04:02:49]RAPDU: 90 00 [04:02:49]wFMCommunicate OK [04:02:49]SAM_PROTO_ClearQueue done [04:02:49]KKMCreateOFDPacket [04:02:49]OFDProtocolAddRootSTLVToBuf [04:02:49]FM_MakeSignedData [04:02:49]FM_MakeSignedData [04:02:49]SAM_PROTO_SignData [04:02:49]wFMCommunicate request_size=4 [04:02:49]MH_SAM_APDU [04:02:49]CAPDU: 80 0D 01 02 [04:02:49]Write to MH i2c: E2 08 00 9B 72 80 0D 01 02 00 00 00 00 86 [04:02:49]Write i2c OK [04:02:49]MH_I2C_Read... [04:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:02:50]Read from MH i2c: E2 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 9B 72 00 90 00 81 [04:02:50]RAPDU: 90 00 [04:02:50]wFMCommunicate OK [04:02:50]wFMCommunicate request_size=255 [04:02:50]MH_SAM_APDU [04:02:50]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 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 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 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 31 00 00 00 F4 03 04 00 71 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [04:02:50]Write to MH i2c: E2 02 01 9C 72 80 0D 02 02 FA 00 03 00 13 01 1E 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 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 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 31 00 00 00 F4 03 04 00 71 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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 77 [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:50]Read from MH i2c: E2 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 9C 72 00 90 00 82 [04:02:50]RAPDU: 90 00 [04:02:50]wFMCommunicate OK [04:02:50]wFMCommunicate request_size=34 [04:02:50]MH_SAM_APDU [04:02:50]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 21 02 00 35 04 06 00 2C 2F 66 00 8A 6F [04:02:50]Write to MH i2c: E2 25 00 9D 72 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 21 02 00 35 04 06 00 2C 2F 66 00 8A 6F 00 00 63 [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:50]Read from MH i2c: E2 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 03 00 9D 72 00 90 00 83 [04:02:50]RAPDU: 90 00 [04:02:50]wFMCommunicate OK [04:02:50]wFMCommunicate request_size=4 [04:02:50]MH_SAM_APDU [04:02:50]CAPDU: 80 0D 03 02 [04:02:50]Write to MH i2c: E2 08 00 9E 72 80 0D 03 02 00 00 00 00 8B [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:02:50]Read from MH i2c: E2 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 0B 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 0B 00 9E 72 00 06 27 71 A3 B9 6B A9 27 90 00 C1 [04:02:50]RAPDU: 06 27 71 A3 B9 6B A9 27 90 00 [04:02:50]wFMCommunicate OK [04:02:50]SAM_PROTO_SignData done [04:02:50]FM_MakeSignedData done [04:02:50]CreateOFDProtocolMessage [04:02:50]wFMCommunicate request_size=4 [04:02:50]MH_SAM_APDU [04:02:50]CAPDU: 80 11 00 00 [04:02:50]Write to MH i2c: E2 08 00 9F 72 80 11 00 00 00 00 00 00 8B [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:50]Read from MH i2c: E2 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 17 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: E2 17 00 9F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E6 [04:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:02:50]wFMCommunicate OK [04:02:50]CreateOFDProtocolMessage done [04:02:50]OFDSenderStorePacket 139572 [04:02:50]StoreOFDPacket docnum=139572 [04:02: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 27 01 00 00 38 A5 1F 01 87 CE 5A 03 01 00 03 00 13 01 1E 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 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 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 31 00 00 00 F4 03 04 00 71 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 21 02 00 35 04 06 00 2C 2F 66 00 8A 6F 06 27 71 A3 B9 6B A9 27 [04:02:50]CheckFolder [04:02:50]dirname=/storage/ofd_packets [04:02:50]CheckFolder done [04:02:50]ProducePacketName [04:02:50]name=ofd_packets/00139572 [04:02:50]NVStorageSaveData ofd_packets/00139572 [04:02:50]File name is /storage/ofd_packets/00139572 [04:02:50]Write 325 bytes [04:02:50]NVStorageSaveData done [04:02:50]OFDSenderStorePacket done [04:02:50]KKMCreateOFDPacket done [04:02:50]NVStorageSaveData kkm_last_timestamp [04:02:50]File name is /storage/kkm_last_timestamp [04:02:50]Write 4 bytes [04:02:50]NVStorageSaveData done [04:02:50]ExternCall_PrintAddStr [04:02:50]wPrintStart [04:02:50]Write to MH i2c: 01 00 00 A0 72 12 [04:02:50]Write i2c OK [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: 01 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: 01 07 00 [04:02:50]MH_I2C_Read... [04:02:50]Read from MH i2c: 01 07 00 A0 72 00 00 00 00 00 FF 0F 27 [04:02:50]RasterBufferAndPrint [04:02:50]line Счет N : (3)335453 [04:02:50]line ИНН: 02508201610067 [04:02:50]line Контрольно-Кассовый Чек [04:02:50]line ПРОДАЖА [04:02:50]line Товар: 4870112003925 [04:02:50]line Конд ULKER-Albeni 40gr (6*24) [04:02:50]line 1.000 * 44.00 [04:02:50]line = 44.00 [04:02:50]line НДС 12% НСП 1% [04:02:50]line > о реализуемом товаре [04:02:50]line ИТОГО: 44.00 [04:02:50]line НСП 1% : 0.39 [04:02:50]line НДС 12% : 4.67 [04:02:50]line Наличными: 44.00 [04:02:50]line Безнал.: 0.00 [04:02:50]line Место: АЗС № 101 "Партнер Нефть" [04:02:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:02:50]line СНО: Общий режим [04:02:50]line Чек 49 31.10.2024 04:02 [04:02:50]line Смена: 557 ФФД: 1.0 [04:02:50]line ЗНМ: 0300000081 [04:02:50]line РНМ: 0000000000091631 [04:02:50]line Версия ККМ: 001 [04:02:50]line ФМ: 0000000000874669 [04:02:50]line ФД: 139572 [04:02:50]line ФПД: 48582086396527 [04:02:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T040257&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139572&fm=48582086396527&tin=02508201610067®Number=0000000000091631&sum=4400 [04:02:50]OFD Sender: Processing packet 139572 [packets to send 34, broken 33] [04:02:50]ProducePacketName [04:02:50]name=ofd_packets/00139572 [04:02:50]OFD Sender: To server: pG, [04:02:50]CommunicateWithHost lk.salyk.kg:30040 [04:02:50]ConnectInit lk.salyk.kg [04:02:50]line 0 [04:02:50]written 0, free lines is 4095 [04:02:50]Connected sock=10 [04:02: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 27 01 00 00 38 A5 1F 01 87 CE 5A 03 01 00 03 00 13 01 1E 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 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 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 31 00 00 00 F4 03 04 00 71 01 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 21 02 00 35 04 06 00 2C 2F 66 00 8A 6F 06 27 71 A3 B9 6B A9 27 [04:02: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 98 8D 47 00 0F C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 21 02 00 F4 03 04 00 20 AD 22 67 B6 04 01 00 00 73 A9 7B 37 F3 3E 28 1F [04:02:51]CommunicateWithHost err = 0 [04:02:51]CheckOFDResponse [04:02:51]1017 (14) - 77093643461234 [04:02:51]1041 (16) - 0000000000874669 [04:02:51]1040 (4) - 139572 [04:02:51]1012 (4) - 30.10.2024 22:03 [04:02:51]1206 (1) - 0 [04:02:51]OFD Sender: Remove packet 139572 [04:02:51]ProducePacketName [04:02:51]name=ofd_packets/00139572 [04:02:51]NVStorageDeleteData [04:02:51]Write to MH i2c: 01 00 00 C8 72 3A [04:02:51]Write i2c OK [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: 01 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: 01 07 00 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: 01 07 00 C8 72 00 00 00 00 00 1E 0D 6C [04:02:51]RasterBufferAndPrint [04:02:51]line [04:02:51]line [04:02:51]line [04:02:51]line [04:02:51]line [04:02:51]written 0, free lines is 3367 [04:02:51]MH_Cut [04:02:51]Write to MH i2c: D1 01 00 CF 72 01 13 [04:02:51]Write i2c OK [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: D1 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: D1 01 00 [04:02:51]MH_I2C_Read... [04:02:51]Read from MH i2c: D1 01 00 CF 72 00 12 [04:02:51]Write to MH i2c: 01 00 00 D0 72 42 [04:02:51]Write i2c OK [04:02:51]MH_I2C_Read... [04:02:51]OFD Sender: No OFD packet to send [04:02:51]*** Cut start [04:02:51]*** Partial cut [04:02:51]*** CUTSNS_PIN = 1 [04:02:51]*** CUTSNS_PIN = 0 [04:02:52]*** Brake cut motor [04:02:52]Read from MH i2c: 01 [04:02:52]MH_I2C_Read... [04:02:52]*** Stop cut motor [04:02:52]*** Cut end [04:02:52]Read from MH i2c: 01 07 00 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: 01 07 00 D0 72 00 00 00 00 00 FF 0F 57 [04:02:52]process_action close_receipt done [04:02:52]requested_data is exist [04:02:52]produce_requested_data [04:02:52]requested_item fm.sn is exist - process it [04:02:52]wFMCommunicate request_size=4 [04:02:52]MH_SAM_APDU [04:02:52]CAPDU: 80 11 00 00 [04:02:52]Write to MH i2c: E2 08 00 D1 72 80 11 00 00 00 00 00 00 BD [04:02:52]Write i2c OK [04:02:52]MH_I2C_Read... [04:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:52]Read from MH i2c: E2 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: E2 17 00 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: E2 17 00 D1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [04:02: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:02:52]wFMCommunicate OK [04:02:52]requested_item fd.num is exist - process it [04:02:52]SAM_PROTO_GetFieldsCounters [04:02:52]wFMCommunicate request_size=4 [04:02:52]MH_SAM_APDU [04:02:52]CAPDU: 80 13 00 00 [04:02:52]Write to MH i2c: E2 08 00 D2 72 80 13 00 00 00 00 00 00 C0 [04:02:52]Write i2c OK [04:02:52]MH_I2C_Read... [04:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:02:52]Read from MH i2c: E2 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: E2 62 00 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: E2 62 00 D2 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 34 21 02 00 0E 04 04 00 2D 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 FD [04:02: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 34 21 02 00 0E 04 04 00 2D 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 [04:02:52]wFMCommunicate OK [04:02:52]SAM_PROTO_GetFieldsCounters done [04:02:52]requested_item shift.num is exist - process it [04:02:52]requested_item shift.opened is exist - process it [04:02:52]req_shift_opened [04:02:52]FM_GetShiftState [04:02:52]SAM_PROTO_GetShiftState [04:02:52]wFMCommunicate request_size=4 [04:02:52]MH_SAM_APDU [04:02:52]CAPDU: 80 13 01 00 [04:02:52]Write to MH i2c: E2 08 00 D3 72 80 13 01 00 00 00 00 00 C2 [04:02:52]Write i2c OK [04:02:52]MH_I2C_Read... [04:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:52]Read from MH i2c: E2 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: E2 0E 00 [04:02:52]MH_I2C_Read... [04:02:52]Read from MH i2c: E2 0E 00 D3 72 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EB [04:02:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:02:52]wFMCommunicate OK [04:02:52]SAM_PROTO_GetShiftState done [04:02:52]FM_GetShiftState done [04:02:52]req_shift_opened done [04:02:52]requested_item shift.open_date is exist - process it [04:02:52]req_shift_open_date [04:02:52]req_shift_open_date done [04:02:52]produce_requested_data done [04:02:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139572,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:02:52]process_action_free close_receipt [04:02:52]json_value_free [04:02:52]json_value_free done [04:02:52]process_json_proto returns [04:02:52]Send response to host [04:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139572,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:02:52]free response buf [04:02:52]execute_script done [04:02:52]execute_script returns [04:02:52]free content buf [04:02:52]Sock 9.Close socket [04:02:52]Sock 9.Thread stoped [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:01]accept exits with 8 [04:12:01]New connection [04:12:01]New thread 3067284836 created [04:12:01]Thread 3067141476 joined [04:12:01]Waiting for new connection... [04:12:01] Sock 8.Parse request [04:12:01]Sock 8.Check first char [04:12:01]Sock 8.First char is OK [04:12:01]request: POST /json_proto HTTP/1.0 [04:12:01]Method: POST [04:12:01]URL: /json_proto [04:12:01]Method is POST - this is cgi request [04:12:01]url: /json_proto [04:12:01]query_string will be loaded in cgi processing [04:12:01]execute_cgi json_proto POST (null) [04:12:01]execute_cgi path=json_proto method=POST [04:12:01]POST find Content-Length [04:12:01]Host: 172.17.50.196:8080 [04:12:01]Content-Length: 668 [04:12:01]Content-Type: application/json [04:12:01] [04:12:01]POST finish read [04:12:01]Found Content-Length = 668 [04:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335454", "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" ] } } [04:12:01]execute_script... [04:12: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)335454", "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" ] } } [04:12:01]POST & json_proto [04:12:01]process_json_proto [04:12:01]json parsed OK: [04:12:01]protocol is kg_v1.0 [04:12:01]action value=close_receipt [04:12:01]process_action close_receipt [04:12:01]cmd_close_receipt [04:12:01]MH_GetDate [04:12:01]Write to MH i2c: F0 00 00 D4 72 35 [04:12:01]Write i2c OK [04:12:01]MH_I2C_Read... [04:12:01]Read from MH i2c: F0 [04:12:01]MH_I2C_Read... [04:12:01]Read from MH i2c: F0 09 00 [04:12:01]MH_I2C_Read... [04:12:01]Read from MH i2c: F0 09 00 D4 72 00 9A 03 23 67 72 0D 1C 67 67 [04:12:01]GetLastDocTimeStamp 1730347377 [04:12:01]current date 1730347930 [04:12:01]FM_GetShiftState [04:12:01]SAM_PROTO_GetShiftState [04:12:01]wFMCommunicate request_size=4 [04:12:01]MH_SAM_APDU [04:12:01]CAPDU: 80 13 01 00 [04:12:01]Write to MH i2c: E2 08 00 D5 72 80 13 01 00 00 00 00 00 C4 [04:12:01]Write i2c OK [04:12:01]MH_I2C_Read... [04:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:01]Read from MH i2c: E2 [04:12:01]MH_I2C_Read... [04:12:01]Read from MH i2c: E2 0E 00 [04:12:01]MH_I2C_Read... [04:12:01]Read from MH i2c: E2 0E 00 D5 72 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 ED [04:12:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:12:01]wFMCommunicate OK [04:12:01]SAM_PROTO_GetShiftState done [04:12:01]FM_GetShiftState done [04:12:01]opened in 1730332621 [04:12:01]opened+sec_in_day 1730419021 [04:12:01]quantity*price = 7000 [04:12:01]sum+1 = 7001 [04:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 50 31.10.2024 04:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139573 ФПД: 169282333034643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T041210&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139573&fm=169282333034643&tin=02508201610067®Number=0000000000091631&sum=7000 0 [04:12:02]StoreToDocumentArchive [04:12:02]shift 557 fd 139573 [04:12:02]save to /storage/0557/doc_00139573 [04:12:02]save last doc name /storage/0557/doc_00139573 to /storage/kkm_last_doc_name [04:12:02]save OK [04:12:02]Clear old archive folders... [04:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=283 [04:12:03]tlvbuf is 01262F90 [04:12:03]SAM_PROTO_ClearQueue [04:12:03]wFMCommunicate request_size=4 [04:12:03]MH_SAM_APDU [04:12:03]CAPDU: 80 09 00 00 [04:12:03]Write to MH i2c: E2 08 00 E2 72 80 09 00 00 00 00 00 00 C6 [04:12:03]Write i2c OK [04:12:03]MH_I2C_Read... [04:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:03]Read from MH i2c: E2 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 E2 72 00 90 00 C8 [04:12:03]RAPDU: 90 00 [04:12:03]wFMCommunicate OK [04:12:03]SAM_PROTO_ClearQueue done [04:12:03]KKMCreateOFDPacket [04:12:03]OFDProtocolAddRootSTLVToBuf [04:12:03]FM_MakeSignedData [04:12:03]FM_MakeSignedData [04:12:03]SAM_PROTO_SignData [04:12:03]wFMCommunicate request_size=4 [04:12:03]MH_SAM_APDU [04:12:03]CAPDU: 80 0D 01 02 [04:12:03]Write to MH i2c: E2 08 00 E3 72 80 0D 01 02 00 00 00 00 CE [04:12:03]Write i2c OK [04:12:03]MH_I2C_Read... [04:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:03]Read from MH i2c: E2 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 E3 72 00 90 00 C9 [04:12:03]RAPDU: 90 00 [04:12:03]wFMCommunicate OK [04:12:03]wFMCommunicate request_size=255 [04:12:03]MH_SAM_APDU [04:12:03]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 32 00 00 00 F4 03 04 00 9A 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 [04:12:03]Write to MH i2c: E2 02 01 E4 72 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 32 00 00 00 F4 03 04 00 9A 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 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 78 [04:12:03]Write i2c OK [04:12:03]MH_I2C_Read... [04:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:03]Read from MH i2c: E2 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 E4 72 00 90 00 CA [04:12:03]RAPDU: 90 00 [04:12:03]wFMCommunicate OK [04:12:03]wFMCommunicate request_size=42 [04:12:03]MH_SAM_APDU [04:12:03]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 35 21 02 00 35 04 06 00 99 F6 1D 53 C8 93 [04:12:03]Write to MH i2c: E2 2D 00 E5 72 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 35 21 02 00 35 04 06 00 99 F6 1D 53 C8 93 00 00 60 [04:12:03]Write i2c OK [04:12:03]MH_I2C_Read... [04:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:03]Read from MH i2c: E2 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 03 00 E5 72 00 90 00 CB [04:12:03]RAPDU: 90 00 [04:12:03]wFMCommunicate OK [04:12:03]wFMCommunicate request_size=4 [04:12:03]MH_SAM_APDU [04:12:03]CAPDU: 80 0D 03 02 [04:12:03]Write to MH i2c: E2 08 00 E6 72 80 0D 03 02 00 00 00 00 D3 [04:12:03]Write i2c OK [04:12:03]MH_I2C_Read... [04:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:03]Read from MH i2c: E2 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 0B 00 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 0B 00 E6 72 00 8E 78 A8 D6 A0 4C 1A 3B 90 00 99 [04:12:03]RAPDU: 8E 78 A8 D6 A0 4C 1A 3B 90 00 [04:12:03]wFMCommunicate OK [04:12:03]SAM_PROTO_SignData done [04:12:03]FM_MakeSignedData done [04:12:03]CreateOFDProtocolMessage [04:12:03]wFMCommunicate request_size=4 [04:12:03]MH_SAM_APDU [04:12:03]CAPDU: 80 11 00 00 [04:12:03]Write to MH i2c: E2 08 00 E7 72 80 11 00 00 00 00 00 00 D3 [04:12:03]Write i2c OK [04:12:03]MH_I2C_Read... [04:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:03]Read from MH i2c: E2 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 17 00 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: E2 17 00 E7 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [04:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:12:03]wFMCommunicate OK [04:12:03]CreateOFDProtocolMessage done [04:12:03]OFDSenderStorePacket 139573 [04:12:03]StoreOFDPacket docnum=139573 [04:12: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 2F 01 00 00 F6 3F 27 01 34 1D 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 32 00 00 00 F4 03 04 00 9A 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 35 21 02 00 35 04 06 00 99 F6 1D 53 C8 93 8E 78 A8 D6 A0 4C 1A 3B [04:12:03]CheckFolder [04:12:03]dirname=/storage/ofd_packets [04:12:03]CheckFolder done [04:12:03]ProducePacketName [04:12:03]name=ofd_packets/00139573 [04:12:03]NVStorageSaveData ofd_packets/00139573 [04:12:03]File name is /storage/ofd_packets/00139573 [04:12:03]Write 333 bytes [04:12:03]NVStorageSaveData done [04:12:03]OFDSenderStorePacket done [04:12:03]KKMCreateOFDPacket done [04:12:03]NVStorageSaveData kkm_last_timestamp [04:12:03]File name is /storage/kkm_last_timestamp [04:12:03]Write 4 bytes [04:12:03]NVStorageSaveData done [04:12:03]ExternCall_PrintAddStr [04:12:03]wPrintStart [04:12:03]Write to MH i2c: 01 00 00 E8 72 5A [04:12:03]OFD Sender: Processing packet 139573 [packets to send 34, broken 33] [04:12:03]ProducePacketName [04:12:03]name=ofd_packets/00139573 [04:12:03]OFD Sender: To server: pG, [04:12:03]CommunicateWithHost lk.salyk.kg:30040 [04:12:03]ConnectInit lk.salyk.kg [04:12:03]Write i2c OK [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: 01 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: 01 07 00 [04:12:03]MH_I2C_Read... [04:12:03]Read from MH i2c: 01 07 00 E8 72 00 00 00 00 00 FF 0F 6F [04:12:03]RasterBufferAndPrint [04:12:03]line Счет N : (3)335454 [04:12:03]line ИНН: 02508201610067 [04:12:03]line Контрольно-Кассовый Чек [04:12:03]line ПРОДАЖА [04:12:03]line Товар: 4630007400655 [04:12:03]line Семечки ДЖИНН 70г синий [04:12:03]line 1.000 * 70.00 [04:12:03]line = 70.00 [04:12:03]line НДС 12% НСП 1% [04:12:03]line > о реализуемом товаре [04:12:03]line ИТОГО: 70.00 [04:12:03]line НСП 1% : 0.62 [04:12:03]line НДС 12% : 7.43 [04:12:03]line Наличными: 70.00 [04:12:03]line Безнал.: 0.00 [04:12:03]line Место: АЗС № 101 "Партнер Нефть" [04:12:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:12:03]line СНО: Общий режим [04:12:03]line Чек 50 31.10.2024 04:12 [04:12:03]line Смена: 557 ФФД: 1.0 [04:12:03]line ЗНМ: 0300000081 [04:12:03]line РНМ: 0000000000091631 [04:12:03]line Версия ККМ: 001 [04:12:03]line ФМ: 0000000000874669 [04:12:03]line ФД: 139573 [04:12:03]line ФПД: 169282333034643 [04:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T041210&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139573&fm=169282333034643&tin=02508201610067®Number=0000000000091631&sum=7000 [04:12:03]Connected sock=10 [04:12: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 2F 01 00 00 F6 3F 27 01 34 1D 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 32 00 00 00 F4 03 04 00 9A 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 35 21 02 00 35 04 06 00 99 F6 1D 53 C8 93 8E 78 A8 D6 A0 4C 1A 3B [04:12:03]line 0 [04:12:03]written 0, free lines is 4095 [04:12: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 16 B7 47 00 CC 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 35 21 02 00 F4 03 04 00 49 AF 22 67 B6 04 01 00 00 5F 4E 88 0C E6 E5 A6 32 [04:12:04]CommunicateWithHost err = 0 [04:12:04]CheckOFDResponse [04:12:04]1017 (14) - 77093643461234 [04:12:04]1041 (16) - 0000000000874669 [04:12:04]1040 (4) - 139573 [04:12:04]1012 (4) - 30.10.2024 22:12 [04:12:04]1206 (1) - 0 [04:12:04]OFD Sender: Remove packet 139573 [04:12:04]ProducePacketName [04:12:04]name=ofd_packets/00139573 [04:12:04]NVStorageDeleteData [04:12:04]Write to MH i2c: 01 00 00 10 73 83 [04:12:04]Write i2c OK [04:12:04]MH_I2C_Read... [04:12:04]Read from MH i2c: 01 [04:12:04]MH_I2C_Read... [04:12:04]Read from MH i2c: 01 07 00 [04:12:04]MH_I2C_Read... [04:12:04]Read from MH i2c: 01 07 00 10 73 00 00 00 00 00 16 0D AD [04:12:04]RasterBufferAndPrint [04:12:04]line [04:12:04]line [04:12:04]line [04:12:04]line [04:12:04]line [04:12:04]written 0, free lines is 3360 [04:12:04]MH_Cut [04:12:04]Write to MH i2c: D1 01 00 17 73 01 5C [04:12:04]Write i2c OK [04:12:04]MH_I2C_Read... [04:12:04]Read from MH i2c: D1 [04:12:04]MH_I2C_Read... [04:12:04]Read from MH i2c: D1 01 00 [04:12:04]MH_I2C_Read... [04:12:04]Read from MH i2c: D1 01 00 17 73 00 5B [04:12:04]Write to MH i2c: 01 00 00 18 73 8B [04:12:04]Write i2c OK [04:12:04]MH_I2C_Read... [04:12:04]OFD Sender: No OFD packet to send [04:12:05]*** Cut start [04:12:05]*** Partial cut [04:12:05]*** CUTSNS_PIN = 1 [04:12:05]*** CUTSNS_PIN = 0 [04:12:05]*** Brake cut motor [04:12:05]Read from MH i2c: 01 [04:12:05]MH_I2C_Read... [04:12:05]*** Stop cut motor [04:12:05]*** Cut end [04:12:05]Read from MH i2c: 01 07 00 [04:12:05]MH_I2C_Read... [04:12:05]Read from MH i2c: 01 07 00 18 73 00 00 00 00 00 FF 0F A0 [04:12:05]process_action close_receipt done [04:12:05]requested_data is exist [04:12:05]produce_requested_data [04:12:05]requested_item fm.sn is exist - process it [04:12:05]wFMCommunicate request_size=4 [04:12:05]MH_SAM_APDU [04:12:05]CAPDU: 80 11 00 00 [04:12:05]Write to MH i2c: E2 08 00 19 73 80 11 00 00 00 00 00 00 06 [04:12:05]Write i2c OK [04:12:05]MH_I2C_Read... [04:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:05]Read from MH i2c: E2 [04:12:05]MH_I2C_Read... [04:12:05]Read from MH i2c: E2 17 00 [04:12:05]MH_I2C_Read... [04:12:05]Read from MH i2c: E2 17 00 19 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 61 [04:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:12:05]wFMCommunicate OK [04:12:05]requested_item fd.num is exist - process it [04:12:05]SAM_PROTO_GetFieldsCounters [04:12:05]wFMCommunicate request_size=4 [04:12:05]MH_SAM_APDU [04:12:05]CAPDU: 80 13 00 00 [04:12:05]Write to MH i2c: E2 08 00 1A 73 80 13 00 00 00 00 00 00 09 [04:12:05]Write i2c OK [04:12:05]MH_I2C_Read... [04:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:12:05]Read from MH i2c: E2 [04:12:05]MH_I2C_Read... [04:12:05]Read from MH i2c: E2 62 00 [04:12:05]MH_I2C_Read... [04:12:05]Read from MH i2c: E2 62 00 1A 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 35 21 02 00 0E 04 04 00 2D 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 4A [04:12: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 35 21 02 00 0E 04 04 00 2D 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 [04:12:05]wFMCommunicate OK [04:12:05]SAM_PROTO_GetFieldsCounters done [04:12:05]requested_item shift.num is exist - process it [04:12:05]requested_item shift.opened is exist - process it [04:12:05]req_shift_opened [04:12:05]FM_GetShiftState [04:12:05]SAM_PROTO_GetShiftState [04:12:05]wFMCommunicate request_size=4 [04:12:05]MH_SAM_APDU [04:12:05]CAPDU: 80 13 01 00 [04:12:05]Write to MH i2c: E2 08 00 1B 73 80 13 01 00 00 00 00 00 0B [04:12:05]Write i2c OK [04:12:05]MH_I2C_Read... [04:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:05]Read from MH i2c: E2 [04:12:05]MH_I2C_Read... [04:12:05]Read from MH i2c: E2 0E 00 [04:12:05]MH_I2C_Read... [04:12:05]Read from MH i2c: E2 0E 00 1B 73 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 34 [04:12:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:12:05]wFMCommunicate OK [04:12:05]SAM_PROTO_GetShiftState done [04:12:05]FM_GetShiftState done [04:12:05]req_shift_opened done [04:12:05]requested_item shift.open_date is exist - process it [04:12:05]req_shift_open_date [04:12:05]req_shift_open_date done [04:12:05]produce_requested_data done [04:12:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139573,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:12:05]process_action_free close_receipt [04:12:05]json_value_free [04:12:05]json_value_free done [04:12:05]process_json_proto returns [04:12:05]Send response to host [04:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139573,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:12:05]free response buf [04:12:05]execute_script done [04:12:05]execute_script returns [04:12:05]free content buf [04:12:05]Sock 8.Close socket [04:12:05]Sock 8.Thread stoped [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:53]accept exits with 9 [04:12:53]New connection [04:12:53]New thread 3067141476 created [04:12:53]Thread 3067284836 joined [04:12:53]Waiting for new connection... [04:12:53] Sock 9.Parse request [04:12:53]Sock 9.Check first char [04:12:53]Sock 9.First char is OK [04:12:53]request: POST /json_proto HTTP/1.0 [04:12:53]Method: POST [04:12:53]URL: /json_proto [04:12:53]Method is POST - this is cgi request [04:12:53]url: /json_proto [04:12:53]query_string will be loaded in cgi processing [04:12:53]execute_cgi json_proto POST (null) [04:12:53]execute_cgi path=json_proto method=POST [04:12:53]POST find Content-Length [04:12:53]Host: 172.17.50.196:8080 [04:12:53]Content-Length: 657 [04:12:53]Content-Type: application/json [04:12:53] [04:12:53]POST finish read [04:12:53]Found Content-Length = 657 [04:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335455", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [04:12:53]execute_script... [04:12: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)335455", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [04:12:53]POST & json_proto [04:12:53]process_json_proto [04:12:53]json parsed OK: [04:12:53]protocol is kg_v1.0 [04:12:53]action value=close_receipt [04:12:53]process_action close_receipt [04:12:53]cmd_close_receipt [04:12:53]MH_GetDate [04:12:53]Write to MH i2c: F0 00 00 1C 73 7E [04:12:53]Write i2c OK [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: F0 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: F0 09 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: F0 09 00 1C 73 00 CE 03 23 67 72 0D 1C 67 E4 [04:12:53]GetLastDocTimeStamp 1730347930 [04:12:53]current date 1730347982 [04:12:53]FM_GetShiftState [04:12:53]SAM_PROTO_GetShiftState [04:12:53]wFMCommunicate request_size=4 [04:12:53]MH_SAM_APDU [04:12:53]CAPDU: 80 13 01 00 [04:12:53]Write to MH i2c: E2 08 00 1D 73 80 13 01 00 00 00 00 00 0D [04:12:53]Write i2c OK [04:12:53]MH_I2C_Read... [04:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:53]Read from MH i2c: E2 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 0E 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 0E 00 1D 73 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 36 [04:12:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:12:53]wFMCommunicate OK [04:12:53]SAM_PROTO_GetShiftState done [04:12:53]FM_GetShiftState done [04:12:53]opened in 1730332621 [04:12:53]opened+sec_in_day 1730419021 [04:12:53]quantity*price = 9500 [04:12:53]sum+1 = 9501 [04:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 51 31.10.2024 04:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139574 ФПД: 69252602594527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T041302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139574&fm=69252602594527&tin=02508201610067®Number=0000000000091631&sum=9500 0 [04:12:54]StoreToDocumentArchive [04:12:54]shift 557 fd 139574 [04:12:54]save to /storage/0557/doc_00139574 [04:12:54]save last doc name /storage/0557/doc_00139574 to /storage/kkm_last_doc_name [04:12:54]save OK [04:12:54]Clear old archive folders... [04:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=288 [04:12:54]tlvbuf is 01339690 [04:12:54]SAM_PROTO_ClearQueue [04:12:54]wFMCommunicate request_size=4 [04:12:54]MH_SAM_APDU [04:12:54]CAPDU: 80 09 00 00 [04:12:54]Write to MH i2c: E2 08 00 2A 73 80 09 00 00 00 00 00 00 0F [04:12:54]Write i2c OK [04:12:54]MH_I2C_Read... [04:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:54]Read from MH i2c: E2 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 03 00 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 03 00 2A 73 00 90 00 11 [04:12:54]RAPDU: 90 00 [04:12:54]wFMCommunicate OK [04:12:54]SAM_PROTO_ClearQueue done [04:12:54]KKMCreateOFDPacket [04:12:54]OFDProtocolAddRootSTLVToBuf [04:12:54]FM_MakeSignedData [04:12:54]FM_MakeSignedData [04:12:54]SAM_PROTO_SignData [04:12:54]wFMCommunicate request_size=4 [04:12:54]MH_SAM_APDU [04:12:54]CAPDU: 80 0D 01 02 [04:12:54]Write to MH i2c: E2 08 00 2B 73 80 0D 01 02 00 00 00 00 17 [04:12:54]Write i2c OK [04:12:54]MH_I2C_Read... [04:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:54]Read from MH i2c: E2 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 03 00 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 03 00 2B 73 00 90 00 12 [04:12:54]RAPDU: 90 00 [04:12:54]wFMCommunicate OK [04:12:54]wFMCommunicate request_size=255 [04:12:54]MH_SAM_APDU [04:12:54]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 CE 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [04:12:54]Write to MH i2c: E2 02 01 2C 73 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 CE 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 BF [04:12:54]Write i2c OK [04:12:54]MH_I2C_Read... [04:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:55]Read from MH i2c: E2 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 03 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 03 00 2C 73 00 90 00 13 [04:12:55]RAPDU: 90 00 [04:12:55]wFMCommunicate OK [04:12:55]wFMCommunicate request_size=47 [04:12:55]MH_SAM_APDU [04:12:55]CAPDU: 80 0D 02 02 2A 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 36 21 02 00 35 04 06 00 3E FC 20 C7 04 DF [04:12:55]Write to MH i2c: E2 32 00 2D 73 80 0D 02 02 2A 00 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 36 21 02 00 35 04 06 00 3E FC 20 C7 04 DF 00 00 3A [04:12:55]Write i2c OK [04:12:55]MH_I2C_Read... [04:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:55]Read from MH i2c: E2 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 03 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 03 00 2D 73 00 90 00 14 [04:12:55]RAPDU: 90 00 [04:12:55]wFMCommunicate OK [04:12:55]wFMCommunicate request_size=4 [04:12:55]MH_SAM_APDU [04:12:55]CAPDU: 80 0D 03 02 [04:12:55]Write to MH i2c: E2 08 00 2E 73 80 0D 03 02 00 00 00 00 1C [04:12:55]Write i2c OK [04:12:55]MH_I2C_Read... [04:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:55]Read from MH i2c: E2 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 0B 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 0B 00 2E 73 00 39 43 64 EE E3 FD BF BE 90 00 48 [04:12:55]RAPDU: 39 43 64 EE E3 FD BF BE 90 00 [04:12:55]wFMCommunicate OK [04:12:55]SAM_PROTO_SignData done [04:12:55]FM_MakeSignedData done [04:12:55]CreateOFDProtocolMessage [04:12:55]wFMCommunicate request_size=4 [04:12:55]MH_SAM_APDU [04:12:55]CAPDU: 80 11 00 00 [04:12:55]Write to MH i2c: E2 08 00 2F 73 80 11 00 00 00 00 00 00 1C [04:12:55]Write i2c OK [04:12:55]MH_I2C_Read... [04:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:55]Read from MH i2c: E2 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 17 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 17 00 2F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 77 [04:12: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:12:55]wFMCommunicate OK [04:12:55]CreateOFDProtocolMessage done [04:12:55]OFDSenderStorePacket 139574 [04:12:55]StoreOFDPacket docnum=139574 [04:12: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 34 01 00 00 88 4D 2C 01 8B 6B 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 CE 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 36 21 02 00 35 04 06 00 3E FC 20 C7 04 DF 39 43 64 EE E3 FD BF BE [04:12:55]CheckFolder [04:12:55]dirname=/storage/ofd_packets [04:12:55]CheckFolder done [04:12:55]ProducePacketName [04:12:55]name=ofd_packets/00139574 [04:12:55]NVStorageSaveData ofd_packets/00139574 [04:12:55]File name is /storage/ofd_packets/00139574 [04:12:55]Write 338 bytes [04:12:55]NVStorageSaveData done [04:12:55]OFDSenderStorePacket done [04:12:55]KKMCreateOFDPacket done [04:12:55]NVStorageSaveData kkm_last_timestamp [04:12:55]File name is /storage/kkm_last_timestamp [04:12:55]Write 4 bytes [04:12:55]NVStorageSaveData done [04:12:55]ExternCall_PrintAddStr [04:12:55]wPrintStart [04:12:55]Write to MH i2c: 01 00 00 30 73 A3 [04:12:55]Write i2c OK [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: 01 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: 01 07 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: 01 07 00 30 73 00 00 00 00 00 FF 0F B8 [04:12:55]RasterBufferAndPrint [04:12:55]line Счет N : (3)335455 [04:12:55]line ИНН: 02508201610067 [04:12:55]line Контрольно-Кассовый Чек [04:12:55]line ПРОДАЖА [04:12:55]line Товар: 4700000481453 [04:12:55]line Напиток энерг Nitro Max 0,45 ж/б [04:12:55]line 1.000 * 95.00 [04:12:55]line = 95.00 [04:12:55]line НДС 12% НСП 1% [04:12:55]line > о реализуемом товаре [04:12:55]line ИТОГО: 95.00 [04:12:55]line НСП 1% : 0.84 [04:12:55]line НДС 12% : 10.09 [04:12:55]line Наличными: 95.00 [04:12:55]line Безнал.: 0.00 [04:12:55]line Место: АЗС № 101 "Партнер Нефть" [04:12:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:12:55]line СНО: Общий режим [04:12:55]line Чек 51 31.10.2024 04:13 [04:12:55]line Смена: 557 ФФД: 1.0 [04:12:55]line ЗНМ: 0300000081 [04:12:55]line РНМ: 0000000000091631 [04:12:55]line Версия ККМ: 001 [04:12:55]line ФМ: 0000000000874669 [04:12:55]line ФД: 139574 [04:12:55]line ФПД: 69252602594527 [04:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T041302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139574&fm=69252602594527&tin=02508201610067®Number=0000000000091631&sum=9500 [04:12:55]line 0 [04:12:55]OFD Sender: Processing packet 139574 [packets to send 34, broken 33] [04:12:55]ProducePacketName [04:12:55]name=ofd_packets/00139574 [04:12:55]OFD Sender: To server: pG, [04:12:55]CommunicateWithHost lk.salyk.kg:30040 [04:12:55]written 0, free lines is 4095 [04:12:55]ConnectInit lk.salyk.kg [04:12:55]Connected sock=10 [04:12: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 34 01 00 00 88 4D 2C 01 8B 6B 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 CE 03 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 36 21 02 00 35 04 06 00 3E FC 20 C7 04 DF 39 43 64 EE E3 FD BF BE [04:12: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 CE B4 47 00 89 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 36 21 02 00 F4 03 04 00 7C AF 22 67 B6 04 01 00 00 ED 91 22 9D 9D C0 7A 39 [04:12:56]CommunicateWithHost err = 0 [04:12:56]CheckOFDResponse [04:12:56]1017 (14) - 77093643461234 [04:12:56]1041 (16) - 0000000000874669 [04:12:56]1040 (4) - 139574 [04:12:56]1012 (4) - 30.10.2024 22:13 [04:12:56]1206 (1) - 0 [04:12:56]OFD Sender: Remove packet 139574 [04:12:56]ProducePacketName [04:12:56]name=ofd_packets/00139574 [04:12:56]NVStorageDeleteData [04:12:56]Write to MH i2c: 01 00 00 59 73 CC [04:12:56]Write i2c OK [04:12:56]MH_I2C_Read... [04:12:56]Read from MH i2c: 01 [04:12:56]MH_I2C_Read... [04:12:56]Read from MH i2c: 01 07 00 [04:12:56]MH_I2C_Read... [04:12:56]Read from MH i2c: 01 07 00 59 73 00 00 00 00 00 FE 0C DD [04:12:56]RasterBufferAndPrint [04:12:56]line [04:12:56]line [04:12:56]line [04:12:56]line [04:12:56]line [04:12:56]written 0, free lines is 3335 [04:12:56]MH_Cut [04:12:56]Write to MH i2c: D1 01 00 60 73 01 A5 [04:12:56]Write i2c OK [04:12:56]MH_I2C_Read... [04:12:56]Read from MH i2c: D1 [04:12:56]MH_I2C_Read... [04:12:56]Read from MH i2c: D1 01 00 [04:12:56]MH_I2C_Read... [04:12:56]Read from MH i2c: D1 01 00 60 73 00 A4 [04:12:56]Write to MH i2c: 01 00 00 61 73 D4 [04:12:56]Write i2c OK [04:12:56]MH_I2C_Read... [04:12:56]OFD Sender: No OFD packet to send [04:12:56]*** Cut start [04:12:56]*** Partial cut [04:12:56]*** CUTSNS_PIN = 1 [04:12:56]*** CUTSNS_PIN = 0 [04:12:57]*** Brake cut motor [04:12:57]Read from MH i2c: 01 [04:12:57]MH_I2C_Read... [04:12:57]*** Stop cut motor [04:12:57]*** Cut end [04:12:57]Read from MH i2c: 01 07 00 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: 01 07 00 61 73 00 00 00 00 00 FF 0F E9 [04:12:57]process_action close_receipt done [04:12:57]requested_data is exist [04:12:57]produce_requested_data [04:12:57]requested_item fm.sn is exist - process it [04:12:57]wFMCommunicate request_size=4 [04:12:57]MH_SAM_APDU [04:12:57]CAPDU: 80 11 00 00 [04:12:57]Write to MH i2c: E2 08 00 62 73 80 11 00 00 00 00 00 00 4F [04:12:57]Write i2c OK [04:12:57]MH_I2C_Read... [04:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:57]Read from MH i2c: E2 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 17 00 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 17 00 62 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [04:12: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:12:57]wFMCommunicate OK [04:12:57]requested_item fd.num is exist - process it [04:12:57]SAM_PROTO_GetFieldsCounters [04:12:57]wFMCommunicate request_size=4 [04:12:57]MH_SAM_APDU [04:12:57]CAPDU: 80 13 00 00 [04:12:57]Write to MH i2c: E2 08 00 63 73 80 13 00 00 00 00 00 00 52 [04:12:57]Write i2c OK [04:12:57]MH_I2C_Read... [04:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:12:57]Read from MH i2c: E2 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 62 00 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 62 00 63 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 36 21 02 00 0E 04 04 00 2D 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 97 [04:12: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 36 21 02 00 0E 04 04 00 2D 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 [04:12:57]wFMCommunicate OK [04:12:57]SAM_PROTO_GetFieldsCounters done [04:12:57]requested_item shift.num is exist - process it [04:12:57]requested_item shift.opened is exist - process it [04:12:57]req_shift_opened [04:12:57]FM_GetShiftState [04:12:57]SAM_PROTO_GetShiftState [04:12:57]wFMCommunicate request_size=4 [04:12:57]MH_SAM_APDU [04:12:57]CAPDU: 80 13 01 00 [04:12:57]Write to MH i2c: E2 08 00 64 73 80 13 01 00 00 00 00 00 54 [04:12:57]Write i2c OK [04:12:57]MH_I2C_Read... [04:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:57]Read from MH i2c: E2 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 0E 00 [04:12:57]MH_I2C_Read... [04:12:57]Read from MH i2c: E2 0E 00 64 73 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7D [04:12:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:12:57]wFMCommunicate OK [04:12:57]SAM_PROTO_GetShiftState done [04:12:57]FM_GetShiftState done [04:12:57]req_shift_opened done [04:12:57]requested_item shift.open_date is exist - process it [04:12:57]req_shift_open_date [04:12:57]req_shift_open_date done [04:12:57]produce_requested_data done [04:12:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139574,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:12:57]process_action_free close_receipt [04:12:57]json_value_free [04:12:57]json_value_free done [04:12:57]process_json_proto returns [04:12:57]Send response to host [04:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139574,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:12:57]free response buf [04:12:57]execute_script done [04:12:57]execute_script returns [04:12:57]free content buf [04:12:57]Sock 9.Close socket [04:12:57]Sock 9.Thread stoped [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:13]accept exits with 8 [04:18:13]New connection [04:18:13]New thread 3067284836 created [04:18:13]Thread 3067141476 joined [04:18:13]Waiting for new connection... [04:18:13] Sock 8.Parse request [04:18:13]Sock 8.Check first char [04:18:13]Sock 8.First char is OK [04:18:13]request: POST /json_proto HTTP/1.0 [04:18:13]Method: POST [04:18:13]URL: /json_proto [04:18:13]Method is POST - this is cgi request [04:18:13]url: /json_proto [04:18:13]query_string will be loaded in cgi processing [04:18:13]execute_cgi json_proto POST (null) [04:18:13]execute_cgi path=json_proto method=POST [04:18:13]POST find Content-Length [04:18:13]Host: 172.17.50.196:8080 [04:18:13]Content-Length: 1445 [04:18:13]Content-Type: application/json [04:18:13] [04:18:13]POST finish read [04:18:13]Found Content-Length = 1445 [04:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335456", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "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" : 464.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:13]execute_script... [04:18: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)335456", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "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" : 464.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:13]POST & json_proto [04:18:13]process_json_proto [04:18:13]json parsed OK: [04:18:13]protocol is kg_v1.0 [04:18:13]action value=close_receipt [04:18:13]process_action close_receipt [04:18:13]cmd_close_receipt [04:18:13]MH_GetDate [04:18:13]Write to MH i2c: F0 00 00 65 73 C7 [04:18:13]Write i2c OK [04:18:13]MH_I2C_Read... [04:18:13]Read from MH i2c: F0 [04:18:13]MH_I2C_Read... [04:18:13]Read from MH i2c: F0 09 00 [04:18:13]MH_I2C_Read... [04:18:13]Read from MH i2c: F0 09 00 65 73 00 0D 05 23 67 72 0D 1C 67 6E [04:18:13]GetLastDocTimeStamp 1730347982 [04:18:13]current date 1730348301 [04:18:13]FM_GetShiftState [04:18:13]SAM_PROTO_GetShiftState [04:18:13]wFMCommunicate request_size=4 [04:18:13]MH_SAM_APDU [04:18:13]CAPDU: 80 13 01 00 [04:18:13]Write to MH i2c: E2 08 00 66 73 80 13 01 00 00 00 00 00 56 [04:18:13]Write i2c OK [04:18:13]MH_I2C_Read... [04:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:13]Read from MH i2c: E2 [04:18:13]MH_I2C_Read... [04:18:13]Read from MH i2c: E2 0E 00 [04:18:13]MH_I2C_Read... [04:18:13]Read from MH i2c: E2 0E 00 66 73 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7F [04:18:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:18:13]wFMCommunicate OK [04:18:13]SAM_PROTO_GetShiftState done [04:18:13]FM_GetShiftState done [04:18:13]opened in 1730332621 [04:18:13]opened+sec_in_day 1730419021 [04:18:13]quantity*price = 10000 [04:18:13]sum+1 = 10001 [04:18:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 464.00 НСП 1% : 4.10 НДС 12% : 49.27 Наличными: 464.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 52 31.10.2024 04:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139575 ФПД: 17323029979507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T041822&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139575&fm=17323029979507&tin=02508201610067®Number=0000000000091631&sum=46400 0 [04:18:14]StoreToDocumentArchive [04:18:14]shift 557 fd 139575 [04:18:14]save to /storage/0557/doc_00139575 [04:18:14]save last doc name /storage/0557/doc_00139575 to /storage/kkm_last_doc_name [04:18:14]save OK [04:18:14]Clear old archive folders... [04:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=606 [04:18:14]tlvbuf is 01339390 [04:18:14]SAM_PROTO_ClearQueue [04:18:14]wFMCommunicate request_size=4 [04:18:14]MH_SAM_APDU [04:18:14]CAPDU: 80 09 00 00 [04:18:14]Write to MH i2c: E2 08 00 73 73 80 09 00 00 00 00 00 00 58 [04:18:14]Write i2c OK [04:18:14]MH_I2C_Read... [04:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:18:14]Read from MH i2c: E2 [04:18:14]MH_I2C_Read... [04:18:14]Read from MH i2c: E2 03 00 [04:18:14]MH_I2C_Read... [04:18:14]Read from MH i2c: E2 03 00 73 73 00 90 00 5A [04:18:14]RAPDU: 90 00 [04:18:14]wFMCommunicate OK [04:18:14]SAM_PROTO_ClearQueue done [04:18:14]KKMCreateOFDPacket [04:18:14]OFDProtocolAddRootSTLVToBuf [04:18:14]FM_MakeSignedData [04:18:14]FM_MakeSignedData [04:18:14]SAM_PROTO_SignData [04:18:14]wFMCommunicate request_size=4 [04:18:14]MH_SAM_APDU [04:18:14]CAPDU: 80 0D 01 02 [04:18:14]Write to MH i2c: E2 08 00 74 73 80 0D 01 02 00 00 00 00 60 [04:18:14]Write i2c OK [04:18:14]MH_I2C_Read... [04:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:18:14]Read from MH i2c: E2 [04:18:14]MH_I2C_Read... [04:18:14]Read from MH i2c: E2 03 00 [04:18:14]MH_I2C_Read... [04:18:14]Read from MH i2c: E2 03 00 74 73 00 90 00 5B [04:18:14]RAPDU: 90 00 [04:18:14]wFMCommunicate OK [04:18:14]wFMCommunicate request_size=255 [04:18:14]MH_SAM_APDU [04:18:14]CAPDU: 80 0D 02 02 FA 03 00 5E 02 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 [04:18:14]Write to MH i2c: E2 02 01 75 73 80 0D 02 02 FA 00 03 00 5E 02 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 00 00 83 [04:18:14]Write i2c OK [04:18:14]MH_I2C_Read... [04:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:15]Read from MH i2c: E2 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 03 00 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 03 00 75 73 00 90 00 5C [04:18:15]RAPDU: 90 00 [04:18:15]wFMCommunicate OK [04:18:15]wFMCommunicate request_size=255 [04:18:15]MH_SAM_APDU [04:18:15]CAPDU: 80 0D 02 02 FA 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 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 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 13 00 00 00 00 07 04 06 [04:18:15]Write to MH i2c: E2 02 01 76 73 80 0D 02 02 FA 00 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 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 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 13 00 00 00 00 07 04 06 00 00 F0 [04:18:15]Write i2c OK [04:18:15]MH_I2C_Read... [04:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:15]Read from MH i2c: E2 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 03 00 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 03 00 76 73 00 90 00 5D [04:18:15]RAPDU: 90 00 [04:18:15]wFMCommunicate OK [04:18:15]wFMCommunicate request_size=115 [04:18:15]MH_SAM_APDU [04:18:15]CAPDU: 80 0D 02 02 6E 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0E 05 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 37 21 02 00 35 04 06 00 0F C1 55 0C 61 73 [04:18:15]Write to MH i2c: E2 76 00 77 73 80 0D 02 02 6E 00 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0E 05 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 37 21 02 00 35 04 06 00 0F C1 55 0C 61 73 00 00 C0 [04:18:15]Write i2c OK [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 [04:18:15]MH_I2C_Read... [04:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:15]Read from MH i2c: E2 03 00 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 03 00 77 73 00 90 00 5E [04:18:15]RAPDU: 90 00 [04:18:15]wFMCommunicate OK [04:18:15]wFMCommunicate request_size=4 [04:18:15]MH_SAM_APDU [04:18:15]CAPDU: 80 0D 03 02 [04:18:15]Write to MH i2c: E2 08 00 78 73 80 0D 03 02 00 00 00 00 66 [04:18:15]Write i2c OK [04:18:15]MH_I2C_Read... [04:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:18:15]Read from MH i2c: E2 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 0B 00 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 0B 00 78 73 00 33 4F E1 E0 3F D9 4A 5E 90 00 6A [04:18:15]RAPDU: 33 4F E1 E0 3F D9 4A 5E 90 00 [04:18:15]wFMCommunicate OK [04:18:15]SAM_PROTO_SignData done [04:18:15]FM_MakeSignedData done [04:18:15]CreateOFDProtocolMessage [04:18:15]wFMCommunicate request_size=4 [04:18:15]MH_SAM_APDU [04:18:15]CAPDU: 80 11 00 00 [04:18:15]Write to MH i2c: E2 08 00 79 73 80 11 00 00 00 00 00 00 66 [04:18:15]Write i2c OK [04:18:15]MH_I2C_Read... [04:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:15]Read from MH i2c: E2 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 17 00 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: E2 17 00 79 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [04:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:18:15]wFMCommunicate OK [04:18:15]CreateOFDProtocolMessage done [04:18:15]OFDSenderStorePacket 139575 [04:18:15]StoreOFDPacket docnum=139575 [04:18: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 72 02 00 00 E9 0C 6A 02 FB 07 5A 03 01 00 03 00 5E 02 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 13 00 00 00 00 07 04 06 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0E 05 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 37 21 02 00 35 04 06 00 0F C1 55 0C 61 73 33 4F E1 E0 3F D9 4A 5E [04:18:15]CheckFolder [04:18:15]dirname=/storage/ofd_packets [04:18:15]CheckFolder done [04:18:15]ProducePacketName [04:18:15]name=ofd_packets/00139575 [04:18:15]NVStorageSaveData ofd_packets/00139575 [04:18:15]File name is /storage/ofd_packets/00139575 [04:18:15]Write 656 bytes [04:18:15]NVStorageSaveData done [04:18:15]OFDSenderStorePacket done [04:18:15]KKMCreateOFDPacket done [04:18:15]NVStorageSaveData kkm_last_timestamp [04:18:15]File name is /storage/kkm_last_timestamp [04:18:15]Write 4 bytes [04:18:15]NVStorageSaveData done [04:18:15]ExternCall_PrintAddStr [04:18:15]wPrintStart [04:18:15]Write to MH i2c: 01 00 00 7A 73 ED [04:18:15]Write i2c OK [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: 01 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: 01 07 00 [04:18:15]MH_I2C_Read... [04:18:15]Read from MH i2c: 01 07 00 7A 73 00 00 00 00 00 FF 0F 02 [04:18:15]RasterBufferAndPrint [04:18:15]line Счет N : (3)335456 [04:18:15]line ИНН: 02508201610067 [04:18:15]line Контрольно-Кассовый Чек [04:18:15]line ПРОДАЖА [04:18:15]line Товар: 4700000160181 [04:18:15]line Вода Байтик 1л [04:18:15]line 2.000 * 50.00 [04:18:15]line = 100.00 [04:18:15]line НДС 12% НСП 1% [04:18:15]line > о реализуемом товаре [04:18:15]line Товар: 4700000480302 [04:18:15]line Напиток энерг Nitro манго-клуб 0.45 ж/б [04:18:15]line 1.000 * 95.00 [04:18:15]line = 95.00 [04:18:15]line НДС 12% НСП 1% [04:18:15]line > о реализуемом товаре [04:18:15]line Товар: 4630007400389 [04:18:15]line Семечки ДЖИНН 140г [04:18:15]line 1.000 * 130.00 [04:18:15]line = 130.00 [04:18:15]line НДС 12% НСП 1% [04:18:16]line > о реализуемом товаре [04:18:16]line Товар: 48745000 [04:18:16]line Сигареты Winston Purple Mix [04:18:16]line 1.000 * 139.00 [04:18:16]line = 139.00 [04:18:16]line НДС 12% НСП 1% [04:18:16]line > о реализуемом товаре [04:18:16]line ИТОГО: 464.00 [04:18:16]line НСП 1% : 4.10 [04:18:16]line НДС 12% : 49.27 [04:18:16]line Наличными: 464.00 [04:18:16]line Безнал.: 0.00 [04:18:16]line Место: АЗС № 101 "Партнер Нефть" [04:18:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:18:16]line СНО: Общий режим [04:18:16]line Чек 52 31.10.2024 04:18 [04:18:16]line Смена: 557 ФФД: 1.0 [04:18:16]line ЗНМ: 0300000081 [04:18:16]line РНМ: 0000000000091631 [04:18:16]line Версия ККМ: 001 [04:18:16]line ФМ: 0000000000874669 [04:18:16]line ФД: 139575 [04:18:16]line ФПД: 17323029979507 [04:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T041822&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139575&fm=17323029979507&tin=02508201610067®Number=0000000000091631&sum=46400 [04:18:16]OFD Sender: Processing packet 139575 [packets to send 34, broken 33] [04:18:16]ProducePacketName [04:18:16]name=ofd_packets/00139575 [04:18:16]OFD Sender: To server: pG, [04:18:16]CommunicateWithHost lk.salyk.kg:30040 [04:18:16]ConnectInit lk.salyk.kg [04:18:16]line 0 [04:18:16]written 0, free lines is 4095 [04:18:16]Connected sock=10 [04:18: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 72 02 00 00 E9 0C 6A 02 FB 07 5A 03 01 00 03 00 5E 02 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 13 00 00 00 00 07 04 06 00 40 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0E 05 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 37 21 02 00 35 04 06 00 0F C1 55 0C 61 73 33 4F E1 E0 3F D9 4A 5E [04:18: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 44 A1 47 00 62 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 37 21 02 00 F4 03 04 00 BD B0 22 67 B6 04 01 00 00 59 09 A0 B0 BD 54 78 5A [04:18:16]CommunicateWithHost err = 0 [04:18:16]CheckOFDResponse [04:18:16]1017 (14) - 77093643461234 [04:18:16]1041 (16) - 0000000000874669 [04:18:16]1040 (4) - 139575 [04:18:16]1012 (4) - 30.10.2024 22:18 [04:18:16]1206 (1) - 0 [04:18:16]OFD Sender: Remove packet 139575 [04:18:16]ProducePacketName [04:18:16]name=ofd_packets/00139575 [04:18:16]NVStorageDeleteData [04:18:16]Write to MH i2c: 01 00 00 B5 73 28 [04:18:16]Write i2c OK [04:18:16]MH_I2C_Read... [04:18:16]Read from MH i2c: 01 [04:18:16]MH_I2C_Read... [04:18:16]Read from MH i2c: 01 07 00 [04:18:16]MH_I2C_Read... [04:18:16]Read from MH i2c: 01 07 00 B5 73 00 00 00 00 00 2C 0C 67 [04:18:16]RasterBufferAndPrint [04:18:16]line [04:18:16]line [04:18:16]line [04:18:16]line [04:18:16]line [04:18:16]written 0, free lines is 3126 [04:18:16]MH_Cut [04:18:16]Write to MH i2c: D1 01 00 BC 73 01 01 [04:18:16]Write i2c OK [04:18:16]MH_I2C_Read... [04:18:16]Read from MH i2c: D1 [04:18:16]MH_I2C_Read... [04:18:16]Read from MH i2c: D1 01 00 [04:18:16]MH_I2C_Read... [04:18:16]Read from MH i2c: D1 01 00 BC 73 00 00 [04:18:16]Write to MH i2c: 01 00 00 BD 73 30 [04:18:16]Write i2c OK [04:18:16]MH_I2C_Read... [04:18:16]OFD Sender: No OFD packet to send [04:18:17]*** Cut start [04:18:17]*** Partial cut [04:18:17]*** CUTSNS_PIN = 1 [04:18:17]*** CUTSNS_PIN = 0 [04:18:17]*** Brake cut motor [04:18:18]Read from MH i2c: 01 [04:18:18]MH_I2C_Read... [04:18:18]*** Stop cut motor [04:18:18]*** Cut end [04:18:18]Read from MH i2c: 01 07 00 [04:18:18]MH_I2C_Read... [04:18:18]Read from MH i2c: 01 07 00 BD 73 00 00 00 00 00 FF 0F 45 [04:18:18]process_action close_receipt done [04:18:18]requested_data is exist [04:18:18]produce_requested_data [04:18:18]requested_item fm.sn is exist - process it [04:18:18]wFMCommunicate request_size=4 [04:18:18]MH_SAM_APDU [04:18:18]CAPDU: 80 11 00 00 [04:18:18]Write to MH i2c: E2 08 00 BE 73 80 11 00 00 00 00 00 00 AB [04:18:18]Write i2c OK [04:18:18]MH_I2C_Read... [04:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:18]Read from MH i2c: E2 [04:18:18]MH_I2C_Read... [04:18:18]Read from MH i2c: E2 17 00 [04:18:18]MH_I2C_Read... [04:18:18]Read from MH i2c: E2 17 00 BE 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [04:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:18:18]wFMCommunicate OK [04:18:18]requested_item fd.num is exist - process it [04:18:18]SAM_PROTO_GetFieldsCounters [04:18:18]wFMCommunicate request_size=4 [04:18:18]MH_SAM_APDU [04:18:18]CAPDU: 80 13 00 00 [04:18:18]Write to MH i2c: E2 08 00 BF 73 80 13 00 00 00 00 00 00 AE [04:18:18]Write i2c OK [04:18:18]MH_I2C_Read... [04:18:18]Read from MH i2c: E2 [04:18:18]MH_I2C_Read... [04:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:18:18]Read from MH i2c: E2 62 00 [04:18:18]MH_I2C_Read... [04:18:18]Read from MH i2c: E2 62 00 BF 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 37 21 02 00 0E 04 04 00 2D 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 F7 [04:18: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 37 21 02 00 0E 04 04 00 2D 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 [04:18:18]wFMCommunicate OK [04:18:18]SAM_PROTO_GetFieldsCounters done [04:18:18]requested_item shift.num is exist - process it [04:18:18]requested_item shift.opened is exist - process it [04:18:18]req_shift_opened [04:18:18]FM_GetShiftState [04:18:18]SAM_PROTO_GetShiftState [04:18:18]wFMCommunicate request_size=4 [04:18:18]MH_SAM_APDU [04:18:18]CAPDU: 80 13 01 00 [04:18:18]Write to MH i2c: E2 08 00 C0 73 80 13 01 00 00 00 00 00 B0 [04:18:18]Write i2c OK [04:18:18]MH_I2C_Read... [04:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:18]Read from MH i2c: E2 [04:18:18]MH_I2C_Read... [04:18:18]Read from MH i2c: E2 0E 00 [04:18:18]MH_I2C_Read... [04:18:18]Read from MH i2c: E2 0E 00 C0 73 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D9 [04:18:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:18:18]wFMCommunicate OK [04:18:18]SAM_PROTO_GetShiftState done [04:18:18]FM_GetShiftState done [04:18:18]req_shift_opened done [04:18:18]requested_item shift.open_date is exist - process it [04:18:18]req_shift_open_date [04:18:18]req_shift_open_date done [04:18:18]produce_requested_data done [04:18:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139575,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:18:18]process_action_free close_receipt [04:18:18]json_value_free [04:18:18]json_value_free done [04:18:18]process_json_proto returns [04:18:18]Send response to host [04:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139575,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:18:18]free response buf [04:18:18]execute_script done [04:18:18]execute_script returns [04:18:18]free content buf [04:18:18]Sock 8.Close socket [04:18:18]Sock 8.Thread stoped [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:30]ConnectInit Can't connect to host [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:16]accept exits with 9 [04:34:16]New connection [04:34:16]New thread 3067141476 created [04:34:16]Thread 3067284836 joined [04:34:16]Waiting for new connection... [04:34:16] Sock 9.Parse request [04:34:16]Sock 9.Check first char [04:34:16]Sock 9.First char is OK [04:34:16]request: POST /json_proto HTTP/1.0 [04:34:16]Method: POST [04:34:16]URL: /json_proto [04:34:16]Method is POST - this is cgi request [04:34:16]url: /json_proto [04:34:16]query_string will be loaded in cgi processing [04:34:16]execute_cgi json_proto POST (null) [04:34:16]execute_cgi path=json_proto method=POST [04:34:16]POST find Content-Length [04:34:16]Host: 172.17.50.196:8080 [04:34:16]Content-Length: 928 [04:34:16]Content-Type: application/json [04:34:16] [04:34:16]POST finish read [04:34:16]Found Content-Length = 928 [04:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335457", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:16]execute_script... [04:34: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)335457", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:16]POST & json_proto [04:34:16]process_json_proto [04:34:16]json parsed OK: [04:34:16]protocol is kg_v1.0 [04:34:16]action value=close_receipt [04:34:16]process_action close_receipt [04:34:16]cmd_close_receipt [04:34:16]MH_GetDate [04:34:16]Write to MH i2c: F0 00 00 C1 73 23 [04:34:16]Write i2c OK [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: F0 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: F0 09 00 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: F0 09 00 C1 73 00 D1 08 23 67 72 0D 1C 67 91 [04:34:16]GetLastDocTimeStamp 1730348302 [04:34:16]current date 1730349265 [04:34:16]FM_GetShiftState [04:34:16]SAM_PROTO_GetShiftState [04:34:16]wFMCommunicate request_size=4 [04:34:16]MH_SAM_APDU [04:34:16]CAPDU: 80 13 01 00 [04:34:16]Write to MH i2c: E2 08 00 C2 73 80 13 01 00 00 00 00 00 B2 [04:34:16]Write i2c OK [04:34:16]MH_I2C_Read... [04:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:16]Read from MH i2c: E2 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: E2 0E 00 [04:34:16]MH_I2C_Read... [04:34:16]Read from MH i2c: E2 0E 00 C2 73 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DB [04:34:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:34:16]wFMCommunicate OK [04:34:16]SAM_PROTO_GetShiftState done [04:34:16]FM_GetShiftState done [04:34:16]opened in 1730332621 [04:34:16]opened+sec_in_day 1730419021 [04:34:16]quantity*price = 9500 [04:34:16]sum+1 = 9501 [04:34:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001353 Вода Боржоми 0,5л ПЭТ 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 53 31.10.2024 04:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139576 ФПД: 75174224277189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T043425&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139576&fm=75174224277189&tin=02508201610067®Number=0000000000091631&sum=21500 0 [04:34:18]StoreToDocumentArchive [04:34:18]shift 557 fd 139576 [04:34:18]save to /storage/0557/doc_00139576 [04:34:18]save last doc name /storage/0557/doc_00139576 to /storage/kkm_last_doc_name [04:34:18]save OK [04:34:18]Clear old archive folders... [04:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=396 [04:34:18]tlvbuf is 01336AC0 [04:34:18]SAM_PROTO_ClearQueue [04:34:18]wFMCommunicate request_size=4 [04:34:18]MH_SAM_APDU [04:34:18]CAPDU: 80 09 00 00 [04:34:18]Write to MH i2c: E2 08 00 CF 73 80 09 00 00 00 00 00 00 B4 [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:18]Read from MH i2c: E2 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 CF 73 00 90 00 B6 [04:34:18]RAPDU: 90 00 [04:34:18]wFMCommunicate OK [04:34:18]SAM_PROTO_ClearQueue done [04:34:18]KKMCreateOFDPacket [04:34:18]OFDProtocolAddRootSTLVToBuf [04:34:18]FM_MakeSignedData [04:34:18]FM_MakeSignedData [04:34:18]SAM_PROTO_SignData [04:34:18]wFMCommunicate request_size=4 [04:34:18]MH_SAM_APDU [04:34:18]CAPDU: 80 0D 01 02 [04:34:18]Write to MH i2c: E2 08 00 D0 73 80 0D 01 02 00 00 00 00 BC [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:18]Read from MH i2c: E2 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 D0 73 00 90 00 B7 [04:34:18]RAPDU: 90 00 [04:34:18]wFMCommunicate OK [04:34:18]wFMCommunicate request_size=255 [04:34:18]MH_SAM_APDU [04:34:18]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF [04:34:18]Write to MH i2c: E2 02 01 D1 73 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 00 00 16 [04:34:18]Write i2c OK [04:34:18]MH_I2C_Read... [04:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:18]Read from MH i2c: E2 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 [04:34:18]MH_I2C_Read... [04:34:18]Read from MH i2c: E2 03 00 D1 73 00 90 00 B8 [04:34:18]RAPDU: 90 00 [04:34:18]wFMCommunicate OK [04:34:18]wFMCommunicate request_size=155 [04:34:18]MH_SAM_APDU [04:34:18]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D1 08 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [04:34:20]process_action close_receipt done [04:34:20]requested_data is exist [04:34:20]produce_requested_data [04:34:20]requested_item fm.sn is exist - process it [04:34:20]wFMCommunicate request_size=4 [04:34:20]MH_SAM_APDU [04:34:20]CAPDU: 80 11 00 00 [04:34:20]Write to MH i2c: E2 08 00 0D 74 80 11 00 00 00 00 00 00 FB [04:34:20]Write i2c OK [04:34:20]MH_I2C_Read... [04:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:20]Read from MH i2c: E2 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 17 00 [04:34:20]MH_I2C_Read... [04:34:20]Read from MH i2c: E2 17 00 0D 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 56 [04:34:20]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:20]wFMCommunicate OK [04:34:20]requested_item fd.num is exist - process it [04:34:20]SAM_PROTO_GetFieldsCounters [04:34:20]wFMCommunicate request_size=4 [04:34:20]MH_SAM_APDU [04:34:20]CAPDU: 80 13 00 00 [04:34:20]Write to MH i2c: E2 08 00 0E 74 80 13 00 00 00 00 00 00 FE [04:34:20]Write i2c OK [04:34:20]MH_I2C_Read... [04:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:21]Read from MH i2c: E2 [04:34:21]MH_I2C_Read... [04:34:21]Read from MH i2c: E2 62 00 [04:34:21]MH_I2C_Read... [04:34:21]Read from MH i2c: E2 62 00 0E 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 38 21 02 00 0E 04 04 00 2D 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 4B [04:34: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 38 21 02 00 0E 04 04 00 2D 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 [04:34:21]wFMCommunicate OK [04:34:21]SAM_PROTO_GetFieldsCounters done [04:34:21]requested_item shift.num is exist - process it [04:34:21]requested_item shift.opened is exist - process it [04:34:21]req_shift_opened [04:34:21]FM_GetShiftState [04:34:21]SAM_PROTO_GetShiftState [04:34:21]wFMCommunicate request_size=4 [04:34:21]MH_SAM_APDU [04:34:21]CAPDU: 80 13 01 00 [04:34:21]Write to MH i2c: E2 08 00 0F 74 80 13 01 00 00 00 00 00 00 [04:34:21]Write i2c OK [04:34:21]MH_I2C_Read... [04:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:21]Read from MH i2c: E2 [04:34:21]MH_I2C_Read... [04:34:21]Read from MH i2c: E2 0E 00 [04:34:21]MH_I2C_Read... [04:34:21]Read from MH i2c: E2 0E 00 0F 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 29 [04:34:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:34:21]wFMCommunicate OK [04:34:21]SAM_PROTO_GetShiftState done [04:34:21]FM_GetShiftState done [04:34:21]req_shift_opened done [04:34:21]requested_item shift.open_date is exist - process it [04:34:21]req_shift_open_date [04:34:21]req_shift_open_date done [04:34:21]produce_requested_data done [04:34:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139576,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:34:21]process_action_free close_receipt [04:34:21]json_value_free [04:34:21]json_value_free done [04:34:21]process_json_proto returns [04:34:21]Send response to host [04:34:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139576,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:34:21]free response buf [04:34:21]execute_script done [04:34:21]execute_script returns [04:34:21]free content buf [04:34:21]Sock 9.Close socket [04:34:21]Sock 9.Thread stoped [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:48]ConnectInit Can't connect to host [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:07]accept exits with 8 [04:38:07]New connection [04:38:07]New thread 3067284836 created [04:38:07]Thread 3067141476 joined [04:38:07]Waiting for new connection... [04:38:07] Sock 8.Parse request [04:38:07]Sock 8.Check first char [04:38:07]Sock 8.First char is OK [04:38:07]request: POST /json_proto HTTP/1.0 [04:38:07]Method: POST [04:38:07]URL: /json_proto [04:38:07]Method is POST - this is cgi request [04:38:07]url: /json_proto [04:38:07]query_string will be loaded in cgi processing [04:38:07]execute_cgi json_proto POST (null) [04:38:07]execute_cgi path=json_proto method=POST [04:38:07]POST find Content-Length [04:38:07]Host: 172.17.50.196:8080 [04:38:07]Content-Length: 645 [04:38:07]Content-Type: application/json [04:38:07] [04:38:07]POST finish read [04:38:07]Found Content-Length = 645 [04:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335458", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:07]execute_script... [04:38: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)335458", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:07]POST & json_proto [04:38:07]process_json_proto [04:38:07]json parsed OK: [04:38:07]protocol is kg_v1.0 [04:38:07]action value=close_receipt [04:38:07]process_action close_receipt [04:38:07]cmd_close_receipt [04:38:07]MH_GetDate [04:38:07]Write to MH i2c: F0 00 00 10 74 73 [04:38:07]Write i2c OK [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: F0 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: F0 09 00 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: F0 09 00 10 74 00 B8 09 23 67 72 0D 1C 67 C9 [04:38:07]GetLastDocTimeStamp 1730349265 [04:38:07]current date 1730349496 [04:38:07]FM_GetShiftState [04:38:07]SAM_PROTO_GetShiftState [04:38:07]wFMCommunicate request_size=4 [04:38:07]MH_SAM_APDU [04:38:07]CAPDU: 80 13 01 00 [04:38:07]Write to MH i2c: E2 08 00 11 74 80 13 01 00 00 00 00 00 02 [04:38:07]Write i2c OK [04:38:07]MH_I2C_Read... [04:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:07]Read from MH i2c: E2 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: E2 0E 00 [04:38:07]MH_I2C_Read... [04:38:07]Read from MH i2c: E2 0E 00 11 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2B [04:38:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:38:07]wFMCommunicate OK [04:38:07]SAM_PROTO_GetShiftState done [04:38:07]FM_GetShiftState done [04:38:07]opened in 1730332621 [04:38:07]opened+sec_in_day 1730419021 [04:38:07]quantity*price = 7900 [04:38:07]sum+1 = 7901 [04:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 54 31.10.2024 04:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139577 ФПД: 254439908357600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T043816&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139577&fm=254439908357600&tin=02508201610067®Number=0000000000091631&sum=7900 0 [04:38:08]StoreToDocumentArchive [04:38:08]shift 557 fd 139577 [04:38:08]save to /storage/0557/doc_00139577 [04:38:08]save last doc name /storage/0557/doc_00139577 to /storage/kkm_last_doc_name [04:38:08]save OK [04:38:08]Clear old archive folders... [04:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=276 [04:38:08]tlvbuf is 012AC290 [04:38:08]SAM_PROTO_ClearQueue [04:38:08]wFMCommunicate request_size=4 [04:38:08]MH_SAM_APDU [04:38:08]CAPDU: 80 09 00 00 [04:38:08]Write to MH i2c: E2 08 00 1E 74 80 09 00 00 00 00 00 00 04 [04:38:08]Write i2c OK [04:38:08]MH_I2C_Read... [04:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:08]Read from MH i2c: E2 [04:38:08]MH_I2C_Read... [04:38:08]Read from MH i2c: E2 03 00 [04:38:08]MH_I2C_Read... [04:38:08]Read from MH i2c: E2 03 00 1E 74 00 90 00 06 [04:38:08]RAPDU: 90 00 [04:38:08]wFMCommunicate OK [04:38:08]SAM_PROTO_ClearQueue done [04:38:08]KKMCreateOFDPacket [04:38:08]OFDProtocolAddRootSTLVToBuf [04:38:08]FM_MakeSignedData [04:38:08]FM_MakeSignedData [04:38:08]SAM_PROTO_SignData [04:38:08]wFMCommunicate request_size=4 [04:38:08]MH_SAM_APDU [04:38:08]CAPDU: 80 0D 01 02 [04:38:08]Write to MH i2c: E2 08 00 1F 74 80 0D 01 02 00 00 00 00 0C [04:38:08]Write i2c OK [04:38:08]MH_I2C_Read... [04:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:08]Read from MH i2c: E2 [04:38:08]MH_I2C_Read... [04:38:08]Read from MH i2c: E2 03 00 [04:38:08]MH_I2C_Read... [04:38:08]Read from MH i2c: E2 03 00 1F 74 00 90 00 07 [04:38:08]RAPDU: 90 00 [04:38:08]wFMCommunicate OK [04:38:08]wFMCommunicate request_size=255 [04:38:08]MH_SAM_APDU [04:38:08]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 09 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [04:38:08]Write to MH i2c: E2 02 01 20 74 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 09 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 9A [04:38:08]Write i2c OK [04:38:08]MH_I2C_Read... [04:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:09]Read from MH i2c: E2 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 03 00 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 03 00 20 74 00 90 00 08 [04:38:09]RAPDU: 90 00 [04:38:09]wFMCommunicate OK [04:38:09]wFMCommunicate request_size=35 [04:38:09]MH_SAM_APDU [04:38:09]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 21 02 00 35 04 06 00 E7 69 68 5A B5 E0 [04:38:09]Write to MH i2c: E2 26 00 21 74 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 21 02 00 35 04 06 00 E7 69 68 5A B5 E0 00 00 0D [04:38:09]Write i2c OK [04:38:09]MH_I2C_Read... [04:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:09]Read from MH i2c: E2 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 03 00 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 03 00 21 74 00 90 00 09 [04:38:09]RAPDU: 90 00 [04:38:09]wFMCommunicate OK [04:38:09]wFMCommunicate request_size=4 [04:38:09]MH_SAM_APDU [04:38:09]CAPDU: 80 0D 03 02 [04:38:09]Write to MH i2c: E2 08 00 22 74 80 0D 03 02 00 00 00 00 11 [04:38:09]Write i2c OK [04:38:09]MH_I2C_Read... [04:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:09]Read from MH i2c: E2 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 0B 00 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 0B 00 22 74 00 02 74 18 18 C7 64 44 9C 90 00 C3 [04:38:09]RAPDU: 02 74 18 18 C7 64 44 9C 90 00 [04:38:09]wFMCommunicate OK [04:38:09]SAM_PROTO_SignData done [04:38:09]FM_MakeSignedData done [04:38:09]CreateOFDProtocolMessage [04:38:09]wFMCommunicate request_size=4 [04:38:09]MH_SAM_APDU [04:38:09]CAPDU: 80 11 00 00 [04:38:09]Write to MH i2c: E2 08 00 23 74 80 11 00 00 00 00 00 00 11 [04:38:09]Write i2c OK [04:38:09]MH_I2C_Read... [04:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:09]Read from MH i2c: E2 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 17 00 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 17 00 23 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6C [04: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 [04:38:09]wFMCommunicate OK [04:38:09]CreateOFDProtocolMessage done [04:38:09]OFDSenderStorePacket 139577 [04:38:09]StoreOFDPacket docnum=139577 [04:38: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 28 01 00 00 18 67 20 01 76 BE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 09 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 21 02 00 35 04 06 00 E7 69 68 5A B5 E0 02 74 18 18 C7 64 44 9C [04:38:09]CheckFolder [04:38:09]dirname=/storage/ofd_packets [04:38:09]CheckFolder done [04:38:09]ProducePacketName [04:38:09]name=ofd_packets/00139577 [04:38:09]NVStorageSaveData ofd_packets/00139577 [04:38:09]File name is /storage/ofd_packets/00139577 [04:38:09]Write 326 bytes [04:38:09]NVStorageSaveData done [04:38:09]OFDSenderStorePacket done [04:38:09]KKMCreateOFDPacket done [04:38:09]NVStorageSaveData kkm_last_timestamp [04:38:09]File name is /storage/kkm_last_timestamp [04:38:09]Write 4 bytes [04:38:09]NVStorageSaveData done [04:38:09]ExternCall_PrintAddStr [04:38:09]wPrintStart [04:38:09]Write to MH i2c: 01 00 00 24 74 98 [04:38:09]Write i2c OK [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: 01 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: 01 07 00 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: 01 07 00 24 74 00 00 00 00 00 FF 0F AD [04:38:09]RasterBufferAndPrint [04:38:09]line Счет N : (3)335458 [04:38:09]line ИНН: 02508201610067 [04:38:09]line Контрольно-Кассовый Чек [04:38:09]line ПРОДАЖА [04:38:09]line Товар: 4700000310043 [04:38:09]line Вода Жалалабат 27 1л [04:38:09]line 1.000 * 79.00 [04:38:09]line = 79.00 [04:38:09]line НДС 12% НСП 1% [04:38:09]line > о реализуемом товаре [04:38:09]line ИТОГО: 79.00 [04:38:09]line НСП 1% : 0.70 [04:38:09]line НДС 12% : 8.39 [04:38:09]line Наличными: 79.00 [04:38:09]line Безнал.: 0.00 [04:38:09]line Место: АЗС № 101 "Партнер Нефть" [04:38:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:38:09]line СНО: Общий режим [04:38:09]line Чек 54 31.10.2024 04:38 [04:38:09]line Смена: 557 ФФД: 1.0 [04:38:09]line ЗНМ: 0300000081 [04:38:09]line РНМ: 0000000000091631 [04:38:09]line Версия ККМ: 001 [04:38:09]line ФМ: 0000000000874669 [04:38:09]line ФД: 139577 [04:38:09]line ФПД: 254439908357600 [04:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T043816&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139577&fm=254439908357600&tin=02508201610067®Number=0000000000091631&sum=7900 [04:38:09]OFD Sender: Processing packet 139577 [packets to send 34, broken 33] [04:38:09]ProducePacketName [04:38:09]name=ofd_packets/00139577 [04:38:09]OFD Sender: To server: pG, [04:38:09]CommunicateWithHost lk.salyk.kg:30040 [04:38:09]ConnectInit lk.salyk.kg [04:38:09]line 0 [04:38:09]written 0, free lines is 4095 [04:38:09]Connected sock=11 [04:38: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 28 01 00 00 18 67 20 01 76 BE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B8 09 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 21 02 00 35 04 06 00 E7 69 68 5A B5 E0 02 74 18 18 C7 64 44 9C [04:38: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 E7 6E 47 00 19 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 21 02 00 F4 03 04 00 66 B5 22 67 B6 04 01 00 00 EE 7D DF FE 7E EB 87 42 [04:38:09]CommunicateWithHost err = 0 [04:38:09]CheckOFDResponse [04:38:09]1017 (14) - 77093643461234 [04:38:09]1041 (16) - 0000000000874669 [04:38:09]1040 (4) - 139577 [04:38:09]1012 (4) - 30.10.2024 22:38 [04:38:09]1206 (1) - 0 [04:38:09]OFD Sender: Remove packet 139577 [04:38:09]ProducePacketName [04:38:09]name=ofd_packets/00139577 [04:38:09]NVStorageDeleteData [04:38:10]Write to MH i2c: 01 00 00 4C 74 C0 [04:38:10]Write i2c OK [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: 01 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: 01 07 00 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: 01 07 00 4C 74 00 00 00 00 00 12 0D E6 [04:38:10]RasterBufferAndPrint [04:38:10]line [04:38:10]line [04:38:10]line [04:38:10]line [04:38:10]line [04:38:10]written 0, free lines is 3352 [04:38:10]MH_Cut [04:38:10]Write to MH i2c: D1 01 00 53 74 01 99 [04:38:10]Write i2c OK [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: D1 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: D1 01 00 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: D1 01 00 53 74 00 98 [04:38:10]Write to MH i2c: 01 00 00 54 74 C8 [04:38:10]Write i2c OK [04:38:10]MH_I2C_Read... [04:38:10]OFD Sender: No OFD packet to send [04:38:10]*** Cut start [04:38:10]*** Partial cut [04:38:10]*** CUTSNS_PIN = 1 [04:38:10]*** CUTSNS_PIN = 0 [04:38:11]*** Brake cut motor [04:38:11]Read from MH i2c: 01 [04:38:11]MH_I2C_Read... [04:38:11]*** Stop cut motor [04:38:11]*** Cut end [04:38:11]Read from MH i2c: 01 07 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: 01 07 00 54 74 00 00 00 00 00 FF 0F DD [04:38:11]process_action close_receipt done [04:38:11]requested_data is exist [04:38:11]produce_requested_data [04:38:11]requested_item fm.sn is exist - process it [04:38:11]wFMCommunicate request_size=4 [04:38:11]MH_SAM_APDU [04:38:11]CAPDU: 80 11 00 00 [04:38:11]Write to MH i2c: E2 08 00 55 74 80 11 00 00 00 00 00 00 43 [04:38:11]Write i2c OK [04:38:11]MH_I2C_Read... [04:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:11]Read from MH i2c: E2 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 17 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 17 00 55 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9E [04:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:38:11]wFMCommunicate OK [04:38:11]requested_item fd.num is exist - process it [04:38:11]SAM_PROTO_GetFieldsCounters [04:38:11]wFMCommunicate request_size=4 [04:38:11]MH_SAM_APDU [04:38:11]CAPDU: 80 13 00 00 [04:38:11]Write to MH i2c: E2 08 00 56 74 80 13 00 00 00 00 00 00 46 [04:38:11]Write i2c OK [04:38:11]MH_I2C_Read... [04:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:11]Read from MH i2c: E2 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 62 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 62 00 56 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 39 21 02 00 0E 04 04 00 2D 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 97 [04:38: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 39 21 02 00 0E 04 04 00 2D 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 [04:38:11]wFMCommunicate OK [04:38:11]SAM_PROTO_GetFieldsCounters done [04:38:11]requested_item shift.num is exist - process it [04:38:11]requested_item shift.opened is exist - process it [04:38:11]req_shift_opened [04:38:11]FM_GetShiftState [04:38:11]SAM_PROTO_GetShiftState [04:38:11]wFMCommunicate request_size=4 [04:38:11]MH_SAM_APDU [04:38:11]CAPDU: 80 13 01 00 [04:38:11]Write to MH i2c: E2 08 00 57 74 80 13 01 00 00 00 00 00 48 [04:38:11]Write i2c OK [04:38:11]MH_I2C_Read... [04:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:11]Read from MH i2c: E2 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 0E 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 0E 00 57 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 71 [04:38:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:38:11]wFMCommunicate OK [04:38:11]SAM_PROTO_GetShiftState done [04:38:11]FM_GetShiftState done [04:38:11]req_shift_opened done [04:38:11]requested_item shift.open_date is exist - process it [04:38:11]req_shift_open_date [04:38:11]req_shift_open_date done [04:38:11]produce_requested_data done [04:38:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139577,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:38:11]process_action_free close_receipt [04:38:11]json_value_free [04:38:11]json_value_free done [04:38:11]process_json_proto returns [04:38:11]Send response to host [04:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139577,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:38:11]free response buf [04:38:11]execute_script done [04:38:11]execute_script returns [04:38:11]free content buf [04:38:11]Sock 8.Close socket [04:38:11]Sock 8.Thread stoped [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:46]accept exits with 10 [04:45:46]New connection [04:45:46]New thread 3067141476 created [04:45:46]Thread 3067284836 joined [04:45:46]Waiting for new connection... [04:45:46] Sock 10.Parse request [04:45:46]Sock 10.Check first char [04:45:46]Sock 10.First char is OK [04:45:46]request: POST /json_proto HTTP/1.0 [04:45:46]Method: POST [04:45:46]URL: /json_proto [04:45:46]Method is POST - this is cgi request [04:45:46]url: /json_proto [04:45:46]query_string will be loaded in cgi processing [04:45:46]execute_cgi json_proto POST (null) [04:45:46]execute_cgi path=json_proto method=POST [04:45:46]POST find Content-Length [04:45:46]Host: 172.17.50.196:8080 [04:45:46]Content-Length: 653 [04:45:46]Content-Type: application/json [04:45:46] [04:45:46]POST finish read [04:45:46]Found Content-Length = 653 [04:45:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335459", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:46]execute_script... [04:45: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)335459", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:46]POST & json_proto [04:45:46]process_json_proto [04:45:46]json parsed OK: [04:45:46]protocol is kg_v1.0 [04:45:46]action value=close_receipt [04:45:46]process_action close_receipt [04:45:46]cmd_close_receipt [04:45:46]MH_GetDate [04:45:46]Write to MH i2c: F0 00 00 58 74 BB [04:45:46]Write i2c OK [04:45:46]MH_I2C_Read... [04:45:46]Read from MH i2c: F0 [04:45:46]MH_I2C_Read... [04:45:46]Read from MH i2c: F0 09 00 [04:45:46]MH_I2C_Read... [04:45:46]Read from MH i2c: F0 09 00 58 74 00 83 0B 23 67 72 0D 1C 67 DE [04:45:46]GetLastDocTimeStamp 1730349496 [04:45:46]current date 1730349955 [04:45:46]FM_GetShiftState [04:45:46]SAM_PROTO_GetShiftState [04:45:46]wFMCommunicate request_size=4 [04:45:46]MH_SAM_APDU [04:45:46]CAPDU: 80 13 01 00 [04:45:46]Write to MH i2c: E2 08 00 59 74 80 13 01 00 00 00 00 00 4A [04:45:46]Write i2c OK [04:45:46]MH_I2C_Read... [04:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:46]Read from MH i2c: E2 [04:45:46]MH_I2C_Read... [04:45:46]Read from MH i2c: E2 0E 00 [04:45:46]MH_I2C_Read... [04:45:46]Read from MH i2c: E2 0E 00 59 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 73 [04:45:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:45:46]wFMCommunicate OK [04:45:46]SAM_PROTO_GetShiftState done [04:45:46]FM_GetShiftState done [04:45:46]opened in 1730332621 [04:45:46]opened+sec_in_day 1730419021 [04:45:46]quantity*price = 9000 [04:45:46]sum+1 = 9001 [04:45:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 55 31.10.2024 04:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139578 ФПД: 74621617643100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T044555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139578&fm=74621617643100&tin=02508201610067®Number=0000000000091631&sum=9000 0 [04:45:47]StoreToDocumentArchive [04:45:47]shift 557 fd 139578 [04:45:47]save to /storage/0557/doc_00139578 [04:45:47]save last doc name /storage/0557/doc_00139578 to /storage/kkm_last_doc_name [04:45:47]save OK [04:45:47]Clear old archive folders... [04:45:47]ProcessDocumentItem done err = 0, tmpTLVsize=280 [04:45:47]tlvbuf is 01163AE0 [04:45:47]SAM_PROTO_ClearQueue [04:45:47]wFMCommunicate request_size=4 [04:45:47]MH_SAM_APDU [04:45:47]CAPDU: 80 09 00 00 [04:45:47]Write to MH i2c: E2 08 00 66 74 80 09 00 00 00 00 00 00 4C [04:45:47]Write i2c OK [04:45:47]MH_I2C_Read... [04:45:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:45:47]Read from MH i2c: E2 [04:45:47]MH_I2C_Read... [04:45:47]Read from MH i2c: E2 03 00 [04:45:47]MH_I2C_Read... [04:45:47]Read from MH i2c: E2 03 00 66 74 00 90 00 4E [04:45:47]RAPDU: 90 00 [04:45:47]wFMCommunicate OK [04:45:47]SAM_PROTO_ClearQueue done [04:45:47]KKMCreateOFDPacket [04:45:47]OFDProtocolAddRootSTLVToBuf [04:45:47]FM_MakeSignedData [04:45:47]FM_MakeSignedData [04:45:47]SAM_PROTO_SignData [04:45:47]wFMCommunicate request_size=4 [04:45:47]MH_SAM_APDU [04:45:47]CAPDU: 80 0D 01 02 [04:45:47]Write to MH i2c: E2 08 00 67 74 80 0D 01 02 00 00 00 00 54 [04:45:47]Write i2c OK [04:45:47]MH_I2C_Read... [04:45:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:45:47]Read from MH i2c: E2 [04:45:47]MH_I2C_Read... [04:45:47]Read from MH i2c: E2 03 00 [04:45:47]MH_I2C_Read... [04:45:47]Read from MH i2c: E2 03 00 67 74 00 90 00 4F [04:45:47]RAPDU: 90 00 [04:45:47]wFMCommunicate OK [04:45:47]wFMCommunicate request_size=255 [04:45:47]MH_SAM_APDU [04:45:47]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 0B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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:45:47]Write to MH i2c: E2 02 01 68 74 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 0B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 B9 [04:45:47]Write i2c OK [04:45:47]MH_I2C_Read... [04:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:48]Read from MH i2c: E2 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 03 00 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 03 00 68 74 00 90 00 50 [04:45:48]RAPDU: 90 00 [04:45:48]wFMCommunicate OK [04:45:48]wFMCommunicate request_size=39 [04:45:48]MH_SAM_APDU [04:45:48]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 3A 21 02 00 35 04 06 00 43 DE 33 03 1E 5C [04:45:48]Write to MH i2c: E2 2A 00 69 74 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 3A 21 02 00 35 04 06 00 43 DE 33 03 1E 5C 00 00 48 [04:45:48]Write i2c OK [04:45:48]MH_I2C_Read... [04:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:48]Read from MH i2c: E2 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 03 00 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 03 00 69 74 00 90 00 51 [04:45:48]RAPDU: 90 00 [04:45:48]wFMCommunicate OK [04:45:48]wFMCommunicate request_size=4 [04:45:48]MH_SAM_APDU [04:45:48]CAPDU: 80 0D 03 02 [04:45:48]Write to MH i2c: E2 08 00 6A 74 80 0D 03 02 00 00 00 00 59 [04:45:48]Write i2c OK [04:45:48]MH_I2C_Read... [04:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:45:48]Read from MH i2c: E2 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 0B 00 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 0B 00 6A 74 00 38 2B FE F5 E0 D0 A9 4A 90 00 53 [04:45:48]RAPDU: 38 2B FE F5 E0 D0 A9 4A 90 00 [04:45:48]wFMCommunicate OK [04:45:48]SAM_PROTO_SignData done [04:45:48]FM_MakeSignedData done [04:45:48]CreateOFDProtocolMessage [04:45:48]wFMCommunicate request_size=4 [04:45:48]MH_SAM_APDU [04:45:48]CAPDU: 80 11 00 00 [04:45:48]Write to MH i2c: E2 08 00 6B 74 80 11 00 00 00 00 00 00 59 [04:45:48]Write i2c OK [04:45:48]MH_I2C_Read... [04:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:48]Read from MH i2c: E2 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 17 00 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: E2 17 00 6B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B4 [04:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:45:48]wFMCommunicate OK [04:45:48]CreateOFDProtocolMessage done [04:45:48]OFDSenderStorePacket 139578 [04:45:48]StoreOFDPacket docnum=139578 [04:45: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 2C 01 00 00 5B CE 24 01 31 A2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 0B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3A 21 02 00 35 04 06 00 43 DE 33 03 1E 5C 38 2B FE F5 E0 D0 A9 4A [04:45:48]CheckFolder [04:45:48]dirname=/storage/ofd_packets [04:45:48]CheckFolder done [04:45:48]ProducePacketName [04:45:48]name=ofd_packets/00139578 [04:45:48]NVStorageSaveData ofd_packets/00139578 [04:45:48]File name is /storage/ofd_packets/00139578 [04:45:48]Write 330 bytes [04:45:48]NVStorageSaveData done [04:45:48]OFDSenderStorePacket done [04:45:48]KKMCreateOFDPacket done [04:45:48]NVStorageSaveData kkm_last_timestamp [04:45:48]File name is /storage/kkm_last_timestamp [04:45:48]Write 4 bytes [04:45:48]NVStorageSaveData done [04:45:48]ExternCall_PrintAddStr [04:45:48]wPrintStart [04:45:48]Write to MH i2c: 01 00 00 6C 74 E0 [04:45:48]Write i2c OK [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: 01 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: 01 07 00 [04:45:48]MH_I2C_Read... [04:45:48]Read from MH i2c: 01 07 00 6C 74 00 00 00 00 00 FF 0F F5 [04:45:48]RasterBufferAndPrint [04:45:48]line Счет N : (3)335459 [04:45:48]line ИНН: 02508201610067 [04:45:48]line Контрольно-Кассовый Чек [04:45:48]line ПРОДАЖА [04:45:48]line Товар: 5449000325907 [04:45:48]line Напиток Фанта 0,45л ж/б [04:45:48]line 1.000 * 90.00 [04:45:48]line = 90.00 [04:45:48]line НДС 12% НСП 1% [04:45:48]line > о реализуемом товаре [04:45:48]line ИТОГО: 90.00 [04:45:48]line НСП 1% : 0.80 [04:45:48]line НДС 12% : 9.56 [04:45:48]line Наличными: 90.00 [04:45:48]line Безнал.: 0.00 [04:45:48]line Место: АЗС № 101 "Партнер Нефть" [04:45:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:45:48]line СНО: Общий режим [04:45:48]line Чек 55 31.10.2024 04:45 [04:45:48]line Смена: 557 ФФД: 1.0 [04:45:48]line ЗНМ: 0300000081 [04:45:48]line РНМ: 0000000000091631 [04:45:48]line Версия ККМ: 001 [04:45:48]line ФМ: 0000000000874669 [04:45:48]line ФД: 139578 [04:45:48]line ФПД: 74621617643100 [04:45:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T044555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139578&fm=74621617643100&tin=02508201610067®Number=0000000000091631&sum=9000 [04:45:48]line 0 [04:45:48]OFD Sender: Processing packet 139578 [packets to send 34, broken 33] [04:45:48]ProducePacketName [04:45:48]name=ofd_packets/00139578 [04:45:48]OFD Sender: To server: pG, [04:45:48]CommunicateWithHost lk.salyk.kg:30040 [04:45:48]ConnectInit lk.salyk.kg [04:45:48]written 0, free lines is 4095 [04:45:48]Connected sock=9 [04:45: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 2C 01 00 00 5B CE 24 01 31 A2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 83 0B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3A 21 02 00 35 04 06 00 43 DE 33 03 1E 5C 38 2B FE F5 E0 D0 A9 4A [04:45: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 C1 DE 47 00 97 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 3A 21 02 00 F4 03 04 00 31 B7 22 67 B6 04 01 00 00 BA 55 3F 9D 53 FC B9 B8 [04:45:48]CommunicateWithHost err = 0 [04:45:48]CheckOFDResponse [04:45:48]1017 (14) - 77093643461234 [04:45:48]1041 (16) - 0000000000874669 [04:45:48]1040 (4) - 139578 [04:45:48]1012 (4) - 30.10.2024 22:46 [04:45:48]1206 (1) - 0 [04:45:48]OFD Sender: Remove packet 139578 [04:45:48]ProducePacketName [04:45:48]name=ofd_packets/00139578 [04:45:48]NVStorageDeleteData [04:45:49]Write to MH i2c: 01 00 00 94 74 08 [04:45:49]Write i2c OK [04:45:49]MH_I2C_Read... [04:45:49]Read from MH i2c: 01 [04:45:49]MH_I2C_Read... [04:45:49]Read from MH i2c: 01 07 00 [04:45:49]MH_I2C_Read... [04:45:49]Read from MH i2c: 01 07 00 94 74 00 00 00 00 00 0C 0D 28 [04:45:49]RasterBufferAndPrint [04:45:49]line [04:45:49]line [04:45:49]line [04:45:49]line [04:45:49]line [04:45:49]written 0, free lines is 3349 [04:45:49]MH_Cut [04:45:49]Write to MH i2c: D1 01 00 9B 74 01 E1 [04:45:49]Write i2c OK [04:45:49]MH_I2C_Read... [04:45:49]Read from MH i2c: D1 [04:45:49]MH_I2C_Read... [04:45:49]Read from MH i2c: D1 01 00 [04:45:49]MH_I2C_Read... [04:45:49]Read from MH i2c: D1 01 00 9B 74 00 E0 [04:45:49]Write to MH i2c: 01 00 00 9C 74 10 [04:45:49]Write i2c OK [04:45:49]MH_I2C_Read... [04:45:49]OFD Sender: No OFD packet to send [04:45:49]*** Cut start [04:45:49]*** Partial cut [04:45:49]*** CUTSNS_PIN = 1 [04:45:49]*** CUTSNS_PIN = 0 [04:45:50]*** Brake cut motor [04:45:50]Read from MH i2c: 01 [04:45:50]MH_I2C_Read... [04:45:50]*** Stop cut motor [04:45:50]*** Cut end [04:45:50]Read from MH i2c: 01 07 00 [04:45:50]MH_I2C_Read... [04:45:50]Read from MH i2c: 01 07 00 9C 74 00 00 00 00 00 FF 0F 25 [04:45:50]process_action close_receipt done [04:45:50]requested_data is exist [04:45:50]produce_requested_data [04:45:50]requested_item fm.sn is exist - process it [04:45:50]wFMCommunicate request_size=4 [04:45:50]MH_SAM_APDU [04:45:50]CAPDU: 80 11 00 00 [04:45:50]Write to MH i2c: E2 08 00 9D 74 80 11 00 00 00 00 00 00 8B [04:45:50]Write i2c OK [04:45:50]MH_I2C_Read... [04:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:50]Read from MH i2c: E2 [04:45:50]MH_I2C_Read... [04:45:50]Read from MH i2c: E2 17 00 [04:45:50]MH_I2C_Read... [04:45:50]Read from MH i2c: E2 17 00 9D 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E6 [04:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:45:50]wFMCommunicate OK [04:45:50]requested_item fd.num is exist - process it [04:45:50]SAM_PROTO_GetFieldsCounters [04:45:50]wFMCommunicate request_size=4 [04:45:50]MH_SAM_APDU [04:45:50]CAPDU: 80 13 00 00 [04:45:50]Write to MH i2c: E2 08 00 9E 74 80 13 00 00 00 00 00 00 8E [04:45:50]Write i2c OK [04:45:50]MH_I2C_Read... [04:45:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:45:50]Read from MH i2c: E2 [04:45:50]MH_I2C_Read... [04:45:50]Read from MH i2c: E2 62 00 [04:45:50]MH_I2C_Read... [04:45:50]Read from MH i2c: E2 62 00 9E 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3A 21 02 00 0E 04 04 00 2D 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 E3 [04:45: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 3A 21 02 00 0E 04 04 00 2D 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 [04:45:50]wFMCommunicate OK [04:45:50]SAM_PROTO_GetFieldsCounters done [04:45:50]requested_item shift.num is exist - process it [04:45:50]requested_item shift.opened is exist - process it [04:45:50]req_shift_opened [04:45:50]FM_GetShiftState [04:45:50]SAM_PROTO_GetShiftState [04:45:50]wFMCommunicate request_size=4 [04:45:50]MH_SAM_APDU [04:45:50]CAPDU: 80 13 01 00 [04:45:50]Write to MH i2c: E2 08 00 9F 74 80 13 01 00 00 00 00 00 90 [04:45:50]Write i2c OK [04:45:50]MH_I2C_Read... [04:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:50]Read from MH i2c: E2 [04:45:50]MH_I2C_Read... [04:45:50]Read from MH i2c: E2 0E 00 [04:45:50]MH_I2C_Read... [04:45:50]Read from MH i2c: E2 0E 00 9F 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B9 [04:45:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:45:50]wFMCommunicate OK [04:45:50]SAM_PROTO_GetShiftState done [04:45:50]FM_GetShiftState done [04:45:50]req_shift_opened done [04:45:50]requested_item shift.open_date is exist - process it [04:45:50]req_shift_open_date [04:45:50]req_shift_open_date done [04:45:50]produce_requested_data done [04:45:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139578,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:45:50]process_action_free close_receipt [04:45:50]json_value_free [04:45:50]json_value_free done [04:45:50]process_json_proto returns [04:45:50]Send response to host [04:45:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139578,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:45:50]free response buf [04:45:50]execute_script done [04:45:50]execute_script returns [04:45:50]free content buf [04:45:50]Sock 10.Close socket [04:45:50]Sock 10.Thread stoped [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:20]accept exits with 8 [04:54:20]New connection [04:54:20]New thread 3067284836 created [04:54:20]Thread 3067141476 joined [04:54:20]Waiting for new connection... [04:54:20] Sock 8.Parse request [04:54:20]Sock 8.Check first char [04:54:20]Sock 8.First char is OK [04:54:20]request: POST /json_proto HTTP/1.0 [04:54:20]Method: POST [04:54:20]URL: /json_proto [04:54:20]Method is POST - this is cgi request [04:54:20]url: /json_proto [04:54:20]query_string will be loaded in cgi processing [04:54:20]execute_cgi json_proto POST (null) [04:54:20]execute_cgi path=json_proto method=POST [04:54:20]POST find Content-Length [04:54:20]Host: 172.17.50.196:8080 [04:54:20]Content-Length: 659 [04:54:20]Content-Type: application/json [04:54:20] [04:54:20]POST finish read [04:54:20]Found Content-Length = 659 [04:54:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335460", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:20]execute_script... [04:54:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335460", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:20]POST & json_proto [04:54:20]process_json_proto [04:54:20]json parsed OK: [04:54:20]protocol is kg_v1.0 [04:54:20]action value=close_receipt [04:54:20]process_action close_receipt [04:54:20]cmd_close_receipt [04:54:20]MH_GetDate [04:54:20]Write to MH i2c: F0 00 00 A0 74 03 [04:54:20]Write i2c OK [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: F0 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: F0 09 00 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: F0 09 00 A0 74 00 85 0D 23 67 72 0D 1C 67 2A [04:54:20]GetLastDocTimeStamp 1730349955 [04:54:20]current date 1730350469 [04:54:20]FM_GetShiftState [04:54:20]SAM_PROTO_GetShiftState [04:54:20]wFMCommunicate request_size=4 [04:54:20]MH_SAM_APDU [04:54:20]CAPDU: 80 13 01 00 [04:54:20]Write to MH i2c: E2 08 00 A1 74 80 13 01 00 00 00 00 00 92 [04:54:20]Write i2c OK [04:54:20]MH_I2C_Read... [04:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:20]Read from MH i2c: E2 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: E2 0E 00 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: E2 0E 00 A1 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BB [04:54:20]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:54:20]wFMCommunicate OK [04:54:20]SAM_PROTO_GetShiftState done [04:54:20]FM_GetShiftState done [04:54:20]opened in 1730332621 [04:54:20]opened+sec_in_day 1730419021 [04:54:20]quantity*price = 7500 [04:54:20]sum+1 = 7501 [04:54:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 56 31.10.2024 04:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139579 ФПД: 99050828091399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T045429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139579&fm=99050828091399&tin=02508201610067®Number=0000000000091631&sum=7500 0 [04:54:21]StoreToDocumentArchive [04:54:21]shift 557 fd 139579 [04:54:21]save to /storage/0557/doc_00139579 [04:54:21]save last doc name /storage/0557/doc_00139579 to /storage/kkm_last_doc_name [04:54:21]save OK [04:54:21]Clear old archive folders... [04:54:21]ProcessDocumentItem done err = 0, tmpTLVsize=290 [04:54:21]tlvbuf is 012AC2B0 [04:54:21]SAM_PROTO_ClearQueue [04:54:21]wFMCommunicate request_size=4 [04:54:21]MH_SAM_APDU [04:54:21]CAPDU: 80 09 00 00 [04:54:21]Write to MH i2c: E2 08 00 AE 74 80 09 00 00 00 00 00 00 94 [04:54:21]Write i2c OK [04:54:21]MH_I2C_Read... [04:54:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:54:21]Read from MH i2c: E2 [04:54:21]MH_I2C_Read... [04:54:21]Read from MH i2c: E2 03 00 [04:54:21]MH_I2C_Read... [04:54:21]Read from MH i2c: E2 03 00 AE 74 00 90 00 96 [04:54:21]RAPDU: 90 00 [04:54:21]wFMCommunicate OK [04:54:21]SAM_PROTO_ClearQueue done [04:54:21]KKMCreateOFDPacket [04:54:21]OFDProtocolAddRootSTLVToBuf [04:54:21]FM_MakeSignedData [04:54:21]FM_MakeSignedData [04:54:21]SAM_PROTO_SignData [04:54:21]wFMCommunicate request_size=4 [04:54:21]MH_SAM_APDU [04:54:21]CAPDU: 80 0D 01 02 [04:54:21]Write to MH i2c: E2 08 00 AF 74 80 0D 01 02 00 00 00 00 9C [04:54:21]Write i2c OK [04:54:21]MH_I2C_Read... [04:54:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:54:21]Read from MH i2c: E2 [04:54:21]MH_I2C_Read... [04:54:21]Read from MH i2c: E2 03 00 [04:54:21]MH_I2C_Read... [04:54:21]Read from MH i2c: E2 03 00 AF 74 00 90 00 97 [04:54:21]RAPDU: 90 00 [04:54:21]wFMCommunicate OK [04:54:21]wFMCommunicate request_size=255 [04:54:21]MH_SAM_APDU [04:54:21]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 0D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [04:54:21]Write to MH i2c: E2 02 01 B0 74 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 0D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 AC [04:54:21]Write i2c OK [04:54:21]MH_I2C_Read... [04:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:22]Read from MH i2c: E2 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 03 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 03 00 B0 74 00 90 00 98 [04:54:22]RAPDU: 90 00 [04:54:22]wFMCommunicate OK [04:54:22]wFMCommunicate request_size=49 [04:54:22]MH_SAM_APDU [04:54:22]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 3B 21 02 00 35 04 06 00 5A 16 11 6C 50 07 [04:54:22]Write to MH i2c: E2 34 00 B1 74 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 3B 21 02 00 35 04 06 00 5A 16 11 6C 50 07 00 00 71 [04:54:22]Write i2c OK [04:54:22]MH_I2C_Read... [04:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:22]Read from MH i2c: E2 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 03 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 03 00 B1 74 00 90 00 99 [04:54:22]RAPDU: 90 00 [04:54:22]wFMCommunicate OK [04:54:22]wFMCommunicate request_size=4 [04:54:22]MH_SAM_APDU [04:54:22]CAPDU: 80 0D 03 02 [04:54:22]Write to MH i2c: E2 08 00 B2 74 80 0D 03 02 00 00 00 00 A1 [04:54:22]Write i2c OK [04:54:22]MH_I2C_Read... [04:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:54:22]Read from MH i2c: E2 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 0B 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 0B 00 B2 74 00 36 CC 7B 2F 80 FE 34 B2 90 00 B2 [04:54:22]RAPDU: 36 CC 7B 2F 80 FE 34 B2 90 00 [04:54:22]wFMCommunicate OK [04:54:22]SAM_PROTO_SignData done [04:54:22]FM_MakeSignedData done [04:54:22]CreateOFDProtocolMessage [04:54:22]wFMCommunicate request_size=4 [04:54:22]MH_SAM_APDU [04:54:22]CAPDU: 80 11 00 00 [04:54:22]Write to MH i2c: E2 08 00 B3 74 80 11 00 00 00 00 00 00 A1 [04:54:22]Write i2c OK [04:54:22]MH_I2C_Read... [04:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:22]Read from MH i2c: E2 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 17 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 17 00 B3 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FC [04:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:54:22]wFMCommunicate OK [04:54:22]CreateOFDProtocolMessage done [04:54:22]OFDSenderStorePacket 139579 [04:54:22]StoreOFDPacket docnum=139579 [04:54: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 36 01 00 00 D5 D4 2E 01 DE 36 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 0D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3B 21 02 00 35 04 06 00 5A 16 11 6C 50 07 36 CC 7B 2F 80 FE 34 B2 [04:54:22]CheckFolder [04:54:22]dirname=/storage/ofd_packets [04:54:22]CheckFolder done [04:54:22]ProducePacketName [04:54:22]name=ofd_packets/00139579 [04:54:22]NVStorageSaveData ofd_packets/00139579 [04:54:22]File name is /storage/ofd_packets/00139579 [04:54:22]Write 340 bytes [04:54:22]NVStorageSaveData done [04:54:22]OFDSenderStorePacket done [04:54:22]KKMCreateOFDPacket done [04:54:22]NVStorageSaveData kkm_last_timestamp [04:54:22]File name is /storage/kkm_last_timestamp [04:54:22]Write 4 bytes [04:54:22]NVStorageSaveData done [04:54:22]ExternCall_PrintAddStr [04:54:22]wPrintStart [04:54:22]Write to MH i2c: 01 00 00 B4 74 28 [04:54:22]Write i2c OK [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: 01 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: 01 07 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: 01 07 00 B4 74 00 00 00 00 00 FF 0F 3D [04:54:22]RasterBufferAndPrint [04:54:22]line Счет N : (3)335460 [04:54:22]line ИНН: 02508201610067 [04:54:22]line Контрольно-Кассовый Чек [04:54:22]line ПРОДАЖА [04:54:22]line Товар: 4870001154059 [04:54:22]line Напиток Lipton IceTea 0,5л зел чай [04:54:22]line 1.000 * 75.00 [04:54:22]line = 75.00 [04:54:22]line НДС 12% НСП 1% [04:54:22]line > о реализуемом товаре [04:54:22]line ИТОГО: 75.00 [04:54:22]line НСП 1% : 0.66 [04:54:22]line НДС 12% : 7.96 [04:54:22]line Наличными: 75.00 [04:54:22]line Безнал.: 0.00 [04:54:22]line Место: АЗС № 101 "Партнер Нефть" [04:54:22]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:54:22]line СНО: Общий режим [04:54:22]line Чек 56 31.10.2024 04:54 [04:54:22]line Смена: 557 ФФД: 1.0 [04:54:22]line ЗНМ: 0300000081 [04:54:22]line РНМ: 0000000000091631 [04:54:22]line Версия ККМ: 001 [04:54:22]line ФМ: 0000000000874669 [04:54:22]line ФД: 139579 [04:54:22]line ФПД: 99050828091399 [04:54:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T045429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139579&fm=99050828091399&tin=02508201610067®Number=0000000000091631&sum=7500 [04:54:22]OFD Sender: Processing packet 139579 [packets to send 34, broken 33] [04:54:22]ProducePacketName [04:54:22]name=ofd_packets/00139579 [04:54:22]OFD Sender: To server: pG, [04:54:22]CommunicateWithHost lk.salyk.kg:30040 [04:54:22]ConnectInit lk.salyk.kg [04:54:22]line 0 [04:54:22]written 0, free lines is 4095 [04:54:22]Connected sock=9 [04:54: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 36 01 00 00 D5 D4 2E 01 DE 36 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 0D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3B 21 02 00 35 04 06 00 5A 16 11 6C 50 07 36 CC 7B 2F 80 FE 34 B2 [04:54: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 CC 07 47 00 B0 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3B 21 02 00 F4 03 04 00 33 B9 22 67 B6 04 01 00 00 AF 47 78 9E 72 E6 DE 86 [04:54:22]CommunicateWithHost err = 0 [04:54:22]CheckOFDResponse [04:54:22]1017 (14) - 77093643461234 [04:54:22]1041 (16) - 0000000000874669 [04:54:22]1040 (4) - 139579 [04:54:22]1012 (4) - 30.10.2024 22:54 [04:54:22]1206 (1) - 0 [04:54:22]OFD Sender: Remove packet 139579 [04:54:22]ProducePacketName [04:54:22]name=ofd_packets/00139579 [04:54:22]NVStorageDeleteData [04:54:23]Write to MH i2c: 01 00 00 DD 74 51 [04:54:23]Write i2c OK [04:54:23]MH_I2C_Read... [04:54:23]Read from MH i2c: 01 [04:54:23]MH_I2C_Read... [04:54:23]Read from MH i2c: 01 07 00 [04:54:23]MH_I2C_Read... [04:54:23]Read from MH i2c: 01 07 00 DD 74 00 00 00 00 00 F7 0C 5B [04:54:23]RasterBufferAndPrint [04:54:23]line [04:54:23]line [04:54:23]line [04:54:23]line [04:54:23]line [04:54:23]written 0, free lines is 3329 [04:54:23]MH_Cut [04:54:23]Write to MH i2c: D1 01 00 E4 74 01 2A [04:54:23]Write i2c OK [04:54:23]MH_I2C_Read... [04:54:23]Read from MH i2c: D1 [04:54:23]MH_I2C_Read... [04:54:23]Read from MH i2c: D1 01 00 [04:54:23]MH_I2C_Read... [04:54:23]Read from MH i2c: D1 01 00 E4 74 00 29 [04:54:23]Write to MH i2c: 01 00 00 E5 74 59 [04:54:23]Write i2c OK [04:54:23]MH_I2C_Read... [04:54:23]OFD Sender: No OFD packet to send [04:54:23]*** Cut start [04:54:23]*** Partial cut [04:54:23]*** CUTSNS_PIN = 1 [04:54:23]*** CUTSNS_PIN = 0 [04:54:24]*** Brake cut motor [04:54:24]Read from MH i2c: 01 [04:54:24]MH_I2C_Read... [04:54:24]*** Stop cut motor [04:54:24]*** Cut end [04:54:24]Read from MH i2c: 01 07 00 [04:54:24]MH_I2C_Read... [04:54:24]Read from MH i2c: 01 07 00 E5 74 00 00 00 00 00 FF 0F 6E [04:54:24]process_action close_receipt done [04:54:24]requested_data is exist [04:54:24]produce_requested_data [04:54:24]requested_item fm.sn is exist - process it [04:54:24]wFMCommunicate request_size=4 [04:54:24]MH_SAM_APDU [04:54:24]CAPDU: 80 11 00 00 [04:54:24]Write to MH i2c: E2 08 00 E6 74 80 11 00 00 00 00 00 00 D4 [04:54:24]Write i2c OK [04:54:24]MH_I2C_Read... [04:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:24]Read from MH i2c: E2 [04:54:24]MH_I2C_Read... [04:54:24]Read from MH i2c: E2 17 00 [04:54:24]MH_I2C_Read... [04:54:24]Read from MH i2c: E2 17 00 E6 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2F [04:54: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:54:24]wFMCommunicate OK [04:54:24]requested_item fd.num is exist - process it [04:54:24]SAM_PROTO_GetFieldsCounters [04:54:24]wFMCommunicate request_size=4 [04:54:24]MH_SAM_APDU [04:54:24]CAPDU: 80 13 00 00 [04:54:24]Write to MH i2c: E2 08 00 E7 74 80 13 00 00 00 00 00 00 D7 [04:54:24]Write i2c OK [04:54:24]MH_I2C_Read... [04:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:24]Read from MH i2c: E2 [04:54:24]MH_I2C_Read... [04:54:24]Read from MH i2c: E2 62 00 [04:54:24]MH_I2C_Read... [04:54:24]Read from MH i2c: E2 62 00 E7 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3B 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [04:54: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 3B 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:54:24]wFMCommunicate OK [04:54:24]SAM_PROTO_GetFieldsCounters done [04:54:24]requested_item shift.num is exist - process it [04:54:24]requested_item shift.opened is exist - process it [04:54:24]req_shift_opened [04:54:24]FM_GetShiftState [04:54:24]SAM_PROTO_GetShiftState [04:54:24]wFMCommunicate request_size=4 [04:54:24]MH_SAM_APDU [04:54:24]CAPDU: 80 13 01 00 [04:54:24]Write to MH i2c: E2 08 00 E8 74 80 13 01 00 00 00 00 00 D9 [04:54:24]Write i2c OK [04:54:24]MH_I2C_Read... [04:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:24]Read from MH i2c: E2 [04:54:24]MH_I2C_Read... [04:54:24]Read from MH i2c: E2 0E 00 [04:54:24]MH_I2C_Read... [04:54:24]Read from MH i2c: E2 0E 00 E8 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 02 [04:54:24]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [04:54:24]wFMCommunicate OK [04:54:24]SAM_PROTO_GetShiftState done [04:54:24]FM_GetShiftState done [04:54:24]req_shift_opened done [04:54:24]requested_item shift.open_date is exist - process it [04:54:24]req_shift_open_date [04:54:24]req_shift_open_date done [04:54:24]produce_requested_data done [04:54:24]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139579,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [04:54:24]process_action_free close_receipt [04:54:24]json_value_free [04:54:24]json_value_free done [04:54:24]process_json_proto returns [04:54:24]Send response to host [04:54:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139579,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [04:54:24]free response buf [04:54:24]execute_script done [04:54:24]execute_script returns [04:54:24]free content buf [04:54:24]Sock 8.Close socket [04:54:24]Sock 8.Thread stoped [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:36]accept exits with 10 [05:00:36]New connection [05:00:36]New thread 3067141476 created [05:00:36]Thread 3067284836 joined [05:00:36]Waiting for new connection... [05:00:36] Sock 10.Parse request [05:00:36]Sock 10.Check first char [05:00:36]Sock 10.First char is OK [05:00:36]request: POST /json_proto HTTP/1.0 [05:00:36]Method: POST [05:00:36]URL: /json_proto [05:00:36]Method is POST - this is cgi request [05:00:36]url: /json_proto [05:00:36]query_string will be loaded in cgi processing [05:00:36]execute_cgi json_proto POST (null) [05:00:36]execute_cgi path=json_proto method=POST [05:00:36]POST find Content-Length [05:00:36]Host: 172.17.50.196:8080 [05:00:36]Content-Length: 1658 [05:00:36]Content-Type: application/json [05:00:36] [05:00:36]POST finish read [05:00:36]Found Content-Length = 1658 [05:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335461", "tax_sys" : 0, "items" : [ { "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 2.000, "sum" : 130.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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 735.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:36]execute_script... [05:00:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335461", "tax_sys" : 0, "items" : [ { "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 2.000, "sum" : 130.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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 735.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:36]POST & json_proto [05:00:36]process_json_proto [05:00:36]json parsed OK: [05:00:36]protocol is kg_v1.0 [05:00:36]action value=close_receipt [05:00:36]process_action close_receipt [05:00:36]cmd_close_receipt [05:00:36]MH_GetDate [05:00:36]Write to MH i2c: F0 00 00 E9 74 4C [05:00:36]Write i2c OK [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: F0 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: F0 09 00 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: F0 09 00 E9 74 00 FD 0E 23 67 72 0D 1C 67 EC [05:00:36]GetLastDocTimeStamp 1730350469 [05:00:36]current date 1730350845 [05:00:36]FM_GetShiftState [05:00:36]SAM_PROTO_GetShiftState [05:00:36]wFMCommunicate request_size=4 [05:00:36]MH_SAM_APDU [05:00:36]CAPDU: 80 13 01 00 [05:00:36]Write to MH i2c: E2 08 00 EA 74 80 13 01 00 00 00 00 00 DB [05:00:36]Write i2c OK [05:00:36]MH_I2C_Read... [05:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:36]Read from MH i2c: E2 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: E2 0E 00 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: E2 0E 00 EA 74 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 04 [05:00:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:00:36]wFMCommunicate OK [05:00:36]SAM_PROTO_GetShiftState done [05:00:36]FM_GetShiftState done [05:00:36]opened in 1730332621 [05:00:36]opened+sec_in_day 1730419021 [05:00:36]quantity*price = 11000 [05:00:36]sum+1 = 11001 [05:00:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622210309396 Печенье "OREO" 38 гр 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209745486 Арахис BIG BOB Сыр 50 гр 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 735.00 НСП 1% : 6.50 НДС 12% : 78.04 Наличными: 735.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 57 31.10.2024 05:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139580 ФПД: 102105586205542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T050045&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139580&fm=102105586205542&tin=02508201610067®Number=0000000000091631&sum=73500 0 [05:00:37]StoreToDocumentArchive [05:00:37]shift 557 fd 139580 [05:00:37]save to /storage/0557/doc_00139580 [05:00:37]save last doc name /storage/0557/doc_00139580 to /storage/kkm_last_doc_name [05:00:37]save OK [05:00:37]Clear old archive folders... [05:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=714 [05:00:37]tlvbuf is 01382E40 [05:00:37]SAM_PROTO_ClearQueue [05:00:37]wFMCommunicate request_size=4 [05:00:37]MH_SAM_APDU [05:00:37]CAPDU: 80 09 00 00 [05:00:37]Write to MH i2c: E2 08 00 F7 74 80 09 00 00 00 00 00 00 DD [05:00:37]Write i2c OK [05:00:37]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 F7 74 00 90 00 DF [05:00:38]RAPDU: 90 00 [05:00:38]wFMCommunicate OK [05:00:38]SAM_PROTO_ClearQueue done [05:00:38]KKMCreateOFDPacket [05:00:38]OFDProtocolAddRootSTLVToBuf [05:00:38]FM_MakeSignedData [05:00:38]FM_MakeSignedData [05:00:38]SAM_PROTO_SignData [05:00:38]wFMCommunicate request_size=4 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 0D 01 02 [05:00:38]Write to MH i2c: E2 08 00 F8 74 80 0D 01 02 00 00 00 00 E5 [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 F8 74 00 90 00 E0 [05:00:38]RAPDU: 90 00 [05:00:38]wFMCommunicate OK [05:00:38]wFMCommunicate request_size=255 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 0D 02 02 FA 03 00 CA 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 [05:00:38]Write to MH i2c: E2 02 01 F9 74 80 0D 02 02 FA 00 03 00 CA 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 00 00 68 [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 F9 74 00 90 00 E1 [05:00:38]RAPDU: 90 00 [05:00:38]wFMCommunicate OK [05:00:38]wFMCommunicate request_size=255 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 0D 02 02 FA 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 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 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 [05:00:38]Write to MH i2c: E2 02 01 FA 74 80 0D 02 02 FA 00 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 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 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 00 00 34 [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 FA 74 00 90 00 E2 [05:00:38]RAPDU: 90 00 [05:00:38]wFMCommunicate OK [05:00:38]wFMCommunicate request_size=223 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 0D 02 02 DA 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 1E 00 00 00 00 07 04 06 00 1C 1F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FD 0E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3C 21 02 00 35 04 06 00 5C DD 4F 32 03 66 [05:00:38]Write to MH i2c: E2 E2 00 FB 74 80 0D 02 02 DA 00 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 1E 00 00 00 00 07 04 06 00 1C 1F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FD 0E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3C 21 02 00 35 04 06 00 5C DD 4F 32 03 66 00 00 AE [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]OFD Sender: No OFD packet to send [05:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 03 00 FB 74 00 90 00 E3 [05:00:38]RAPDU: 90 00 [05:00:38]wFMCommunicate OK [05:00:38]wFMCommunicate request_size=4 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 0D 03 02 [05:00:38]Write to MH i2c: E2 08 00 FC 74 80 0D 03 02 00 00 00 00 EB [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 0B 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 0B 00 FC 74 00 27 F5 09 1A BF 48 A8 05 90 00 DF [05:00:38]RAPDU: 27 F5 09 1A BF 48 A8 05 90 00 [05:00:38]wFMCommunicate OK [05:00:38]SAM_PROTO_SignData done [05:00:38]FM_MakeSignedData done [05:00:38]CreateOFDProtocolMessage [05:00:38]wFMCommunicate request_size=4 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 11 00 00 [05:00:38]Write to MH i2c: E2 08 00 FD 74 80 11 00 00 00 00 00 00 EB [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 17 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 17 00 FD 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 46 [05:00: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:00:38]wFMCommunicate OK [05:00:38]CreateOFDProtocolMessage done [05:00:38]OFDSenderStorePacket 139580 [05:00:38]StoreOFDPacket docnum=139580 [05:00: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 DE 02 00 00 F7 9A D6 02 BD 81 5A 03 01 00 03 00 CA 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 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 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 1E 00 00 00 00 07 04 06 00 1C 1F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FD 0E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3C 21 02 00 35 04 06 00 5C DD 4F 32 03 66 27 F5 09 1A BF 48 A8 05 [05:00:39]CheckFolder [05:00:39]dirname=/storage/ofd_packets [05:00:39]CheckFolder done [05:00:39]ProducePacketName [05:00:39]name=ofd_packets/00139580 [05:00:39]NVStorageSaveData ofd_packets/00139580 [05:00:39]File name is /storage/ofd_packets/00139580 [05:00:39]Write 764 bytes [05:00:39]NVStorageSaveData done [05:00:39]OFDSenderStorePacket done [05:00:39]KKMCreateOFDPacket done [05:00:39]NVStorageSaveData kkm_last_timestamp [05:00:39]File name is /storage/kkm_last_timestamp [05:00:39]Write 4 bytes [05:00:39]NVStorageSaveData done [05:00:39]ExternCall_PrintAddStr [05:00:39]wPrintStart [05:00:39]Write to MH i2c: 01 00 00 FE 74 72 [05:00:39]Write i2c OK [05:00:39]MH_I2C_Read... [05:00:39]Read from MH i2c: 01 [05:00:39]MH_I2C_Read... [05:00:39]Read from MH i2c: 01 07 00 [05:00:39]MH_I2C_Read... [05:00:39]Read from MH i2c: 01 07 00 FE 74 00 00 00 00 00 FF 0F 87 [05:00:39]RasterBufferAndPrint [05:00:39]line Счет N : (3)335461 [05:00:39]line ИНН: 02508201610067 [05:00:39]line Контрольно-Кассовый Чек [05:00:39]line ПРОДАЖА [05:00:39]line Товар: 4870112002782 [05:00:39]line Печенье Ulker Biskrem какао-крем 180г [05:00:39]line 1.000 * 110.00 [05:00:39]line = 110.00 [05:00:39]line НДС 12% НСП 1% [05:00:39]line > о реализуемом товаре [05:00:39]line Товар: 2000036230011 [05:00:39]line Кофе Латте XL(GABB TRADE) [05:00:39]line 2.000 * 130.00 [05:00:39]line = 260.00 [05:00:39]line НДС 12% НСП 1% [05:00:39]line > о реализуемом товаре [05:00:39]line Товар: 7622210309396 [05:00:39]line Печенье "OREO" 38 гр [05:00:39]line 2.000 * 65.00 [05:00:39]line = 130.00 [05:00:39]line НДС 12% НСП 1% [05:00:39]line > о реализуемом товаре [05:00:39]line Товар: 2000036240010 [05:00:39]line Кофе Латте (GABB TRADE) [05:00:39]line 1.000 * 115.00 [05:00:39]line = 115.00 [05:00:39]line НДС 12% НСП 1% [05:00:39]line > о реализуемом товаре [05:00:39]line Товар: 4870209745486 [05:00:39]line Арахис BIG BOB Сыр 50 гр [05:00:39]line 2.000 * 60.00 [05:00:39]line = 120.00 [05:00:39]line НДС 12% НСП 1% [05:00:39]line > о реализуемом товаре [05:00:39]line ИТОГО: 735.00 [05:00:39]line НСП 1% : 6.50 [05:00:39]line НДС 12% : 78.04 [05:00:39]line Наличными: 735.00 [05:00:39]line Безнал.: 0.00 [05:00:39]line Место: АЗС № 101 "Партнер Нефть" [05:00:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:00:39]line СНО: Общий режим [05:00:39]line Чек 57 31.10.2024 05:00 [05:00:39]line Смена: 557 ФФД: 1.0 [05:00:39]line ЗНМ: 0300000081 [05:00:39]line РНМ: 0000000000091631 [05:00:39]line Версия ККМ: 001 [05:00:39]line ФМ: 0000000000874669 [05:00:39]line ФД: 139580 [05:00:39]line ФПД: 102105586205542 [05:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T050045&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139580&fm=102105586205542&tin=02508201610067®Number=0000000000091631&sum=73500 [05:00:39]line 0 [05:00:39]written 0, free lines is 4095 [05:00:39]OFD Sender: Processing packet 139580 [packets to send 34, broken 33] [05:00:39]ProducePacketName [05:00:39]name=ofd_packets/00139580 [05:00:39]OFD Sender: To server: pG, [05:00:39]CommunicateWithHost lk.salyk.kg:30040 [05:00:39]ConnectInit lk.salyk.kg [05:00:39]Connected sock=11 [05:00: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 DE 02 00 00 F7 9A D6 02 BD 81 5A 03 01 00 03 00 CA 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 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 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 1E 00 00 00 00 07 04 06 00 1C 1F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FD 0E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3C 21 02 00 35 04 06 00 5C DD 4F 32 03 66 27 F5 09 1A BF 48 A8 05 [05:00: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 D0 74 47 00 DE 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 3C 21 02 00 F4 03 04 00 AC BA 22 67 B6 04 01 00 00 22 1E E4 51 15 02 13 6F [05:00:39]CommunicateWithHost err = 0 [05:00:39]CheckOFDResponse [05:00:39]1017 (14) - 77093643461234 [05:00:39]1041 (16) - 0000000000874669 [05:00:39]1040 (4) - 139580 [05:00:39]1012 (4) - 30.10.2024 23:01 [05:00:39]1206 (1) - 0 [05:00:39]OFD Sender: Remove packet 139580 [05:00:39]ProducePacketName [05:00:39]name=ofd_packets/00139580 [05:00:39]NVStorageDeleteData [05:00:40]Write to MH i2c: 01 00 00 3F 75 B4 [05:00:40]Write i2c OK [05:00:40]MH_I2C_Read... [05:00:40]Read from MH i2c: 01 [05:00:40]MH_I2C_Read... [05:00:40]Read from MH i2c: 01 07 00 [05:00:40]MH_I2C_Read... [05:00:40]Read from MH i2c: 01 07 00 3F 75 00 00 00 00 00 E0 0B A6 [05:00:40]RasterBufferAndPrint [05:00:40]line [05:00:40]line [05:00:40]line [05:00:40]line [05:00:40]line [05:00:40]written 0, free lines is 3049 [05:00:40]MH_Cut [05:00:40]Write to MH i2c: D1 01 00 46 75 01 8D [05:00:40]Write i2c OK [05:00:40]MH_I2C_Read... [05:00:40]Read from MH i2c: D1 [05:00:40]MH_I2C_Read... [05:00:40]Read from MH i2c: D1 01 00 [05:00:40]MH_I2C_Read... [05:00:40]Read from MH i2c: D1 01 00 46 75 00 8C [05:00:40]Write to MH i2c: 01 00 00 47 75 BC [05:00:40]Write i2c OK [05:00:40]MH_I2C_Read... [05:00:40]OFD Sender: No OFD packet to send [05:00:40]*** Cut start [05:00:40]*** Partial cut [05:00:40]*** CUTSNS_PIN = 1 [05:00:40]*** CUTSNS_PIN = 0 [05:00:41]*** Brake cut motor [05:00:41]Read from MH i2c: 01 [05:00:41]MH_I2C_Read... [05:00:41]*** Stop cut motor [05:00:41]*** Cut end [05:00:41]Read from MH i2c: 01 07 00 [05:00:41]MH_I2C_Read... [05:00:41]Read from MH i2c: 01 07 00 47 75 00 00 00 00 00 FF 0F D1 [05:00:41]process_action close_receipt done [05:00:41]requested_data is exist [05:00:41]produce_requested_data [05:00:41]requested_item fm.sn is exist - process it [05:00:41]wFMCommunicate request_size=4 [05:00:41]MH_SAM_APDU [05:00:41]CAPDU: 80 11 00 00 [05:00:41]Write to MH i2c: E2 08 00 48 75 80 11 00 00 00 00 00 00 37 [05:00:41]Write i2c OK [05:00:41]MH_I2C_Read... [05:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:41]Read from MH i2c: E2 [05:00:41]MH_I2C_Read... [05:00:41]Read from MH i2c: E2 17 00 [05:00:41]MH_I2C_Read... [05:00:41]Read from MH i2c: E2 17 00 48 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 92 [05:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:00:41]wFMCommunicate OK [05:00:41]requested_item fd.num is exist - process it [05:00:41]SAM_PROTO_GetFieldsCounters [05:00:41]wFMCommunicate request_size=4 [05:00:41]MH_SAM_APDU [05:00:41]CAPDU: 80 13 00 00 [05:00:41]Write to MH i2c: E2 08 00 49 75 80 13 00 00 00 00 00 00 3A [05:00:41]Write i2c OK [05:00:41]MH_I2C_Read... [05:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:41]Read from MH i2c: E2 [05:00:41]MH_I2C_Read... [05:00:41]Read from MH i2c: E2 62 00 [05:00:41]MH_I2C_Read... [05:00:41]Read from MH i2c: E2 62 00 49 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3C 21 02 00 0E 04 04 00 2D 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 97 [05:00: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 3C 21 02 00 0E 04 04 00 2D 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 [05:00:41]wFMCommunicate OK [05:00:41]SAM_PROTO_GetFieldsCounters done [05:00:41]requested_item shift.num is exist - process it [05:00:41]requested_item shift.opened is exist - process it [05:00:41]req_shift_opened [05:00:41]FM_GetShiftState [05:00:41]SAM_PROTO_GetShiftState [05:00:41]wFMCommunicate request_size=4 [05:00:41]MH_SAM_APDU [05:00:41]CAPDU: 80 13 01 00 [05:00:41]Write to MH i2c: E2 08 00 4A 75 80 13 01 00 00 00 00 00 3C [05:00:41]Write i2c OK [05:00:41]MH_I2C_Read... [05:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:41]Read from MH i2c: E2 [05:00:41]MH_I2C_Read... [05:00:41]Read from MH i2c: E2 0E 00 [05:00:41]MH_I2C_Read... [05:00:41]Read from MH i2c: E2 0E 00 4A 75 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 65 [05:00:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:00:41]wFMCommunicate OK [05:00:41]SAM_PROTO_GetShiftState done [05:00:41]FM_GetShiftState done [05:00:41]req_shift_opened done [05:00:41]requested_item shift.open_date is exist - process it [05:00:41]req_shift_open_date [05:00:41]req_shift_open_date done [05:00:41]produce_requested_data done [05:00:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139580,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:00:41]process_action_free close_receipt [05:00:41]json_value_free [05:00:41]json_value_free done [05:00:41]process_json_proto returns [05:00:41]Send response to host [05:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139580,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:00:41]free response buf [05:00:41]execute_script done [05:00:41]execute_script returns [05:00:41]free content buf [05:00:41]Sock 10.Close socket [05:00:41]Sock 10.Thread stoped [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:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:07]accept exits with 8 [05:10:07]New connection [05:10:07]New thread 3067284836 created [05:10:07]Thread 3067141476 joined [05:10:07]Waiting for new connection... [05:10:07] Sock 8.Parse request [05:10:07]Sock 8.Check first char [05:10:07]Sock 8.First char is OK [05:10:07]request: POST /json_proto HTTP/1.0 [05:10:07]Method: POST [05:10:07]URL: /json_proto [05:10:07]Method is POST - this is cgi request [05:10:07]url: /json_proto [05:10:07]query_string will be loaded in cgi processing [05:10:07]execute_cgi json_proto POST (null) [05:10:07]execute_cgi path=json_proto method=POST [05:10:07]POST find Content-Length [05:10:07]Host: 172.17.50.196:8080 [05:10:07]Content-Length: 1100 [05:10:07]Content-Type: application/json [05:10:07] [05:10:07]POST finish read [05:10:07]Found Content-Length = 1100 [05:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335462", "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": "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:07]execute_script... [05:10: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)335462", "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": "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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:07]POST & json_proto [05:10:07]process_json_proto [05:10:07]json parsed OK: [05:10:07]protocol is kg_v1.0 [05:10:07]action value=close_receipt [05:10:07]process_action close_receipt [05:10:07]cmd_close_receipt [05:10:07]MH_GetDate [05:10:07]Write to MH i2c: F0 00 00 4B 75 AF [05:10:07]Write i2c OK [05:10:07]MH_I2C_Read... [05:10:07]Read from MH i2c: F0 [05:10:07]MH_I2C_Read... [05:10:07]Read from MH i2c: F0 09 00 [05:10:07]MH_I2C_Read... [05:10:07]Read from MH i2c: F0 09 00 4B 75 00 38 11 23 67 72 0D 1C 67 8D [05:10:07]GetLastDocTimeStamp 1730350845 [05:10:07]current date 1730351416 [05:10:07]FM_GetShiftState [05:10:07]SAM_PROTO_GetShiftState [05:10:07]wFMCommunicate request_size=4 [05:10:07]MH_SAM_APDU [05:10:07]CAPDU: 80 13 01 00 [05:10:07]Write to MH i2c: E2 08 00 4C 75 80 13 01 00 00 00 00 00 3E [05:10:07]Write i2c OK [05:10:07]MH_I2C_Read... [05:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:10:07]Read from MH i2c: E2 [05:10:07]MH_I2C_Read... [05:10:07]Read from MH i2c: E2 0E 00 [05:10:07]MH_I2C_Read... [05:10:07]Read from MH i2c: E2 0E 00 4C 75 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 67 [05:10:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:10:07]wFMCommunicate OK [05:10:07]SAM_PROTO_GetShiftState done [05:10:07]FM_GetShiftState done [05:10:07]opened in 1730332621 [05:10:07]opened+sec_in_day 1730419021 [05:10:07]quantity*price = 6000 [05:10:07]sum+1 = 6001 [05:10:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 58 31.10.2024 05:10 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139581 ФПД: 255805237331268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T051016&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139581&fm=255805237331268&tin=02508201610067®Number=0000000000091631&sum=19000 0 [05:10:08]StoreToDocumentArchive [05:10:08]shift 557 fd 139581 [05:10:08]save to /storage/0557/doc_00139581 [05:10:08]save last doc name /storage/0557/doc_00139581 to /storage/kkm_last_doc_name [05:10:08]save OK [05:10:08]Clear old archive folders... [05:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=409 [05:10:08]tlvbuf is 012AC1F0 [05:10:08]SAM_PROTO_ClearQueue [05:10:08]wFMCommunicate request_size=4 [05:10:08]MH_SAM_APDU [05:10:08]CAPDU: 80 09 00 00 [05:10:08]Write to MH i2c: E2 08 00 59 75 80 09 00 00 00 00 00 00 40 [05:10:08]Write i2c OK [05:10:08]MH_I2C_Read... [05:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:10:09]Read from MH i2c: E2 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 59 75 00 90 00 42 [05:10:09]RAPDU: 90 00 [05:10:09]wFMCommunicate OK [05:10:09]SAM_PROTO_ClearQueue done [05:10:09]KKMCreateOFDPacket [05:10:09]OFDProtocolAddRootSTLVToBuf [05:10:09]FM_MakeSignedData [05:10:09]FM_MakeSignedData [05:10:09]SAM_PROTO_SignData [05:10:09]wFMCommunicate request_size=4 [05:10:09]MH_SAM_APDU [05:10:09]CAPDU: 80 0D 01 02 [05:10:09]Write to MH i2c: E2 08 00 5A 75 80 0D 01 02 00 00 00 00 48 [05:10:09]Write i2c OK [05:10:09]MH_I2C_Read... [05:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:10:09]Read from MH i2c: E2 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 5A 75 00 90 00 43 [05:10:09]RAPDU: 90 00 [05:10:09]wFMCommunicate OK [05:10:09]wFMCommunicate request_size=255 [05:10:09]MH_SAM_APDU [05:10:09]CAPDU: 80 0D 02 02 FA 03 00 99 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 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 [05:10:09]Write to MH i2c: E2 02 01 5B 75 80 0D 02 02 FA 00 03 00 99 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 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 00 00 E3 [05:10:09]Write i2c OK [05:10:09]MH_I2C_Read... [05:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:10:09]Read from MH i2c: E2 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 5B 75 00 90 00 44 [05:10:09]RAPDU: 90 00 [05:10:09]wFMCommunicate OK [05:10:09]wFMCommunicate request_size=168 [05:10:09]MH_SAM_APDU [05:10:09]CAPDU: 80 0D 02 02 A3 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 11 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 21 02 00 35 04 06 00 E8 A7 4C 4D 85 44 [05:10:09]Write to MH i2c: E2 AB 00 5C 75 80 0D 02 02 A3 00 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 11 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 21 02 00 35 04 06 00 E8 A7 4C 4D 85 44 00 00 F8 [05:10:09]Write i2c OK [05:10:09]MH_I2C_Read... [05:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:10:09]Read from MH i2c: E2 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 03 00 5C 75 00 90 00 45 [05:10:09]RAPDU: 90 00 [05:10:09]wFMCommunicate OK [05:10:09]wFMCommunicate request_size=4 [05:10:09]MH_SAM_APDU [05:10:09]CAPDU: 80 0D 03 02 [05:10:09]Write to MH i2c: E2 08 00 5D 75 80 0D 03 02 00 00 00 00 4D [05:10:09]Write i2c OK [05:10:09]MH_I2C_Read... [05:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:10:09]Read from MH i2c: E2 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 0B 00 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 0B 00 5D 75 00 2A 5C C4 FD 94 85 58 0C 90 00 12 [05:10:09]RAPDU: 2A 5C C4 FD 94 85 58 0C 90 00 [05:10:09]wFMCommunicate OK [05:10:09]SAM_PROTO_SignData done [05:10:09]FM_MakeSignedData done [05:10:09]CreateOFDProtocolMessage [05:10:09]wFMCommunicate request_size=4 [05:10:09]MH_SAM_APDU [05:10:09]CAPDU: 80 11 00 00 [05:10:09]Write to MH i2c: E2 08 00 5E 75 80 11 00 00 00 00 00 00 4D [05:10:09]Write i2c OK [05:10:09]MH_I2C_Read... [05:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:10:09]Read from MH i2c: E2 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 17 00 [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: E2 17 00 5E 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A8 [05:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:10:09]wFMCommunicate OK [05:10:09]CreateOFDProtocolMessage done [05:10:09]OFDSenderStorePacket 139581 [05:10:09]StoreOFDPacket docnum=139581 [05:10: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 AD 01 00 00 1F 3B A5 01 EC EE 5A 03 01 00 03 00 99 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 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 11 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 21 02 00 35 04 06 00 E8 A7 4C 4D 85 44 2A 5C C4 FD 94 85 58 0C [05:10:09]CheckFolder [05:10:09]dirname=/storage/ofd_packets [05:10:09]CheckFolder done [05:10:09]ProducePacketName [05:10:09]name=ofd_packets/00139581 [05:10:09]NVStorageSaveData ofd_packets/00139581 [05:10:09]File name is /storage/ofd_packets/00139581 [05:10:09]Write 459 bytes [05:10:09]NVStorageSaveData done [05:10:09]OFDSenderStorePacket done [05:10:09]KKMCreateOFDPacket done [05:10:09]NVStorageSaveData kkm_last_timestamp [05:10:09]File name is /storage/kkm_last_timestamp [05:10:09]Write 4 bytes [05:10:09]NVStorageSaveData done [05:10:09]ExternCall_PrintAddStr [05:10:09]wPrintStart [05:10:09]Write to MH i2c: 01 00 00 5F 75 D4 [05:10:09]OFD Sender: Processing packet 139581 [packets to send 34, broken 33] [05:10:09]ProducePacketName [05:10:09]name=ofd_packets/00139581 [05:10:09]OFD Sender: To server: pG, [05:10:09]CommunicateWithHost lk.salyk.kg:30040 [05:10:09]ConnectInit lk.salyk.kg [05:10:09]Write i2c OK [05:10:09]MH_I2C_Read... [05:10:09]Read from MH i2c: 01 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 5F 75 00 00 00 00 00 FF 0F E9 [05:10:10]RasterBufferAndPrint [05:10:10]line Счет N : (3)335462 [05:10:10]line ИНН: 02508201610067 [05:10:10]line Контрольно-Кассовый Чек [05:10:10]line ПРОДАЖА [05:10:10]line Товар: 4700000160792 [05:10:10]line Снек Курут классический (круглый) [05:10:10]line 1.000 * 60.00 [05:10:10]line = 60.00 [05:10:10]line НДС 12% НСП 1% [05:10:10]line > о реализуемом товаре [05:10:10]line Товар: 2000036230011 [05:10:10]line Кофе Латте XL(GABB TRADE) [05:10:10]line 1.000 * 130.00 [05:10:10]line = 130.00 [05:10:10]line НДС 12% НСП 1% [05:10:10]line > о реализуемом товаре [05:10:10]line ИТОГО: 190.00 [05:10:10]line НСП 1% : 1.68 [05:10:10]line НДС 12% : 20.17 [05:10:10]line Наличными: 0.00 [05:10:10]line Безнал.: 190.00 [05:10:10]line Место: АЗС № 101 "Партнер Нефть" [05:10:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:10:10]line СНО: Общий режим [05:10:10]line Чек 58 31.10.2024 05:10 [05:10:10]line Смена: 557 ФФД: 1.0 [05:10:10]line ЗНМ: 0300000081 [05:10:10]line РНМ: 0000000000091631 [05:10:10]line Версия ККМ: 001 [05:10:10]line Платежная система: Mbank [05:10:10]line ФМ: 0000000000874669 [05:10:10]line ФД: 139581 [05:10:10]line ФПД: 255805237331268 [05:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T051016&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139581&fm=255805237331268&tin=02508201610067®Number=0000000000091631&sum=19000 [05:10:10]line 0 [05:10:10]written 0, free lines is 4095 [05:10:10]Connected sock=10 [05:10: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 AD 01 00 00 1F 3B A5 01 EC EE 5A 03 01 00 03 00 99 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 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 11 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 21 02 00 35 04 06 00 E8 A7 4C 4D 85 44 2A 5C C4 FD 94 85 58 0C [05:10: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 A1 1D 47 00 4D 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 21 02 00 F4 03 04 00 E7 BC 22 67 B6 04 01 00 00 E2 B6 0F 4A B1 27 BE B3 [05:10:10]CommunicateWithHost err = 0 [05:10:10]CheckOFDResponse [05:10:10]1017 (14) - 77093643461234 [05:10:10]1041 (16) - 0000000000874669 [05:10:10]1040 (4) - 139581 [05:10:10]1012 (4) - 30.10.2024 23:10 [05:10:10]1206 (1) - 0 [05:10:10]OFD Sender: Remove packet 139581 [05:10:10]ProducePacketName [05:10:10]name=ofd_packets/00139581 [05:10:10]NVStorageDeleteData [05:10:10]Write to MH i2c: 01 00 00 8F 75 04 [05:10:10]Write i2c OK [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 8F 75 00 00 00 00 00 BE 0C D5 [05:10:10]RasterBufferAndPrint [05:10:10]line [05:10:10]line [05:10:10]line [05:10:10]line [05:10:10]line [05:10:10]written 0, free lines is 3270 [05:10:10]MH_Cut [05:10:10]Write to MH i2c: D1 01 00 96 75 01 DD [05:10:10]Write i2c OK [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: D1 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: D1 01 00 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: D1 01 00 96 75 00 DC [05:10:10]Write to MH i2c: 01 00 00 97 75 0C [05:10:10]Write i2c OK [05:10:10]MH_I2C_Read... [05:10:10]OFD Sender: No OFD packet to send [05:10:11]*** Cut start [05:10:11]*** Partial cut [05:10:11]*** CUTSNS_PIN = 1 [05:10:11]*** CUTSNS_PIN = 0 [05:10:11]*** Brake cut motor [05:10:11]Read from MH i2c: 01 [05:10:11]MH_I2C_Read... [05:10:11]*** Stop cut motor [05:10:11]*** Cut end [05:10:11]Read from MH i2c: 01 07 00 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: 01 07 00 97 75 00 00 00 00 00 FF 0F 21 [05:10:11]process_action close_receipt done [05:10:11]requested_data is exist [05:10:11]produce_requested_data [05:10:11]requested_item fm.sn is exist - process it [05:10:11]wFMCommunicate request_size=4 [05:10:11]MH_SAM_APDU [05:10:11]CAPDU: 80 11 00 00 [05:10:11]Write to MH i2c: E2 08 00 98 75 80 11 00 00 00 00 00 00 87 [05:10:11]Write i2c OK [05:10:11]MH_I2C_Read... [05:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:10:11]Read from MH i2c: E2 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 17 00 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 17 00 98 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E2 [05:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:10:11]wFMCommunicate OK [05:10:11]requested_item fd.num is exist - process it [05:10:11]SAM_PROTO_GetFieldsCounters [05:10:11]wFMCommunicate request_size=4 [05:10:11]MH_SAM_APDU [05:10:11]CAPDU: 80 13 00 00 [05:10:11]Write to MH i2c: E2 08 00 99 75 80 13 00 00 00 00 00 00 8A [05:10:11]Write i2c OK [05:10:11]MH_I2C_Read... [05:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:10:12]Read from MH i2c: E2 [05:10:12]MH_I2C_Read... [05:10:12]Read from MH i2c: E2 62 00 [05:10:12]MH_I2C_Read... [05:10:12]Read from MH i2c: E2 62 00 99 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3D 21 02 00 0E 04 04 00 2D 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 EB [05:10: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 3D 21 02 00 0E 04 04 00 2D 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 [05:10:12]wFMCommunicate OK [05:10:12]SAM_PROTO_GetFieldsCounters done [05:10:12]requested_item shift.num is exist - process it [05:10:12]requested_item shift.opened is exist - process it [05:10:12]req_shift_opened [05:10:12]FM_GetShiftState [05:10:12]SAM_PROTO_GetShiftState [05:10:12]wFMCommunicate request_size=4 [05:10:12]MH_SAM_APDU [05:10:12]CAPDU: 80 13 01 00 [05:10:12]Write to MH i2c: E2 08 00 9A 75 80 13 01 00 00 00 00 00 8C [05:10:12]Write i2c OK [05:10:12]MH_I2C_Read... [05:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:10:12]Read from MH i2c: E2 [05:10:12]MH_I2C_Read... [05:10:12]Read from MH i2c: E2 0E 00 [05:10:12]MH_I2C_Read... [05:10:12]Read from MH i2c: E2 0E 00 9A 75 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B5 [05:10:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:10:12]wFMCommunicate OK [05:10:12]SAM_PROTO_GetShiftState done [05:10:12]FM_GetShiftState done [05:10:12]req_shift_opened done [05:10:12]requested_item shift.open_date is exist - process it [05:10:12]req_shift_open_date [05:10:12]req_shift_open_date done [05:10:12]produce_requested_data done [05:10:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139581,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:10:12]process_action_free close_receipt [05:10:12]json_value_free [05:10:12]json_value_free done [05:10:12]process_json_proto returns [05:10:12]Send response to host [05:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139581,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:10:12]free response buf [05:10:12]execute_script done [05:10:12]execute_script returns [05:10:12]free content buf [05:10:12]Sock 8.Close socket [05:10:12]Sock 8.Thread stoped [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14: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:09]accept exits with 9 [05:16:09]New connection [05:16:09]New thread 3067141476 created [05:16:09]Thread 3067284836 joined [05:16:09]Waiting for new connection... [05:16:09] Sock 9.Parse request [05:16:09]Sock 9.Check first char [05:16:09]Sock 9.First char is OK [05:16:09]request: POST /json_proto HTTP/1.0 [05:16:09]Method: POST [05:16:09]URL: /json_proto [05:16:09]Method is POST - this is cgi request [05:16:09]url: /json_proto [05:16:09]query_string will be loaded in cgi processing [05:16:09]execute_cgi json_proto POST (null) [05:16:09]execute_cgi path=json_proto method=POST [05:16:09]POST find Content-Length [05:16:09]Host: 172.17.50.196:8080 [05:16:09]Content-Length: 614 [05:16:09]Content-Type: application/json [05:16:09] [05:16:09]POST finish read [05:16:09]Found Content-Length = 614 [05:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335463", "tax_sys" : 0, "items" : [ { "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" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:09]execute_script... [05:16:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335463", "tax_sys" : 0, "items" : [ { "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" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:09]POST & json_proto [05:16:09]process_json_proto [05:16:09]json parsed OK: [05:16:09]protocol is kg_v1.0 [05:16:09]action value=close_receipt [05:16:09]process_action close_receipt [05:16:09]cmd_close_receipt [05:16:09]MH_GetDate [05:16:09]Write to MH i2c: F0 00 00 9B 75 FF [05:16:09]Write i2c OK [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: F0 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: F0 09 00 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: F0 09 00 9B 75 00 A2 12 23 67 72 0D 1C 67 48 [05:16:09]GetLastDocTimeStamp 1730351416 [05:16:09]current date 1730351778 [05:16:09]FM_GetShiftState [05:16:09]SAM_PROTO_GetShiftState [05:16:09]wFMCommunicate request_size=4 [05:16:09]MH_SAM_APDU [05:16:09]CAPDU: 80 13 01 00 [05:16:09]Write to MH i2c: E2 08 00 9C 75 80 13 01 00 00 00 00 00 8E [05:16:09]Write i2c OK [05:16:09]MH_I2C_Read... [05:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:09]Read from MH i2c: E2 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 0E 00 [05:16:09]MH_I2C_Read... [05:16:09]Read from MH i2c: E2 0E 00 9C 75 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B7 [05:16:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:16:09]wFMCommunicate OK [05:16:09]SAM_PROTO_GetShiftState done [05:16:09]FM_GetShiftState done [05:16:09]opened in 1730332621 [05:16:09]opened+sec_in_day 1730419021 [05:16:09]quantity*price = 15400 [05:16:09]sum+1 = 15401 [05:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 59 31.10.2024 05:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139582 ФПД: 22646410009466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T051618&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139582&fm=22646410009466&tin=02508201610067®Number=0000000000091631&sum=15400 0 [05:16:10]StoreToDocumentArchive [05:16:10]shift 557 fd 139582 [05:16:10]save to /storage/0557/doc_00139582 [05:16:10]save last doc name /storage/0557/doc_00139582 to /storage/kkm_last_doc_name [05:16:10]save OK [05:16:10]Clear old archive folders... [05:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=266 [05:16:10]tlvbuf is 013C86B0 [05:16:10]SAM_PROTO_ClearQueue [05:16:10]wFMCommunicate request_size=4 [05:16:10]MH_SAM_APDU [05:16:10]CAPDU: 80 09 00 00 [05:16:10]Write to MH i2c: E2 08 00 A9 75 80 09 00 00 00 00 00 00 90 [05:16:10]Write i2c OK [05:16:10]MH_I2C_Read... [05:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:16:10]Read from MH i2c: E2 [05:16:10]MH_I2C_Read... [05:16:10]Read from MH i2c: E2 03 00 [05:16:10]MH_I2C_Read... [05:16:10]Read from MH i2c: E2 03 00 A9 75 00 90 00 92 [05:16:10]RAPDU: 90 00 [05:16:10]wFMCommunicate OK [05:16:10]SAM_PROTO_ClearQueue done [05:16:10]KKMCreateOFDPacket [05:16:10]OFDProtocolAddRootSTLVToBuf [05:16:10]FM_MakeSignedData [05:16:10]FM_MakeSignedData [05:16:10]SAM_PROTO_SignData [05:16:10]wFMCommunicate request_size=4 [05:16:10]MH_SAM_APDU [05:16:10]CAPDU: 80 0D 01 02 [05:16:10]Write to MH i2c: E2 08 00 AA 75 80 0D 01 02 00 00 00 00 98 [05:16:10]Write i2c OK [05:16:10]MH_I2C_Read... [05:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:16:10]Read from MH i2c: E2 [05:16:10]MH_I2C_Read... [05:16:10]Read from MH i2c: E2 03 00 [05:16:10]MH_I2C_Read... [05:16:10]Read from MH i2c: E2 03 00 AA 75 00 90 00 93 [05:16:10]RAPDU: 90 00 [05:16:10]wFMCommunicate OK [05:16:10]wFMCommunicate request_size=255 [05:16:10]MH_SAM_APDU [05:16:10]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [05:16:10]Write to MH i2c: E2 02 01 AB 75 80 0D 02 02 FA 00 03 00 0A 01 1E 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 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 78 [05:16:10]Write i2c OK [05:16:10]MH_I2C_Read... [05:16:11]OFD Sender: No OFD packet to send [05:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:11]Read from MH i2c: E2 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 03 00 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 03 00 AB 75 00 90 00 94 [05:16:11]RAPDU: 90 00 [05:16:11]wFMCommunicate OK [05:16:11]wFMCommunicate request_size=25 [05:16:11]MH_SAM_APDU [05:16:11]CAPDU: 80 0D 02 02 14 36 39 10 04 04 00 3E 21 02 00 35 04 06 00 14 98 C7 39 5B 7A [05:16:11]Write to MH i2c: E2 1C 00 AC 75 80 0D 02 02 14 00 36 39 10 04 04 00 3E 21 02 00 35 04 06 00 14 98 C7 39 5B 7A 00 00 6B [05:16:11]Write i2c OK [05:16:11]MH_I2C_Read... [05:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:11]Read from MH i2c: E2 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 03 00 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 03 00 AC 75 00 90 00 95 [05:16:11]RAPDU: 90 00 [05:16:11]wFMCommunicate OK [05:16:11]wFMCommunicate request_size=4 [05:16:11]MH_SAM_APDU [05:16:11]CAPDU: 80 0D 03 02 [05:16:11]Write to MH i2c: E2 08 00 AD 75 80 0D 03 02 00 00 00 00 9D [05:16:11]Write i2c OK [05:16:11]MH_I2C_Read... [05:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:16:11]Read from MH i2c: E2 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 0B 00 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 0B 00 AD 75 00 4C BA D3 CD FF D6 37 7D 90 00 CD [05:16:11]RAPDU: 4C BA D3 CD FF D6 37 7D 90 00 [05:16:11]wFMCommunicate OK [05:16:11]SAM_PROTO_SignData done [05:16:11]FM_MakeSignedData done [05:16:11]CreateOFDProtocolMessage [05:16:11]wFMCommunicate request_size=4 [05:16:11]MH_SAM_APDU [05:16:11]CAPDU: 80 11 00 00 [05:16:11]Write to MH i2c: E2 08 00 AE 75 80 11 00 00 00 00 00 00 9D [05:16:11]Write i2c OK [05:16:11]MH_I2C_Read... [05:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:11]Read from MH i2c: E2 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 17 00 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: E2 17 00 AE 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F8 [05:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:16:11]wFMCommunicate OK [05:16:11]CreateOFDProtocolMessage done [05:16:11]OFDSenderStorePacket 139582 [05:16:11]StoreOFDPacket docnum=139582 [05:16: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 1E 01 00 00 C7 4D 16 01 DA E3 5A 03 01 00 03 00 0A 01 1E 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3E 21 02 00 35 04 06 00 14 98 C7 39 5B 7A 4C BA D3 CD FF D6 37 7D [05:16:11]CheckFolder [05:16:11]dirname=/storage/ofd_packets [05:16:11]CheckFolder done [05:16:11]ProducePacketName [05:16:11]name=ofd_packets/00139582 [05:16:11]NVStorageSaveData ofd_packets/00139582 [05:16:11]File name is /storage/ofd_packets/00139582 [05:16:11]Write 316 bytes [05:16:11]NVStorageSaveData done [05:16:11]OFDSenderStorePacket done [05:16:11]KKMCreateOFDPacket done [05:16:11]NVStorageSaveData kkm_last_timestamp [05:16:11]File name is /storage/kkm_last_timestamp [05:16:11]Write 4 bytes [05:16:11]NVStorageSaveData done [05:16:11]ExternCall_PrintAddStr [05:16:11]wPrintStart [05:16:11]Write to MH i2c: 01 00 00 AF 75 24 [05:16:11]Write i2c OK [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: 01 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: 01 07 00 [05:16:11]MH_I2C_Read... [05:16:11]Read from MH i2c: 01 07 00 AF 75 00 00 00 00 00 FF 0F 39 [05:16:11]RasterBufferAndPrint [05:16:11]line Счет N : (3)335463 [05:16:11]line ИНН: 02508201610067 [05:16:11]line Контрольно-Кассовый Чек [05:16:11]line ПРОДАЖА [05:16:11]line Товар: 48744317 [05:16:11]line Сигареты Camel Yellow [05:16:11]line 1.000 * 154.00 [05:16:11]line = 154.00 [05:16:11]line НДС 12% НСП 1% [05:16:11]line > о реализуемом товаре [05:16:11]line ИТОГО: 154.00 [05:16:11]line НСП 1% : 1.36 [05:16:11]line НДС 12% : 16.35 [05:16:11]line Наличными: 154.00 [05:16:11]line Безнал.: 0.00 [05:16:11]line Место: АЗС № 101 "Партнер Нефть" [05:16:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:16:11]line СНО: Общий режим [05:16:11]line Чек 59 31.10.2024 05:16 [05:16:11]line Смена: 557 ФФД: 1.0 [05:16:11]line ЗНМ: 0300000081 [05:16:11]line РНМ: 0000000000091631 [05:16:11]line Версия ККМ: 001 [05:16:11]line ФМ: 0000000000874669 [05:16:11]line ФД: 139582 [05:16:11]line ФПД: 22646410009466 [05:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T051618&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139582&fm=22646410009466&tin=02508201610067®Number=0000000000091631&sum=15400 [05:16:11]OFD Sender: Processing packet 139582 [packets to send 34, broken 33] [05:16:11]ProducePacketName [05:16:11]name=ofd_packets/00139582 [05:16:11]OFD Sender: To server: pG, [05:16:11]CommunicateWithHost lk.salyk.kg:30040 [05:16:11]ConnectInit lk.salyk.kg [05:16:11]line 0 [05:16:11]written 0, free lines is 4095 [05:16:11]Connected sock=10 [05:16: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 1E 01 00 00 C7 4D 16 01 DA E3 5A 03 01 00 03 00 0A 01 1E 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3E 21 02 00 35 04 06 00 14 98 C7 39 5B 7A 4C BA D3 CD FF D6 37 7D [05:16: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 28 08 47 00 44 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 3E 21 02 00 F4 03 04 00 50 BE 22 67 B6 04 01 00 00 75 3F 02 78 0C AA F4 48 [05:16:11]CommunicateWithHost err = 0 [05:16:11]CheckOFDResponse [05:16:11]1017 (14) - 77093643461234 [05:16:11]1041 (16) - 0000000000874669 [05:16:11]1040 (4) - 139582 [05:16:11]1012 (4) - 30.10.2024 23:16 [05:16:11]1206 (1) - 0 [05:16:11]OFD Sender: Remove packet 139582 [05:16:11]ProducePacketName [05:16:11]name=ofd_packets/00139582 [05:16:11]NVStorageDeleteData [05:16:12]Write to MH i2c: 01 00 00 D7 75 4C [05:16:12]Write i2c OK [05:16:12]MH_I2C_Read... [05:16:12]Read from MH i2c: 01 [05:16:12]MH_I2C_Read... [05:16:12]Read from MH i2c: 01 07 00 [05:16:12]MH_I2C_Read... [05:16:12]Read from MH i2c: 01 07 00 D7 75 00 00 00 00 00 14 0D 74 [05:16:12]RasterBufferAndPrint [05:16:12]line [05:16:12]line [05:16:12]line [05:16:12]line [05:16:12]line [05:16:12]written 0, free lines is 3354 [05:16:12]MH_Cut [05:16:12]Write to MH i2c: D1 01 00 DE 75 01 25 [05:16:12]Write i2c OK [05:16:12]MH_I2C_Read... [05:16:12]Read from MH i2c: D1 [05:16:12]MH_I2C_Read... [05:16:12]Read from MH i2c: D1 01 00 [05:16:12]MH_I2C_Read... [05:16:12]Read from MH i2c: D1 01 00 DE 75 00 24 [05:16:12]Write to MH i2c: 01 00 00 DF 75 54 [05:16:12]Write i2c OK [05:16:12]MH_I2C_Read... [05:16:12]OFD Sender: No OFD packet to send [05:16:12]*** Cut start [05:16:12]*** Partial cut [05:16:12]*** CUTSNS_PIN = 1 [05:16:12]*** CUTSNS_PIN = 0 [05:16:13]*** Brake cut motor [05:16:13]Read from MH i2c: 01 [05:16:13]MH_I2C_Read... [05:16:13]*** Stop cut motor [05:16:13]*** Cut end [05:16:13]Read from MH i2c: 01 07 00 [05:16:13]MH_I2C_Read... [05:16:13]Read from MH i2c: 01 07 00 DF 75 00 00 00 00 00 FF 0F 69 [05:16:13]process_action close_receipt done [05:16:13]requested_data is exist [05:16:13]produce_requested_data [05:16:13]requested_item fm.sn is exist - process it [05:16:13]wFMCommunicate request_size=4 [05:16:13]MH_SAM_APDU [05:16:13]CAPDU: 80 11 00 00 [05:16:13]Write to MH i2c: E2 08 00 E0 75 80 11 00 00 00 00 00 00 CF [05:16:13]Write i2c OK [05:16:13]MH_I2C_Read... [05:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:13]Read from MH i2c: E2 [05:16:13]MH_I2C_Read... [05:16:13]Read from MH i2c: E2 17 00 [05:16:13]MH_I2C_Read... [05:16:13]Read from MH i2c: E2 17 00 E0 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2A [05:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:16:13]wFMCommunicate OK [05:16:13]requested_item fd.num is exist - process it [05:16:13]SAM_PROTO_GetFieldsCounters [05:16:13]wFMCommunicate request_size=4 [05:16:13]MH_SAM_APDU [05:16:13]CAPDU: 80 13 00 00 [05:16:13]Write to MH i2c: E2 08 00 E1 75 80 13 00 00 00 00 00 00 D2 [05:16:13]Write i2c OK [05:16:13]MH_I2C_Read... [05:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:13]Read from MH i2c: E2 [05:16:13]MH_I2C_Read... [05:16:13]Read from MH i2c: E2 62 00 [05:16:13]MH_I2C_Read... [05:16:13]Read from MH i2c: E2 62 00 E1 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3E 21 02 00 0E 04 04 00 2D 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 37 [05:16: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 3E 21 02 00 0E 04 04 00 2D 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 [05:16:13]wFMCommunicate OK [05:16:13]SAM_PROTO_GetFieldsCounters done [05:16:13]requested_item shift.num is exist - process it [05:16:13]requested_item shift.opened is exist - process it [05:16:13]req_shift_opened [05:16:13]FM_GetShiftState [05:16:13]SAM_PROTO_GetShiftState [05:16:13]wFMCommunicate request_size=4 [05:16:13]MH_SAM_APDU [05:16:13]CAPDU: 80 13 01 00 [05:16:13]Write to MH i2c: E2 08 00 E2 75 80 13 01 00 00 00 00 00 D4 [05:16:13]Write i2c OK [05:16:13]MH_I2C_Read... [05:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:13]Read from MH i2c: E2 [05:16:13]MH_I2C_Read... [05:16:13]Read from MH i2c: E2 0E 00 [05:16:13]MH_I2C_Read... [05:16:13]Read from MH i2c: E2 0E 00 E2 75 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FD [05:16:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:16:13]wFMCommunicate OK [05:16:13]SAM_PROTO_GetShiftState done [05:16:13]FM_GetShiftState done [05:16:13]req_shift_opened done [05:16:13]requested_item shift.open_date is exist - process it [05:16:13]req_shift_open_date [05:16:13]req_shift_open_date done [05:16:13]produce_requested_data done [05:16:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139582,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:16:13]process_action_free close_receipt [05:16:13]json_value_free [05:16:13]json_value_free done [05:16:13]process_json_proto returns [05:16:13]Send response to host [05:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139582,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:16:13]free response buf [05:16:13]execute_script done [05:16:13]execute_script returns [05:16:13]free content buf [05:16:13]Sock 9.Close socket [05:16:13]Sock 9.Thread stoped [05:16:14]accept exits with 8 [05:16:14]New connection [05:16:14]New thread 3067284836 created [05:16:14]Thread 3067141476 joined [05:16:14]Waiting for new connection... [05:16:14] Sock 8.Parse request [05:16:14]Sock 8.Check first char [05:16:14]Sock 8.First char is OK [05:16:14]request: POST /json_proto HTTP/1.0 [05:16:14]Method: POST [05:16:14]URL: /json_proto [05:16:14]Method is POST - this is cgi request [05:16:14]url: /json_proto [05:16:14]query_string will be loaded in cgi processing [05:16:14]execute_cgi json_proto POST (null) [05:16:14]execute_cgi path=json_proto method=POST [05:16:14]POST find Content-Length [05:16:14]Host: 172.17.50.196:8080 [05:16:14]Content-Length: 687 [05:16:14]Content-Type: application/json [05:16:14] [05:16:14]POST finish read [05:16:14]Found Content-Length = 687 [05:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335464", "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:16:14]execute_script... [05:16: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)335464", "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:16:14]POST & json_proto [05:16:14]process_json_proto [05:16:14]json parsed OK: [05:16:14]protocol is kg_v1.0 [05:16:14]action value=close_receipt [05:16:14]process_action close_receipt [05:16:14]cmd_close_receipt [05:16:14]MH_GetDate [05:16:14]Write to MH i2c: F0 00 00 E3 75 47 [05:16:14]Write i2c OK [05:16:14]MH_I2C_Read... [05:16:14]Read from MH i2c: F0 [05:16:14]MH_I2C_Read... [05:16:14]Read from MH i2c: F0 09 00 [05:16:14]MH_I2C_Read... [05:16:14]Read from MH i2c: F0 09 00 E3 75 00 A7 12 23 67 72 0D 1C 67 95 [05:16:14]GetLastDocTimeStamp 1730351778 [05:16:14]current date 1730351783 [05:16:14]FM_GetShiftState [05:16:14]SAM_PROTO_GetShiftState [05:16:14]wFMCommunicate request_size=4 [05:16:14]MH_SAM_APDU [05:16:14]CAPDU: 80 13 01 00 [05:16:14]Write to MH i2c: E2 08 00 E4 75 80 13 01 00 00 00 00 00 D6 [05:16:14]Write i2c OK [05:16:14]MH_I2C_Read... [05:16:14]Read from MH i2c: E2 [05:16:14]MH_I2C_Read... [05:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:14]Read from MH i2c: E2 0E 00 [05:16:14]MH_I2C_Read... [05:16:14]Read from MH i2c: E2 0E 00 E4 75 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FF [05:16:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:16:14]wFMCommunicate OK [05:16:14]SAM_PROTO_GetShiftState done [05:16:14]FM_GetShiftState done [05:16:14]opened in 1730332621 [05:16:14]opened+sec_in_day 1730419021 [05:16:14]quantity*price = 5000 [05:16:14]sum+1 = 5001 [05:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 60 31.10.2024 05:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139583 ФПД: 277753310066295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T051623&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139583&fm=277753310066295&tin=02508201610067®Number=0000000000091631&sum=5000 0 [05:16:16]StoreToDocumentArchive [05:16:16]shift 557 fd 139583 [05:16:16]save to /storage/0557/doc_00139583 [05:16:16]save last doc name /storage/0557/doc_00139583 to /storage/kkm_last_doc_name [05:16:16]save OK [05:16:16]Clear old archive folders... [05:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=298 [05:16:16]tlvbuf is 0112FB80 [05:16:16]SAM_PROTO_ClearQueue [05:16:16]wFMCommunicate request_size=4 [05:16:16]MH_SAM_APDU [05:16:16]CAPDU: 80 09 00 00 [05:16:16]Write to MH i2c: E2 08 00 F1 75 80 09 00 00 00 00 00 00 D8 [05:16:16]Write i2c OK [05:16:16]MH_I2C_Read... [05:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:16:16]Read from MH i2c: E2 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 F1 75 00 90 00 DA [05:16:16]RAPDU: 90 00 [05:16:16]wFMCommunicate OK [05:16:16]SAM_PROTO_ClearQueue done [05:16:16]KKMCreateOFDPacket [05:16:16]OFDProtocolAddRootSTLVToBuf [05:16:16]FM_MakeSignedData [05:16:16]FM_MakeSignedData [05:16:16]SAM_PROTO_SignData [05:16:16]wFMCommunicate request_size=4 [05:16:16]MH_SAM_APDU [05:16:16]CAPDU: 80 0D 01 02 [05:16:16]Write to MH i2c: E2 08 00 F2 75 80 0D 01 02 00 00 00 00 E0 [05:16:16]Write i2c OK [05:16:16]MH_I2C_Read... [05:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:16:16]Read from MH i2c: E2 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 F2 75 00 90 00 DB [05:16:16]RAPDU: 90 00 [05:16:16]wFMCommunicate OK [05:16:16]wFMCommunicate request_size=255 [05:16:16]MH_SAM_APDU [05:16:16]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 3C 00 00 00 F4 03 04 00 A7 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [05:16:16]Write to MH i2c: E2 02 01 F3 75 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 3C 00 00 00 F4 03 04 00 A7 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 8E [05:16:16]Write i2c OK [05:16:16]MH_I2C_Read... [05:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:16]Read from MH i2c: E2 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 F3 75 00 90 00 DC [05:16:16]RAPDU: 90 00 [05:16:16]wFMCommunicate OK [05:16:16]wFMCommunicate request_size=57 [05:16:16]MH_SAM_APDU [05:16:16]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 3F 21 02 00 35 04 06 00 FC 9D 7B 61 B6 77 [05:16:16]Write to MH i2c: E2 3C 00 F4 75 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 3F 21 02 00 35 04 06 00 FC 9D 7B 61 B6 77 00 00 A7 [05:16:16]Write i2c OK [05:16:16]MH_I2C_Read... [05:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:16]Read from MH i2c: E2 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 03 00 F4 75 00 90 00 DD [05:16:16]RAPDU: 90 00 [05:16:16]wFMCommunicate OK [05:16:16]wFMCommunicate request_size=4 [05:16:16]MH_SAM_APDU [05:16:16]CAPDU: 80 0D 03 02 [05:16:16]Write to MH i2c: E2 08 00 F5 75 80 0D 03 02 00 00 00 00 E5 [05:16:16]Write i2c OK [05:16:16]MH_I2C_Read... [05:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:16:16]Read from MH i2c: E2 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 0B 00 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 0B 00 F5 75 00 AD 9B A1 E4 52 A8 0E 94 90 00 4F [05:16:16]RAPDU: AD 9B A1 E4 52 A8 0E 94 90 00 [05:16:16]wFMCommunicate OK [05:16:16]SAM_PROTO_SignData done [05:16:16]FM_MakeSignedData done [05:16:16]CreateOFDProtocolMessage [05:16:16]wFMCommunicate request_size=4 [05:16:16]MH_SAM_APDU [05:16:16]CAPDU: 80 11 00 00 [05:16:16]Write to MH i2c: E2 08 00 F6 75 80 11 00 00 00 00 00 00 E5 [05:16:16]Write i2c OK [05:16:16]MH_I2C_Read... [05:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:16]Read from MH i2c: E2 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 17 00 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: E2 17 00 F6 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [05:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:16:16]wFMCommunicate OK [05:16:16]CreateOFDProtocolMessage done [05:16:16]OFDSenderStorePacket 139583 [05:16:16]StoreOFDPacket docnum=139583 [05:16: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 3E 01 00 00 75 07 36 01 B8 CB 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 3C 00 00 00 F4 03 04 00 A7 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3F 21 02 00 35 04 06 00 FC 9D 7B 61 B6 77 AD 9B A1 E4 52 A8 0E 94 [05:16:16]CheckFolder [05:16:16]dirname=/storage/ofd_packets [05:16:16]CheckFolder done [05:16:16]ProducePacketName [05:16:16]name=ofd_packets/00139583 [05:16:16]NVStorageSaveData ofd_packets/00139583 [05:16:16]File name is /storage/ofd_packets/00139583 [05:16:16]Write 348 bytes [05:16:16]NVStorageSaveData done [05:16:16]OFDSenderStorePacket done [05:16:16]KKMCreateOFDPacket done [05:16:16]NVStorageSaveData kkm_last_timestamp [05:16:16]File name is /storage/kkm_last_timestamp [05:16:16]Write 4 bytes [05:16:16]NVStorageSaveData done [05:16:16]ExternCall_PrintAddStr [05:16:16]wPrintStart [05:16:16]Write to MH i2c: 01 00 00 F7 75 6C [05:16:16]Write i2c OK [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: 01 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: 01 07 00 [05:16:16]MH_I2C_Read... [05:16:16]Read from MH i2c: 01 07 00 F7 75 00 00 00 00 00 FF 0F 81 [05:16:16]RasterBufferAndPrint [05:16:16]line Счет N : (3)335464 [05:16:16]line ИНН: 02508201610067 [05:16:16]line Контрольно-Кассовый Чек [05:16:16]line ПРОДАЖА [05:16:16]line Товар: 4700003010032 [05:16:16]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [05:16:16]line 1.000 * 50.00 [05:16:16]line = 50.00 [05:16:16]line НДС 12% НСП 1% [05:16:16]line > о реализуемом товаре [05:16:16]line ИТОГО: 50.00 [05:16:16]line НСП 1% : 0.44 [05:16:16]line НДС 12% : 5.31 [05:16:16]line Наличными: 50.00 [05:16:16]line Безнал.: 0.00 [05:16:16]line Место: АЗС № 101 "Партнер Нефть" [05:16:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:16:16]line СНО: Общий режим [05:16:16]line Чек 60 31.10.2024 05:16 [05:16:16]line Смена: 557 ФФД: 1.0 [05:16:16]line ЗНМ: 0300000081 [05:16:16]line РНМ: 0000000000091631 [05:16:16]line Версия ККМ: 001 [05:16:16]line ФМ: 0000000000874669 [05:16:16]line ФД: 139583 [05:16:16]line ФПД: 277753310066295 [05:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T051623&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139583&fm=277753310066295&tin=02508201610067®Number=0000000000091631&sum=5000 [05:16:16]line 0 [05:16:16]written 0, free lines is 4095 [05:16:16]OFD Sender: Processing packet 139583 [packets to send 34, broken 33] [05:16:16]ProducePacketName [05:16:16]name=ofd_packets/00139583 [05:16:16]OFD Sender: To server: pG, [05:16:16]CommunicateWithHost lk.salyk.kg:30040 [05:16:16]ConnectInit lk.salyk.kg [05:16:16]Connected sock=10 [05:16: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 3E 01 00 00 75 07 36 01 B8 CB 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 3C 00 00 00 F4 03 04 00 A7 12 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3F 21 02 00 35 04 06 00 FC 9D 7B 61 B6 77 AD 9B A1 E4 52 A8 0E 94 [05:16: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 89 60 47 00 4E F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3F 21 02 00 F4 03 04 00 56 BE 22 67 B6 04 01 00 00 86 E2 C7 43 03 AB C2 87 [05:16:17]CommunicateWithHost err = 0 [05:16:17]CheckOFDResponse [05:16:17]1017 (14) - 77093643461234 [05:16:17]1041 (16) - 0000000000874669 [05:16:17]1040 (4) - 139583 [05:16:17]1012 (4) - 30.10.2024 23:16 [05:16:17]1206 (1) - 0 [05:16:17]OFD Sender: Remove packet 139583 [05:16:17]ProducePacketName [05:16:17]name=ofd_packets/00139583 [05:16:17]NVStorageDeleteData [05:16:17]Write to MH i2c: 01 00 00 20 76 96 [05:16:17]Write i2c OK [05:16:17]MH_I2C_Read... [05:16:17]Read from MH i2c: 01 [05:16:17]MH_I2C_Read... [05:16:17]Read from MH i2c: 01 07 00 [05:16:17]MH_I2C_Read... [05:16:17]Read from MH i2c: 01 07 00 20 76 00 00 00 00 00 0F 0D B9 [05:16:17]RasterBufferAndPrint [05:16:17]line [05:16:17]line [05:16:17]line [05:16:17]line [05:16:17]line [05:16:17]written 0, free lines is 3352 [05:16:17]MH_Cut [05:16:17]Write to MH i2c: D1 01 00 27 76 01 6F [05:16:17]Write i2c OK [05:16:17]MH_I2C_Read... [05:16:17]Read from MH i2c: D1 [05:16:17]MH_I2C_Read... [05:16:17]Read from MH i2c: D1 01 00 [05:16:17]MH_I2C_Read... [05:16:17]Read from MH i2c: D1 01 00 27 76 00 6E [05:16:17]Write to MH i2c: 01 00 00 28 76 9E [05:16:17]Write i2c OK [05:16:17]MH_I2C_Read... [05:16:17]OFD Sender: No OFD packet to send [05:16:17]*** Cut start [05:16:17]*** Partial cut [05:16:17]*** CUTSNS_PIN = 1 [05:16:17]*** CUTSNS_PIN = 0 [05:16:18]*** Brake cut motor [05:16:18]Read from MH i2c: 01 [05:16:18]MH_I2C_Read... [05:16:18]*** Stop cut motor [05:16:18]*** Cut end [05:16:18]Read from MH i2c: 01 07 00 [05:16:18]MH_I2C_Read... [05:16:18]Read from MH i2c: 01 07 00 28 76 00 00 00 00 00 FF 0F B3 [05:16:18]process_action close_receipt done [05:16:18]requested_data is exist [05:16:18]produce_requested_data [05:16:18]requested_item fm.sn is exist - process it [05:16:18]wFMCommunicate request_size=4 [05:16:18]MH_SAM_APDU [05:16:18]CAPDU: 80 11 00 00 [05:16:18]Write to MH i2c: E2 08 00 29 76 80 11 00 00 00 00 00 00 19 [05:16:18]Write i2c OK [05:16:18]MH_I2C_Read... [05:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:18]Read from MH i2c: E2 [05:16:18]MH_I2C_Read... [05:16:18]Read from MH i2c: E2 17 00 [05:16:18]MH_I2C_Read... [05:16:18]Read from MH i2c: E2 17 00 29 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 74 [05:16:18]RAPDU: 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]wFMCommunicate OK [05:16:18]requested_item fd.num is exist - process it [05:16:18]SAM_PROTO_GetFieldsCounters [05:16:18]wFMCommunicate request_size=4 [05:16:18]MH_SAM_APDU [05:16:18]CAPDU: 80 13 00 00 [05:16:18]Write to MH i2c: E2 08 00 2A 76 80 13 00 00 00 00 00 00 1C [05:16:18]Write i2c OK [05:16:18]MH_I2C_Read... [05:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:18]Read from MH i2c: E2 [05:16:18]MH_I2C_Read... [05:16:18]Read from MH i2c: E2 62 00 [05:16:18]MH_I2C_Read... [05:16:18]Read from MH i2c: E2 62 00 2A 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3F 21 02 00 0E 04 04 00 2D 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 85 [05:16: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 3F 21 02 00 0E 04 04 00 2D 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 [05:16:18]wFMCommunicate OK [05:16:18]SAM_PROTO_GetFieldsCounters done [05:16:18]requested_item shift.num is exist - process it [05:16:18]requested_item shift.opened is exist - process it [05:16:18]req_shift_opened [05:16:18]FM_GetShiftState [05:16:18]SAM_PROTO_GetShiftState [05:16:18]wFMCommunicate request_size=4 [05:16:18]MH_SAM_APDU [05:16:18]CAPDU: 80 13 01 00 [05:16:18]Write to MH i2c: E2 08 00 2B 76 80 13 01 00 00 00 00 00 1E [05:16:18]Write i2c OK [05:16:18]MH_I2C_Read... [05:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:18]Read from MH i2c: E2 [05:16:18]MH_I2C_Read... [05:16:18]Read from MH i2c: E2 0E 00 [05:16:18]MH_I2C_Read... [05:16:18]Read from MH i2c: E2 0E 00 2B 76 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 47 [05:16:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:16:18]wFMCommunicate OK [05:16:18]SAM_PROTO_GetShiftState done [05:16:18]FM_GetShiftState done [05:16:18]req_shift_opened done [05:16:18]requested_item shift.open_date is exist - process it [05:16:18]req_shift_open_date [05:16:18]req_shift_open_date done [05:16:18]produce_requested_data done [05:16:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139583,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:16:18]process_action_free close_receipt [05:16:18]json_value_free [05:16:18]json_value_free done [05:16:18]process_json_proto returns [05:16:18]Send response to host [05:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139583,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:16:18]free response buf [05:16:18]execute_script done [05:16:18]execute_script returns [05:16:18]free content buf [05:16:18]Sock 8.Close socket [05:16:18]Sock 8.Thread stoped [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:09]accept exits with 9 [05:31:09]New connection [05:31:09]New thread 3067141476 created [05:31:09]Thread 3067284836 joined [05:31:09]Waiting for new connection... [05:31:09] Sock 9.Parse request [05:31:09]Sock 9.Check first char [05:31:09]Sock 9.First char is OK [05:31:09]request: POST /json_proto HTTP/1.0 [05:31:09]Method: POST [05:31:09]URL: /json_proto [05:31:09]Method is POST - this is cgi request [05:31:09]url: /json_proto [05:31:09]query_string will be loaded in cgi processing [05:31:09]execute_cgi json_proto POST (null) [05:31:09]execute_cgi path=json_proto method=POST [05:31:09]POST find Content-Length [05:31:09]Host: 172.17.50.196:8080 [05:31:09]Content-Length: 1312 [05:31:09]Content-Type: application/json [05:31:09] [05:31:09]POST finish read [05:31:09]Found Content-Length = 1312 [05:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335465", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:09]execute_script... [05: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 : (3)335465", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:09]POST & json_proto [05:31:09]process_json_proto [05:31:09]json parsed OK: [05:31:09]protocol is kg_v1.0 [05:31:09]action value=close_receipt [05:31:09]process_action close_receipt [05:31:09]cmd_close_receipt [05:31:09]MH_GetDate [05:31:09]Write to MH i2c: F0 00 00 2C 76 91 [05:31:09]Write i2c OK [05:31:09]MH_I2C_Read... [05:31:09]Read from MH i2c: F0 [05:31:09]MH_I2C_Read... [05:31:09]Read from MH i2c: F0 09 00 [05:31:09]MH_I2C_Read... [05:31:09]Read from MH i2c: F0 09 00 2C 76 00 26 16 23 67 72 0D 1C 67 62 [05:31:09]GetLastDocTimeStamp 1730351783 [05:31:09]current date 1730352678 [05:31:09]FM_GetShiftState [05:31:09]SAM_PROTO_GetShiftState [05:31:09]wFMCommunicate request_size=4 [05:31:09]MH_SAM_APDU [05:31:09]CAPDU: 80 13 01 00 [05:31:09]Write to MH i2c: E2 08 00 2D 76 80 13 01 00 00 00 00 00 20 [05:31:09]Write i2c OK [05:31:09]MH_I2C_Read... [05:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:10]Read from MH i2c: E2 [05:31:10]MH_I2C_Read... [05:31:10]Read from MH i2c: E2 0E 00 [05:31:10]MH_I2C_Read... [05:31:10]Read from MH i2c: E2 0E 00 2D 76 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 49 [05:31:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:31:10]wFMCommunicate OK [05:31:10]SAM_PROTO_GetShiftState done [05:31:10]FM_GetShiftState done [05:31:10]opened in 1730332621 [05:31:10]opened+sec_in_day 1730419021 [05:31:10]quantity*price = 12000 [05:31:10]sum+1 = 12001 [05:31:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003241276 Напиток Молочный ТАН 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.56 НДС 12% : 30.79 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 61 31.10.2024 05:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139584 ФПД: 235669945720110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053119&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139584&fm=235669945720110&tin=02508201610067®Number=0000000000091631&sum=29000 0 [05:31:11]StoreToDocumentArchive [05:31:11]shift 557 fd 139584 [05:31:11]save to /storage/0557/doc_00139584 [05:31:11]save last doc name /storage/0557/doc_00139584 to /storage/kkm_last_doc_name [05:31:11]save OK [05:31:11]Clear old archive folders... [05:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=534 [05:31:11]tlvbuf is 01110650 [05:31:11]SAM_PROTO_ClearQueue [05:31:11]wFMCommunicate request_size=4 [05:31:11]MH_SAM_APDU [05:31:11]CAPDU: 80 09 00 00 [05:31:11]Write to MH i2c: E2 08 00 3A 76 80 09 00 00 00 00 00 00 22 [05:31:11]Write i2c OK [05:31:11]MH_I2C_Read... [05:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:31:11]Read from MH i2c: E2 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 3A 76 00 90 00 24 [05:31:11]RAPDU: 90 00 [05:31:11]wFMCommunicate OK [05:31:11]SAM_PROTO_ClearQueue done [05:31:11]KKMCreateOFDPacket [05:31:11]OFDProtocolAddRootSTLVToBuf [05:31:11]FM_MakeSignedData [05:31:11]FM_MakeSignedData [05:31:11]SAM_PROTO_SignData [05:31:11]wFMCommunicate request_size=4 [05:31:11]MH_SAM_APDU [05:31:11]CAPDU: 80 0D 01 02 [05:31:11]Write to MH i2c: E2 08 00 3B 76 80 0D 01 02 00 00 00 00 2A [05:31:11]Write i2c OK [05:31:11]MH_I2C_Read... [05:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:31:11]Read from MH i2c: E2 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 3B 76 00 90 00 25 [05:31:11]RAPDU: 90 00 [05:31:11]wFMCommunicate OK [05:31:11]wFMCommunicate request_size=255 [05:31:11]MH_SAM_APDU [05:31:11]CAPDU: 80 0D 02 02 FA 03 00 16 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 [05:31:11]Write to MH i2c: E2 02 01 3C 76 80 0D 02 02 FA 00 03 00 16 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 00 00 2B [05:31:11]Write i2c OK [05:31:11]MH_I2C_Read... [05:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:11]Read from MH i2c: E2 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 3C 76 00 90 00 26 [05:31:11]RAPDU: 90 00 [05:31:11]wFMCommunicate OK [05:31:11]wFMCommunicate request_size=255 [05:31:11]MH_SAM_APDU [05:31:11]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 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 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 27 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [05:31:11]Write to MH i2c: E2 02 01 3D 76 80 0D 02 02 FA 00 03 01 00 01 BC 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 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 27 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 30 [05:31:11]Write i2c OK [05:31:11]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 3D 76 00 90 00 27 [05:31:12]RAPDU: 90 00 [05:31:12]wFMCommunicate OK [05:31:12]wFMCommunicate request_size=43 [05:31:12]MH_SAM_APDU [05:31:12]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 21 02 00 35 04 06 00 D6 57 2F 66 1D 2E [05:31:12]Write to MH i2c: E2 2E 00 3E 76 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 21 02 00 35 04 06 00 D6 57 2F 66 1D 2E 00 00 8E [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 3E 76 00 90 00 28 [05:31:12]RAPDU: 90 00 [05:31:12]wFMCommunicate OK [05:31:12]wFMCommunicate request_size=4 [05:31:12]MH_SAM_APDU [05:31:12]CAPDU: 80 0D 03 02 [05:31:12]Write to MH i2c: E2 08 00 3F 76 80 0D 03 02 00 00 00 00 30 [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 0B 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 0B 00 3F 76 00 9E 2B 46 56 0D E9 2D 57 90 00 10 [05:31:12]RAPDU: 9E 2B 46 56 0D E9 2D 57 90 00 [05:31:12]wFMCommunicate OK [05:31:12]SAM_PROTO_SignData done [05:31:12]FM_MakeSignedData done [05:31:12]CreateOFDProtocolMessage [05:31:12]wFMCommunicate request_size=4 [05:31:12]MH_SAM_APDU [05:31:12]CAPDU: 80 11 00 00 [05:31:12]Write to MH i2c: E2 08 00 40 76 80 11 00 00 00 00 00 00 30 [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 17 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 17 00 40 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8B [05:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:31:12]wFMCommunicate OK [05:31:12]CreateOFDProtocolMessage done [05:31:12]OFDSenderStorePacket 139584 [05:31:12]StoreOFDPacket docnum=139584 [05:31: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 2A 02 00 00 2D 3A 22 02 D0 63 5A 03 01 00 03 00 16 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 27 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 21 02 00 35 04 06 00 D6 57 2F 66 1D 2E 9E 2B 46 56 0D E9 2D 57 [05:31:12]CheckFolder [05:31:12]dirname=/storage/ofd_packets [05:31:12]CheckFolder done [05:31:12]ProducePacketName [05:31:12]name=ofd_packets/00139584 [05:31:12]NVStorageSaveData ofd_packets/00139584 [05:31:12]File name is /storage/ofd_packets/00139584 [05:31:12]Write 584 bytes [05:31:12]NVStorageSaveData done [05:31:12]OFDSenderStorePacket done [05:31:12]KKMCreateOFDPacket done [05:31:12]NVStorageSaveData kkm_last_timestamp [05:31:12]File name is /storage/kkm_last_timestamp [05:31:12]Write 4 bytes [05:31:12]NVStorageSaveData done [05:31:12]ExternCall_PrintAddStr [05:31:12]wPrintStart [05:31:12]Write to MH i2c: 01 00 00 41 76 B7 [05:31:12]OFD Sender: Processing packet 139584 [packets to send 34, broken 33] [05:31:12]ProducePacketName [05:31:12]name=ofd_packets/00139584 [05:31:12]OFD Sender: To server: pG, [05:31:12]CommunicateWithHost lk.salyk.kg:30040 [05:31:12]ConnectInit lk.salyk.kg [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 07 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 07 00 41 76 00 00 00 00 00 FF 0F CC [05:31:12]RasterBufferAndPrint [05:31:12]line Счет N : (3)335465 [05:31:12]line ИНН: 02508201610067 [05:31:12]line Контрольно-Кассовый Чек [05:31:12]line ПРОДАЖА [05:31:12]line Товар: 5449000189332 [05:31:12]line Холодный чай Fuse персик 1л [05:31:12]line 1.000 * 120.00 [05:31:12]line = 120.00 [05:31:12]line НДС 12% НСП 1% [05:31:12]line > о реализуемом товаре [05:31:12]line Товар: 4700000160792 [05:31:12]line Снек Курут классический (круглый) [05:31:12]line 1.000 * 60.00 [05:31:12]line = 60.00 [05:31:12]line НДС 12% НСП 1% [05:31:12]line > о реализуемом товаре [05:31:12]line Товар: 4700003241276 [05:31:12]line Напиток Молочный ТАН 1л [05:31:12]line 1.000 * 110.00 [05:31:12]line = 110.00 [05:31:12]line НДС 12% НСП 1% [05:31:12]line > о реализуемом товаре [05:31:12]line ИТОГО: 290.00 [05:31:12]line НСП 1% : 2.56 [05:31:12]line НДС 12% : 30.79 [05:31:12]line Наличными: 290.00 [05:31:12]line Безнал.: 0.00 [05:31:12]line Место: АЗС № 101 "Партнер Нефть" [05:31:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:31:12]line СНО: Общий режим [05:31:12]line Чек 61 31.10.2024 05:31 [05:31:12]line Смена: 557 ФФД: 1.0 [05:31:12]line ЗНМ: 0300000081 [05:31:12]line РНМ: 0000000000091631 [05:31:12]line Версия ККМ: 001 [05:31:12]line ФМ: 0000000000874669 [05:31:12]line ФД: 139584 [05:31:12]line ФПД: 235669945720110 [05:31:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053119&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139584&fm=235669945720110&tin=02508201610067®Number=0000000000091631&sum=29000 [05:31:12]line 0 [05:31:12]Connected sock=10 [05:31: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 2A 02 00 00 2D 3A 22 02 D0 63 5A 03 01 00 03 00 16 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 27 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 21 02 00 35 04 06 00 D6 57 2F 66 1D 2E 9E 2B 46 56 0D E9 2D 57 [05:31:12]written 0, free lines is 4095 [05: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 73 2E 47 00 BD 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 21 02 00 F4 03 04 00 D5 C1 22 67 B6 04 01 00 00 E9 AF B8 81 CC 7E F8 EB [05:31:12]CommunicateWithHost err = 0 [05:31:12]CheckOFDResponse [05:31:12]1017 (14) - 77093643461234 [05:31:12]1041 (16) - 0000000000874669 [05:31:12]1040 (4) - 139584 [05:31:12]1012 (4) - 30.10.2024 23:31 [05:31:12]1206 (1) - 0 [05:31:12]OFD Sender: Remove packet 139584 [05:31:12]ProducePacketName [05:31:12]name=ofd_packets/00139584 [05:31:12]NVStorageDeleteData [05:31:13]Write to MH i2c: 01 00 00 76 76 EC [05:31:13]Write i2c OK [05:31:13]MH_I2C_Read... [05:31:13]Read from MH i2c: 01 [05:31:13]MH_I2C_Read... [05:31:13]Read from MH i2c: 01 07 00 [05:31:13]MH_I2C_Read... [05:31:13]Read from MH i2c: 01 07 00 76 76 00 00 00 00 00 73 0C 72 [05:31:13]RasterBufferAndPrint [05:31:13]line [05:31:13]line [05:31:13]line [05:31:13]line [05:31:13]line [05:31:13]written 0, free lines is 3196 [05:31:13]MH_Cut [05:31:13]Write to MH i2c: D1 01 00 7D 76 01 C5 [05:31:13]Write i2c OK [05:31:13]MH_I2C_Read... [05:31:13]Read from MH i2c: D1 [05:31:13]MH_I2C_Read... [05:31:13]Read from MH i2c: D1 01 00 [05:31:13]MH_I2C_Read... [05:31:13]Read from MH i2c: D1 01 00 7D 76 00 C4 [05:31:13]Write to MH i2c: 01 00 00 7E 76 F4 [05:31:13]Write i2c OK [05:31:13]MH_I2C_Read... [05:31:13]OFD Sender: No OFD packet to send [05:31:14]*** Cut start [05:31:14]*** Partial cut [05:31:14]*** CUTSNS_PIN = 1 [05:31:14]*** CUTSNS_PIN = 0 [05:31:14]*** Brake cut motor [05:31:14]Read from MH i2c: 01 [05:31:14]MH_I2C_Read... [05:31:14]*** Stop cut motor [05:31:14]Read from MH i2c: 01 07 00 [05:31:14]MH_I2C_Read... [05:31:14]*** Cut end [05:31:14]Read from MH i2c: 01 07 00 7E 76 00 00 00 00 00 FF 0F 09 [05:31:14]process_action close_receipt done [05:31:14]requested_data is exist [05:31:14]produce_requested_data [05:31:14]requested_item fm.sn is exist - process it [05:31:14]wFMCommunicate request_size=4 [05:31:14]MH_SAM_APDU [05:31:14]CAPDU: 80 11 00 00 [05:31:14]Write to MH i2c: E2 08 00 7F 76 80 11 00 00 00 00 00 00 6F [05:31:14]Write i2c OK [05:31:14]MH_I2C_Read... [05:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:14]Read from MH i2c: E2 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 17 00 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 17 00 7F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CA [05: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 [05:31:14]wFMCommunicate OK [05:31:14]requested_item fd.num is exist - process it [05:31:14]SAM_PROTO_GetFieldsCounters [05:31:14]wFMCommunicate request_size=4 [05:31:14]MH_SAM_APDU [05:31:14]CAPDU: 80 13 00 00 [05:31:14]Write to MH i2c: E2 08 00 80 76 80 13 00 00 00 00 00 00 72 [05:31:14]Write i2c OK [05:31:14]MH_I2C_Read... [05:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:31:14]Read from MH i2c: E2 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 62 00 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 62 00 80 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 40 21 02 00 0E 04 04 00 2D 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 DF [05:31: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 40 21 02 00 0E 04 04 00 2D 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 [05:31:14]wFMCommunicate OK [05:31:14]SAM_PROTO_GetFieldsCounters done [05:31:14]requested_item shift.num is exist - process it [05:31:14]requested_item shift.opened is exist - process it [05:31:14]req_shift_opened [05:31:14]FM_GetShiftState [05:31:14]SAM_PROTO_GetShiftState [05:31:14]wFMCommunicate request_size=4 [05:31:14]MH_SAM_APDU [05:31:14]CAPDU: 80 13 01 00 [05:31:14]Write to MH i2c: E2 08 00 81 76 80 13 01 00 00 00 00 00 74 [05:31:14]Write i2c OK [05:31:14]MH_I2C_Read... [05:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:14]Read from MH i2c: E2 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 0E 00 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 0E 00 81 76 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9D [05:31:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:31:14]wFMCommunicate OK [05:31:14]SAM_PROTO_GetShiftState done [05:31:14]FM_GetShiftState done [05:31:14]req_shift_opened done [05:31:14]requested_item shift.open_date is exist - process it [05:31:14]req_shift_open_date [05:31:14]req_shift_open_date done [05:31:14]produce_requested_data done [05:31:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139584,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:31:14]process_action_free close_receipt [05:31:14]json_value_free [05:31:14]json_value_free done [05:31:14]process_json_proto returns [05:31:14]Send response to host [05:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139584,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:31:14]free response buf [05:31:14]execute_script done [05:31:14]execute_script returns [05:31:14]free content buf [05:31:14]Sock 9.Close socket [05:31:14]Sock 9.Thread stoped [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:46]accept exits with 8 [05:33:46]New connection [05:33:46]New thread 3067284836 created [05:33:46]Thread 3067141476 joined [05:33:46]Waiting for new connection... [05:33:46] Sock 8.Parse request [05:33:46]Sock 8.Check first char [05:33:46]Sock 8.First char is OK [05:33:46]request: POST /json_proto HTTP/1.0 [05:33:46]Method: POST [05:33:46]URL: /json_proto [05:33:46]Method is POST - this is cgi request [05:33:46]url: /json_proto [05:33:46]query_string will be loaded in cgi processing [05:33:46]execute_cgi json_proto POST (null) [05:33:46]execute_cgi path=json_proto method=POST [05:33:46]POST find Content-Length [05:33:46]Host: 172.17.50.196:8080 [05:33:46]Content-Length: 626 [05:33:46]Content-Type: application/json [05:33:46] [05:33:46]POST finish read [05:33:46]Found Content-Length = 626 [05:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335466", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 5.000, "sum" : 575.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 575.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:33:46]execute_script... [05:33: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)335466", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 5.000, "sum" : 575.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 575.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:33:46]POST & json_proto [05:33:46]process_json_proto [05:33:46]json parsed OK: [05:33:46]protocol is kg_v1.0 [05:33:46]action value=close_receipt [05:33:46]process_action close_receipt [05:33:46]cmd_close_receipt [05:33:46]MH_GetDate [05:33:46]Write to MH i2c: F0 00 00 82 76 E7 [05:33:46]Write i2c OK [05:33:46]MH_I2C_Read... [05:33:46]Read from MH i2c: F0 [05:33:46]MH_I2C_Read... [05:33:46]Read from MH i2c: F0 09 00 [05:33:46]MH_I2C_Read... [05:33:46]Read from MH i2c: F0 09 00 82 76 00 C3 16 23 67 72 0D 1C 67 55 [05:33:46]GetLastDocTimeStamp 1730352679 [05:33:46]current date 1730352835 [05:33:46]FM_GetShiftState [05:33:46]SAM_PROTO_GetShiftState [05:33:46]wFMCommunicate request_size=4 [05:33:46]MH_SAM_APDU [05:33:46]CAPDU: 80 13 01 00 [05:33:46]Write to MH i2c: E2 08 00 83 76 80 13 01 00 00 00 00 00 76 [05:33:46]Write i2c OK [05:33:46]MH_I2C_Read... [05:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:46]Read from MH i2c: E2 [05:33:46]MH_I2C_Read... [05:33:46]Read from MH i2c: E2 0E 00 [05:33:46]MH_I2C_Read... [05:33:46]Read from MH i2c: E2 0E 00 83 76 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9F [05:33:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:33:46]wFMCommunicate OK [05:33:46]SAM_PROTO_GetShiftState done [05:33:46]FM_GetShiftState done [05:33:46]opened in 1730332621 [05:33:46]opened+sec_in_day 1730419021 [05:33:46]quantity*price = 57500 [05:33:46]sum+1 = 57501 [05:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 575.00 НСП 1% : 5.09 НДС 12% : 61.06 Наличными: 575.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 62 31.10.2024 05:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139585 ФПД: 280231151222886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053355&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139585&fm=280231151222886&tin=02508201610067®Number=0000000000091631&sum=57500 0 [05:33:47]StoreToDocumentArchive [05:33:47]shift 557 fd 139585 [05:33:47]save to /storage/0557/doc_00139585 [05:33:47]save last doc name /storage/0557/doc_00139585 to /storage/kkm_last_doc_name [05:33:47]save OK [05:33:47]Clear old archive folders... [05:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=274 [05:33:47]tlvbuf is 01158400 [05:33:47]SAM_PROTO_ClearQueue [05:33:47]wFMCommunicate request_size=4 [05:33:47]MH_SAM_APDU [05:33:47]CAPDU: 80 09 00 00 [05:33:47]Write to MH i2c: E2 08 00 90 76 80 09 00 00 00 00 00 00 78 [05:33:47]Write i2c OK [05:33:47]MH_I2C_Read... [05:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:33:47]Read from MH i2c: E2 [05:33:47]MH_I2C_Read... [05:33:47]Read from MH i2c: E2 03 00 [05:33:47]MH_I2C_Read... [05:33:47]Read from MH i2c: E2 03 00 90 76 00 90 00 7A [05:33:47]RAPDU: 90 00 [05:33:47]wFMCommunicate OK [05:33:47]SAM_PROTO_ClearQueue done [05:33:47]KKMCreateOFDPacket [05:33:47]OFDProtocolAddRootSTLVToBuf [05:33:47]FM_MakeSignedData [05:33:47]FM_MakeSignedData [05:33:47]SAM_PROTO_SignData [05:33:47]wFMCommunicate request_size=4 [05:33:47]MH_SAM_APDU [05:33:47]CAPDU: 80 0D 01 02 [05:33:47]Write to MH i2c: E2 08 00 91 76 80 0D 01 02 00 00 00 00 80 [05:33:47]Write i2c OK [05:33:47]MH_I2C_Read... [05:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:33:47]Read from MH i2c: E2 [05:33:47]MH_I2C_Read... [05:33:47]Read from MH i2c: E2 03 00 [05:33:47]MH_I2C_Read... [05:33:47]Read from MH i2c: E2 03 00 91 76 00 90 00 7B [05:33:47]RAPDU: 90 00 [05:33:47]wFMCommunicate OK [05:33:47]wFMCommunicate request_size=255 [05:33:47]MH_SAM_APDU [05:33:47]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 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 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 C3 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [05:33:47]Write to MH i2c: E2 02 01 92 76 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 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 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 C3 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 83 [05:33:47]Write i2c OK [05:33:47]MH_I2C_Read... [05:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:47]Read from MH i2c: E2 [05:33:47]MH_I2C_Read... [05:33:47]Read from MH i2c: E2 03 00 [05:33:47]MH_I2C_Read... [05:33:47]Read from MH i2c: E2 03 00 92 76 00 90 00 7C [05:33:47]RAPDU: 90 00 [05:33:47]wFMCommunicate OK [05:33:47]wFMCommunicate request_size=33 [05:33:47]MH_SAM_APDU [05:33:47]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 21 02 00 35 04 06 00 FE DE 66 39 40 66 [05:33:47]Write to MH i2c: E2 24 00 93 76 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 21 02 00 35 04 06 00 FE DE 66 39 40 66 00 00 9F [05:33:47]Write i2c OK [05:33:47]MH_I2C_Read... [05:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:48]Read from MH i2c: E2 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: E2 03 00 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: E2 03 00 93 76 00 90 00 7D [05:33:48]RAPDU: 90 00 [05:33:48]wFMCommunicate OK [05:33:48]wFMCommunicate request_size=4 [05:33:48]MH_SAM_APDU [05:33:48]CAPDU: 80 0D 03 02 [05:33:48]Write to MH i2c: E2 08 00 94 76 80 0D 03 02 00 00 00 00 85 [05:33:48]Write i2c OK [05:33:48]MH_I2C_Read... [05:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:33:48]Read from MH i2c: E2 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: E2 0B 00 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: E2 0B 00 94 76 00 08 EA 22 2E 0F D5 DF 90 90 00 1B [05:33:48]RAPDU: 08 EA 22 2E 0F D5 DF 90 90 00 [05:33:48]wFMCommunicate OK [05:33:48]SAM_PROTO_SignData done [05:33:48]FM_MakeSignedData done [05:33:48]CreateOFDProtocolMessage [05:33:48]wFMCommunicate request_size=4 [05:33:48]MH_SAM_APDU [05:33:48]CAPDU: 80 11 00 00 [05:33:48]Write to MH i2c: E2 08 00 95 76 80 11 00 00 00 00 00 00 85 [05:33:48]Write i2c OK [05:33:48]MH_I2C_Read... [05:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:48]Read from MH i2c: E2 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: E2 17 00 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: E2 17 00 95 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E0 [05:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:33:48]wFMCommunicate OK [05:33:48]CreateOFDProtocolMessage done [05:33:48]OFDSenderStorePacket 139585 [05:33:48]StoreOFDPacket docnum=139585 [05:33: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 26 01 00 00 EE C5 1E 01 CB BA 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 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 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 C3 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 21 02 00 35 04 06 00 FE DE 66 39 40 66 08 EA 22 2E 0F D5 DF 90 [05:33:48]CheckFolder [05:33:48]dirname=/storage/ofd_packets [05:33:48]CheckFolder done [05:33:48]ProducePacketName [05:33:48]name=ofd_packets/00139585 [05:33:48]NVStorageSaveData ofd_packets/00139585 [05:33:48]File name is /storage/ofd_packets/00139585 [05:33:48]Write 324 bytes [05:33:48]NVStorageSaveData done [05:33:48]OFDSenderStorePacket done [05:33:48]KKMCreateOFDPacket done [05:33:48]NVStorageSaveData kkm_last_timestamp [05:33:48]File name is /storage/kkm_last_timestamp [05:33:48]Write 4 bytes [05:33:48]NVStorageSaveData done [05:33:48]ExternCall_PrintAddStr [05:33:48]wPrintStart [05:33:48]Write to MH i2c: 01 00 00 96 76 0C [05:33:48]Write i2c OK [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: 01 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: 01 07 00 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: 01 07 00 96 76 00 00 00 00 00 FF 0F 21 [05:33:48]RasterBufferAndPrint [05:33:48]line Счет N : (3)335466 [05:33:48]line ИНН: 02508201610067 [05:33:48]line Контрольно-Кассовый Чек [05:33:48]line ПРОДАЖА [05:33:48]line Товар: 2000036240010 [05:33:48]line Кофе Латте (GABB TRADE) [05:33:48]line 5.000 * 115.00 [05:33:48]line = 575.00 [05:33:48]line НДС 12% НСП 1% [05:33:48]line > о реализуемом товаре [05:33:48]line ИТОГО: 575.00 [05:33:48]line НСП 1% : 5.09 [05:33:48]line НДС 12% : 61.06 [05:33:48]line Наличными: 575.00 [05:33:48]line Безнал.: 0.00 [05:33:48]line Место: АЗС № 101 "Партнер Нефть" [05:33:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:33:48]line СНО: Общий режим [05:33:48]line Чек 62 31.10.2024 05:33 [05:33:48]line Смена: 557 ФФД: 1.0 [05:33:48]line ЗНМ: 0300000081 [05:33:48]line РНМ: 0000000000091631 [05:33:48]line Версия ККМ: 001 [05:33:48]line ФМ: 0000000000874669 [05:33:48]line ФД: 139585 [05:33:48]line ФПД: 280231151222886 [05:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053355&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139585&fm=280231151222886&tin=02508201610067®Number=0000000000091631&sum=57500 [05:33:48]OFD Sender: Processing packet 139585 [packets to send 34, broken 33] [05:33:48]ProducePacketName [05:33:48]name=ofd_packets/00139585 [05:33:48]OFD Sender: To server: pG, [05:33:48]CommunicateWithHost lk.salyk.kg:30040 [05:33:48]ConnectInit lk.salyk.kg [05:33:48]line 0 [05:33:48]written 0, free lines is 4095 [05:33:48]Connected sock=10 [05:33: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 26 01 00 00 EE C5 1E 01 CB BA 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 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 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 C3 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 21 02 00 35 04 06 00 FE DE 66 39 40 66 08 EA 22 2E 0F D5 DF 90 [05:33: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 6D EE 47 00 C9 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 41 21 02 00 F4 03 04 00 71 C2 22 67 B6 04 01 00 00 78 E7 40 1D 67 5C B8 98 [05:33:48]CommunicateWithHost err = 0 [05:33:48]CheckOFDResponse [05:33:48]1017 (14) - 77093643461234 [05:33:48]1041 (16) - 0000000000874669 [05:33:48]1040 (4) - 139585 [05:33:48]1012 (4) - 30.10.2024 23:34 [05:33:48]1206 (1) - 0 [05:33:48]OFD Sender: Remove packet 139585 [05:33:48]ProducePacketName [05:33:48]name=ofd_packets/00139585 [05:33:48]NVStorageDeleteData [05:33:48]Write to MH i2c: 01 00 00 BE 76 34 [05:33:48]Write i2c OK [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: 01 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: 01 07 00 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: 01 07 00 BE 76 00 00 00 00 00 20 0D 68 [05:33:48]RasterBufferAndPrint [05:33:48]line [05:33:48]line [05:33:48]line [05:33:48]line [05:33:48]line [05:33:48]written 0, free lines is 3369 [05:33:48]MH_Cut [05:33:48]Write to MH i2c: D1 01 00 C5 76 01 0D [05:33:48]Write i2c OK [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: D1 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: D1 01 00 [05:33:48]MH_I2C_Read... [05:33:48]Read from MH i2c: D1 01 00 C5 76 00 0C [05:33:48]Write to MH i2c: 01 00 00 C6 76 3C [05:33:48]Write i2c OK [05:33:48]MH_I2C_Read... [05:33:49]OFD Sender: No OFD packet to send [05:33:49]*** Cut start [05:33:49]*** Partial cut [05:33:49]*** CUTSNS_PIN = 1 [05:33:49]*** CUTSNS_PIN = 0 [05:33:49]*** Brake cut motor [05:33:50]Read from MH i2c: 01 [05:33:50]MH_I2C_Read... [05:33:50]*** Stop cut motor [05:33:50]*** Cut end [05:33:50]Read from MH i2c: 01 07 00 [05:33:50]MH_I2C_Read... [05:33:50]Read from MH i2c: 01 07 00 C6 76 00 00 00 00 00 FF 0F 51 [05:33:50]process_action close_receipt done [05:33:50]requested_data is exist [05:33:50]produce_requested_data [05:33:50]requested_item fm.sn is exist - process it [05:33:50]wFMCommunicate request_size=4 [05:33:50]MH_SAM_APDU [05:33:50]CAPDU: 80 11 00 00 [05:33:50]Write to MH i2c: E2 08 00 C7 76 80 11 00 00 00 00 00 00 B7 [05:33:50]Write i2c OK [05:33:50]MH_I2C_Read... [05:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:50]Read from MH i2c: E2 [05:33:50]MH_I2C_Read... [05:33:50]Read from MH i2c: E2 17 00 [05:33:50]MH_I2C_Read... [05:33:50]Read from MH i2c: E2 17 00 C7 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 12 [05:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:33:50]wFMCommunicate OK [05:33:50]requested_item fd.num is exist - process it [05:33:50]SAM_PROTO_GetFieldsCounters [05:33:50]wFMCommunicate request_size=4 [05:33:50]MH_SAM_APDU [05:33:50]CAPDU: 80 13 00 00 [05:33:50]Write to MH i2c: E2 08 00 C8 76 80 13 00 00 00 00 00 00 BA [05:33:50]Write i2c OK [05:33:50]MH_I2C_Read... [05:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:33:50]Read from MH i2c: E2 [05:33:50]MH_I2C_Read... [05:33:50]Read from MH i2c: E2 62 00 [05:33:50]MH_I2C_Read... [05:33:50]Read from MH i2c: E2 62 00 C8 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 41 21 02 00 0E 04 04 00 2D 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 2B [05:33: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 41 21 02 00 0E 04 04 00 2D 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 [05:33:50]wFMCommunicate OK [05:33:50]SAM_PROTO_GetFieldsCounters done [05:33:50]requested_item shift.num is exist - process it [05:33:50]requested_item shift.opened is exist - process it [05:33:50]req_shift_opened [05:33:50]FM_GetShiftState [05:33:50]SAM_PROTO_GetShiftState [05:33:50]wFMCommunicate request_size=4 [05:33:50]MH_SAM_APDU [05:33:50]CAPDU: 80 13 01 00 [05:33:50]Write to MH i2c: E2 08 00 C9 76 80 13 01 00 00 00 00 00 BC [05:33:50]Write i2c OK [05:33:50]MH_I2C_Read... [05:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:50]Read from MH i2c: E2 [05:33:50]MH_I2C_Read... [05:33:50]Read from MH i2c: E2 0E 00 [05:33:50]MH_I2C_Read... [05:33:50]Read from MH i2c: E2 0E 00 C9 76 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E5 [05:33:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:33:50]wFMCommunicate OK [05:33:50]SAM_PROTO_GetShiftState done [05:33:50]FM_GetShiftState done [05:33:50]req_shift_opened done [05:33:50]requested_item shift.open_date is exist - process it [05:33:50]req_shift_open_date [05:33:50]req_shift_open_date done [05:33:50]produce_requested_data done [05:33:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139585,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:33:50]process_action_free close_receipt [05:33:50]json_value_free [05:33:50]json_value_free done [05:33:50]process_json_proto returns [05:33:50]Send response to host [05:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139585,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:33:50]free response buf [05:33:50]execute_script done [05:33:50]execute_script returns [05:33:50]free content buf [05:33:50]Sock 8.Close socket [05:33:50]Sock 8.Thread stoped [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:33:59]accept exits with 9 [05:33:59]New connection [05:33:59]New thread 3067141476 created [05:33:59]Thread 3067284836 joined [05:33:59]Waiting for new connection... [05:33:59] Sock 9.Parse request [05:33:59]Sock 9.Check first char [05:33:59]Sock 9.First char is OK [05:33:59]request: POST /json_proto HTTP/1.0 [05:33:59]Method: POST [05:33:59]URL: /json_proto [05:33:59]Method is POST - this is cgi request [05:33:59]url: /json_proto [05:33:59]query_string will be loaded in cgi processing [05:33:59]execute_cgi json_proto POST (null) [05:33:59]execute_cgi path=json_proto method=POST [05:33:59]POST find Content-Length [05:33:59]Host: 172.17.50.196:8080 [05:33:59]Content-Length: 626 [05:33:59]Content-Type: application/json [05:33:59] [05:33:59]POST finish read [05:33:59]Found Content-Length = 626 [05:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335467", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:33:59]execute_script... [05:33: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)335467", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:33:59]POST & json_proto [05:33:59]process_json_proto [05:33:59]json parsed OK: [05:33:59]protocol is kg_v1.0 [05:33:59]action value=close_receipt [05:33:59]process_action close_receipt [05:33:59]cmd_close_receipt [05:33:59]MH_GetDate [05:33:59]Write to MH i2c: F0 00 00 CA 76 2F [05:33:59]Write i2c OK [05:33:59]MH_I2C_Read... [05:33:59]Read from MH i2c: F0 [05:33:59]MH_I2C_Read... [05:33:59]Read from MH i2c: F0 09 00 [05:33:59]MH_I2C_Read... [05:33:59]Read from MH i2c: F0 09 00 CA 76 00 D0 16 23 67 72 0D 1C 67 AA [05:33:59]GetLastDocTimeStamp 1730352835 [05:33:59]current date 1730352848 [05:33:59]FM_GetShiftState [05:33:59]SAM_PROTO_GetShiftState [05:33:59]wFMCommunicate request_size=4 [05:33:59]MH_SAM_APDU [05:33:59]CAPDU: 80 13 01 00 [05:33:59]Write to MH i2c: E2 08 00 CB 76 80 13 01 00 00 00 00 00 BE [05:33:59]Write i2c OK [05:33:59]MH_I2C_Read... [05:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:59]Read from MH i2c: E2 [05:33:59]MH_I2C_Read... [05:33:59]Read from MH i2c: E2 0E 00 [05:33:59]MH_I2C_Read... [05:33:59]Read from MH i2c: E2 0E 00 CB 76 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E7 [05:33:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:33:59]wFMCommunicate OK [05:33:59]SAM_PROTO_GetShiftState done [05:33:59]FM_GetShiftState done [05:33:59]opened in 1730332621 [05:33:59]opened+sec_in_day 1730419021 [05:33:59]quantity*price = 46000 [05:33:59]sum+1 = 46001 [05:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 63 31.10.2024 05:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139586 ФПД: 150220647949990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053408&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139586&fm=150220647949990&tin=02508201610067®Number=0000000000091631&sum=46000 0 [05:34:00]StoreToDocumentArchive [05:34:00]shift 557 fd 139586 [05:34:00]save to /storage/0557/doc_00139586 [05:34:00]save last doc name /storage/0557/doc_00139586 to /storage/kkm_last_doc_name [05:34:00]save OK [05:34:00]Clear old archive folders... [05:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=274 [05:34:00]tlvbuf is 0136E280 [05:34:00]SAM_PROTO_ClearQueue [05:34:00]wFMCommunicate request_size=4 [05:34:00]MH_SAM_APDU [05:34:00]CAPDU: 80 09 00 00 [05:34:00]Write to MH i2c: E2 08 00 D8 76 80 09 00 00 00 00 00 00 C0 [05:34:00]Write i2c OK [05:34:00]MH_I2C_Read... [05:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:34:00]Read from MH i2c: E2 [05:34:00]MH_I2C_Read... [05:34:00]Read from MH i2c: E2 03 00 [05:34:00]MH_I2C_Read... [05:34:00]Read from MH i2c: E2 03 00 D8 76 00 90 00 C2 [05:34:00]RAPDU: 90 00 [05:34:00]wFMCommunicate OK [05:34:00]SAM_PROTO_ClearQueue done [05:34:00]KKMCreateOFDPacket [05:34:00]OFDProtocolAddRootSTLVToBuf [05:34:00]FM_MakeSignedData [05:34:00]FM_MakeSignedData [05:34:00]SAM_PROTO_SignData [05:34:00]wFMCommunicate request_size=4 [05:34:00]MH_SAM_APDU [05:34:00]CAPDU: 80 0D 01 02 [05:34:00]Write to MH i2c: E2 08 00 D9 76 80 0D 01 02 00 00 00 00 C8 [05:34:00]Write i2c OK [05:34:00]MH_I2C_Read... [05:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:34:00]Read from MH i2c: E2 [05:34:00]MH_I2C_Read... [05:34:00]Read from MH i2c: E2 03 00 [05:34:00]MH_I2C_Read... [05:34:00]Read from MH i2c: E2 03 00 D9 76 00 90 00 C3 [05:34:00]RAPDU: 90 00 [05:34:00]wFMCommunicate OK [05:34:00]wFMCommunicate request_size=255 [05:34:00]MH_SAM_APDU [05:34:00]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 D0 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [05:34:00]Write to MH i2c: E2 02 01 DA 76 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 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 D0 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 73 [05:34:00]Write i2c OK [05:34:00]MH_I2C_Read... [05:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:34:00]Read from MH i2c: E2 [05:34:00]MH_I2C_Read... [05:34:00]Read from MH i2c: E2 03 00 [05:34:00]MH_I2C_Read... [05:34:00]Read from MH i2c: E2 03 00 DA 76 00 90 00 C4 [05:34:00]RAPDU: 90 00 [05:34:00]wFMCommunicate OK [05:34:00]wFMCommunicate request_size=33 [05:34:00]MH_SAM_APDU [05:34:00]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 42 21 02 00 35 04 06 00 88 9F F8 5B E6 A6 [05:34:00]Write to MH i2c: E2 24 00 DB 76 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 42 21 02 00 35 04 06 00 88 9F F8 5B E6 A6 00 00 CD [05:34:00]Write i2c OK [05:34:00]MH_I2C_Read... [05:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:34:01]Read from MH i2c: E2 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: E2 03 00 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: E2 03 00 DB 76 00 90 00 C5 [05:34:01]RAPDU: 90 00 [05:34:01]wFMCommunicate OK [05:34:01]wFMCommunicate request_size=4 [05:34:01]MH_SAM_APDU [05:34:01]CAPDU: 80 0D 03 02 [05:34:01]Write to MH i2c: E2 08 00 DC 76 80 0D 03 02 00 00 00 00 CD [05:34:01]Write i2c OK [05:34:01]MH_I2C_Read... [05:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:34:01]Read from MH i2c: E2 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: E2 0B 00 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: E2 0B 00 DC 76 00 0A FD A2 28 67 64 B5 0A 90 00 29 [05:34:01]RAPDU: 0A FD A2 28 67 64 B5 0A 90 00 [05:34:01]wFMCommunicate OK [05:34:01]SAM_PROTO_SignData done [05:34:01]FM_MakeSignedData done [05:34:01]CreateOFDProtocolMessage [05:34:01]wFMCommunicate request_size=4 [05:34:01]MH_SAM_APDU [05:34:01]CAPDU: 80 11 00 00 [05:34:01]Write to MH i2c: E2 08 00 DD 76 80 11 00 00 00 00 00 00 CD [05:34:01]Write i2c OK [05:34:01]MH_I2C_Read... [05:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:01]Read from MH i2c: E2 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: E2 17 00 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: E2 17 00 DD 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 28 [05:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:34:01]wFMCommunicate OK [05:34:01]CreateOFDProtocolMessage done [05:34:01]OFDSenderStorePacket 139586 [05:34:01]StoreOFDPacket docnum=139586 [05:34: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 26 01 00 00 31 EA 1E 01 7A A5 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 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 D0 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 42 21 02 00 35 04 06 00 88 9F F8 5B E6 A6 0A FD A2 28 67 64 B5 0A [05:34:01]CheckFolder [05:34:01]dirname=/storage/ofd_packets [05:34:01]CheckFolder done [05:34:01]ProducePacketName [05:34:01]name=ofd_packets/00139586 [05:34:01]NVStorageSaveData ofd_packets/00139586 [05:34:01]File name is /storage/ofd_packets/00139586 [05:34:01]Write 324 bytes [05:34:01]NVStorageSaveData done [05:34:01]OFDSenderStorePacket done [05:34:01]KKMCreateOFDPacket done [05:34:01]NVStorageSaveData kkm_last_timestamp [05:34:01]File name is /storage/kkm_last_timestamp [05:34:01]Write 4 bytes [05:34:01]NVStorageSaveData done [05:34:01]ExternCall_PrintAddStr [05:34:01]wPrintStart [05:34:01]Write to MH i2c: 01 00 00 DE 76 54 [05:34:01]Write i2c OK [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: 01 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: 01 07 00 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: 01 07 00 DE 76 00 00 00 00 00 FF 0F 69 [05:34:01]RasterBufferAndPrint [05:34:01]line Счет N : (3)335467 [05:34:01]line ИНН: 02508201610067 [05:34:01]line Контрольно-Кассовый Чек [05:34:01]line ПРОДАЖА [05:34:01]line Товар: 2000036240010 [05:34:01]line Кофе Латте (GABB TRADE) [05:34:01]line 4.000 * 115.00 [05:34:01]line = 460.00 [05:34:01]line НДС 12% НСП 1% [05:34:01]line > о реализуемом товаре [05:34:01]line ИТОГО: 460.00 [05:34:01]line НСП 1% : 4.07 [05:34:01]line НДС 12% : 48.85 [05:34:01]line Наличными: 460.00 [05:34:01]line Безнал.: 0.00 [05:34:01]line Место: АЗС № 101 "Партнер Нефть" [05:34:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:34:01]line СНО: Общий режим [05:34:01]line Чек 63 31.10.2024 05:34 [05:34:01]line Смена: 557 ФФД: 1.0 [05:34:01]line ЗНМ: 0300000081 [05:34:01]line РНМ: 0000000000091631 [05:34:01]line Версия ККМ: 001 [05:34:01]line ФМ: 0000000000874669 [05:34:01]line ФД: 139586 [05:34:01]line ФПД: 150220647949990 [05:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053408&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139586&fm=150220647949990&tin=02508201610067®Number=0000000000091631&sum=46000 [05:34:01]OFD Sender: Processing packet 139586 [packets to send 34, broken 33] [05:34:01]ProducePacketName [05:34:01]name=ofd_packets/00139586 [05:34:01]OFD Sender: To server: pG, [05:34:01]CommunicateWithHost lk.salyk.kg:30040 [05:34:01]ConnectInit lk.salyk.kg [05:34:01]line 0 [05:34:01]written 0, free lines is 4095 [05:34:01]Connected sock=10 [05:34: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 26 01 00 00 31 EA 1E 01 7A A5 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 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 D0 16 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 42 21 02 00 35 04 06 00 88 9F F8 5B E6 A6 0A FD A2 28 67 64 B5 0A [05:34: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 86 A3 47 00 1C E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 42 21 02 00 F4 03 04 00 7E C2 22 67 B6 04 01 00 00 CF C6 D4 98 43 60 5C 38 [05:34:01]CommunicateWithHost err = 0 [05:34:01]CheckOFDResponse [05:34:01]1017 (14) - 77093643461234 [05:34:01]1041 (16) - 0000000000874669 [05:34:01]1040 (4) - 139586 [05:34:01]1012 (4) - 30.10.2024 23:34 [05:34:01]1206 (1) - 0 [05:34:01]OFD Sender: Remove packet 139586 [05:34:01]ProducePacketName [05:34:01]name=ofd_packets/00139586 [05:34:01]NVStorageDeleteData [05:34:01]Write to MH i2c: 01 00 00 06 77 7D [05:34:01]Write i2c OK [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: 01 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: 01 07 00 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: 01 07 00 06 77 00 00 00 00 00 1A 0D AB [05:34:01]RasterBufferAndPrint [05:34:01]line [05:34:01]line [05:34:01]line [05:34:01]line [05:34:01]line [05:34:01]written 0, free lines is 3360 [05:34:01]MH_Cut [05:34:01]Write to MH i2c: D1 01 00 0D 77 01 56 [05:34:01]Write i2c OK [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: D1 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: D1 01 00 [05:34:01]MH_I2C_Read... [05:34:01]Read from MH i2c: D1 01 00 0D 77 00 55 [05:34:01]Write to MH i2c: 01 00 00 0E 77 85 [05:34:01]Write i2c OK [05:34:01]MH_I2C_Read... [05:34:02]OFD Sender: No OFD packet to send [05:34:02]*** Cut start [05:34:02]*** Partial cut [05:34:02]*** CUTSNS_PIN = 1 [05:34:02]*** CUTSNS_PIN = 0 [05:34:02]*** Brake cut motor [05:34:03]Read from MH i2c: 01 [05:34:03]MH_I2C_Read... [05:34:03]*** Stop cut motor [05:34:03]*** Cut end [05:34:03]Read from MH i2c: 01 07 00 [05:34:03]MH_I2C_Read... [05:34:03]Read from MH i2c: 01 07 00 0E 77 00 00 00 00 00 FF 0F 9A [05:34:03]process_action close_receipt done [05:34:03]requested_data is exist [05:34:03]produce_requested_data [05:34:03]requested_item fm.sn is exist - process it [05:34:03]wFMCommunicate request_size=4 [05:34:03]MH_SAM_APDU [05:34:03]CAPDU: 80 11 00 00 [05:34:03]Write to MH i2c: E2 08 00 0F 77 80 11 00 00 00 00 00 00 00 [05:34:03]Write i2c OK [05:34:03]MH_I2C_Read... [05:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:03]Read from MH i2c: E2 [05:34:03]MH_I2C_Read... [05:34:03]Read from MH i2c: E2 17 00 [05:34:03]MH_I2C_Read... [05:34:03]Read from MH i2c: E2 17 00 0F 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5B [05:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:34:03]wFMCommunicate OK [05:34:03]requested_item fd.num is exist - process it [05:34:03]SAM_PROTO_GetFieldsCounters [05:34:03]wFMCommunicate request_size=4 [05:34:03]MH_SAM_APDU [05:34:03]CAPDU: 80 13 00 00 [05:34:03]Write to MH i2c: E2 08 00 10 77 80 13 00 00 00 00 00 00 03 [05:34:03]Write i2c OK [05:34:03]MH_I2C_Read... [05:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:34:03]Read from MH i2c: E2 [05:34:03]MH_I2C_Read... [05:34:03]Read from MH i2c: E2 62 00 [05:34:03]MH_I2C_Read... [05:34:03]Read from MH i2c: E2 62 00 10 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 42 21 02 00 0E 04 04 00 2D 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 78 [05:34: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 42 21 02 00 0E 04 04 00 2D 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:34:03]wFMCommunicate OK [05:34:03]SAM_PROTO_GetFieldsCounters done [05:34:03]requested_item shift.num is exist - process it [05:34:03]requested_item shift.opened is exist - process it [05:34:03]req_shift_opened [05:34:03]FM_GetShiftState [05:34:03]SAM_PROTO_GetShiftState [05:34:03]wFMCommunicate request_size=4 [05:34:03]MH_SAM_APDU [05:34:03]CAPDU: 80 13 01 00 [05:34:03]Write to MH i2c: E2 08 00 11 77 80 13 01 00 00 00 00 00 05 [05:34:03]Write i2c OK [05:34:03]MH_I2C_Read... [05:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:34:03]Read from MH i2c: E2 [05:34:03]MH_I2C_Read... [05:34:03]Read from MH i2c: E2 0E 00 [05:34:03]MH_I2C_Read... [05:34:03]Read from MH i2c: E2 0E 00 11 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2E [05:34:03]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:34:03]wFMCommunicate OK [05:34:03]SAM_PROTO_GetShiftState done [05:34:03]FM_GetShiftState done [05:34:03]req_shift_opened done [05:34:03]requested_item shift.open_date is exist - process it [05:34:03]req_shift_open_date [05:34:03]req_shift_open_date done [05:34:03]produce_requested_data done [05:34:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139586,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:34:03]process_action_free close_receipt [05:34:03]json_value_free [05:34:03]json_value_free done [05:34:03]process_json_proto returns [05:34:03]Send response to host [05:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139586,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:34:03]free response buf [05:34:03]execute_script done [05:34:03]execute_script returns [05:34:03]free content buf [05:34:03]Sock 9.Close socket [05:34:03]Sock 9.Thread stoped [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:24]accept exits with 8 [05:35:24]New connection [05:35:24]New thread 3067284836 created [05:35:24]Thread 3067141476 joined [05:35:24]Waiting for new connection... [05:35:24] Sock 8.Parse request [05:35:24]Sock 8.Check first char [05:35:24]Sock 8.First char is OK [05:35:24]request: POST /json_proto HTTP/1.0 [05:35:24]Method: POST [05:35:24]URL: /json_proto [05:35:24]Method is POST - this is cgi request [05:35:24]url: /json_proto [05:35:24]query_string will be loaded in cgi processing [05:35:24]execute_cgi json_proto POST (null) [05:35:24]execute_cgi path=json_proto method=POST [05:35:24]POST find Content-Length [05:35:24]Host: 172.17.50.196:8080 [05:35:24]Content-Length: 628 [05:35:24]Content-Type: application/json [05:35:24] [05:35:24]POST finish read [05:35:24]Found Content-Length = 628 [05:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335468", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:24]execute_script... [05:35:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335468", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 5.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:24]POST & json_proto [05:35:24]process_json_proto [05:35:24]json parsed OK: [05:35:24]protocol is kg_v1.0 [05:35:24]action value=close_receipt [05:35:24]process_action close_receipt [05:35:24]cmd_close_receipt [05:35:24]MH_GetDate [05:35:24]Write to MH i2c: F0 00 00 12 77 78 [05:35:24]Write i2c OK [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: F0 [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: F0 09 00 [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: F0 09 00 12 77 00 25 17 23 67 72 0D 1C 67 49 [05:35:24]GetLastDocTimeStamp 1730352848 [05:35:24]current date 1730352933 [05:35:24]FM_GetShiftState [05:35:24]SAM_PROTO_GetShiftState [05:35:24]wFMCommunicate request_size=4 [05:35:24]MH_SAM_APDU [05:35:24]CAPDU: 80 13 01 00 [05:35:24]Write to MH i2c: E2 08 00 13 77 80 13 01 00 00 00 00 00 07 [05:35:24]Write i2c OK [05:35:24]MH_I2C_Read... [05:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:24]Read from MH i2c: E2 [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: E2 0E 00 [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: E2 0E 00 13 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 30 [05:35:24]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:35:24]wFMCommunicate OK [05:35:24]SAM_PROTO_GetShiftState done [05:35:24]FM_GetShiftState done [05:35:24]opened in 1730332621 [05:35:24]opened+sec_in_day 1730419021 [05:35:24]quantity*price = 65000 [05:35:24]sum+1 = 65001 [05:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 64 31.10.2024 05:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139587 ФПД: 180370677568048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053533&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139587&fm=180370677568048&tin=02508201610067®Number=0000000000091631&sum=65000 0 [05:35:25]StoreToDocumentArchive [05:35:25]shift 557 fd 139587 [05:35:25]save to /storage/0557/doc_00139587 [05:35:25]save last doc name /storage/0557/doc_00139587 to /storage/kkm_last_doc_name [05:35:25]save OK [05:35:25]Clear old archive folders... [05:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=276 [05:35:25]tlvbuf is 011586A0 [05:35:25]SAM_PROTO_ClearQueue [05:35:25]wFMCommunicate request_size=4 [05:35:25]MH_SAM_APDU [05:35:25]CAPDU: 80 09 00 00 [05:35:25]Write to MH i2c: E2 08 00 20 77 80 09 00 00 00 00 00 00 09 [05:35:25]Write i2c OK [05:35:25]MH_I2C_Read... [05:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:35:25]Read from MH i2c: E2 [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 03 00 [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 03 00 20 77 00 90 00 0B [05:35:25]RAPDU: 90 00 [05:35:25]wFMCommunicate OK [05:35:25]SAM_PROTO_ClearQueue done [05:35:25]KKMCreateOFDPacket [05:35:25]OFDProtocolAddRootSTLVToBuf [05:35:25]FM_MakeSignedData [05:35:25]FM_MakeSignedData [05:35:25]SAM_PROTO_SignData [05:35:25]wFMCommunicate request_size=4 [05:35:25]MH_SAM_APDU [05:35:25]CAPDU: 80 0D 01 02 [05:35:25]Write to MH i2c: E2 08 00 21 77 80 0D 01 02 00 00 00 00 11 [05:35:25]Write i2c OK [05:35:25]MH_I2C_Read... [05:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:35:25]Read from MH i2c: E2 [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 03 00 [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 03 00 21 77 00 90 00 0C [05:35:25]RAPDU: 90 00 [05:35:25]wFMCommunicate OK [05:35:25]wFMCommunicate request_size=255 [05:35:25]MH_SAM_APDU [05:35:25]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 25 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [05:35:25]Write to MH i2c: E2 02 01 22 77 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 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 25 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 43 [05:35:25]Write i2c OK [05:35:25]MH_I2C_Read... [05:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:26]Read from MH i2c: E2 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 03 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 03 00 22 77 00 90 00 0D [05:35:26]RAPDU: 90 00 [05:35:26]wFMCommunicate OK [05:35:26]wFMCommunicate request_size=35 [05:35:26]MH_SAM_APDU [05:35:26]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 21 02 00 35 04 06 00 A4 0B D2 2A 12 30 [05:35:26]Write to MH i2c: E2 26 00 23 77 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 21 02 00 35 04 06 00 A4 0B D2 2A 12 30 00 00 62 [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:26]Read from MH i2c: E2 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 03 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 03 00 23 77 00 90 00 0E [05:35:26]RAPDU: 90 00 [05:35:26]wFMCommunicate OK [05:35:26]wFMCommunicate request_size=4 [05:35:26]MH_SAM_APDU [05:35:26]CAPDU: 80 0D 03 02 [05:35:26]Write to MH i2c: E2 08 00 24 77 80 0D 03 02 00 00 00 00 16 [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:35:26]Read from MH i2c: E2 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 0B 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 0B 00 24 77 00 57 B5 4C C9 DF AC 3D 2D 90 00 2D [05:35:26]RAPDU: 57 B5 4C C9 DF AC 3D 2D 90 00 [05:35:26]wFMCommunicate OK [05:35:26]SAM_PROTO_SignData done [05:35:26]FM_MakeSignedData done [05:35:26]CreateOFDProtocolMessage [05:35:26]wFMCommunicate request_size=4 [05:35:26]MH_SAM_APDU [05:35:26]CAPDU: 80 11 00 00 [05:35:26]Write to MH i2c: E2 08 00 25 77 80 11 00 00 00 00 00 00 16 [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:26]Read from MH i2c: E2 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 17 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: E2 17 00 25 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [05:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:35:26]wFMCommunicate OK [05:35:26]CreateOFDProtocolMessage done [05:35:26]OFDSenderStorePacket 139587 [05:35:26]StoreOFDPacket docnum=139587 [05:35: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 28 01 00 00 18 0E 20 01 6D 31 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 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 25 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 21 02 00 35 04 06 00 A4 0B D2 2A 12 30 57 B5 4C C9 DF AC 3D 2D [05:35:26]CheckFolder [05:35:26]dirname=/storage/ofd_packets [05:35:26]CheckFolder done [05:35:26]ProducePacketName [05:35:26]name=ofd_packets/00139587 [05:35:26]NVStorageSaveData ofd_packets/00139587 [05:35:26]File name is /storage/ofd_packets/00139587 [05:35:26]Write 326 bytes [05:35:26]NVStorageSaveData done [05:35:26]OFDSenderStorePacket done [05:35:26]KKMCreateOFDPacket done [05:35:26]NVStorageSaveData kkm_last_timestamp [05:35:26]File name is /storage/kkm_last_timestamp [05:35:26]Write 4 bytes [05:35:26]NVStorageSaveData done [05:35:26]ExternCall_PrintAddStr [05:35:26]wPrintStart [05:35:26]Write to MH i2c: 01 00 00 26 77 9D [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: 01 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: 01 07 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: 01 07 00 26 77 00 00 00 00 00 FF 0F B2 [05:35:26]RasterBufferAndPrint [05:35:26]line Счет N : (3)335468 [05:35:26]line ИНН: 02508201610067 [05:35:26]line Контрольно-Кассовый Чек [05:35:26]line ПРОДАЖА [05:35:26]line Товар: 2000036230011 [05:35:26]line Кофе Латте XL(GABB TRADE) [05:35:26]line 5.000 * 130.00 [05:35:26]line = 650.00 [05:35:26]line НДС 12% НСП 1% [05:35:26]line > о реализуемом товаре [05:35:26]line ИТОГО: 650.00 [05:35:26]line НСП 1% : 5.75 [05:35:26]line НДС 12% : 69.03 [05:35:26]line Наличными: 650.00 [05:35:26]line Безнал.: 0.00 [05:35:26]line Место: АЗС № 101 "Партнер Нефть" [05:35:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:35:26]line СНО: Общий режим [05:35:26]line Чек 64 31.10.2024 05:35 [05:35:26]line Смена: 557 ФФД: 1.0 [05:35:26]line ЗНМ: 0300000081 [05:35:26]line РНМ: 0000000000091631 [05:35:26]line Версия ККМ: 001 [05:35:26]line ФМ: 0000000000874669 [05:35:26]line ФД: 139587 [05:35:26]line ФПД: 180370677568048 [05:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053533&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139587&fm=180370677568048&tin=02508201610067®Number=0000000000091631&sum=65000 [05:35:26]OFD Sender: Processing packet 139587 [packets to send 34, broken 33] [05:35:26]ProducePacketName [05:35:26]name=ofd_packets/00139587 [05:35:26]OFD Sender: To server: pG, [05:35:26]CommunicateWithHost lk.salyk.kg:30040 [05:35:26]ConnectInit lk.salyk.kg [05:35:26]line 0 [05:35:26]written 0, free lines is 4095 [05:35:26]Connected sock=10 [05:35: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 28 01 00 00 18 0E 20 01 6D 31 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 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 25 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 21 02 00 35 04 06 00 A4 0B D2 2A 12 30 57 B5 4C C9 DF AC 3D 2D [05:35: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 70 FF 47 00 BB 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 21 02 00 F4 03 04 00 D3 C2 22 67 B6 04 01 00 00 44 66 00 89 BD BF B3 18 [05:35:26]CommunicateWithHost err = 0 [05:35:26]CheckOFDResponse [05:35:26]1017 (14) - 77093643461234 [05:35:26]1041 (16) - 0000000000874669 [05:35:26]1040 (4) - 139587 [05:35:26]1012 (4) - 30.10.2024 23:35 [05:35:26]1206 (1) - 0 [05:35:26]OFD Sender: Remove packet 139587 [05:35:26]ProducePacketName [05:35:26]name=ofd_packets/00139587 [05:35:26]NVStorageDeleteData [05:35:26]Write to MH i2c: 01 00 00 4E 77 C5 [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: 01 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: 01 07 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: 01 07 00 4E 77 00 00 00 00 00 23 0D FC [05:35:26]RasterBufferAndPrint [05:35:26]line [05:35:26]line [05:35:26]line [05:35:26]line [05:35:26]line [05:35:26]written 0, free lines is 3372 [05:35:26]MH_Cut [05:35:26]Write to MH i2c: D1 01 00 55 77 01 9E [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: D1 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: D1 01 00 [05:35:26]MH_I2C_Read... [05:35:26]Read from MH i2c: D1 01 00 55 77 00 9D [05:35:26]Write to MH i2c: 01 00 00 56 77 CD [05:35:26]Write i2c OK [05:35:26]MH_I2C_Read... [05:35:27]OFD Sender: No OFD packet to send [05:35:27]*** Cut start [05:35:27]*** Partial cut [05:35:27]*** CUTSNS_PIN = 1 [05:35:27]*** CUTSNS_PIN = 0 [05:35:27]*** Brake cut motor [05:35:28]Read from MH i2c: 01 [05:35:28]MH_I2C_Read... [05:35:28]*** Stop cut motor [05:35:28]*** Cut end [05:35:28]Read from MH i2c: 01 07 00 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: 01 07 00 56 77 00 00 00 00 00 FF 0F E2 [05:35:28]process_action close_receipt done [05:35:28]requested_data is exist [05:35:28]produce_requested_data [05:35:28]requested_item fm.sn is exist - process it [05:35:28]wFMCommunicate request_size=4 [05:35:28]MH_SAM_APDU [05:35:28]CAPDU: 80 11 00 00 [05:35:28]Write to MH i2c: E2 08 00 57 77 80 11 00 00 00 00 00 00 48 [05:35:28]Write i2c OK [05:35:28]MH_I2C_Read... [05:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:28]Read from MH i2c: E2 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: E2 17 00 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: E2 17 00 57 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A3 [05:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:35:28]wFMCommunicate OK [05:35:28]requested_item fd.num is exist - process it [05:35:28]SAM_PROTO_GetFieldsCounters [05:35:28]wFMCommunicate request_size=4 [05:35:28]MH_SAM_APDU [05:35:28]CAPDU: 80 13 00 00 [05:35:28]Write to MH i2c: E2 08 00 58 77 80 13 00 00 00 00 00 00 4B [05:35:28]Write i2c OK [05:35:28]MH_I2C_Read... [05:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:35:28]Read from MH i2c: E2 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: E2 62 00 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: E2 62 00 58 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 43 21 02 00 0E 04 04 00 2D 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 C4 [05:35: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 43 21 02 00 0E 04 04 00 2D 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:35:28]wFMCommunicate OK [05:35:28]SAM_PROTO_GetFieldsCounters done [05:35:28]requested_item shift.num is exist - process it [05:35:28]requested_item shift.opened is exist - process it [05:35:28]req_shift_opened [05:35:28]FM_GetShiftState [05:35:28]SAM_PROTO_GetShiftState [05:35:28]wFMCommunicate request_size=4 [05:35:28]MH_SAM_APDU [05:35:28]CAPDU: 80 13 01 00 [05:35:28]Write to MH i2c: E2 08 00 59 77 80 13 01 00 00 00 00 00 4D [05:35:28]Write i2c OK [05:35:28]MH_I2C_Read... [05:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:28]Read from MH i2c: E2 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: E2 0E 00 [05:35:28]MH_I2C_Read... [05:35:28]Read from MH i2c: E2 0E 00 59 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 76 [05:35:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:35:28]wFMCommunicate OK [05:35:28]SAM_PROTO_GetShiftState done [05:35:28]FM_GetShiftState done [05:35:28]req_shift_opened done [05:35:28]requested_item shift.open_date is exist - process it [05:35:28]req_shift_open_date [05:35:28]req_shift_open_date done [05:35:28]produce_requested_data done [05:35:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139587,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:35:28]process_action_free close_receipt [05:35:28]json_value_free [05:35:28]json_value_free done [05:35:28]process_json_proto returns [05:35:28]Send response to host [05:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139587,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:35:28]free response buf [05:35:28]execute_script done [05:35:28]execute_script returns [05:35:28]free content buf [05:35:28]Sock 8.Close socket [05:35:28]Sock 8.Thread stoped [05:35:32]OFD Sender: No OFD packet to send [05:35:35]accept exits with 9 [05:35:35]New connection [05:35:35]New thread 3067141476 created [05:35:35]Thread 3067284836 joined [05:35:35]Waiting for new connection... [05:35:35] Sock 9.Parse request [05:35:35]Sock 9.Check first char [05:35:35]Sock 9.First char is OK [05:35:35]request: POST /json_proto HTTP/1.0 [05:35:35]Method: POST [05:35:35]URL: /json_proto [05:35:35]Method is POST - this is cgi request [05:35:35]url: /json_proto [05:35:35]query_string will be loaded in cgi processing [05:35:35]execute_cgi json_proto POST (null) [05:35:35]execute_cgi path=json_proto method=POST [05:35:35]POST find Content-Length [05:35:35]Host: 172.17.50.196:8080 [05:35:35]Content-Length: 652 [05:35:35]Content-Type: application/json [05:35:35] [05:35:35]POST finish read [05:35:35]Found Content-Length = 652 [05:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335469", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:35]execute_script... [05:35: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)335469", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:35]POST & json_proto [05:35:35]process_json_proto [05:35:35]json parsed OK: [05:35:35]protocol is kg_v1.0 [05:35:35]action value=close_receipt [05:35:35]process_action close_receipt [05:35:35]cmd_close_receipt [05:35:35]MH_GetDate [05:35:35]Write to MH i2c: F0 00 00 5A 77 C0 [05:35:35]Write i2c OK [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: F0 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: F0 09 00 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: F0 09 00 5A 77 00 30 17 23 67 72 0D 1C 67 9C [05:35:35]GetLastDocTimeStamp 1730352933 [05:35:35]current date 1730352944 [05:35:35]FM_GetShiftState [05:35:35]SAM_PROTO_GetShiftState [05:35:35]wFMCommunicate request_size=4 [05:35:35]MH_SAM_APDU [05:35:35]CAPDU: 80 13 01 00 [05:35:35]Write to MH i2c: E2 08 00 5B 77 80 13 01 00 00 00 00 00 4F [05:35:35]Write i2c OK [05:35:35]MH_I2C_Read... [05:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:35]Read from MH i2c: E2 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 0E 00 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 0E 00 5B 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 78 [05:35:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:35:35]wFMCommunicate OK [05:35:35]SAM_PROTO_GetShiftState done [05:35:35]FM_GetShiftState done [05:35:35]opened in 1730332621 [05:35:35]opened+sec_in_day 1730419021 [05:35:35]quantity*price = 37500 [05:35:35]sum+1 = 37501 [05:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.32 НДС 12% : 39.82 Наличными: 375.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 65 31.10.2024 05:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139588 ФПД: 64985383295780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053544&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139588&fm=64985383295780&tin=02508201610067®Number=0000000000091631&sum=37500 0 [05:35:36]StoreToDocumentArchive [05:35:36]shift 557 fd 139588 [05:35:36]save to /storage/0557/doc_00139588 [05:35:36]save last doc name /storage/0557/doc_00139588 to /storage/kkm_last_doc_name [05:35:36]save OK [05:35:36]Clear old archive folders... [05:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=284 [05:35:36]tlvbuf is 012BB0B0 [05:35:36]SAM_PROTO_ClearQueue [05:35:36]wFMCommunicate request_size=4 [05:35:36]MH_SAM_APDU [05:35:36]CAPDU: 80 09 00 00 [05:35:36]Write to MH i2c: E2 08 00 68 77 80 09 00 00 00 00 00 00 51 [05:35:36]Write i2c OK [05:35:36]MH_I2C_Read... [05:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:35:36]Read from MH i2c: E2 [05:35:36]MH_I2C_Read... [05:35:36]Read from MH i2c: E2 03 00 [05:35:36]MH_I2C_Read... [05:35:36]Read from MH i2c: E2 03 00 68 77 00 90 00 53 [05:35:36]RAPDU: 90 00 [05:35:36]wFMCommunicate OK [05:35:36]SAM_PROTO_ClearQueue done [05:35:36]KKMCreateOFDPacket [05:35:36]OFDProtocolAddRootSTLVToBuf [05:35:36]FM_MakeSignedData [05:35:36]FM_MakeSignedData [05:35:36]SAM_PROTO_SignData [05:35:36]wFMCommunicate request_size=4 [05:35:36]MH_SAM_APDU [05:35:36]CAPDU: 80 0D 01 02 [05:35:36]Write to MH i2c: E2 08 00 69 77 80 0D 01 02 00 00 00 00 59 [05:35:36]Write i2c OK [05:35:36]MH_I2C_Read... [05:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:35:36]Read from MH i2c: E2 [05:35:36]MH_I2C_Read... [05:35:36]Read from MH i2c: E2 03 00 [05:35:36]MH_I2C_Read... [05:35:36]Read from MH i2c: E2 03 00 69 77 00 90 00 54 [05:35:36]RAPDU: 90 00 [05:35:36]wFMCommunicate OK [05:35:36]wFMCommunicate request_size=255 [05:35:36]MH_SAM_APDU [05:35:36]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 30 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [05:35:36]Write to MH i2c: E2 02 01 6A 77 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 30 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 74 [05:35:36]Write i2c OK [05:35:36]MH_I2C_Read... [05:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:36]Read from MH i2c: E2 [05:35:36]MH_I2C_Read... [05:35:36]Read from MH i2c: E2 03 00 [05:35:36]MH_I2C_Read... [05:35:36]Read from MH i2c: E2 03 00 6A 77 00 90 00 55 [05:35:36]RAPDU: 90 00 [05:35:36]wFMCommunicate OK [05:35:36]wFMCommunicate request_size=43 [05:35:36]MH_SAM_APDU [05:35:36]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 21 02 00 35 04 06 00 3B 1A 96 AF DB 24 [05:35:36]Write to MH i2c: E2 2E 00 6B 77 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 21 02 00 35 04 06 00 3B 1A 96 AF DB 24 00 00 4C [05:35:36]Write i2c OK [05:35:36]MH_I2C_Read... [05:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:37]Read from MH i2c: E2 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: E2 03 00 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: E2 03 00 6B 77 00 90 00 56 [05:35:37]RAPDU: 90 00 [05:35:37]wFMCommunicate OK [05:35:37]wFMCommunicate request_size=4 [05:35:37]MH_SAM_APDU [05:35:37]CAPDU: 80 0D 03 02 [05:35:37]Write to MH i2c: E2 08 00 6C 77 80 0D 03 02 00 00 00 00 5E [05:35:37]Write i2c OK [05:35:37]MH_I2C_Read... [05:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:35:37]Read from MH i2c: E2 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: E2 0B 00 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: E2 0B 00 6C 77 00 26 BE B7 24 A9 AE DD 6E 90 00 C0 [05:35:37]RAPDU: 26 BE B7 24 A9 AE DD 6E 90 00 [05:35:37]wFMCommunicate OK [05:35:37]SAM_PROTO_SignData done [05:35:37]FM_MakeSignedData done [05:35:37]CreateOFDProtocolMessage [05:35:37]wFMCommunicate request_size=4 [05:35:37]MH_SAM_APDU [05:35:37]CAPDU: 80 11 00 00 [05:35:37]Write to MH i2c: E2 08 00 6D 77 80 11 00 00 00 00 00 00 5E [05:35:37]Write i2c OK [05:35:37]MH_I2C_Read... [05:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:37]Read from MH i2c: E2 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: E2 17 00 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: E2 17 00 6D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B9 [05:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:35:37]wFMCommunicate OK [05:35:37]CreateOFDProtocolMessage done [05:35:37]OFDSenderStorePacket 139588 [05:35:37]StoreOFDPacket docnum=139588 [05:35: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 30 01 00 00 DA 22 28 01 46 D4 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 30 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 21 02 00 35 04 06 00 3B 1A 96 AF DB 24 26 BE B7 24 A9 AE DD 6E [05:35:37]CheckFolder [05:35:37]dirname=/storage/ofd_packets [05:35:37]CheckFolder done [05:35:37]ProducePacketName [05:35:37]name=ofd_packets/00139588 [05:35:37]NVStorageSaveData ofd_packets/00139588 [05:35:37]File name is /storage/ofd_packets/00139588 [05:35:37]Write 334 bytes [05:35:37]NVStorageSaveData done [05:35:37]OFDSenderStorePacket done [05:35:37]KKMCreateOFDPacket done [05:35:37]NVStorageSaveData kkm_last_timestamp [05:35:37]File name is /storage/kkm_last_timestamp [05:35:37]Write 4 bytes [05:35:37]NVStorageSaveData done [05:35:37]ExternCall_PrintAddStr [05:35:37]wPrintStart [05:35:37]Write to MH i2c: 01 00 00 6E 77 E5 [05:35:37]Write i2c OK [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: 01 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: 01 07 00 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: 01 07 00 6E 77 00 00 00 00 00 FF 0F FA [05:35:37]RasterBufferAndPrint [05:35:37]line Счет N : (3)335469 [05:35:37]line ИНН: 02508201610067 [05:35:37]line Контрольно-Кассовый Чек [05:35:37]line ПРОДАЖА [05:35:37]line Товар: 2000036190018 [05:35:37]line Кофе Американо XL(GABB TRADE) [05:35:37]line 3.000 * 125.00 [05:35:37]line = 375.00 [05:35:37]line НДС 12% НСП 1% [05:35:37]line > о реализуемом товаре [05:35:37]line ИТОГО: 375.00 [05:35:37]line НСП 1% : 3.32 [05:35:37]line НДС 12% : 39.82 [05:35:37]line Наличными: 375.00 [05:35:37]line Безнал.: 0.00 [05:35:37]line Место: АЗС № 101 "Партнер Нефть" [05:35:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:35:37]line СНО: Общий режим [05:35:37]line Чек 65 31.10.2024 05:35 [05:35:37]line Смена: 557 ФФД: 1.0 [05:35:37]line ЗНМ: 0300000081 [05:35:37]line РНМ: 0000000000091631 [05:35:37]line Версия ККМ: 001 [05:35:37]line ФМ: 0000000000874669 [05:35:37]line ФД: 139588 [05:35:37]line ФПД: 64985383295780 [05:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053544&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139588&fm=64985383295780&tin=02508201610067®Number=0000000000091631&sum=37500 [05:35:37]line 0 [05:35:37]OFD Sender: Processing packet 139588 [packets to send 34, broken 33] [05:35:37]ProducePacketName [05:35:37]name=ofd_packets/00139588 [05:35:37]OFD Sender: To server: pG, [05:35:37]CommunicateWithHost lk.salyk.kg:30040 [05:35:37]ConnectInit lk.salyk.kg [05:35:37]written 0, free lines is 4095 [05:35:37]Connected sock=10 [05:35: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 30 01 00 00 DA 22 28 01 46 D4 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 30 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 21 02 00 35 04 06 00 3B 1A 96 AF DB 24 26 BE B7 24 A9 AE DD 6E [05:35: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 16 9C 47 00 62 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 44 21 02 00 F4 03 04 00 DE C2 22 67 B6 04 01 00 00 E9 57 72 C5 09 9E 34 99 [05:35:37]CommunicateWithHost err = 0 [05:35:37]CheckOFDResponse [05:35:37]1017 (14) - 77093643461234 [05:35:37]1041 (16) - 0000000000874669 [05:35:37]1040 (4) - 139588 [05:35:37]1012 (4) - 30.10.2024 23:35 [05:35:37]1206 (1) - 0 [05:35:37]OFD Sender: Remove packet 139588 [05:35:37]ProducePacketName [05:35:37]name=ofd_packets/00139588 [05:35:37]NVStorageDeleteData [05:35:37]Write to MH i2c: 01 00 00 97 77 0E [05:35:37]Write i2c OK [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: 01 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: 01 07 00 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: 01 07 00 97 77 00 00 00 00 00 22 0D 44 [05:35:37]RasterBufferAndPrint [05:35:37]line [05:35:37]line [05:35:37]line [05:35:37]line [05:35:37]line [05:35:37]written 0, free lines is 3370 [05:35:37]MH_Cut [05:35:37]Write to MH i2c: D1 01 00 9E 77 01 E7 [05:35:37]Write i2c OK [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: D1 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: D1 01 00 [05:35:37]MH_I2C_Read... [05:35:37]Read from MH i2c: D1 01 00 9E 77 00 E6 [05:35:37]Write to MH i2c: 01 00 00 9F 77 16 [05:35:37]Write i2c OK [05:35:37]MH_I2C_Read... [05:35:38]OFD Sender: No OFD packet to send [05:35:38]*** Cut start [05:35:38]*** Partial cut [05:35:38]*** CUTSNS_PIN = 1 [05:35:38]*** CUTSNS_PIN = 0 [05:35:38]*** Brake cut motor [05:35:38]Read from MH i2c: 01 [05:35:38]MH_I2C_Read... [05:35:38]*** Stop cut motor [05:35:38]*** Cut end [05:35:38]Read from MH i2c: 01 07 00 [05:35:38]MH_I2C_Read... [05:35:38]Read from MH i2c: 01 07 00 9F 77 00 00 00 00 00 FF 0F 2B [05:35:38]process_action close_receipt done [05:35:38]requested_data is exist [05:35:38]produce_requested_data [05:35:38]requested_item fm.sn is exist - process it [05:35:38]wFMCommunicate request_size=4 [05:35:38]MH_SAM_APDU [05:35:38]CAPDU: 80 11 00 00 [05:35:38]Write to MH i2c: E2 08 00 A0 77 80 11 00 00 00 00 00 00 91 [05:35:38]Write i2c OK [05:35:38]MH_I2C_Read... [05:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:38]Read from MH i2c: E2 [05:35:38]MH_I2C_Read... [05:35:38]Read from MH i2c: E2 17 00 [05:35:38]MH_I2C_Read... [05:35:38]Read from MH i2c: E2 17 00 A0 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EC [05:35: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:35:38]wFMCommunicate OK [05:35:38]requested_item fd.num is exist - process it [05:35:38]SAM_PROTO_GetFieldsCounters [05:35:38]wFMCommunicate request_size=4 [05:35:38]MH_SAM_APDU [05:35:38]CAPDU: 80 13 00 00 [05:35:38]Write to MH i2c: E2 08 00 A1 77 80 13 00 00 00 00 00 00 94 [05:35:38]Write i2c OK [05:35:38]MH_I2C_Read... [05:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:35:39]Read from MH i2c: E2 [05:35:39]MH_I2C_Read... [05:35:39]Read from MH i2c: E2 62 00 [05:35:39]MH_I2C_Read... [05:35:39]Read from MH i2c: E2 62 00 A1 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 44 21 02 00 0E 04 04 00 2D 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 11 [05:35: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 44 21 02 00 0E 04 04 00 2D 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:35:39]wFMCommunicate OK [05:35:39]SAM_PROTO_GetFieldsCounters done [05:35:39]requested_item shift.num is exist - process it [05:35:39]requested_item shift.opened is exist - process it [05:35:39]req_shift_opened [05:35:39]FM_GetShiftState [05:35:39]SAM_PROTO_GetShiftState [05:35:39]wFMCommunicate request_size=4 [05:35:39]MH_SAM_APDU [05:35:39]CAPDU: 80 13 01 00 [05:35:39]Write to MH i2c: E2 08 00 A2 77 80 13 01 00 00 00 00 00 96 [05:35:39]Write i2c OK [05:35:39]MH_I2C_Read... [05:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:39]Read from MH i2c: E2 [05:35:39]MH_I2C_Read... [05:35:39]Read from MH i2c: E2 0E 00 [05:35:39]MH_I2C_Read... [05:35:39]Read from MH i2c: E2 0E 00 A2 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BF [05:35:39]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:35:39]wFMCommunicate OK [05:35:39]SAM_PROTO_GetShiftState done [05:35:39]FM_GetShiftState done [05:35:39]req_shift_opened done [05:35:39]requested_item shift.open_date is exist - process it [05:35:39]req_shift_open_date [05:35:39]req_shift_open_date done [05:35:39]produce_requested_data done [05:35:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139588,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:35:39]process_action_free close_receipt [05:35:39]json_value_free [05:35:39]json_value_free done [05:35:39]process_json_proto returns [05:35:39]Send response to host [05:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139588,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:35:39]free response buf [05:35:39]execute_script done [05:35:39]execute_script returns [05:35:39]free content buf [05:35:39]Sock 9.Close socket [05:35:39]Sock 9.Thread stoped [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:38]accept exits with 8 [05:36:38]New connection [05:36:38]New thread 3067284836 created [05:36:38]Thread 3067141476 joined [05:36:38]Waiting for new connection... [05:36:38] Sock 8.Parse request [05:36:38]Sock 8.Check first char [05:36:38]Sock 8.First char is OK [05:36:38]request: POST /json_proto HTTP/1.0 [05:36:38]Method: POST [05:36:38]URL: /json_proto [05:36:38]Method is POST - this is cgi request [05:36:38]url: /json_proto [05:36:38]query_string will be loaded in cgi processing [05:36:38]execute_cgi json_proto POST (null) [05:36:38]execute_cgi path=json_proto method=POST [05:36:38]POST find Content-Length [05:36:38]Host: 172.17.50.196:8080 [05:36:38]Content-Length: 657 [05:36:38]Content-Type: application/json [05:36:38] [05:36:38]POST finish read [05:36:38]Found Content-Length = 657 [05:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335470", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [05:36:38]execute_script... [05:36: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)335470", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [05:36:38]POST & json_proto [05:36:38]process_json_proto [05:36:38]json parsed OK: [05:36:38]protocol is kg_v1.0 [05:36:38]action value=close_receipt [05:36:38]process_action close_receipt [05:36:38]cmd_close_receipt [05:36:38]MH_GetDate [05:36:38]Write to MH i2c: F0 00 00 A3 77 09 [05:36:38]Write i2c OK [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: F0 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: F0 09 00 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: F0 09 00 A3 77 00 6F 17 23 67 72 0D 1C 67 24 [05:36:38]GetLastDocTimeStamp 1730352944 [05:36:38]current date 1730353007 [05:36:38]FM_GetShiftState [05:36:38]SAM_PROTO_GetShiftState [05:36:38]wFMCommunicate request_size=4 [05:36:38]MH_SAM_APDU [05:36:38]CAPDU: 80 13 01 00 [05:36:38]Write to MH i2c: E2 08 00 A4 77 80 13 01 00 00 00 00 00 98 [05:36:38]Write i2c OK [05:36:38]MH_I2C_Read... [05:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:38]Read from MH i2c: E2 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: E2 0E 00 [05:36:38]MH_I2C_Read... [05:36:38]Read from MH i2c: E2 0E 00 A4 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C1 [05:36:38]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:36:38]wFMCommunicate OK [05:36:38]SAM_PROTO_GetShiftState done [05:36:38]FM_GetShiftState done [05:36:38]opened in 1730332621 [05:36:38]opened+sec_in_day 1730419021 [05:36:38]quantity*price = 9500 [05:36:38]sum+1 = 9501 [05:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 66 31.10.2024 05:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139589 ФПД: 157211654595002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053647&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139589&fm=157211654595002&tin=02508201610067®Number=0000000000091631&sum=9500 0 [05:36:39]StoreToDocumentArchive [05:36:39]shift 557 fd 139589 [05:36:39]save to /storage/0557/doc_00139589 [05:36:39]save last doc name /storage/0557/doc_00139589 to /storage/kkm_last_doc_name [05:36:39]save OK [05:36:39]Clear old archive folders... [05:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=288 [05:36:39]tlvbuf is 0139CE80 [05:36:39]SAM_PROTO_ClearQueue [05:36:39]wFMCommunicate request_size=4 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 09 00 00 [05:36:39]Write to MH i2c: E2 08 00 B1 77 80 09 00 00 00 00 00 00 9A [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 B1 77 00 90 00 9C [05:36:39]RAPDU: 90 00 [05:36:39]wFMCommunicate OK [05:36:39]SAM_PROTO_ClearQueue done [05:36:39]KKMCreateOFDPacket [05:36:39]OFDProtocolAddRootSTLVToBuf [05:36:39]FM_MakeSignedData [05:36:39]FM_MakeSignedData [05:36:39]SAM_PROTO_SignData [05:36:39]wFMCommunicate request_size=4 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 0D 01 02 [05:36:39]Write to MH i2c: E2 08 00 B2 77 80 0D 01 02 00 00 00 00 A2 [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 B2 77 00 90 00 9D [05:36:39]RAPDU: 90 00 [05:36:39]wFMCommunicate OK [05:36:39]wFMCommunicate request_size=255 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 42 00 00 00 F4 03 04 00 6F 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [05:36:39]Write to MH i2c: E2 02 01 B3 77 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 42 00 00 00 F4 03 04 00 6F 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 0E [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:39]Read from MH i2c: E2 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 [05:36:39]MH_I2C_Read... [05:36:39]Read from MH i2c: E2 03 00 B3 77 00 90 00 9E [05:36:39]RAPDU: 90 00 [05:36:39]wFMCommunicate OK [05:36:39]wFMCommunicate request_size=47 [05:36:39]MH_SAM_APDU [05:36:39]CAPDU: 80 0D 02 02 2A 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 21 02 00 35 04 06 00 8E FB B0 D3 A1 BA [05:36:39]Write to MH i2c: E2 32 00 B4 77 80 0D 02 02 2A 00 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 21 02 00 35 04 06 00 8E FB B0 D3 A1 BA 00 00 37 [05:36:39]Write i2c OK [05:36:39]MH_I2C_Read... [05:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:40]Read from MH i2c: E2 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 03 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 03 00 B4 77 00 90 00 9F [05:36:40]RAPDU: 90 00 [05:36:40]wFMCommunicate OK [05:36:40]wFMCommunicate request_size=4 [05:36:40]MH_SAM_APDU [05:36:40]CAPDU: 80 0D 03 02 [05:36:40]Write to MH i2c: E2 08 00 B5 77 80 0D 03 02 00 00 00 00 A7 [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:36:40]Read from MH i2c: E2 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 0B 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 0B 00 B5 77 00 DB 7E 13 90 B4 21 8D 96 90 00 9C [05:36:40]RAPDU: DB 7E 13 90 B4 21 8D 96 90 00 [05:36:40]wFMCommunicate OK [05:36:40]SAM_PROTO_SignData done [05:36:40]FM_MakeSignedData done [05:36:40]CreateOFDProtocolMessage [05:36:40]wFMCommunicate request_size=4 [05:36:40]MH_SAM_APDU [05:36:40]CAPDU: 80 11 00 00 [05:36:40]Write to MH i2c: E2 08 00 B6 77 80 11 00 00 00 00 00 00 A7 [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:40]Read from MH i2c: E2 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 17 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: E2 17 00 B6 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [05:36: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:36:40]wFMCommunicate OK [05:36:40]CreateOFDProtocolMessage done [05:36:40]OFDSenderStorePacket 139589 [05:36:40]StoreOFDPacket docnum=139589 [05:36: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 34 01 00 00 41 05 2C 01 E4 08 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 42 00 00 00 F4 03 04 00 6F 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 21 02 00 35 04 06 00 8E FB B0 D3 A1 BA DB 7E 13 90 B4 21 8D 96 [05:36:40]CheckFolder [05:36:40]dirname=/storage/ofd_packets [05:36:40]CheckFolder done [05:36:40]ProducePacketName [05:36:40]name=ofd_packets/00139589 [05:36:40]NVStorageSaveData ofd_packets/00139589 [05:36:40]File name is /storage/ofd_packets/00139589 [05:36:40]Write 338 bytes [05:36:40]NVStorageSaveData done [05:36:40]OFDSenderStorePacket done [05:36:40]KKMCreateOFDPacket done [05:36:40]NVStorageSaveData kkm_last_timestamp [05:36:40]File name is /storage/kkm_last_timestamp [05:36:40]Write 4 bytes [05:36:40]NVStorageSaveData done [05:36:40]ExternCall_PrintAddStr [05:36:40]wPrintStart [05:36:40]Write to MH i2c: 01 00 00 B7 77 2E [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 B7 77 00 00 00 00 00 FF 0F 43 [05:36:40]RasterBufferAndPrint [05:36:40]line Счет N : (3)335470 [05:36:40]line ИНН: 02508201610067 [05:36:40]line Контрольно-Кассовый Чек [05:36:40]line ПРОДАЖА [05:36:40]line Товар: 4700000481453 [05:36:40]line Напиток энерг Nitro Max 0,45 ж/б [05:36:40]line 1.000 * 95.00 [05:36:40]line = 95.00 [05:36:40]line НДС 12% НСП 1% [05:36:40]line > о реализуемом товаре [05:36:40]line ИТОГО: 95.00 [05:36:40]line НСП 1% : 0.84 [05:36:40]line НДС 12% : 10.09 [05:36:40]line Наличными: 95.00 [05:36:40]line Безнал.: 0.00 [05:36:40]line Место: АЗС № 101 "Партнер Нефть" [05:36:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:36:40]line СНО: Общий режим [05:36:40]line Чек 66 31.10.2024 05:36 [05:36:40]line Смена: 557 ФФД: 1.0 [05:36:40]line ЗНМ: 0300000081 [05:36:40]line РНМ: 0000000000091631 [05:36:40]line Версия ККМ: 001 [05:36:40]line ФМ: 0000000000874669 [05:36:40]line ФД: 139589 [05:36:40]line ФПД: 157211654595002 [05:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053647&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139589&fm=157211654595002&tin=02508201610067®Number=0000000000091631&sum=9500 [05:36:40]line 0 [05:36:40]written 0, free lines is 4095 [05:36:40]OFD Sender: Processing packet 139589 [packets to send 34, broken 33] [05:36:40]ProducePacketName [05:36:40]name=ofd_packets/00139589 [05:36:40]OFD Sender: To server: pG, [05:36:40]CommunicateWithHost lk.salyk.kg:30040 [05:36:40]ConnectInit lk.salyk.kg [05:36:40]Connected sock=10 [05:36: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 34 01 00 00 41 05 2C 01 E4 08 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 42 00 00 00 F4 03 04 00 6F 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 21 02 00 35 04 06 00 8E FB B0 D3 A1 BA DB 7E 13 90 B4 21 8D 96 [05:36: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 BB 85 47 00 33 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 45 21 02 00 F4 03 04 00 1D C3 22 67 B6 04 01 00 00 80 18 F6 30 27 3D 7B C9 [05:36:40]CommunicateWithHost err = 0 [05:36:40]CheckOFDResponse [05:36:40]1017 (14) - 77093643461234 [05:36:40]1041 (16) - 0000000000874669 [05:36:40]1040 (4) - 139589 [05:36:40]1012 (4) - 30.10.2024 23:37 [05:36:40]1206 (1) - 0 [05:36:40]OFD Sender: Remove packet 139589 [05:36:40]ProducePacketName [05:36:40]name=ofd_packets/00139589 [05:36:40]NVStorageDeleteData [05:36:40]Write to MH i2c: 01 00 00 E0 77 57 [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: 01 07 00 E0 77 00 00 00 00 00 F8 0C 62 [05:36:40]RasterBufferAndPrint [05:36:40]line [05:36:40]line [05:36:40]line [05:36:40]line [05:36:40]line [05:36:40]written 0, free lines is 3329 [05:36:40]MH_Cut [05:36:40]Write to MH i2c: D1 01 00 E7 77 01 30 [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: D1 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: D1 01 00 [05:36:40]MH_I2C_Read... [05:36:40]Read from MH i2c: D1 01 00 E7 77 00 2F [05:36:40]Write to MH i2c: 01 00 00 E8 77 5F [05:36:40]Write i2c OK [05:36:40]MH_I2C_Read... [05:36:41]OFD Sender: No OFD packet to send [05:36:41]*** Cut start [05:36:41]*** Partial cut [05:36:41]*** CUTSNS_PIN = 1 [05:36:41]*** CUTSNS_PIN = 0 [05:36:41]*** Brake cut motor [05:36:42]Read from MH i2c: 01 [05:36:42]MH_I2C_Read... [05:36:42]*** Stop cut motor [05:36:42]*** Cut end [05:36:42]Read from MH i2c: 01 07 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: 01 07 00 E8 77 00 00 00 00 00 FF 0F 74 [05:36:42]process_action close_receipt done [05:36:42]requested_data is exist [05:36:42]produce_requested_data [05:36:42]requested_item fm.sn is exist - process it [05:36:42]wFMCommunicate request_size=4 [05:36:42]MH_SAM_APDU [05:36:42]CAPDU: 80 11 00 00 [05:36:42]Write to MH i2c: E2 08 00 E9 77 80 11 00 00 00 00 00 00 DA [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:42]Read from MH i2c: E2 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 17 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 17 00 E9 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 35 [05:36: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:36:42]wFMCommunicate OK [05:36:42]requested_item fd.num is exist - process it [05:36:42]SAM_PROTO_GetFieldsCounters [05:36:42]wFMCommunicate request_size=4 [05:36:42]MH_SAM_APDU [05:36:42]CAPDU: 80 13 00 00 [05:36:42]Write to MH i2c: E2 08 00 EA 77 80 13 00 00 00 00 00 00 DD [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:36:42]Read from MH i2c: E2 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 62 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 62 00 EA 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 45 21 02 00 0E 04 04 00 2D 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 5E [05:36: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 45 21 02 00 0E 04 04 00 2D 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:36:42]wFMCommunicate OK [05:36:42]SAM_PROTO_GetFieldsCounters done [05:36:42]requested_item shift.num is exist - process it [05:36:42]requested_item shift.opened is exist - process it [05:36:42]req_shift_opened [05:36:42]FM_GetShiftState [05:36:42]SAM_PROTO_GetShiftState [05:36:42]wFMCommunicate request_size=4 [05:36:42]MH_SAM_APDU [05:36:42]CAPDU: 80 13 01 00 [05:36:42]Write to MH i2c: E2 08 00 EB 77 80 13 01 00 00 00 00 00 DF [05:36:42]Write i2c OK [05:36:42]MH_I2C_Read... [05:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:42]Read from MH i2c: E2 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 0E 00 [05:36:42]MH_I2C_Read... [05:36:42]Read from MH i2c: E2 0E 00 EB 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 08 [05:36:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:36:42]wFMCommunicate OK [05:36:42]SAM_PROTO_GetShiftState done [05:36:42]FM_GetShiftState done [05:36:42]req_shift_opened done [05:36:42]requested_item shift.open_date is exist - process it [05:36:42]req_shift_open_date [05:36:42]req_shift_open_date done [05:36:42]produce_requested_data done [05:36:42]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139589,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:36:42]process_action_free close_receipt [05:36:42]json_value_free [05:36:42]json_value_free done [05:36:42]process_json_proto returns [05:36:42]Send response to host [05:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139589,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:36:42]free response buf [05:36:42]execute_script done [05:36:42]execute_script returns [05:36:42]free content buf [05:36:42]Sock 8.Close socket [05:36:42]Sock 8.Thread stoped [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]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:00]accept exits with 9 [05:38:00]New connection [05:38:00]New thread 3067141476 created [05:38:00]Thread 3067284836 joined [05:38:00]Waiting for new connection... [05:38:00] Sock 9.Parse request [05:38:00]Sock 9.Check first char [05:38:00]Sock 9.First char is OK [05:38:00]request: POST /json_proto HTTP/1.0 [05:38:00]Method: POST [05:38:00]URL: /json_proto [05:38:00]Method is POST - this is cgi request [05:38:00]url: /json_proto [05:38:00]query_string will be loaded in cgi processing [05:38:00]execute_cgi json_proto POST (null) [05:38:00]execute_cgi path=json_proto method=POST [05:38:00]POST find Content-Length [05:38:00]Host: 172.17.50.196:8080 [05:38:00]Content-Length: 784 [05:38:00]Content-Type: application/json [05:38:00] [05:38:00]POST finish read [05:38:00]Found Content-Length = 784 [05:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335471", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:00]execute_script... [05:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335471", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:00]POST & json_proto [05:38:00]process_json_proto [05:38:00]json parsed OK: [05:38:00]protocol is kg_v1.0 [05:38:00]action value=close_receipt [05:38:00]process_action close_receipt [05:38:00]cmd_close_receipt [05:38:00]MH_GetDate [05:38:00]Write to MH i2c: F0 00 00 EC 77 52 [05:38:00]Write i2c OK [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: F0 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: F0 09 00 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: F0 09 00 EC 77 00 C1 17 23 67 72 0D 1C 67 BF [05:38:00]GetLastDocTimeStamp 1730353007 [05:38:00]current date 1730353089 [05:38:00]FM_GetShiftState [05:38:00]SAM_PROTO_GetShiftState [05:38:00]wFMCommunicate request_size=4 [05:38:00]MH_SAM_APDU [05:38:00]CAPDU: 80 13 01 00 [05:38:00]Write to MH i2c: E2 08 00 ED 77 80 13 01 00 00 00 00 00 E1 [05:38:00]Write i2c OK [05:38:00]MH_I2C_Read... [05:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:00]Read from MH i2c: E2 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: E2 0E 00 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: E2 0E 00 ED 77 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0A [05:38:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:38:00]wFMCommunicate OK [05:38:00]SAM_PROTO_GetShiftState done [05:38:00]FM_GetShiftState done [05:38:00]opened in 1730332621 [05:38:00]opened+sec_in_day 1730419021 [05:38:00]quantity*price = 9500 [05:38:00]sum+1 = 9501 [05:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 67 31.10.2024 05:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139590 ФПД: 1138739419134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053809&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139590&fm=1138739419134&tin=02508201610067®Number=0000000000091631&sum=9500 0 [05:38:01]StoreToDocumentArchive [05:38:01]shift 557 fd 139590 [05:38:01]save to /storage/0557/doc_00139590 [05:38:01]save last doc name /storage/0557/doc_00139590 to /storage/kkm_last_doc_name [05:38:01]save OK [05:38:01]Clear old archive folders... [05:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=288 [05:38:01]tlvbuf is 01340EA0 [05:38:01]SAM_PROTO_ClearQueue [05:38:01]wFMCommunicate request_size=4 [05:38:01]MH_SAM_APDU [05:38:01]CAPDU: 80 09 00 00 [05:38:01]Write to MH i2c: E2 08 00 FA 77 80 09 00 00 00 00 00 00 E3 [05:38:01]Write i2c OK [05:38:01]MH_I2C_Read... [05:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:38:01]Read from MH i2c: E2 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 FA 77 00 90 00 E5 [05:38:01]RAPDU: 90 00 [05:38:01]wFMCommunicate OK [05:38:01]SAM_PROTO_ClearQueue done [05:38:01]KKMCreateOFDPacket [05:38:01]OFDProtocolAddRootSTLVToBuf [05:38:01]FM_MakeSignedData [05:38:01]FM_MakeSignedData [05:38:01]SAM_PROTO_SignData [05:38:01]wFMCommunicate request_size=4 [05:38:01]MH_SAM_APDU [05:38:01]CAPDU: 80 0D 01 02 [05:38:01]Write to MH i2c: E2 08 00 FB 77 80 0D 01 02 00 00 00 00 EB [05:38:01]Write i2c OK [05:38:01]MH_I2C_Read... [05:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:38:01]Read from MH i2c: E2 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 FB 77 00 90 00 E6 [05:38:01]RAPDU: 90 00 [05:38:01]wFMCommunicate OK [05:38:01]wFMCommunicate request_size=255 [05:38:01]MH_SAM_APDU [05:38:01]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [05:38:01]Write to MH i2c: E2 02 01 FC 77 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 AA [05:38:01]Write i2c OK [05:38:01]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 FC 77 00 90 00 E7 [05:38:02]RAPDU: 90 00 [05:38:02]wFMCommunicate OK [05:38:02]wFMCommunicate request_size=47 [05:38:02]MH_SAM_APDU [05:38:02]CAPDU: 80 0D 02 02 2A 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 21 02 00 35 04 06 00 01 09 22 28 97 FE [05:38:02]Write to MH i2c: E2 32 00 FD 77 80 0D 02 02 2A 00 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 21 02 00 35 04 06 00 01 09 22 28 97 FE 00 00 03 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 FD 77 00 90 00 E8 [05:38:02]RAPDU: 90 00 [05:38:02]wFMCommunicate OK [05:38:02]wFMCommunicate request_size=4 [05:38:02]MH_SAM_APDU [05:38:02]CAPDU: 80 0D 03 02 [05:38:02]Write to MH i2c: E2 08 00 FE 77 80 0D 03 02 00 00 00 00 F0 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 0B 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 0B 00 FE 77 00 30 7C 1C F5 9A 53 AA 25 90 00 6A [05:38:02]RAPDU: 30 7C 1C F5 9A 53 AA 25 90 00 [05:38:02]wFMCommunicate OK [05:38:02]SAM_PROTO_SignData done [05:38:02]FM_MakeSignedData done [05:38:02]CreateOFDProtocolMessage [05:38:02]wFMCommunicate request_size=4 [05:38:02]MH_SAM_APDU [05:38:02]CAPDU: 80 11 00 00 [05:38:02]Write to MH i2c: E2 08 00 FF 77 80 11 00 00 00 00 00 00 F0 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 17 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 17 00 FF 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4B [05:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:38:02]wFMCommunicate OK [05:38:02]CreateOFDProtocolMessage done [05:38:02]OFDSenderStorePacket 139590 [05:38:02]StoreOFDPacket docnum=139590 [05:38: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 34 01 00 00 45 8A 2C 01 AA 73 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 21 02 00 35 04 06 00 01 09 22 28 97 FE 30 7C 1C F5 9A 53 AA 25 [05:38:02]CheckFolder [05:38:02]dirname=/storage/ofd_packets [05:38:02]CheckFolder done [05:38:02]ProducePacketName [05:38:02]name=ofd_packets/00139590 [05:38:02]NVStorageSaveData ofd_packets/00139590 [05:38:02]File name is /storage/ofd_packets/00139590 [05:38:02]Write 338 bytes [05:38:02]NVStorageSaveData done [05:38:02]OFDSenderStorePacket done [05:38:02]KKMCreateOFDPacket done [05:38:02]NVStorageSaveData kkm_last_timestamp [05:38:02]File name is /storage/kkm_last_timestamp [05:38:02]Write 4 bytes [05:38:02]NVStorageSaveData done [05:38:02]ExternCall_PrintAddStr [05:38:02]wPrintStart [05:38:02]Write to MH i2c: 01 00 00 00 78 78 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 07 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 07 00 00 78 00 00 00 00 00 FF 0F 8D [05:38:02]RasterBufferAndPrint [05:38:02]line Счет N : (3)335471 [05:38:02]line ИНН: 02508201610067 [05:38:02]line Контрольно-Кассовый Чек [05:38:02]line ПРОДАЖА [05:38:02]line Товар: 4700000481453 [05:38:02]line Напиток энерг Nitro Max 0,45 ж/б [05:38:02]line 1.000 * 95.00 [05:38:02]line = 95.00 [05:38:02]line НДС 12% НСП 1% [05:38:02]line > о реализуемом товаре [05:38:02]line ИТОГО: 95.00 [05:38:02]line НСП 1% : 0.84 [05:38:02]line НДС 12% : 10.09 [05:38:02]line Наличными: 0.00 [05:38:02]line Безнал.: 95.00 [05:38:02]line Место: АЗС № 101 "Партнер Нефть" [05:38:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:38:02]line СНО: Общий режим [05:38:02]line Чек 67 31.10.2024 05:38 [05:38:02]line Смена: 557 ФФД: 1.0 [05:38:02]line ЗНМ: 0300000081 [05:38:02]line РНМ: 0000000000091631 [05:38:02]line Версия ККМ: 001 [05:38:02]line Платежная система: Mbank [05:38:02]line ФМ: 0000000000874669 [05:38:02]line ФД: 139590 [05:38:02]line ФПД: 1138739419134 [05:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T053809&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139590&fm=1138739419134&tin=02508201610067®Number=0000000000091631&sum=9500 [05:38:02]line 0 [05:38:02]OFD Sender: Processing packet 139590 [packets to send 34, broken 33] [05:38:02]ProducePacketName [05:38:02]name=ofd_packets/00139590 [05:38:02]OFD Sender: To server: pG, [05:38:02]CommunicateWithHost lk.salyk.kg:30040 [05:38:02]ConnectInit lk.salyk.kg [05:38:02]written 0, free lines is 4095 [05:38:02]Connected sock=10 [05:38: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 34 01 00 00 45 8A 2C 01 AA 73 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 17 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 21 02 00 35 04 06 00 01 09 22 28 97 FE 30 7C 1C F5 9A 53 AA 25 [05:38: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 29 9C 47 00 2A 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 46 21 02 00 F4 03 04 00 6F C3 22 67 B6 04 01 00 00 15 42 D4 EF E8 EF D1 4D [05:38:02]CommunicateWithHost err = 0 [05:38:02]CheckOFDResponse [05:38:02]1017 (14) - 77093643461234 [05:38:02]1041 (16) - 0000000000874669 [05:38:02]1040 (4) - 139590 [05:38:02]1012 (4) - 30.10.2024 23:38 [05:38:02]1206 (1) - 0 [05:38:02]OFD Sender: Remove packet 139590 [05:38:02]ProducePacketName [05:38:02]name=ofd_packets/00139590 [05:38:02]NVStorageDeleteData [05:38:02]Write to MH i2c: 01 00 00 2A 78 A2 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 07 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 07 00 2A 78 00 00 00 00 00 F7 0C AC [05:38:02]RasterBufferAndPrint [05:38:02]line [05:38:02]line [05:38:02]line [05:38:02]line [05:38:02]line [05:38:02]written 0, free lines is 3327 [05:38:03]MH_Cut [05:38:03]Write to MH i2c: D1 01 00 31 78 01 7B [05:38:03]Write i2c OK [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: D1 [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: D1 01 00 [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: D1 01 00 31 78 00 7A [05:38:03]Write to MH i2c: 01 00 00 32 78 AA [05:38:03]Write i2c OK [05:38:03]MH_I2C_Read... [05:38:03]OFD Sender: No OFD packet to send [05:38:03]*** Cut start [05:38:03]*** Partial cut [05:38:03]*** CUTSNS_PIN = 1 [05:38:03]*** CUTSNS_PIN = 0 [05:38:03]*** Brake cut motor [05:38:04]Read from MH i2c: 01 [05:38:04]MH_I2C_Read... [05:38:04]*** Stop cut motor [05:38:04]*** Cut end [05:38:04]Read from MH i2c: 01 07 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: 01 07 00 32 78 00 00 00 00 00 FF 0F BF [05:38:04]process_action close_receipt done [05:38:04]requested_data is exist [05:38:04]produce_requested_data [05:38:04]requested_item fm.sn is exist - process it [05:38:04]wFMCommunicate request_size=4 [05:38:04]MH_SAM_APDU [05:38:04]CAPDU: 80 11 00 00 [05:38:04]Write to MH i2c: E2 08 00 33 78 80 11 00 00 00 00 00 00 25 [05:38:04]Write i2c OK [05:38:04]MH_I2C_Read... [05:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:04]Read from MH i2c: E2 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 17 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 17 00 33 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 80 [05:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:38:04]wFMCommunicate OK [05:38:04]requested_item fd.num is exist - process it [05:38:04]SAM_PROTO_GetFieldsCounters [05:38:04]wFMCommunicate request_size=4 [05:38:04]MH_SAM_APDU [05:38:04]CAPDU: 80 13 00 00 [05:38:04]Write to MH i2c: E2 08 00 34 78 80 13 00 00 00 00 00 00 28 [05:38:04]Write i2c OK [05:38:04]MH_I2C_Read... [05:38:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:38:04]Read from MH i2c: E2 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 62 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 62 00 34 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 46 21 02 00 0E 04 04 00 2D 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 AD [05:38:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 46 21 02 00 0E 04 04 00 2D 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:38:04]wFMCommunicate OK [05:38:04]SAM_PROTO_GetFieldsCounters done [05:38:04]requested_item shift.num is exist - process it [05:38:04]requested_item shift.opened is exist - process it [05:38:04]req_shift_opened [05:38:04]FM_GetShiftState [05:38:04]SAM_PROTO_GetShiftState [05:38:04]wFMCommunicate request_size=4 [05:38:04]MH_SAM_APDU [05:38:04]CAPDU: 80 13 01 00 [05:38:04]Write to MH i2c: E2 08 00 35 78 80 13 01 00 00 00 00 00 2A [05:38:04]Write i2c OK [05:38:04]MH_I2C_Read... [05:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:04]Read from MH i2c: E2 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 0E 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 0E 00 35 78 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 53 [05:38:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:38:04]wFMCommunicate OK [05:38:04]SAM_PROTO_GetShiftState done [05:38:04]FM_GetShiftState done [05:38:04]req_shift_opened done [05:38:04]requested_item shift.open_date is exist - process it [05:38:04]req_shift_open_date [05:38:04]req_shift_open_date done [05:38:04]produce_requested_data done [05:38:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139590,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:38:04]process_action_free close_receipt [05:38:04]json_value_free [05:38:04]json_value_free done [05:38:04]process_json_proto returns [05:38:04]Send response to host [05:38:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139590,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:38:04]free response buf [05:38:04]execute_script done [05:38:04]execute_script returns [05:38:04]free content buf [05:38:04]Sock 9.Close socket [05:38:04]Sock 9.Thread stoped [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:34]accept exits with 8 [05:41:34]New connection [05:41:34]New thread 3067284836 created [05:41:34]Thread 3067141476 joined [05:41:34]Waiting for new connection... [05:41:34] Sock 8.Parse request [05:41:34]Sock 8.Check first char [05:41:34]Sock 8.First char is OK [05:41:34]request: POST /json_proto HTTP/1.0 [05:41:34]Method: POST [05:41:34]URL: /json_proto [05:41:34]Method is POST - this is cgi request [05:41:34]url: /json_proto [05:41:34]query_string will be loaded in cgi processing [05:41:34]execute_cgi json_proto POST (null) [05:41:34]execute_cgi path=json_proto method=POST [05:41:34]POST find Content-Length [05:41:34]Host: 172.17.50.196:8080 [05:41:34]Content-Length: 626 [05:41:34]Content-Type: application/json [05:41:34] [05:41:34]POST finish read [05:41:34]Found Content-Length = 626 [05:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335472", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:34]execute_script... [05:41: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)335472", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:34]POST & json_proto [05:41:34]process_json_proto [05:41:34]json parsed OK: [05:41:34]protocol is kg_v1.0 [05:41:34]action value=close_receipt [05:41:34]process_action close_receipt [05:41:34]cmd_close_receipt [05:41:34]MH_GetDate [05:41:34]Write to MH i2c: F0 00 00 36 78 9D [05:41:34]Write i2c OK [05:41:34]MH_I2C_Read... [05:41:34]Read from MH i2c: F0 [05:41:34]MH_I2C_Read... [05:41:34]Read from MH i2c: F0 09 00 [05:41:34]MH_I2C_Read... [05:41:34]Read from MH i2c: F0 09 00 36 78 00 97 18 23 67 72 0D 1C 67 E1 [05:41:34]GetLastDocTimeStamp 1730353089 [05:41:34]current date 1730353303 [05:41:34]FM_GetShiftState [05:41:34]SAM_PROTO_GetShiftState [05:41:34]wFMCommunicate request_size=4 [05:41:34]MH_SAM_APDU [05:41:34]CAPDU: 80 13 01 00 [05:41:34]Write to MH i2c: E2 08 00 37 78 80 13 01 00 00 00 00 00 2C [05:41:34]Write i2c OK [05:41:34]MH_I2C_Read... [05:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:34]Read from MH i2c: E2 [05:41:34]MH_I2C_Read... [05:41:34]Read from MH i2c: E2 0E 00 [05:41:34]MH_I2C_Read... [05:41:34]Read from MH i2c: E2 0E 00 37 78 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 55 [05:41:34]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:41:34]wFMCommunicate OK [05:41:34]SAM_PROTO_GetShiftState done [05:41:34]FM_GetShiftState done [05:41:34]opened in 1730332621 [05:41:34]opened+sec_in_day 1730419021 [05:41:34]quantity*price = 11500 [05:41:34]sum+1 = 11501 [05:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 68 31.10.2024 05:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139591 ФПД: 95281542018988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T054143&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139591&fm=95281542018988&tin=02508201610067®Number=0000000000091631&sum=11500 0 [05:41:35]StoreToDocumentArchive [05:41:35]shift 557 fd 139591 [05:41:35]save to /storage/0557/doc_00139591 [05:41:35]save last doc name /storage/0557/doc_00139591 to /storage/kkm_last_doc_name [05:41:35]save OK [05:41:35]Clear old archive folders... [05:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=274 [05:41:35]tlvbuf is 01263300 [05:41:35]SAM_PROTO_ClearQueue [05:41:35]wFMCommunicate request_size=4 [05:41:35]MH_SAM_APDU [05:41:35]CAPDU: 80 09 00 00 [05:41:35]Write to MH i2c: E2 08 00 44 78 80 09 00 00 00 00 00 00 2E [05:41:35]Write i2c OK [05:41:35]MH_I2C_Read... [05:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:41:35]Read from MH i2c: E2 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: E2 03 00 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: E2 03 00 44 78 00 90 00 30 [05:41:35]RAPDU: 90 00 [05:41:35]wFMCommunicate OK [05:41:35]SAM_PROTO_ClearQueue done [05:41:35]KKMCreateOFDPacket [05:41:35]OFDProtocolAddRootSTLVToBuf [05:41:35]FM_MakeSignedData [05:41:35]FM_MakeSignedData [05:41:35]SAM_PROTO_SignData [05:41:35]wFMCommunicate request_size=4 [05:41:35]MH_SAM_APDU [05:41:35]CAPDU: 80 0D 01 02 [05:41:35]Write to MH i2c: E2 08 00 45 78 80 0D 01 02 00 00 00 00 36 [05:41:35]Write i2c OK [05:41:35]MH_I2C_Read... [05:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:41:35]Read from MH i2c: E2 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: E2 03 00 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: E2 03 00 45 78 00 90 00 31 [05:41:35]RAPDU: 90 00 [05:41:35]wFMCommunicate OK [05:41:35]wFMCommunicate request_size=255 [05:41:35]MH_SAM_APDU [05:41:35]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 18 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [05:41:35]Write to MH i2c: E2 02 01 46 78 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 18 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 79 [05:41:35]Write i2c OK [05:41:35]MH_I2C_Read... [05:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:35]Read from MH i2c: E2 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: E2 03 00 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: E2 03 00 46 78 00 90 00 32 [05:41:35]RAPDU: 90 00 [05:41:35]wFMCommunicate OK [05:41:35]wFMCommunicate request_size=33 [05:41:35]MH_SAM_APDU [05:41:35]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 21 02 00 35 04 06 00 56 A8 76 77 37 AC [05:41:35]Write to MH i2c: E2 24 00 47 78 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 21 02 00 35 04 06 00 56 A8 76 77 37 AC 00 00 08 [05:41:35]Write i2c OK [05:41:35]MH_I2C_Read... [05:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:36]Read from MH i2c: E2 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: E2 03 00 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: E2 03 00 47 78 00 90 00 33 [05:41:36]RAPDU: 90 00 [05:41:36]wFMCommunicate OK [05:41:36]wFMCommunicate request_size=4 [05:41:36]MH_SAM_APDU [05:41:36]CAPDU: 80 0D 03 02 [05:41:36]Write to MH i2c: E2 08 00 48 78 80 0D 03 02 00 00 00 00 3B [05:41:36]Write i2c OK [05:41:36]MH_I2C_Read... [05:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:41:36]Read from MH i2c: E2 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: E2 0B 00 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: E2 0B 00 48 78 00 50 CC 19 2B AC 3C 24 CD 90 00 75 [05:41:36]RAPDU: 50 CC 19 2B AC 3C 24 CD 90 00 [05:41:36]wFMCommunicate OK [05:41:36]SAM_PROTO_SignData done [05:41:36]FM_MakeSignedData done [05:41:36]CreateOFDProtocolMessage [05:41:36]wFMCommunicate request_size=4 [05:41:36]MH_SAM_APDU [05:41:36]CAPDU: 80 11 00 00 [05:41:36]Write to MH i2c: E2 08 00 49 78 80 11 00 00 00 00 00 00 3B [05:41:36]Write i2c OK [05:41:36]MH_I2C_Read... [05:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:36]Read from MH i2c: E2 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: E2 17 00 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: E2 17 00 49 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 96 [05:41: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:41:36]wFMCommunicate OK [05:41:36]CreateOFDProtocolMessage done [05:41:36]OFDSenderStorePacket 139591 [05:41:36]StoreOFDPacket docnum=139591 [05:41: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 26 01 00 00 55 4B 1E 01 E7 CA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 18 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 21 02 00 35 04 06 00 56 A8 76 77 37 AC 50 CC 19 2B AC 3C 24 CD [05:41:36]CheckFolder [05:41:36]dirname=/storage/ofd_packets [05:41:36]CheckFolder done [05:41:36]ProducePacketName [05:41:36]name=ofd_packets/00139591 [05:41:36]NVStorageSaveData ofd_packets/00139591 [05:41:36]File name is /storage/ofd_packets/00139591 [05:41:36]Write 324 bytes [05:41:36]NVStorageSaveData done [05:41:36]OFDSenderStorePacket done [05:41:36]KKMCreateOFDPacket done [05:41:36]NVStorageSaveData kkm_last_timestamp [05:41:36]File name is /storage/kkm_last_timestamp [05:41:36]Write 4 bytes [05:41:36]NVStorageSaveData done [05:41:36]ExternCall_PrintAddStr [05:41:36]wPrintStart [05:41:36]Write to MH i2c: 01 00 00 4A 78 C2 [05:41:36]Write i2c OK [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: 01 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: 01 07 00 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: 01 07 00 4A 78 00 00 00 00 00 FF 0F D7 [05:41:36]RasterBufferAndPrint [05:41:36]line Счет N : (3)335472 [05:41:36]line ИНН: 02508201610067 [05:41:36]line Контрольно-Кассовый Чек [05:41:36]line ПРОДАЖА [05:41:36]line Товар: 2000036240010 [05:41:36]line Кофе Латте (GABB TRADE) [05:41:36]line 1.000 * 115.00 [05:41:36]line = 115.00 [05:41:36]line НДС 12% НСП 1% [05:41:36]line > о реализуемом товаре [05:41:36]line ИТОГО: 115.00 [05:41:36]line НСП 1% : 1.02 [05:41:36]line НДС 12% : 12.21 [05:41:36]line Наличными: 115.00 [05:41:36]line Безнал.: 0.00 [05:41:36]line Место: АЗС № 101 "Партнер Нефть" [05:41:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:41:36]line СНО: Общий режим [05:41:36]line Чек 68 31.10.2024 05:41 [05:41:36]line Смена: 557 ФФД: 1.0 [05:41:36]line ЗНМ: 0300000081 [05:41:36]line РНМ: 0000000000091631 [05:41:36]line Версия ККМ: 001 [05:41:36]line ФМ: 0000000000874669 [05:41:36]line ФД: 139591 [05:41:36]line ФПД: 95281542018988 [05:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T054143&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139591&fm=95281542018988&tin=02508201610067®Number=0000000000091631&sum=11500 [05:41:36]line 0 [05:41:36]OFD Sender: Processing packet 139591 [packets to send 34, broken 33] [05:41:36]ProducePacketName [05:41:36]name=ofd_packets/00139591 [05:41:36]OFD Sender: To server: pG, [05:41:36]CommunicateWithHost lk.salyk.kg:30040 [05:41:36]ConnectInit lk.salyk.kg [05:41:36]written 0, free lines is 4095 [05:41:36]Connected sock=10 [05:41: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 26 01 00 00 55 4B 1E 01 E7 CA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 18 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 21 02 00 35 04 06 00 56 A8 76 77 37 AC 50 CC 19 2B AC 3C 24 CD [05:41: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 10 C9 47 00 E7 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 47 21 02 00 F4 03 04 00 45 C4 22 67 B6 04 01 00 00 82 BF B2 BC A3 26 ED A8 [05:41:36]CommunicateWithHost err = 0 [05:41:36]CheckOFDResponse [05:41:36]1017 (14) - 77093643461234 [05:41:36]1041 (16) - 0000000000874669 [05:41:36]1040 (4) - 139591 [05:41:36]1012 (4) - 30.10.2024 23:41 [05:41:36]1206 (1) - 0 [05:41:36]OFD Sender: Remove packet 139591 [05:41:36]ProducePacketName [05:41:36]name=ofd_packets/00139591 [05:41:36]NVStorageDeleteData [05:41:36]Write to MH i2c: 01 00 00 72 78 EA [05:41:36]Write i2c OK [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: 01 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: 01 07 00 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: 01 07 00 72 78 00 00 00 00 00 24 0D 22 [05:41:36]RasterBufferAndPrint [05:41:36]line [05:41:36]line [05:41:36]line [05:41:36]line [05:41:36]line [05:41:36]written 0, free lines is 3370 [05:41:36]MH_Cut [05:41:36]Write to MH i2c: D1 01 00 79 78 01 C3 [05:41:36]Write i2c OK [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: D1 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: D1 01 00 [05:41:36]MH_I2C_Read... [05:41:36]Read from MH i2c: D1 01 00 79 78 00 C2 [05:41:36]Write to MH i2c: 01 00 00 7A 78 F2 [05:41:36]Write i2c OK [05:41:36]MH_I2C_Read... [05:41:37]OFD Sender: No OFD packet to send [05:41:37]*** Cut start [05:41:37]*** Partial cut [05:41:37]*** CUTSNS_PIN = 1 [05:41:37]*** CUTSNS_PIN = 0 [05:41:37]*** Brake cut motor [05:41:38]Read from MH i2c: 01 [05:41:38]MH_I2C_Read... [05:41:38]*** Stop cut motor [05:41:38]*** Cut end [05:41:38]Read from MH i2c: 01 07 00 [05:41:38]MH_I2C_Read... [05:41:38]Read from MH i2c: 01 07 00 7A 78 00 00 00 00 00 FF 0F 07 [05:41:38]process_action close_receipt done [05:41:38]requested_data is exist [05:41:38]produce_requested_data [05:41:38]requested_item fm.sn is exist - process it [05:41:38]wFMCommunicate request_size=4 [05:41:38]MH_SAM_APDU [05:41:38]CAPDU: 80 11 00 00 [05:41:38]Write to MH i2c: E2 08 00 7B 78 80 11 00 00 00 00 00 00 6D [05:41:38]Write i2c OK [05:41:38]MH_I2C_Read... [05:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:38]Read from MH i2c: E2 [05:41:38]MH_I2C_Read... [05:41:38]Read from MH i2c: E2 17 00 [05:41:38]MH_I2C_Read... [05:41:38]Read from MH i2c: E2 17 00 7B 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C8 [05:41: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:41:38]wFMCommunicate OK [05:41:38]requested_item fd.num is exist - process it [05:41:38]SAM_PROTO_GetFieldsCounters [05:41:38]wFMCommunicate request_size=4 [05:41:38]MH_SAM_APDU [05:41:38]CAPDU: 80 13 00 00 [05:41:38]Write to MH i2c: E2 08 00 7C 78 80 13 00 00 00 00 00 00 70 [05:41:38]Write i2c OK [05:41:38]MH_I2C_Read... [05:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:41:38]Read from MH i2c: E2 [05:41:38]MH_I2C_Read... [05:41:38]Read from MH i2c: E2 62 00 [05:41:38]MH_I2C_Read... [05:41:38]Read from MH i2c: E2 62 00 7C 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 47 21 02 00 0E 04 04 00 2D 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 F9 [05:41: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 47 21 02 00 0E 04 04 00 2D 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 [05:41:38]wFMCommunicate OK [05:41:38]SAM_PROTO_GetFieldsCounters done [05:41:38]requested_item shift.num is exist - process it [05:41:38]requested_item shift.opened is exist - process it [05:41:38]req_shift_opened [05:41:38]FM_GetShiftState [05:41:38]SAM_PROTO_GetShiftState [05:41:38]wFMCommunicate request_size=4 [05:41:38]MH_SAM_APDU [05:41:38]CAPDU: 80 13 01 00 [05:41:38]Write to MH i2c: E2 08 00 7D 78 80 13 01 00 00 00 00 00 72 [05:41:38]Write i2c OK [05:41:38]MH_I2C_Read... [05:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:38]Read from MH i2c: E2 [05:41:38]MH_I2C_Read... [05:41:38]Read from MH i2c: E2 0E 00 [05:41:38]MH_I2C_Read... [05:41:38]Read from MH i2c: E2 0E 00 7D 78 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9B [05:41:38]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [05:41:38]wFMCommunicate OK [05:41:38]SAM_PROTO_GetShiftState done [05:41:38]FM_GetShiftState done [05:41:38]req_shift_opened done [05:41:38]requested_item shift.open_date is exist - process it [05:41:38]req_shift_open_date [05:41:38]req_shift_open_date done [05:41:38]produce_requested_data done [05:41:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139591,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [05:41:38]process_action_free close_receipt [05:41:38]json_value_free [05:41:38]json_value_free done [05:41:38]process_json_proto returns [05:41:38]Send response to host [05:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139591,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [05:41:38]free response buf [05:41:38]execute_script done [05:41:38]execute_script returns [05:41:38]free content buf [05:41:38]Sock 8.Close socket [05:41:38]Sock 8.Thread stoped [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]accept exits with 9 [06:02:58]New connection [06:02:58]New thread 3067141476 created [06:02:58]Thread 3067284836 joined [06:02:58]Waiting for new connection... [06:02:58] Sock 9.Parse request [06:02:58]Sock 9.Check first char [06:02:58]Sock 9.First char is OK [06:02:58]request: POST /json_proto HTTP/1.0 [06:02:58]Method: POST [06:02:58]URL: /json_proto [06:02:58]Method is POST - this is cgi request [06:02:58]url: /json_proto [06:02:58]query_string will be loaded in cgi processing [06:02:58]execute_cgi json_proto POST (null) [06:02:58]execute_cgi path=json_proto method=POST [06:02:58]POST find Content-Length [06:02:58]Host: 172.17.50.196:8080 [06:02:58]Content-Length: 657 [06:02:58]Content-Type: application/json [06:02:58] [06:02:58]POST finish read [06:02:58]Found Content-Length = 657 [06:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335474", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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:58]execute_script... [06:02: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)335474", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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:58]POST & json_proto [06:02:58]process_json_proto [06:02:58]json parsed OK: [06:02:58]protocol is kg_v1.0 [06:02:58]action value=close_receipt [06:02:58]process_action close_receipt [06:02:58]cmd_close_receipt [06:02:58]MH_GetDate [06:02:58]Write to MH i2c: F0 00 00 7E 78 E5 [06:02:58]Write i2c OK [06:02:58]MH_I2C_Read... [06:02:58]Read from MH i2c: F0 [06:02:58]MH_I2C_Read... [06:02:58]Read from MH i2c: F0 09 00 [06:02:58]MH_I2C_Read... [06:02:58]Read from MH i2c: F0 09 00 7E 78 00 9B 1D 23 67 72 0D 1C 67 32 [06:02:58]GetLastDocTimeStamp 1730353303 [06:02:58]current date 1730354587 [06:02:58]FM_GetShiftState [06:02:58]SAM_PROTO_GetShiftState [06:02:58]wFMCommunicate request_size=4 [06:02:58]MH_SAM_APDU [06:02:58]CAPDU: 80 13 01 00 [06:02:58]Write to MH i2c: E2 08 00 7F 78 80 13 01 00 00 00 00 00 74 [06:02:58]Write i2c OK [06:02:58]MH_I2C_Read... [06:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:58]Read from MH i2c: E2 [06:02:58]MH_I2C_Read... [06:02:58]Read from MH i2c: E2 0E 00 [06:02:58]MH_I2C_Read... [06:02:58]Read from MH i2c: E2 0E 00 7F 78 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9D [06:02:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:02:58]wFMCommunicate OK [06:02:58]SAM_PROTO_GetShiftState done [06:02:58]FM_GetShiftState done [06:02:58]opened in 1730332621 [06:02:58]opened+sec_in_day 1730419021 [06:02:58]quantity*price = 9500 [06:02:58]sum+1 = 9501 [06:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 69 31.10.2024 06:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139592 ФПД: 111883619985180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060307&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139592&fm=111883619985180&tin=02508201610067®Number=0000000000091631&sum=9500 0 [06:02:59]StoreToDocumentArchive [06:02:59]shift 557 fd 139592 [06:02:59]save to /storage/0557/doc_00139592 [06:02:59]save last doc name /storage/0557/doc_00139592 to /storage/kkm_last_doc_name [06:02:59]save OK [06:02:59]Clear old archive folders... [06:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=288 [06:02:59]tlvbuf is 011FBE90 [06:02:59]SAM_PROTO_ClearQueue [06:02:59]wFMCommunicate request_size=4 [06:02:59]MH_SAM_APDU [06:02:59]CAPDU: 80 09 00 00 [06:02:59]Write to MH i2c: E2 08 00 8C 78 80 09 00 00 00 00 00 00 76 [06:02:59]Write i2c OK [06:02:59]MH_I2C_Read... [06:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:02:59]Read from MH i2c: E2 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 03 00 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 03 00 8C 78 00 90 00 78 [06:02:59]RAPDU: 90 00 [06:02:59]wFMCommunicate OK [06:02:59]SAM_PROTO_ClearQueue done [06:02:59]KKMCreateOFDPacket [06:02:59]OFDProtocolAddRootSTLVToBuf [06:02:59]FM_MakeSignedData [06:02:59]FM_MakeSignedData [06:02:59]SAM_PROTO_SignData [06:02:59]wFMCommunicate request_size=4 [06:02:59]MH_SAM_APDU [06:02:59]CAPDU: 80 0D 01 02 [06:02:59]Write to MH i2c: E2 08 00 8D 78 80 0D 01 02 00 00 00 00 7E [06:02:59]Write i2c OK [06:02:59]MH_I2C_Read... [06:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:02:59]Read from MH i2c: E2 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 03 00 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 03 00 8D 78 00 90 00 79 [06:02:59]RAPDU: 90 00 [06:02:59]wFMCommunicate OK [06:02:59]wFMCommunicate request_size=255 [06:02:59]MH_SAM_APDU [06:02:59]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 45 00 00 00 F4 03 04 00 9B 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [06:02:59]Write to MH i2c: E2 02 01 8E 78 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 45 00 00 00 F4 03 04 00 9B 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 1F [06:02:59]Write i2c OK [06:02:59]MH_I2C_Read... [06:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:59]Read from MH i2c: E2 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 03 00 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 03 00 8E 78 00 90 00 7A [06:02:59]RAPDU: 90 00 [06:02:59]wFMCommunicate OK [06:02:59]wFMCommunicate request_size=47 [06:02:59]MH_SAM_APDU [06:02:59]CAPDU: 80 0D 02 02 2A 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 21 02 00 35 04 06 00 65 C1 EF 6C E7 1C [06:02:59]Write to MH i2c: E2 32 00 8F 78 80 0D 02 02 2A 00 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 21 02 00 35 04 06 00 65 C1 EF 6C E7 1C 00 00 33 [06:02:59]Write i2c OK [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 [06:02:59]MH_I2C_Read... [06:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:59]Read from MH i2c: E2 03 00 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 03 00 8F 78 00 90 00 7B [06:02:59]RAPDU: 90 00 [06:02:59]wFMCommunicate OK [06:02:59]wFMCommunicate request_size=4 [06:02:59]MH_SAM_APDU [06:02:59]CAPDU: 80 0D 03 02 [06:02:59]Write to MH i2c: E2 08 00 90 78 80 0D 03 02 00 00 00 00 83 [06:02:59]Write i2c OK [06:02:59]MH_I2C_Read... [06:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:02:59]Read from MH i2c: E2 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 0B 00 [06:02:59]MH_I2C_Read... [06:02:59]Read from MH i2c: E2 0B 00 90 78 00 79 11 56 08 A0 DA DA C7 90 00 87 [06:02:59]RAPDU: 79 11 56 08 A0 DA DA C7 90 00 [06:02:59]wFMCommunicate OK [06:02:59]SAM_PROTO_SignData done [06:02:59]FM_MakeSignedData done [06:02:59]CreateOFDProtocolMessage [06:02:59]wFMCommunicate request_size=4 [06:02:59]MH_SAM_APDU [06:02:59]CAPDU: 80 11 00 00 [06:02:59]Write to MH i2c: E2 08 00 91 78 80 11 00 00 00 00 00 00 83 [06:02:59]Write i2c OK [06:02:59]MH_I2C_Read... [06:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:00]Read from MH i2c: E2 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: E2 17 00 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: E2 17 00 91 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [06: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 [06:03:00]wFMCommunicate OK [06:03:00]CreateOFDProtocolMessage done [06:03:00]OFDSenderStorePacket 139592 [06:03:00]StoreOFDPacket docnum=139592 [06: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 34 01 00 00 CC 9A 2C 01 8E 96 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 45 00 00 00 F4 03 04 00 9B 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 21 02 00 35 04 06 00 65 C1 EF 6C E7 1C 79 11 56 08 A0 DA DA C7 [06:03:00]CheckFolder [06:03:00]dirname=/storage/ofd_packets [06:03:00]CheckFolder done [06:03:00]ProducePacketName [06:03:00]name=ofd_packets/00139592 [06:03:00]NVStorageSaveData ofd_packets/00139592 [06:03:00]File name is /storage/ofd_packets/00139592 [06:03:00]Write 338 bytes [06:03:00]NVStorageSaveData done [06:03:00]OFDSenderStorePacket done [06:03:00]KKMCreateOFDPacket done [06:03:00]NVStorageSaveData kkm_last_timestamp [06:03:00]File name is /storage/kkm_last_timestamp [06:03:00]Write 4 bytes [06:03:00]NVStorageSaveData done [06:03:00]ExternCall_PrintAddStr [06:03:00]wPrintStart [06:03:00]Write to MH i2c: 01 00 00 92 78 0A [06:03:00]Write i2c OK [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: 01 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: 01 07 00 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: 01 07 00 92 78 00 00 00 00 00 FF 0F 1F [06:03:00]RasterBufferAndPrint [06:03:00]line Счет N : (3)335474 [06:03:00]line ИНН: 02508201610067 [06:03:00]line Контрольно-Кассовый Чек [06:03:00]line ПРОДАЖА [06:03:00]line Товар: 4700000481453 [06:03:00]line Напиток энерг Nitro Max 0,45 ж/б [06:03:00]line 1.000 * 95.00 [06:03:00]line = 95.00 [06:03:00]line НДС 12% НСП 1% [06:03:00]line > о реализуемом товаре [06:03:00]line ИТОГО: 95.00 [06:03:00]line НСП 1% : 0.84 [06:03:00]line НДС 12% : 10.09 [06:03:00]line Наличными: 95.00 [06:03:00]line Безнал.: 0.00 [06:03:00]line Место: АЗС № 101 "Партнер Нефть" [06:03:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:03:00]line СНО: Общий режим [06:03:00]line Чек 69 31.10.2024 06:03 [06:03:00]line Смена: 557 ФФД: 1.0 [06:03:00]line ЗНМ: 0300000081 [06:03:00]line РНМ: 0000000000091631 [06:03:00]line Версия ККМ: 001 [06:03:00]line ФМ: 0000000000874669 [06:03:00]line ФД: 139592 [06:03:00]line ФПД: 111883619985180 [06:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060307&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139592&fm=111883619985180&tin=02508201610067®Number=0000000000091631&sum=9500 [06:03:00]line 0 [06:03:00]OFD Sender: Processing packet 139592 [packets to send 34, broken 33] [06:03:00]ProducePacketName [06:03:00]name=ofd_packets/00139592 [06:03:00]OFD Sender: To server: pG, [06:03:00]CommunicateWithHost lk.salyk.kg:30040 [06:03:00]ConnectInit lk.salyk.kg [06:03:00]written 0, free lines is 4095 [06:03:00]Connected sock=10 [06: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 34 01 00 00 CC 9A 2C 01 8E 96 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 45 00 00 00 F4 03 04 00 9B 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 21 02 00 35 04 06 00 65 C1 EF 6C E7 1C 79 11 56 08 A0 DA DA C7 [06:03: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 91 DE 47 00 32 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 48 21 02 00 F4 03 04 00 49 C9 22 67 B6 04 01 00 00 4D 33 A7 ED D6 0C A0 30 [06:03:00]CommunicateWithHost err = 0 [06:03:00]CheckOFDResponse [06:03:00]1017 (14) - 77093643461234 [06:03:00]1041 (16) - 0000000000874669 [06:03:00]1040 (4) - 139592 [06:03:00]1012 (4) - 31.10.2024 00:03 [06:03:00]1206 (1) - 0 [06:03:00]OFD Sender: Remove packet 139592 [06:03:00]ProducePacketName [06:03:00]name=ofd_packets/00139592 [06:03:00]NVStorageDeleteData [06:03:00]Write to MH i2c: 01 00 00 BB 78 33 [06:03:00]Write i2c OK [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: 01 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: 01 07 00 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: 01 07 00 BB 78 00 00 00 00 00 03 0D 4A [06:03:00]RasterBufferAndPrint [06:03:00]line [06:03:00]line [06:03:00]line [06:03:00]line [06:03:00]line [06:03:00]written 0, free lines is 3340 [06:03:00]MH_Cut [06:03:00]Write to MH i2c: D1 01 00 C2 78 01 0C [06:03:00]Write i2c OK [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: D1 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: D1 01 00 [06:03:00]MH_I2C_Read... [06:03:00]Read from MH i2c: D1 01 00 C2 78 00 0B [06:03:00]Write to MH i2c: 01 00 00 C3 78 3B [06:03:00]Write i2c OK [06:03:00]MH_I2C_Read... [06:03:01]OFD Sender: No OFD packet to send [06:03:01]*** Cut start [06:03:01]*** Partial cut [06:03:01]*** CUTSNS_PIN = 1 [06:03:01]*** CUTSNS_PIN = 0 [06:03:01]*** Brake cut motor [06:03:02]Read from MH i2c: 01 [06:03:02]MH_I2C_Read... [06:03:02]*** Stop cut motor [06:03:02]*** Cut end [06:03:02]Read from MH i2c: 01 07 00 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: 01 07 00 C3 78 00 00 00 00 00 FF 0F 50 [06:03:02]process_action close_receipt done [06:03:02]requested_data is exist [06:03:02]produce_requested_data [06:03:02]requested_item fm.sn is exist - process it [06:03:02]wFMCommunicate request_size=4 [06:03:02]MH_SAM_APDU [06:03:02]CAPDU: 80 11 00 00 [06:03:02]Write to MH i2c: E2 08 00 C4 78 80 11 00 00 00 00 00 00 B6 [06:03:02]Write i2c OK [06:03:02]MH_I2C_Read... [06:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:02]Read from MH i2c: E2 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 17 00 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 17 00 C4 78 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:03:02]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:02]wFMCommunicate OK [06:03:02]requested_item fd.num is exist - process it [06:03:02]SAM_PROTO_GetFieldsCounters [06:03:02]wFMCommunicate request_size=4 [06:03:02]MH_SAM_APDU [06:03:02]CAPDU: 80 13 00 00 [06:03:02]Write to MH i2c: E2 08 00 C5 78 80 13 00 00 00 00 00 00 B9 [06:03:02]Write i2c OK [06:03:02]MH_I2C_Read... [06:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:02]Read from MH i2c: E2 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 62 00 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 62 00 C5 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 48 21 02 00 0E 04 04 00 2D 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 46 [06:03: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 48 21 02 00 0E 04 04 00 2D 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:03:02]wFMCommunicate OK [06:03:02]SAM_PROTO_GetFieldsCounters done [06:03:02]requested_item shift.num is exist - process it [06:03:02]requested_item shift.opened is exist - process it [06:03:02]req_shift_opened [06:03:02]FM_GetShiftState [06:03:02]SAM_PROTO_GetShiftState [06:03:02]wFMCommunicate request_size=4 [06:03:02]MH_SAM_APDU [06:03:02]CAPDU: 80 13 01 00 [06:03:02]Write to MH i2c: E2 08 00 C6 78 80 13 01 00 00 00 00 00 BB [06:03:02]Write i2c OK [06:03:02]MH_I2C_Read... [06:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:02]Read from MH i2c: E2 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 0E 00 [06:03:02]MH_I2C_Read... [06:03:02]Read from MH i2c: E2 0E 00 C6 78 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E4 [06:03:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:03:02]wFMCommunicate OK [06:03:02]SAM_PROTO_GetShiftState done [06:03:02]FM_GetShiftState done [06:03:02]req_shift_opened done [06:03:02]requested_item shift.open_date is exist - process it [06:03:02]req_shift_open_date [06:03:02]req_shift_open_date done [06:03:02]produce_requested_data done [06:03:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139592,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:03:02]process_action_free close_receipt [06:03:02]json_value_free [06:03:02]json_value_free done [06:03:02]process_json_proto returns [06:03:02]Send response to host [06:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139592,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:03:02]free response buf [06:03:02]execute_script done [06:03:02]execute_script returns [06:03:02]free content buf [06:03:02]Sock 9.Close socket [06:03:02]Sock 9.Thread stoped [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:18]accept exits with 8 [06:03:18]New connection [06:03:18]New thread 3067284836 created [06:03:18]Thread 3067141476 joined [06:03:18]Waiting for new connection... [06:03:18] Sock 8.Parse request [06:03:18]Sock 8.Check first char [06:03:18]Sock 8.First char is OK [06:03:18]request: POST /json_proto HTTP/1.0 [06:03:18]Method: POST [06:03:18]URL: /json_proto [06:03:18]Method is POST - this is cgi request [06:03:18]url: /json_proto [06:03:18]query_string will be loaded in cgi processing [06:03:18]execute_cgi json_proto POST (null) [06:03:18]execute_cgi path=json_proto method=POST [06:03:18]POST find Content-Length [06:03:18]Host: 172.17.50.196:8080 [06:03:18]Content-Length: 626 [06:03:18]Content-Type: application/json [06:03:18] [06:03:18]POST finish read [06:03:18]Found Content-Length = 626 [06:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335475", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:18]execute_script... [06:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335475", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:18]POST & json_proto [06:03:18]process_json_proto [06:03:18]json parsed OK: [06:03:18]protocol is kg_v1.0 [06:03:18]action value=close_receipt [06:03:18]process_action close_receipt [06:03:18]cmd_close_receipt [06:03:18]MH_GetDate [06:03:18]Write to MH i2c: F0 00 00 C7 78 2E [06:03:18]Write i2c OK [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: F0 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: F0 09 00 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: F0 09 00 C7 78 00 AF 1D 23 67 72 0D 1C 67 8F [06:03:18]GetLastDocTimeStamp 1730354587 [06:03:18]current date 1730354607 [06:03:18]FM_GetShiftState [06:03:18]SAM_PROTO_GetShiftState [06:03:18]wFMCommunicate request_size=4 [06:03:18]MH_SAM_APDU [06:03:18]CAPDU: 80 13 01 00 [06:03:18]Write to MH i2c: E2 08 00 C8 78 80 13 01 00 00 00 00 00 BD [06:03:18]Write i2c OK [06:03:18]MH_I2C_Read... [06:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:18]Read from MH i2c: E2 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 0E 00 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 0E 00 C8 78 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E6 [06:03:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:03:18]wFMCommunicate OK [06:03:18]SAM_PROTO_GetShiftState done [06:03:18]FM_GetShiftState done [06:03:18]opened in 1730332621 [06:03:18]opened+sec_in_day 1730419021 [06:03:18]quantity*price = 11500 [06:03:18]sum+1 = 11501 [06:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 70 31.10.2024 06:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139593 ФПД: 112083917185619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060327&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139593&fm=112083917185619&tin=02508201610067®Number=0000000000091631&sum=11500 0 [06:03:19]StoreToDocumentArchive [06:03:19]shift 557 fd 139593 [06:03:19]save to /storage/0557/doc_00139593 [06:03:19]save last doc name /storage/0557/doc_00139593 to /storage/kkm_last_doc_name [06:03:19]save OK [06:03:19]Clear old archive folders... [06:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=274 [06:03:19]tlvbuf is 011DB7B0 [06:03:19]SAM_PROTO_ClearQueue [06:03:19]wFMCommunicate request_size=4 [06:03:19]MH_SAM_APDU [06:03:19]CAPDU: 80 09 00 00 [06:03:19]Write to MH i2c: E2 08 00 D5 78 80 09 00 00 00 00 00 00 BF [06:03:19]Write i2c OK [06:03:19]MH_I2C_Read... [06:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:19]Read from MH i2c: E2 [06:03:19]MH_I2C_Read... [06:03:19]Read from MH i2c: E2 03 00 [06:03:19]MH_I2C_Read... [06:03:19]Read from MH i2c: E2 03 00 D5 78 00 90 00 C1 [06:03:19]RAPDU: 90 00 [06:03:19]wFMCommunicate OK [06:03:19]SAM_PROTO_ClearQueue done [06:03:19]KKMCreateOFDPacket [06:03:19]OFDProtocolAddRootSTLVToBuf [06:03:19]FM_MakeSignedData [06:03:19]FM_MakeSignedData [06:03:19]SAM_PROTO_SignData [06:03:19]wFMCommunicate request_size=4 [06:03:19]MH_SAM_APDU [06:03:19]CAPDU: 80 0D 01 02 [06:03:19]Write to MH i2c: E2 08 00 D6 78 80 0D 01 02 00 00 00 00 C7 [06:03:19]Write i2c OK [06:03:19]MH_I2C_Read... [06:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:19]Read from MH i2c: E2 [06:03:19]MH_I2C_Read... [06:03:19]Read from MH i2c: E2 03 00 [06:03:19]MH_I2C_Read... [06:03:19]Read from MH i2c: E2 03 00 D6 78 00 90 00 C2 [06:03:19]RAPDU: 90 00 [06:03:19]wFMCommunicate OK [06:03:19]wFMCommunicate request_size=255 [06:03:19]MH_SAM_APDU [06:03:19]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AF 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [06:03:19]Write to MH i2c: E2 02 01 D7 78 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AF 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 29 [06:03:19]Write i2c OK [06:03:19]MH_I2C_Read... [06:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:19]Read from MH i2c: E2 [06:03:19]MH_I2C_Read... [06:03:19]Read from MH i2c: E2 03 00 [06:03:19]MH_I2C_Read... [06:03:19]Read from MH i2c: E2 03 00 D7 78 00 90 00 C3 [06:03:19]RAPDU: 90 00 [06:03:19]wFMCommunicate OK [06:03:19]wFMCommunicate request_size=33 [06:03:19]MH_SAM_APDU [06:03:19]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 21 02 00 35 04 06 00 65 F0 92 11 A2 53 [06:03:19]Write to MH i2c: E2 24 00 D8 78 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 21 02 00 35 04 06 00 65 F0 92 11 A2 53 00 00 BA [06:03:19]Write i2c OK [06:03:19]MH_I2C_Read... [06:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:20]Read from MH i2c: E2 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 03 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 03 00 D8 78 00 90 00 C4 [06:03:20]RAPDU: 90 00 [06:03:20]wFMCommunicate OK [06:03:20]wFMCommunicate request_size=4 [06:03:20]MH_SAM_APDU [06:03:20]CAPDU: 80 0D 03 02 [06:03:20]Write to MH i2c: E2 08 00 D9 78 80 0D 03 02 00 00 00 00 CC [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:20]Read from MH i2c: E2 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 0B 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 0B 00 D9 78 00 E5 76 8B B0 26 16 76 10 90 00 25 [06:03:20]RAPDU: E5 76 8B B0 26 16 76 10 90 00 [06:03:20]wFMCommunicate OK [06:03:20]SAM_PROTO_SignData done [06:03:20]FM_MakeSignedData done [06:03:20]CreateOFDProtocolMessage [06:03:20]wFMCommunicate request_size=4 [06:03:20]MH_SAM_APDU [06:03:20]CAPDU: 80 11 00 00 [06:03:20]Write to MH i2c: E2 08 00 DA 78 80 11 00 00 00 00 00 00 CC [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:20]Read from MH i2c: E2 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 17 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 17 00 DA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 27 [06:03:20]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:20]wFMCommunicate OK [06:03:20]CreateOFDProtocolMessage done [06:03:20]OFDSenderStorePacket 139593 [06:03:20]StoreOFDPacket docnum=139593 [06:03: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 26 01 00 00 1C 4A 1E 01 79 DD 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AF 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 21 02 00 35 04 06 00 65 F0 92 11 A2 53 E5 76 8B B0 26 16 76 10 [06:03:20]CheckFolder [06:03:20]dirname=/storage/ofd_packets [06:03:20]CheckFolder done [06:03:20]ProducePacketName [06:03:20]name=ofd_packets/00139593 [06:03:20]NVStorageSaveData ofd_packets/00139593 [06:03:20]File name is /storage/ofd_packets/00139593 [06:03:20]Write 324 bytes [06:03:20]NVStorageSaveData done [06:03:20]OFDSenderStorePacket done [06:03:20]KKMCreateOFDPacket done [06:03:20]NVStorageSaveData kkm_last_timestamp [06:03:20]File name is /storage/kkm_last_timestamp [06:03:20]Write 4 bytes [06:03:20]NVStorageSaveData done [06:03:20]ExternCall_PrintAddStr [06:03:20]wPrintStart [06:03:20]Write to MH i2c: 01 00 00 DB 78 53 [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: 01 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: 01 07 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: 01 07 00 DB 78 00 00 00 00 00 FF 0F 68 [06:03:20]RasterBufferAndPrint [06:03:20]line Счет N : (3)335475 [06:03:20]line ИНН: 02508201610067 [06:03:20]line Контрольно-Кассовый Чек [06:03:20]line ПРОДАЖА [06:03:20]line Товар: 2000036240010 [06:03:20]line Кофе Латте (GABB TRADE) [06:03:20]line 1.000 * 115.00 [06:03:20]line = 115.00 [06:03:20]line НДС 12% НСП 1% [06:03:20]line > о реализуемом товаре [06:03:20]line ИТОГО: 115.00 [06:03:20]line НСП 1% : 1.02 [06:03:20]line НДС 12% : 12.21 [06:03:20]line Наличными: 115.00 [06:03:20]line Безнал.: 0.00 [06:03:20]line Место: АЗС № 101 "Партнер Нефть" [06:03:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:03:20]line СНО: Общий режим [06:03:20]line Чек 70 31.10.2024 06:03 [06:03:20]line Смена: 557 ФФД: 1.0 [06:03:20]line ЗНМ: 0300000081 [06:03:20]line РНМ: 0000000000091631 [06:03:20]line Версия ККМ: 001 [06:03:20]line ФМ: 0000000000874669 [06:03:20]line ФД: 139593 [06:03:20]line ФПД: 112083917185619 [06:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060327&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139593&fm=112083917185619&tin=02508201610067®Number=0000000000091631&sum=11500 [06:03:20]line 0 [06:03:20]written 0, free lines is 4095 [06:03:20]OFD Sender: Processing packet 139593 [packets to send 34, broken 33] [06:03:20]ProducePacketName [06:03:20]name=ofd_packets/00139593 [06:03:20]OFD Sender: To server: pG, [06:03:20]CommunicateWithHost lk.salyk.kg:30040 [06:03:20]ConnectInit lk.salyk.kg [06:03:20]Connected sock=10 [06:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 1C 4A 1E 01 79 DD 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AF 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 21 02 00 35 04 06 00 65 F0 92 11 A2 53 E5 76 8B B0 26 16 76 10 [06:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 19 4B 47 00 78 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 21 02 00 F4 03 04 00 5D C9 22 67 B6 04 01 00 00 7E 9D BD 1B 44 15 25 DA [06:03:20]CommunicateWithHost err = 0 [06:03:20]CheckOFDResponse [06:03:20]1017 (14) - 77093643461234 [06:03:20]1041 (16) - 0000000000874669 [06:03:20]1040 (4) - 139593 [06:03:20]1012 (4) - 31.10.2024 00:03 [06:03:20]1206 (1) - 0 [06:03:20]OFD Sender: Remove packet 139593 [06:03:20]ProducePacketName [06:03:20]name=ofd_packets/00139593 [06:03:20]NVStorageDeleteData [06:03:20]Write to MH i2c: 01 00 00 03 79 7C [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: 01 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: 01 07 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: 01 07 00 03 79 00 00 00 00 00 24 0D B4 [06:03:20]RasterBufferAndPrint [06:03:20]line [06:03:20]line [06:03:20]line [06:03:20]line [06:03:20]line [06:03:20]written 0, free lines is 3370 [06:03:20]MH_Cut [06:03:20]Write to MH i2c: D1 01 00 0A 79 01 55 [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: D1 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: D1 01 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: D1 01 00 0A 79 00 54 [06:03:20]Write to MH i2c: 01 00 00 0B 79 84 [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]OFD Sender: No OFD packet to send [06:03:21]*** Cut start [06:03:21]*** Partial cut [06:03:21]*** CUTSNS_PIN = 1 [06:03:21]*** CUTSNS_PIN = 0 [06:03:21]*** Brake cut motor [06:03:21]Read from MH i2c: 01 [06:03:21]MH_I2C_Read... [06:03:21]*** Stop cut motor [06:03:21]*** Cut end [06:03:21]Read from MH i2c: 01 07 00 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: 01 07 00 0B 79 00 00 00 00 00 FF 0F 99 [06:03:21]process_action close_receipt done [06:03:21]requested_data is exist [06:03:21]produce_requested_data [06:03:21]requested_item fm.sn is exist - process it [06:03:21]wFMCommunicate request_size=4 [06:03:21]MH_SAM_APDU [06:03:21]CAPDU: 80 11 00 00 [06:03:21]Write to MH i2c: E2 08 00 0C 79 80 11 00 00 00 00 00 00 FF [06:03:21]Write i2c OK [06:03:21]MH_I2C_Read... [06:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:21]Read from MH i2c: E2 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 17 00 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 17 00 0C 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5A [06: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 [06:03:21]wFMCommunicate OK [06:03:21]requested_item fd.num is exist - process it [06:03:21]SAM_PROTO_GetFieldsCounters [06:03:21]wFMCommunicate request_size=4 [06:03:21]MH_SAM_APDU [06:03:21]CAPDU: 80 13 00 00 [06:03:21]Write to MH i2c: E2 08 00 0D 79 80 13 00 00 00 00 00 00 02 [06:03:21]Write i2c OK [06:03:21]MH_I2C_Read... [06:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:22]Read from MH i2c: E2 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 62 00 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 62 00 0D 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 49 21 02 00 0E 04 04 00 2D 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 93 [06:03: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 49 21 02 00 0E 04 04 00 2D 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:03:22]wFMCommunicate OK [06:03:22]SAM_PROTO_GetFieldsCounters done [06:03:22]requested_item shift.num is exist - process it [06:03:22]requested_item shift.opened is exist - process it [06:03:22]req_shift_opened [06:03:22]FM_GetShiftState [06:03:22]SAM_PROTO_GetShiftState [06:03:22]wFMCommunicate request_size=4 [06:03:22]MH_SAM_APDU [06:03:22]CAPDU: 80 13 01 00 [06:03:22]Write to MH i2c: E2 08 00 0E 79 80 13 01 00 00 00 00 00 04 [06:03:22]Write i2c OK [06:03:22]MH_I2C_Read... [06:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:22]Read from MH i2c: E2 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 0E 00 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 0E 00 0E 79 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2D [06:03:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:03:22]wFMCommunicate OK [06:03:22]SAM_PROTO_GetShiftState done [06:03:22]FM_GetShiftState done [06:03:22]req_shift_opened done [06:03:22]requested_item shift.open_date is exist - process it [06:03:22]req_shift_open_date [06:03:22]req_shift_open_date done [06:03:22]produce_requested_data done [06:03:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139593,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:03:22]process_action_free close_receipt [06:03:22]json_value_free [06:03:22]json_value_free done [06:03:22]process_json_proto returns [06:03:22]Send response to host [06:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139593,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:03:22]free response buf [06:03:22]execute_script done [06:03:22]execute_script returns [06:03:22]free content buf [06:03:22]Sock 8.Close socket [06:03:22]Sock 8.Thread stoped [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:43]accept exits with 9 [06:03:43]New connection [06:03:43]New thread 3067141476 created [06:03:43]Thread 3067284836 joined [06:03:43]Waiting for new connection... [06:03:43] Sock 9.Parse request [06:03:43]Sock 9.Check first char [06:03:43]Sock 9.First char is OK [06:03:43]request: POST /json_proto HTTP/1.0 [06:03:43]Method: POST [06:03:43]URL: /json_proto [06:03:43]Method is POST - this is cgi request [06:03:43]url: /json_proto [06:03:43]query_string will be loaded in cgi processing [06:03:43]execute_cgi json_proto POST (null) [06:03:43]execute_cgi path=json_proto method=POST [06:03:43]POST find Content-Length [06:03:43]Host: 172.17.50.196:8080 [06:03:43]Content-Length: 719 [06:03:43]Content-Type: application/json [06:03:43] [06:03:43]POST finish read [06:03:43]Found Content-Length = 719 [06:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139592, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335474", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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": "139592" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:43]execute_script... [06:03:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139592, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335474", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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": "139592" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:43]POST & json_proto [06:03:43]process_json_proto [06:03:43]json parsed OK: [06:03:43]protocol is kg_v1.0 [06:03:43]action value=close_receipt [06:03:43]process_action close_receipt [06:03:43]cmd_close_receipt [06:03:43]MH_GetDate [06:03:43]Write to MH i2c: F0 00 00 0F 79 77 [06:03:43]Write i2c OK [06:03:43]MH_I2C_Read... [06:03:43]Read from MH i2c: F0 [06:03:43]MH_I2C_Read... [06:03:43]Read from MH i2c: F0 09 00 [06:03:43]MH_I2C_Read... [06:03:43]Read from MH i2c: F0 09 00 0F 79 00 C8 1D 23 67 72 0D 1C 67 F1 [06:03:43]GetLastDocTimeStamp 1730354607 [06:03:43]current date 1730354632 [06:03:43]FM_GetShiftState [06:03:43]SAM_PROTO_GetShiftState [06:03:43]wFMCommunicate request_size=4 [06:03:43]MH_SAM_APDU [06:03:43]CAPDU: 80 13 01 00 [06:03:43]Write to MH i2c: E2 08 00 10 79 80 13 01 00 00 00 00 00 06 [06:03:43]Write i2c OK [06:03:43]MH_I2C_Read... [06:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:43]Read from MH i2c: E2 [06:03:43]MH_I2C_Read... [06:03:43]Read from MH i2c: E2 0E 00 [06:03:43]MH_I2C_Read... [06:03:43]Read from MH i2c: E2 0E 00 10 79 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2F [06:03:43]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:03:43]wFMCommunicate OK [06:03:43]SAM_PROTO_GetShiftState done [06:03:43]FM_GetShiftState done [06:03:43]opened in 1730332621 [06:03:43]opened+sec_in_day 1730419021 [06:03:43]quantity*price = 9500 [06:03:43]sum+1 = 9501 [06:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 71 31.10.2024 06:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФД осн.: 139592 ФМ осн.: 0000000000874669 ФМ: 0000000000874669 ФД: 139594 ФПД: 266516901288025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060352&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139594&fm=266516901288025&tin=02508201610067®Number=0000000000091631&sum=9500 139592 [06:03:44]StoreToDocumentArchive [06:03:44]shift 557 fd 139594 [06:03:44]save to /storage/0557/doc_00139594 [06:03:44]save last doc name /storage/0557/doc_00139594 to /storage/kkm_last_doc_name [06:03:44]save OK [06:03:44]Clear old archive folders... [06:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=316 [06:03:44]tlvbuf is 0124F3F0 [06:03:44]SAM_PROTO_ClearQueue [06:03:44]wFMCommunicate request_size=4 [06:03:44]MH_SAM_APDU [06:03:44]CAPDU: 80 09 00 00 [06:03:44]Write to MH i2c: E2 08 00 1F 79 80 09 00 00 00 00 00 00 0A [06:03:44]Write i2c OK [06:03:44]MH_I2C_Read... [06:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:44]Read from MH i2c: E2 [06:03:44]MH_I2C_Read... [06:03:44]Read from MH i2c: E2 03 00 [06:03:44]MH_I2C_Read... [06:03:44]Read from MH i2c: E2 03 00 1F 79 00 90 00 0C [06:03:44]RAPDU: 90 00 [06:03:44]wFMCommunicate OK [06:03:44]SAM_PROTO_ClearQueue done [06:03:44]KKMCreateOFDPacket [06:03:44]OFDProtocolAddRootSTLVToBuf [06:03:44]FM_MakeSignedData [06:03:44]FM_MakeSignedData [06:03:44]SAM_PROTO_SignData [06:03:44]wFMCommunicate request_size=4 [06:03:44]MH_SAM_APDU [06:03:44]CAPDU: 80 0D 01 02 [06:03:44]Write to MH i2c: E2 08 00 20 79 80 0D 01 02 00 00 00 00 12 [06:03:44]Write i2c OK [06:03:44]MH_I2C_Read... [06:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:44]Read from MH i2c: E2 [06:03:44]MH_I2C_Read... [06:03:44]Read from MH i2c: E2 03 00 [06:03:44]MH_I2C_Read... [06:03:44]Read from MH i2c: E2 03 00 20 79 00 90 00 0D [06:03:44]RAPDU: 90 00 [06:03:44]wFMCommunicate OK [06:03:44]wFMCommunicate request_size=255 [06:03:44]MH_SAM_APDU [06:03:44]CAPDU: 80 0D 02 02 FA 03 00 3C 01 1E 04 01 00 02 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C8 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [06:03:44]Write to MH i2c: E2 02 01 21 79 80 0D 02 02 FA 00 03 00 3C 01 1E 04 01 00 02 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C8 1D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 FF [06:03:44]Write i2c OK [06:03:44]MH_I2C_Read... [06:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:45]Read from MH i2c: E2 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 03 00 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 03 00 21 79 00 90 00 0E [06:03:45]RAPDU: 90 00 [06:03:45]wFMCommunicate OK [06:03:45]wFMCommunicate request_size=75 [06:03:45]MH_SAM_APDU [06:03:45]CAPDU: 80 0D 02 02 46 31 36 33 31 27 04 04 00 48 21 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 4A 21 02 00 35 04 06 00 F2 65 4D 3A 58 59 [06:03:45]Write to MH i2c: E2 4E 00 22 79 80 0D 02 02 46 00 31 36 33 31 27 04 04 00 48 21 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 4A 21 02 00 35 04 06 00 F2 65 4D 3A 58 59 00 00 0A [06:03:45]Write i2c OK [06:03:45]MH_I2C_Read... [06:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:45]Read from MH i2c: E2 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 03 00 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 03 00 22 79 00 90 00 0F [06:03:45]RAPDU: 90 00 [06:03:45]wFMCommunicate OK [06:03:45]wFMCommunicate request_size=4 [06:03:45]MH_SAM_APDU [06:03:45]CAPDU: 80 0D 03 02 [06:03:45]Write to MH i2c: E2 08 00 23 79 80 0D 03 02 00 00 00 00 17 [06:03:45]Write i2c OK [06:03:45]MH_I2C_Read... [06:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:45]Read from MH i2c: E2 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 0B 00 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 0B 00 23 79 00 93 8E B0 5B 0C F4 08 40 90 00 8C [06:03:45]RAPDU: 93 8E B0 5B 0C F4 08 40 90 00 [06:03:45]wFMCommunicate OK [06:03:45]SAM_PROTO_SignData done [06:03:45]FM_MakeSignedData done [06:03:45]CreateOFDProtocolMessage [06:03:45]wFMCommunicate request_size=4 [06:03:45]MH_SAM_APDU [06:03:45]CAPDU: 80 11 00 00 [06:03:45]Write to MH i2c: E2 08 00 24 79 80 11 00 00 00 00 00 00 17 [06:03:45]Write i2c OK [06:03:45]MH_I2C_Read... [06:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:45]Read from MH i2c: E2 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 17 00 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: E2 17 00 24 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 72 [06:03: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:03:45]wFMCommunicate OK [06:03:45]CreateOFDProtocolMessage done [06:03:45]OFDSenderStorePacket 139594 [06:03:45]StoreOFDPacket docnum=139594 [06:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 50 01 00 00 94 A6 48 01 03 8A 5A 03 01 00 03 00 3C 01 1E 04 01 00 02 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C8 1D 23 67 0E 04 04 00 2D 02 00 00 B9 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 48 21 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 4A 21 02 00 35 04 06 00 F2 65 4D 3A 58 59 93 8E B0 5B 0C F4 08 40 [06:03:45]CheckFolder [06:03:45]dirname=/storage/ofd_packets [06:03:45]CheckFolder done [06:03:45]ProducePacketName [06:03:45]name=ofd_packets/00139594 [06:03:45]NVStorageSaveData ofd_packets/00139594 [06:03:45]File name is /storage/ofd_packets/00139594 [06:03:45]Write 366 bytes [06:03:45]NVStorageSaveData done [06:03:45]OFDSenderStorePacket done [06:03:45]KKMCreateOFDPacket done [06:03:45]NVStorageSaveData kkm_last_timestamp [06:03:45]File name is /storage/kkm_last_timestamp [06:03:45]Write 4 bytes [06:03:45]NVStorageSaveData done [06:03:45]ExternCall_PrintAddStr [06:03:45]wPrintStart [06:03:45]Write to MH i2c: 01 00 00 25 79 9E [06:03:45]Write i2c OK [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: 01 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: 01 07 00 [06:03:45]MH_I2C_Read... [06:03:45]Read from MH i2c: 01 07 00 25 79 00 00 00 00 00 FF 0F B3 [06:03:45]RasterBufferAndPrint [06:03:45]line Счет N : (3)335474 [06:03:45]line ИНН: 02508201610067 [06:03:45]line Контрольно-Кассовый Чек [06:03:45]line ВОЗВРАТ ПРОДАЖИ [06:03:45]line Товар: 4700000481453 [06:03:45]line Напиток энерг Nitro Max 0,45 ж/б [06:03:45]line 1.000 * 95.00 [06:03:45]line = 95.00 [06:03:45]line НДС 12% НСП 1% [06:03:45]line > о реализуемом товаре [06:03:45]line ИТОГО: 95.00 [06:03:45]line НСП 1% : 0.84 [06:03:45]line НДС 12% : 10.09 [06:03:45]line Наличными: 95.00 [06:03:45]line Безнал.: 0.00 [06:03:45]line Место: АЗС № 101 "Партнер Нефть" [06:03:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:03:45]line СНО: Общий режим [06:03:45]line Чек 71 31.10.2024 06:03 [06:03:45]line Смена: 557 ФФД: 1.0 [06:03:45]line ЗНМ: 0300000081 [06:03:45]line РНМ: 0000000000091631 [06:03:45]line Версия ККМ: 001 [06:03:45]line ФД осн.: 139592 [06:03:45]line ФМ осн.: 0000000000874669 [06:03:45]line ФМ: 0000000000874669 [06:03:45]line ФД: 139594 [06:03:45]line ФПД: 266516901288025 [06:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060352&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139594&fm=266516901288025&tin=02508201610067®Number=0000000000091631&sum=9500 [06:03:45]line 139592 [06:03:45]OFD Sender: Processing packet 139594 [packets to send 34, broken 33] [06:03:45]ProducePacketName [06:03:45]name=ofd_packets/00139594 [06:03:45]OFD Sender: To server: pG, [06:03:45]CommunicateWithHost lk.salyk.kg:30040 [06:03:45]ConnectInit lk.salyk.kg [06:03:45]written 0, free lines is 4095 [06:03:45]Connected sock=10 [06:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 50 01 00 00 94 A6 48 01 03 8A 5A 03 01 00 03 00 3C 01 1E 04 01 00 02 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C8 1D 23 67 0E 04 04 00 2D 02 00 00 B9 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 48 21 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 4A 21 02 00 35 04 06 00 F2 65 4D 3A 58 59 93 8E B0 5B 0C F4 08 40 [06:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 55 70 47 00 31 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 4A 21 02 00 F4 03 04 00 77 C9 22 67 B6 04 01 00 00 FE EA 8F 9E DE B1 A1 4B [06:03:45]CommunicateWithHost err = 0 [06:03:45]CheckOFDResponse [06:03:45]1017 (14) - 77093643461234 [06:03:45]1041 (16) - 0000000000874669 [06:03:45]1040 (4) - 139594 [06:03:45]1012 (4) - 31.10.2024 00:04 [06:03:45]1206 (1) - 0 [06:03:45]OFD Sender: Remove packet 139594 [06:03:45]ProducePacketName [06:03:45]name=ofd_packets/00139594 [06:03:45]NVStorageDeleteData [06:03:46]Write to MH i2c: 01 00 00 50 79 C9 [06:03:46]Write i2c OK [06:03:46]MH_I2C_Read... [06:03:46]Read from MH i2c: 01 [06:03:46]MH_I2C_Read... [06:03:46]Read from MH i2c: 01 07 00 [06:03:46]MH_I2C_Read... [06:03:46]Read from MH i2c: 01 07 00 50 79 00 00 00 00 00 E8 0C C4 [06:03:46]RasterBufferAndPrint [06:03:46]line [06:03:46]line [06:03:46]line [06:03:46]line [06:03:46]line [06:03:46]written 0, free lines is 3310 [06:03:46]MH_Cut [06:03:46]Write to MH i2c: D1 01 00 57 79 01 A2 [06:03:46]Write i2c OK [06:03:46]MH_I2C_Read... [06:03:46]Read from MH i2c: D1 [06:03:46]MH_I2C_Read... [06:03:46]Read from MH i2c: D1 01 00 [06:03:46]MH_I2C_Read... [06:03:46]Read from MH i2c: D1 01 00 57 79 00 A1 [06:03:46]Write to MH i2c: 01 00 00 58 79 D1 [06:03:46]Write i2c OK [06:03:46]MH_I2C_Read... [06:03:46]OFD Sender: No OFD packet to send [06:03:46]*** Cut start [06:03:46]*** Partial cut [06:03:46]*** CUTSNS_PIN = 1 [06:03:46]*** CUTSNS_PIN = 0 [06:03:47]*** Brake cut motor [06:03:47]Read from MH i2c: 01 [06:03:47]MH_I2C_Read... [06:03:47]*** Stop cut motor [06:03:47]*** Cut end [06:03:47]Read from MH i2c: 01 07 00 [06:03:47]MH_I2C_Read... [06:03:47]Read from MH i2c: 01 07 00 58 79 00 00 00 00 00 FF 0F E6 [06:03:47]process_action close_receipt done [06:03:47]requested_data is exist [06:03:47]produce_requested_data [06:03:47]requested_item fm.sn is exist - process it [06:03:47]wFMCommunicate request_size=4 [06:03:47]MH_SAM_APDU [06:03:47]CAPDU: 80 11 00 00 [06:03:47]Write to MH i2c: E2 08 00 59 79 80 11 00 00 00 00 00 00 4C [06:03:47]Write i2c OK [06:03:47]MH_I2C_Read... [06:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:47]Read from MH i2c: E2 [06:03:47]MH_I2C_Read... [06:03:47]Read from MH i2c: E2 17 00 [06:03:47]MH_I2C_Read... [06:03:47]Read from MH i2c: E2 17 00 59 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A7 [06:03: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:03:47]wFMCommunicate OK [06:03:47]requested_item fd.num is exist - process it [06:03:47]SAM_PROTO_GetFieldsCounters [06:03:47]wFMCommunicate request_size=4 [06:03:47]MH_SAM_APDU [06:03:47]CAPDU: 80 13 00 00 [06:03:47]Write to MH i2c: E2 08 00 5A 79 80 13 00 00 00 00 00 00 4F [06:03:47]Write i2c OK [06:03:47]MH_I2C_Read... [06:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:47]Read from MH i2c: E2 [06:03:47]MH_I2C_Read... [06:03:47]Read from MH i2c: E2 62 00 [06:03:47]MH_I2C_Read... [06:03:47]Read from MH i2c: E2 62 00 5A 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4A 21 02 00 0E 04 04 00 2D 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 E4 [06:03:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4A 21 02 00 0E 04 04 00 2D 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:03:47]wFMCommunicate OK [06:03:47]SAM_PROTO_GetFieldsCounters done [06:03:47]requested_item shift.num is exist - process it [06:03:47]requested_item shift.opened is exist - process it [06:03:47]req_shift_opened [06:03:47]FM_GetShiftState [06:03:47]SAM_PROTO_GetShiftState [06:03:47]wFMCommunicate request_size=4 [06:03:47]MH_SAM_APDU [06:03:47]CAPDU: 80 13 01 00 [06:03:47]Write to MH i2c: E2 08 00 5B 79 80 13 01 00 00 00 00 00 51 [06:03:47]Write i2c OK [06:03:47]MH_I2C_Read... [06:03:47]Read from MH i2c: E2 [06:03:47]MH_I2C_Read... [06:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:47]Read from MH i2c: E2 0E 00 [06:03:47]MH_I2C_Read... [06:03:47]Read from MH i2c: E2 0E 00 5B 79 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7A [06:03:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:03:47]wFMCommunicate OK [06:03:47]SAM_PROTO_GetShiftState done [06:03:47]FM_GetShiftState done [06:03:47]req_shift_opened done [06:03:47]requested_item shift.open_date is exist - process it [06:03:47]req_shift_open_date [06:03:47]req_shift_open_date done [06:03:47]produce_requested_data done [06:03:47]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139594,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:03:47]process_action_free close_receipt [06:03:47]json_value_free [06:03:47]json_value_free done [06:03:47]process_json_proto returns [06:03:47]Send response to host [06:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139594,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:03:47]free response buf [06:03:47]execute_script done [06:03:47]execute_script returns [06:03:47]free content buf [06:03:47]Sock 9.Close socket [06:03:47]Sock 9.Thread stoped [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:13]accept exits with 8 [06:04:13]New connection [06:04:13]New thread 3067284836 created [06:04:13]Thread 3067141476 joined [06:04:13]Waiting for new connection... [06:04:13] Sock 8.Parse request [06:04:13]Sock 8.Check first char [06:04:13]Sock 8.First char is OK [06:04:13]request: POST /json_proto HTTP/1.0 [06:04:13]Method: POST [06:04:13]URL: /json_proto [06:04:13]Method is POST - this is cgi request [06:04:13]url: /json_proto [06:04:13]query_string will be loaded in cgi processing [06:04:13]execute_cgi json_proto POST (null) [06:04:13]execute_cgi path=json_proto method=POST [06:04:13]POST find Content-Length [06:04:13]Host: 172.17.50.196:8080 [06:04:13]Content-Length: 688 [06:04:13]Content-Type: application/json [06:04:13] [06:04:13]POST finish read [06:04:13]Found Content-Length = 688 [06:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139593, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335475", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "139593" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:13]execute_script... [06:04:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139593, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335475", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "139593" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:13]POST & json_proto [06:04:13]process_json_proto [06:04:13]json parsed OK: [06:04:13]protocol is kg_v1.0 [06:04:13]action value=close_receipt [06:04:13]process_action close_receipt [06:04:13]cmd_close_receipt [06:04:13]MH_GetDate [06:04:13]Write to MH i2c: F0 00 00 5C 79 C4 [06:04:13]Write i2c OK [06:04:13]MH_I2C_Read... [06:04:13]Read from MH i2c: F0 [06:04:13]MH_I2C_Read... [06:04:13]Read from MH i2c: F0 09 00 [06:04:13]MH_I2C_Read... [06:04:13]Read from MH i2c: F0 09 00 5C 79 00 E6 1D 23 67 72 0D 1C 67 5C [06:04:13]GetLastDocTimeStamp 1730354632 [06:04:13]current date 1730354662 [06:04:13]FM_GetShiftState [06:04:13]SAM_PROTO_GetShiftState [06:04:13]wFMCommunicate request_size=4 [06:04:13]MH_SAM_APDU [06:04:13]CAPDU: 80 13 01 00 [06:04:13]Write to MH i2c: E2 08 00 5D 79 80 13 01 00 00 00 00 00 53 [06:04:13]Write i2c OK [06:04:13]MH_I2C_Read... [06:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:13]Read from MH i2c: E2 [06:04:13]MH_I2C_Read... [06:04:13]Read from MH i2c: E2 0E 00 [06:04:13]MH_I2C_Read... [06:04:13]Read from MH i2c: E2 0E 00 5D 79 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7C [06:04:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:04:13]wFMCommunicate OK [06:04:13]SAM_PROTO_GetShiftState done [06:04:13]FM_GetShiftState done [06:04:13]opened in 1730332621 [06:04:13]opened+sec_in_day 1730419021 [06:04:13]quantity*price = 11500 [06:04:13]sum+1 = 11501 [06:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 72 31.10.2024 06:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФД осн.: 139593 ФМ осн.: 0000000000874669 ФМ: 0000000000874669 ФД: 139595 ФПД: 81671778635837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060422&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139595&fm=81671778635837&tin=02508201610067®Number=0000000000091631&sum=11500 139593 [06:04:14]StoreToDocumentArchive [06:04:14]shift 557 fd 139595 [06:04:14]save to /storage/0557/doc_00139595 [06:04:14]save last doc name /storage/0557/doc_00139595 to /storage/kkm_last_doc_name [06:04:14]save OK [06:04:14]Clear old archive folders... [06:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=302 [06:04:14]tlvbuf is 01158B90 [06:04:14]SAM_PROTO_ClearQueue [06:04:14]wFMCommunicate request_size=4 [06:04:14]MH_SAM_APDU [06:04:14]CAPDU: 80 09 00 00 [06:04:14]Write to MH i2c: E2 08 00 6C 79 80 09 00 00 00 00 00 00 57 [06:04:14]Write i2c OK [06:04:14]MH_I2C_Read... [06:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:14]Read from MH i2c: E2 [06:04:14]MH_I2C_Read... [06:04:14]Read from MH i2c: E2 03 00 [06:04:14]MH_I2C_Read... [06:04:14]Read from MH i2c: E2 03 00 6C 79 00 90 00 59 [06:04:14]RAPDU: 90 00 [06:04:14]wFMCommunicate OK [06:04:14]SAM_PROTO_ClearQueue done [06:04:14]KKMCreateOFDPacket [06:04:14]OFDProtocolAddRootSTLVToBuf [06:04:14]FM_MakeSignedData [06:04:14]FM_MakeSignedData [06:04:14]SAM_PROTO_SignData [06:04:14]wFMCommunicate request_size=4 [06:04:14]MH_SAM_APDU [06:04:14]CAPDU: 80 0D 01 02 [06:04:14]Write to MH i2c: E2 08 00 6D 79 80 0D 01 02 00 00 00 00 5F [06:04:14]Write i2c OK [06:04:14]MH_I2C_Read... [06:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:14]Read from MH i2c: E2 [06:04:14]MH_I2C_Read... [06:04:14]Read from MH i2c: E2 03 00 [06:04:14]MH_I2C_Read... [06:04:14]Read from MH i2c: E2 03 00 6D 79 00 90 00 5A [06:04:14]RAPDU: 90 00 [06:04:14]wFMCommunicate OK [06:04:14]wFMCommunicate request_size=255 [06:04:14]MH_SAM_APDU [06:04:14]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 1D 23 67 0E 04 04 00 2D 02 00 00 B9 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 49 21 02 00 28 04 [06:04:14]Write to MH i2c: E2 02 01 6E 79 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 1D 23 67 0E 04 04 00 2D 02 00 00 B9 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 49 21 02 00 28 04 00 00 99 [06:04:14]Write i2c OK [06:04:14]MH_I2C_Read... [06:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:15]Read from MH i2c: E2 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 03 00 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 03 00 6E 79 00 90 00 5B [06:04:15]RAPDU: 90 00 [06:04:15]wFMCommunicate OK [06:04:15]wFMCommunicate request_size=61 [06:04:15]MH_SAM_APDU [06:04:15]CAPDU: 80 0D 02 02 38 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 4B 21 02 00 35 04 06 00 4A 47 B1 5A 90 3D [06:04:15]Write to MH i2c: E2 40 00 6F 79 80 0D 02 02 38 00 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 4B 21 02 00 35 04 06 00 4A 47 B1 5A 90 3D 00 00 85 [06:04:15]Write i2c OK [06:04:15]MH_I2C_Read... [06:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:15]Read from MH i2c: E2 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 03 00 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 03 00 6F 79 00 90 00 5C [06:04:15]RAPDU: 90 00 [06:04:15]wFMCommunicate OK [06:04:15]wFMCommunicate request_size=4 [06:04:15]MH_SAM_APDU [06:04:15]CAPDU: 80 0D 03 02 [06:04:15]Write to MH i2c: E2 08 00 70 79 80 0D 03 02 00 00 00 00 64 [06:04:15]Write i2c OK [06:04:15]MH_I2C_Read... [06:04:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:15]Read from MH i2c: E2 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 0B 00 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 0B 00 70 79 00 9A 47 E5 75 F3 51 90 46 90 00 BA [06:04:15]RAPDU: 9A 47 E5 75 F3 51 90 46 90 00 [06:04:15]wFMCommunicate OK [06:04:15]SAM_PROTO_SignData done [06:04:15]FM_MakeSignedData done [06:04:15]CreateOFDProtocolMessage [06:04:15]wFMCommunicate request_size=4 [06:04:15]MH_SAM_APDU [06:04:15]CAPDU: 80 11 00 00 [06:04:15]Write to MH i2c: E2 08 00 71 79 80 11 00 00 00 00 00 00 64 [06:04:15]Write i2c OK [06:04:15]MH_I2C_Read... [06:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:15]Read from MH i2c: E2 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 17 00 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: E2 17 00 71 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BF [06:04:15]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:15]wFMCommunicate OK [06:04:15]CreateOFDProtocolMessage done [06:04:15]OFDSenderStorePacket 139595 [06:04:15]StoreOFDPacket docnum=139595 [06:04: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 42 01 00 00 BE 01 3A 01 0A 47 5A 03 01 00 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 1D 23 67 0E 04 04 00 2D 02 00 00 B9 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 49 21 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 4B 21 02 00 35 04 06 00 4A 47 B1 5A 90 3D 9A 47 E5 75 F3 51 90 46 [06:04:15]CheckFolder [06:04:15]dirname=/storage/ofd_packets [06:04:15]CheckFolder done [06:04:15]ProducePacketName [06:04:15]name=ofd_packets/00139595 [06:04:15]NVStorageSaveData ofd_packets/00139595 [06:04:15]File name is /storage/ofd_packets/00139595 [06:04:15]Write 352 bytes [06:04:15]NVStorageSaveData done [06:04:15]OFDSenderStorePacket done [06:04:15]KKMCreateOFDPacket done [06:04:15]NVStorageSaveData kkm_last_timestamp [06:04:15]File name is /storage/kkm_last_timestamp [06:04:15]Write 4 bytes [06:04:15]NVStorageSaveData done [06:04:15]ExternCall_PrintAddStr [06:04:15]wPrintStart [06:04:15]Write to MH i2c: 01 00 00 72 79 EB [06:04:15]Write i2c OK [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: 01 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: 01 07 00 [06:04:15]MH_I2C_Read... [06:04:15]Read from MH i2c: 01 07 00 72 79 00 00 00 00 00 FF 0F 00 [06:04:15]RasterBufferAndPrint [06:04:15]line Счет N : (3)335475 [06:04:15]line ИНН: 02508201610067 [06:04:15]line Контрольно-Кассовый Чек [06:04:15]line ВОЗВРАТ ПРОДАЖИ [06:04:15]line Товар: 2000036240010 [06:04:15]line Кофе Латте (GABB TRADE) [06:04:15]line 1.000 * 115.00 [06:04:15]line = 115.00 [06:04:15]line НДС 12% НСП 1% [06:04:15]line > о реализуемом товаре [06:04:15]line ИТОГО: 115.00 [06:04:15]line НСП 1% : 1.02 [06:04:15]line НДС 12% : 12.21 [06:04:15]line Наличными: 115.00 [06:04:15]line Безнал.: 0.00 [06:04:15]line Место: АЗС № 101 "Партнер Нефть" [06:04:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:04:15]line СНО: Общий режим [06:04:15]line Чек 72 31.10.2024 06:04 [06:04:15]line Смена: 557 ФФД: 1.0 [06:04:15]line ЗНМ: 0300000081 [06:04:15]line РНМ: 0000000000091631 [06:04:15]line Версия ККМ: 001 [06:04:15]line ФД осн.: 139593 [06:04:15]line ФМ осн.: 0000000000874669 [06:04:15]line ФМ: 0000000000874669 [06:04:15]line ФД: 139595 [06:04:15]line ФПД: 81671778635837 [06:04:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060422&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139595&fm=81671778635837&tin=02508201610067®Number=0000000000091631&sum=11500 [06:04:15]line 139593 [06:04:15]OFD Sender: Processing packet 139595 [packets to send 34, broken 33] [06:04:15]ProducePacketName [06:04:15]name=ofd_packets/00139595 [06:04:15]OFD Sender: To server: pG, [06:04:15]CommunicateWithHost lk.salyk.kg:30040 [06:04:15]ConnectInit lk.salyk.kg [06:04:15]written 0, free lines is 4095 [06:04:15]Connected sock=10 [06:04:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 42 01 00 00 BE 01 3A 01 0A 47 5A 03 01 00 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 1D 23 67 0E 04 04 00 2D 02 00 00 B9 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 49 21 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 4B 21 02 00 35 04 06 00 4A 47 B1 5A 90 3D 9A 47 E5 75 F3 51 90 46 [06:04: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 A0 20 47 00 0A 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4B 21 02 00 F4 03 04 00 95 C9 22 67 B6 04 01 00 00 25 BC 56 6D 9A A7 49 D8 [06:04:15]CommunicateWithHost err = 0 [06:04:15]CheckOFDResponse [06:04:15]1017 (14) - 77093643461234 [06:04:15]1041 (16) - 0000000000874669 [06:04:15]1040 (4) - 139595 [06:04:15]1012 (4) - 31.10.2024 00:04 [06:04:15]1206 (1) - 0 [06:04:15]OFD Sender: Remove packet 139595 [06:04:15]ProducePacketName [06:04:15]name=ofd_packets/00139595 [06:04:15]NVStorageDeleteData [06:04:16]Write to MH i2c: 01 00 00 9C 79 15 [06:04:16]Write i2c OK [06:04:16]MH_I2C_Read... [06:04:16]Read from MH i2c: 01 [06:04:16]MH_I2C_Read... [06:04:16]Read from MH i2c: 01 07 00 [06:04:16]MH_I2C_Read... [06:04:16]Read from MH i2c: 01 07 00 9C 79 00 00 00 00 00 1A 0D 43 [06:04:16]RasterBufferAndPrint [06:04:16]line [06:04:16]line [06:04:16]line [06:04:16]line [06:04:16]line [06:04:16]written 0, free lines is 3362 [06:04:16]MH_Cut [06:04:16]Write to MH i2c: D1 01 00 A3 79 01 EE [06:04:16]Write i2c OK [06:04:16]MH_I2C_Read... [06:04:16]Read from MH i2c: D1 [06:04:16]MH_I2C_Read... [06:04:16]Read from MH i2c: D1 01 00 [06:04:16]MH_I2C_Read... [06:04:16]Read from MH i2c: D1 01 00 A3 79 00 ED [06:04:16]Write to MH i2c: 01 00 00 A4 79 1D [06:04:16]Write i2c OK [06:04:16]MH_I2C_Read... [06:04:16]OFD Sender: No OFD packet to send [06:04:16]*** Cut start [06:04:16]*** Partial cut [06:04:16]*** CUTSNS_PIN = 1 [06:04:16]*** CUTSNS_PIN = 0 [06:04:17]*** Brake cut motor [06:04:17]Read from MH i2c: 01 [06:04:17]MH_I2C_Read... [06:04:17]*** Stop cut motor [06:04:17]*** Cut end [06:04:17]Read from MH i2c: 01 07 00 [06:04:17]MH_I2C_Read... [06:04:17]Read from MH i2c: 01 07 00 A4 79 00 00 00 00 00 FF 0F 32 [06:04:17]process_action close_receipt done [06:04:17]requested_data is exist [06:04:17]produce_requested_data [06:04:17]requested_item fm.sn is exist - process it [06:04:17]wFMCommunicate request_size=4 [06:04:17]MH_SAM_APDU [06:04:17]CAPDU: 80 11 00 00 [06:04:17]Write to MH i2c: E2 08 00 A5 79 80 11 00 00 00 00 00 00 98 [06:04:17]Write i2c OK [06:04:17]MH_I2C_Read... [06:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:17]Read from MH i2c: E2 [06:04:17]MH_I2C_Read... [06:04:17]Read from MH i2c: E2 17 00 [06:04:17]MH_I2C_Read... [06:04:17]Read from MH i2c: E2 17 00 A5 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F3 [06:04: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:04:17]wFMCommunicate OK [06:04:17]requested_item fd.num is exist - process it [06:04:17]SAM_PROTO_GetFieldsCounters [06:04:17]wFMCommunicate request_size=4 [06:04:17]MH_SAM_APDU [06:04:17]CAPDU: 80 13 00 00 [06:04:17]Write to MH i2c: E2 08 00 A6 79 80 13 00 00 00 00 00 00 9B [06:04:17]Write i2c OK [06:04:17]MH_I2C_Read... [06:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:17]Read from MH i2c: E2 [06:04:17]MH_I2C_Read... [06:04:17]Read from MH i2c: E2 62 00 [06:04:17]MH_I2C_Read... [06:04:17]Read from MH i2c: E2 62 00 A6 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4B 21 02 00 0E 04 04 00 2D 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 34 [06:04:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4B 21 02 00 0E 04 04 00 2D 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:04:17]wFMCommunicate OK [06:04:17]SAM_PROTO_GetFieldsCounters done [06:04:17]requested_item shift.num is exist - process it [06:04:17]requested_item shift.opened is exist - process it [06:04:17]req_shift_opened [06:04:17]FM_GetShiftState [06:04:17]SAM_PROTO_GetShiftState [06:04:17]wFMCommunicate request_size=4 [06:04:17]MH_SAM_APDU [06:04:17]CAPDU: 80 13 01 00 [06:04:17]Write to MH i2c: E2 08 00 A7 79 80 13 01 00 00 00 00 00 9D [06:04:17]Write i2c OK [06:04:17]MH_I2C_Read... [06:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:17]Read from MH i2c: E2 [06:04:17]MH_I2C_Read... [06:04:17]Read from MH i2c: E2 0E 00 [06:04:17]MH_I2C_Read... [06:04:17]Read from MH i2c: E2 0E 00 A7 79 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C6 [06:04:17]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:04:17]wFMCommunicate OK [06:04:17]SAM_PROTO_GetShiftState done [06:04:17]FM_GetShiftState done [06:04:17]req_shift_opened done [06:04:17]requested_item shift.open_date is exist - process it [06:04:17]req_shift_open_date [06:04:17]req_shift_open_date done [06:04:17]produce_requested_data done [06:04:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139595,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:04:17]process_action_free close_receipt [06:04:17]json_value_free [06:04:17]json_value_free done [06:04:17]process_json_proto returns [06:04:17]Send response to host [06:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139595,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:04:17]free response buf [06:04:17]execute_script done [06:04:17]execute_script returns [06:04:17]free content buf [06:04:17]Sock 8.Close socket [06:04:17]Sock 8.Thread stoped [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:11]accept exits with 9 [06:05:11]New connection [06:05:11]New thread 3067141476 created [06:05:11]Thread 3067284836 joined [06:05:11]Waiting for new connection... [06:05:11] Sock 9.Parse request [06:05:11]Sock 9.Check first char [06:05:11]Sock 9.First char is OK [06:05:11]request: POST /json_proto HTTP/1.0 [06:05:11]Method: POST [06:05:11]URL: /json_proto [06:05:11]Method is POST - this is cgi request [06:05:11]url: /json_proto [06:05:11]query_string will be loaded in cgi processing [06:05:11]execute_cgi json_proto POST (null) [06:05:11]execute_cgi path=json_proto method=POST [06:05:11]POST find Content-Length [06:05:11]Host: 172.17.50.196:8080 [06:05:11]Content-Length: 1311 [06:05:11]Content-Type: application/json [06:05:11] [06:05:11]POST finish read [06:05:11]Found Content-Length = 1311 [06:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335476", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 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" : 329.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:11]execute_script... [06:05: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)335476", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 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" : 329.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:11]POST & json_proto [06:05:11]process_json_proto [06:05:11]json parsed OK: [06:05:11]protocol is kg_v1.0 [06:05:11]action value=close_receipt [06:05:11]process_action close_receipt [06:05:11]cmd_close_receipt [06:05:11]MH_GetDate [06:05:11]Write to MH i2c: F0 00 00 A8 79 10 [06:05:11]Write i2c OK [06:05:11]MH_I2C_Read... [06:05:11]Read from MH i2c: F0 [06:05:11]MH_I2C_Read... [06:05:11]Read from MH i2c: F0 09 00 [06:05:11]MH_I2C_Read... [06:05:11]Read from MH i2c: F0 09 00 A8 79 00 20 1E 23 67 72 0D 1C 67 E3 [06:05:11]GetLastDocTimeStamp 1730354662 [06:05:11]current date 1730354720 [06:05:11]FM_GetShiftState [06:05:11]SAM_PROTO_GetShiftState [06:05:11]wFMCommunicate request_size=4 [06:05:11]MH_SAM_APDU [06:05:11]CAPDU: 80 13 01 00 [06:05:11]Write to MH i2c: E2 08 00 A9 79 80 13 01 00 00 00 00 00 9F [06:05:11]Write i2c OK [06:05:11]MH_I2C_Read... [06:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:11]Read from MH i2c: E2 [06:05:11]MH_I2C_Read... [06:05:11]Read from MH i2c: E2 0E 00 [06:05:11]MH_I2C_Read... [06:05:11]Read from MH i2c: E2 0E 00 A9 79 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C8 [06:05:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:05:11]wFMCommunicate OK [06:05:11]SAM_PROTO_GetShiftState done [06:05:11]FM_GetShiftState done [06:05:11]opened in 1730332621 [06:05:11]opened+sec_in_day 1730419021 [06:05:11]quantity*price = 11900 [06:05:11]sum+1 = 11901 [06:05:11]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 0.00 Безнал.: 329.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 73 31.10.2024 06:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139596 ФПД: 119444932311012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060521&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139596&fm=119444932311012&tin=02508201610067®Number=0000000000091631&sum=32900 0 [06:05:12]StoreToDocumentArchive [06:05:12]shift 557 fd 139596 [06:05:12]save to /storage/0557/doc_00139596 [06:05:12]save last doc name /storage/0557/doc_00139596 to /storage/kkm_last_doc_name [06:05:12]save OK [06:05:12]Clear old archive folders... [06:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=518 [06:05:12]tlvbuf is 0110DFC0 [06:05:12]SAM_PROTO_ClearQueue [06:05:12]wFMCommunicate request_size=4 [06:05:12]MH_SAM_APDU [06:05:12]CAPDU: 80 09 00 00 [06:05:13]Write to MH i2c: E2 08 00 B6 79 80 09 00 00 00 00 00 00 A1 [06:05:13]Write i2c OK [06:05:13]MH_I2C_Read... [06:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:05:13]Read from MH i2c: E2 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 B6 79 00 90 00 A3 [06:05:13]RAPDU: 90 00 [06:05:13]wFMCommunicate OK [06:05:13]SAM_PROTO_ClearQueue done [06:05:13]KKMCreateOFDPacket [06:05:13]OFDProtocolAddRootSTLVToBuf [06:05:13]FM_MakeSignedData [06:05:13]FM_MakeSignedData [06:05:13]SAM_PROTO_SignData [06:05:13]wFMCommunicate request_size=4 [06:05:13]MH_SAM_APDU [06:05:13]CAPDU: 80 0D 01 02 [06:05:13]Write to MH i2c: E2 08 00 B7 79 80 0D 01 02 00 00 00 00 A9 [06:05:13]Write i2c OK [06:05:13]MH_I2C_Read... [06:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:05:13]Read from MH i2c: E2 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 B7 79 00 90 00 A4 [06:05:13]RAPDU: 90 00 [06:05:13]wFMCommunicate OK [06:05:13]wFMCommunicate request_size=255 [06:05:13]MH_SAM_APDU [06:05:13]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [06:05:13]Write to MH i2c: E2 02 01 B8 79 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 AB [06:05:13]Write i2c OK [06:05:13]MH_I2C_Read... [06:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:13]Read from MH i2c: E2 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 B8 79 00 90 00 A5 [06:05:13]RAPDU: 90 00 [06:05:13]wFMCommunicate OK [06:05:13]wFMCommunicate request_size=255 [06:05:13]MH_SAM_APDU [06:05:13]CAPDU: 80 0D 02 02 FA 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 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [06:05:13]Write to MH i2c: E2 02 01 B9 79 80 0D 02 02 FA 00 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 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 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 F9 [06:05:13]Write i2c OK [06:05:13]MH_I2C_Read... [06:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:13]Read from MH i2c: E2 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 [06:05:13]MH_I2C_Read... [06:05:13]Read from MH i2c: E2 03 00 B9 79 00 90 00 A6 [06:05:13]RAPDU: 90 00 [06:05:13]wFMCommunicate OK [06:05:13]wFMCommunicate request_size=27 [06:05:13]MH_SAM_APDU [06:05:13]CAPDU: 80 0D 02 02 16 34 36 36 39 10 04 04 00 4C 21 02 00 35 04 06 00 6C A2 70 C2 B7 E4 [06:05:13]Write to MH i2c: E2 1E 00 BA 79 80 0D 02 02 16 00 34 36 36 39 10 04 04 00 4C 21 02 00 35 04 06 00 6C A2 70 C2 B7 E4 00 00 53 [06:05:13]Write i2c OK [06:05:13]MH_I2C_Read... [06:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:14]Read from MH i2c: E2 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: E2 03 00 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: E2 03 00 BA 79 00 90 00 A7 [06:05:14]RAPDU: 90 00 [06:05:14]wFMCommunicate OK [06:05:14]wFMCommunicate request_size=4 [06:05:14]MH_SAM_APDU [06:05:14]CAPDU: 80 0D 03 02 [06:05:14]Write to MH i2c: E2 08 00 BB 79 80 0D 03 02 00 00 00 00 AF [06:05:14]Write i2c OK [06:05:14]MH_I2C_Read... [06:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:05:14]Read from MH i2c: E2 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: E2 0B 00 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: E2 0B 00 BB 79 00 33 24 DE 2B D0 7C 98 73 90 00 67 [06:05:14]RAPDU: 33 24 DE 2B D0 7C 98 73 90 00 [06:05:14]wFMCommunicate OK [06:05:14]SAM_PROTO_SignData done [06:05:14]FM_MakeSignedData done [06:05:14]CreateOFDProtocolMessage [06:05:14]wFMCommunicate request_size=4 [06:05:14]MH_SAM_APDU [06:05:14]CAPDU: 80 11 00 00 [06:05:14]Write to MH i2c: E2 08 00 BC 79 80 11 00 00 00 00 00 00 AF [06:05:14]Write i2c OK [06:05:14]MH_I2C_Read... [06:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:14]Read from MH i2c: E2 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: E2 17 00 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: E2 17 00 BC 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0A [06:05:14]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:14]wFMCommunicate OK [06:05:14]CreateOFDProtocolMessage done [06:05:14]OFDSenderStorePacket 139596 [06:05:14]StoreOFDPacket docnum=139596 [06:05: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 1A 02 00 00 21 5C 12 02 AF A3 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 21 02 00 35 04 06 00 6C A2 70 C2 B7 E4 33 24 DE 2B D0 7C 98 73 [06:05:14]CheckFolder [06:05:14]dirname=/storage/ofd_packets [06:05:14]CheckFolder done [06:05:14]ProducePacketName [06:05:14]name=ofd_packets/00139596 [06:05:14]NVStorageSaveData ofd_packets/00139596 [06:05:14]File name is /storage/ofd_packets/00139596 [06:05:14]Write 568 bytes [06:05:14]NVStorageSaveData done [06:05:14]OFDSenderStorePacket done [06:05:14]KKMCreateOFDPacket done [06:05:14]NVStorageSaveData kkm_last_timestamp [06:05:14]File name is /storage/kkm_last_timestamp [06:05:14]Write 4 bytes [06:05:14]NVStorageSaveData done [06:05:14]ExternCall_PrintAddStr [06:05:14]wPrintStart [06:05:14]Write to MH i2c: 01 00 00 BD 79 36 [06:05:14]Write i2c OK [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: 01 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: 01 07 00 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: 01 07 00 BD 79 00 00 00 00 00 FF 0F 4B [06:05:14]RasterBufferAndPrint [06:05:14]line Счет N : (3)335476 [06:05:14]line ИНН: 02508201610067 [06:05:14]line Контрольно-Кассовый Чек [06:05:14]line ПРОДАЖА [06:05:14]line Товар: 4870002329951 [06:05:14]line Напиток Lipton IceTea 1л зел чай Regular [06:05:14]line 1.000 * 119.00 [06:05:14]line = 119.00 [06:05:14]line НДС 12% НСП 1% [06:05:14]line > о реализуемом товаре [06:05:14]line Товар: 4700000481453 [06:05:14]line Напиток энерг Nitro Max 0,45 ж/б [06:05:14]line 1.000 * 95.00 [06:05:14]line = 95.00 [06:05:14]line НДС 12% НСП 1% [06:05:14]line > о реализуемом товаре [06:05:14]line Товар: 2000036240010 [06:05:14]line Кофе Латте (GABB TRADE) [06:05:14]line 1.000 * 115.00 [06:05:14]line = 115.00 [06:05:14]line НДС 12% НСП 1% [06:05:14]line > о реализуемом товаре [06:05:14]line ИТОГО: 329.00 [06:05:14]line НСП 1% : 2.91 [06:05:14]line НДС 12% : 34.94 [06:05:14]line Наличными: 0.00 [06:05:14]line Безнал.: 329.00 [06:05:14]line Место: АЗС № 101 "Партнер Нефть" [06:05:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:05:14]line СНО: Общий режим [06:05:14]line Чек 73 31.10.2024 06:05 [06:05:14]line Смена: 557 ФФД: 1.0 [06:05:14]line ЗНМ: 0300000081 [06:05:14]line РНМ: 0000000000091631 [06:05:14]line Версия ККМ: 001 [06:05:14]line Платежная система: Mbank [06:05:14]line ФМ: 0000000000874669 [06:05:14]line ФД: 139596 [06:05:14]line ФПД: 119444932311012 [06:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060521&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139596&fm=119444932311012&tin=02508201610067®Number=0000000000091631&sum=32900 [06:05:14]line 0 [06:05:14]written 0, free lines is 4095 [06:05:14]OFD Sender: Processing packet 139596 [packets to send 34, broken 33] [06:05:14]ProducePacketName [06:05:14]name=ofd_packets/00139596 [06:05:14]OFD Sender: To server: pG, [06:05:14]CommunicateWithHost lk.salyk.kg:30040 [06:05:14]ConnectInit lk.salyk.kg [06:05:14]Connected sock=10 [06:05: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 1A 02 00 00 21 5C 12 02 AF A3 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 21 1E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 21 02 00 35 04 06 00 6C A2 70 C2 B7 E4 33 24 DE 2B D0 7C 98 73 [06:05: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 98 6C 47 00 A4 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 21 02 00 F4 03 04 00 CF C9 22 67 B6 04 01 00 00 58 90 F9 D2 A3 7E 90 5F [06:05:14]CommunicateWithHost err = 0 [06:05:14]CheckOFDResponse [06:05:14]1017 (14) - 77093643461234 [06:05:14]1041 (16) - 0000000000874669 [06:05:14]1040 (4) - 139596 [06:05:14]1012 (4) - 31.10.2024 00:05 [06:05:14]1206 (1) - 0 [06:05:14]OFD Sender: Remove packet 139596 [06:05:14]ProducePacketName [06:05:14]name=ofd_packets/00139596 [06:05:14]NVStorageDeleteData [06:05:14]Write to MH i2c: 01 00 00 F4 79 6D [06:05:14]Write i2c OK [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: 01 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: 01 07 00 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: 01 07 00 F4 79 00 00 00 00 00 56 0C D6 [06:05:14]RasterBufferAndPrint [06:05:14]line [06:05:14]line [06:05:14]line [06:05:14]line [06:05:14]line [06:05:14]written 0, free lines is 3167 [06:05:14]MH_Cut [06:05:14]Write to MH i2c: D1 01 00 FB 79 01 46 [06:05:14]Write i2c OK [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: D1 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: D1 01 00 [06:05:14]MH_I2C_Read... [06:05:14]Read from MH i2c: D1 01 00 FB 79 00 45 [06:05:14]Write to MH i2c: 01 00 00 FC 79 75 [06:05:14]Write i2c OK [06:05:14]MH_I2C_Read... [06:05:15]OFD Sender: No OFD packet to send [06:05:15]*** Cut start [06:05:15]*** Partial cut [06:05:15]*** CUTSNS_PIN = 1 [06:05:15]*** CUTSNS_PIN = 0 [06:05:15]*** Brake cut motor [06:05:16]Read from MH i2c: 01 [06:05:16]MH_I2C_Read... [06:05:16]*** Stop cut motor [06:05:16]*** Cut end [06:05:16]Read from MH i2c: 01 07 00 [06:05:16]MH_I2C_Read... [06:05:16]Read from MH i2c: 01 07 00 FC 79 00 00 00 00 00 FF 0F 8A [06:05:16]process_action close_receipt done [06:05:16]requested_data is exist [06:05:16]produce_requested_data [06:05:16]requested_item fm.sn is exist - process it [06:05:16]wFMCommunicate request_size=4 [06:05:16]MH_SAM_APDU [06:05:16]CAPDU: 80 11 00 00 [06:05:16]Write to MH i2c: E2 08 00 FD 79 80 11 00 00 00 00 00 00 F0 [06:05:16]Write i2c OK [06:05:16]MH_I2C_Read... [06:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:16]Read from MH i2c: E2 [06:05:16]MH_I2C_Read... [06:05:16]Read from MH i2c: E2 17 00 [06:05:16]MH_I2C_Read... [06:05:16]Read from MH i2c: E2 17 00 FD 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4B [06:05: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:05:16]wFMCommunicate OK [06:05:16]requested_item fd.num is exist - process it [06:05:16]SAM_PROTO_GetFieldsCounters [06:05:16]wFMCommunicate request_size=4 [06:05:16]MH_SAM_APDU [06:05:16]CAPDU: 80 13 00 00 [06:05:16]Write to MH i2c: E2 08 00 FE 79 80 13 00 00 00 00 00 00 F3 [06:05:16]Write i2c OK [06:05:16]MH_I2C_Read... [06:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:16]Read from MH i2c: E2 [06:05:16]MH_I2C_Read... [06:05:16]Read from MH i2c: E2 62 00 [06:05:16]MH_I2C_Read... [06:05:16]Read from MH i2c: E2 62 00 FE 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4C 21 02 00 0E 04 04 00 2D 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 90 [06:05: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 4C 21 02 00 0E 04 04 00 2D 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:05:16]wFMCommunicate OK [06:05:16]SAM_PROTO_GetFieldsCounters done [06:05:16]requested_item shift.num is exist - process it [06:05:16]requested_item shift.opened is exist - process it [06:05:16]req_shift_opened [06:05:16]FM_GetShiftState [06:05:16]SAM_PROTO_GetShiftState [06:05:16]wFMCommunicate request_size=4 [06:05:16]MH_SAM_APDU [06:05:16]CAPDU: 80 13 01 00 [06:05:16]Write to MH i2c: E2 08 00 FF 79 80 13 01 00 00 00 00 00 F5 [06:05:16]Write i2c OK [06:05:16]MH_I2C_Read... [06:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:16]Read from MH i2c: E2 [06:05:16]MH_I2C_Read... [06:05:16]Read from MH i2c: E2 0E 00 [06:05:16]MH_I2C_Read... [06:05:16]Read from MH i2c: E2 0E 00 FF 79 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1E [06:05:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:05:16]wFMCommunicate OK [06:05:16]SAM_PROTO_GetShiftState done [06:05:16]FM_GetShiftState done [06:05:16]req_shift_opened done [06:05:16]requested_item shift.open_date is exist - process it [06:05:16]req_shift_open_date [06:05:16]req_shift_open_date done [06:05:16]produce_requested_data done [06:05:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139596,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:05:16]process_action_free close_receipt [06:05:16]json_value_free [06:05:16]json_value_free done [06:05:16]process_json_proto returns [06:05:16]Send response to host [06:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139596,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:05:16]free response buf [06:05:16]execute_script done [06:05:16]execute_script returns [06:05:16]free content buf [06:05:16]Sock 9.Close socket [06:05:16]Sock 9.Thread stoped [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [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]accept exits with 8 [06:08:55]New connection [06:08:55]New thread 3067284836 created [06:08:55]Thread 3067141476 joined [06:08:55]Waiting for new connection... [06:08:55] Sock 8.Parse request [06:08:55]Sock 8.Check first char [06:08:55]Sock 8.First char is OK [06:08:55]request: POST /json_proto HTTP/1.0 [06:08:55]Method: POST [06:08:55]URL: /json_proto [06:08:55]Method is POST - this is cgi request [06:08:55]url: /json_proto [06:08:55]query_string will be loaded in cgi processing [06:08:55]execute_cgi json_proto POST (null) [06:08:55]execute_cgi path=json_proto method=POST [06:08:55]POST find Content-Length [06:08:55]Host: 172.17.50.196:8080 [06:08:55]Content-Length: 709 [06:08:55]Content-Type: application/json [06:08:55] [06:08:55]POST finish read [06:08:55]Found Content-Length = 709 [06:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335477", "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:08:55]execute_script... [06:08:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335477", "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:08:55]POST & json_proto [06:08:55]process_json_proto [06:08:55]json parsed OK: [06:08:55]protocol is kg_v1.0 [06:08:55]action value=close_receipt [06:08:55]process_action close_receipt [06:08:55]cmd_close_receipt [06:08:55]MH_GetDate [06:08:55]Write to MH i2c: F0 00 00 00 7A 69 [06:08:55]Write i2c OK [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: F0 [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: F0 09 00 [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: F0 09 00 00 7A 00 00 1F 23 67 72 0D 1C 67 1D [06:08:55]GetLastDocTimeStamp 1730354721 [06:08:55]current date 1730354944 [06:08:55]FM_GetShiftState [06:08:55]SAM_PROTO_GetShiftState [06:08:55]wFMCommunicate request_size=4 [06:08:55]MH_SAM_APDU [06:08:55]CAPDU: 80 13 01 00 [06:08:55]Write to MH i2c: E2 08 00 01 7A 80 13 01 00 00 00 00 00 F8 [06:08:55]Write i2c OK [06:08:55]MH_I2C_Read... [06:08:55]OFD Sender: No OFD packet to send [06:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:55]Read from MH i2c: E2 [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: E2 0E 00 [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: E2 0E 00 01 7A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 21 [06:08:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:08:55]wFMCommunicate OK [06:08:55]SAM_PROTO_GetShiftState done [06:08:55]FM_GetShiftState done [06:08:55]opened in 1730332621 [06:08:55]opened+sec_in_day 1730419021 [06:08:55]quantity*price = 9500 [06:08:55]sum+1 = 9501 [06:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 74 31.10.2024 06:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139597 ФПД: 77715571978969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060904&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139597&fm=77715571978969&tin=02508201610067®Number=0000000000091631&sum=9500 0 [06:08:56]StoreToDocumentArchive [06:08:56]shift 557 fd 139597 [06:08:56]save to /storage/0557/doc_00139597 [06:08:56]save last doc name /storage/0557/doc_00139597 to /storage/kkm_last_doc_name [06:08:56]save OK [06:08:56]Clear old archive folders... [06:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=304 [06:08:56]tlvbuf is 012588D0 [06:08:56]SAM_PROTO_ClearQueue [06:08:56]wFMCommunicate request_size=4 [06:08:56]MH_SAM_APDU [06:08:56]CAPDU: 80 09 00 00 [06:08:56]Write to MH i2c: E2 08 00 0E 7A 80 09 00 00 00 00 00 00 FA [06:08:56]Write i2c OK [06:08:56]MH_I2C_Read... [06:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:56]Read from MH i2c: E2 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 0E 7A 00 90 00 FC [06:08:56]RAPDU: 90 00 [06:08:56]wFMCommunicate OK [06:08:56]SAM_PROTO_ClearQueue done [06:08:56]KKMCreateOFDPacket [06:08:56]OFDProtocolAddRootSTLVToBuf [06:08:56]FM_MakeSignedData [06:08:56]FM_MakeSignedData [06:08:56]SAM_PROTO_SignData [06:08:56]wFMCommunicate request_size=4 [06:08:56]MH_SAM_APDU [06:08:56]CAPDU: 80 0D 01 02 [06:08:56]Write to MH i2c: E2 08 00 0F 7A 80 0D 01 02 00 00 00 00 02 [06:08:56]Write i2c OK [06:08:56]MH_I2C_Read... [06:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:56]Read from MH i2c: E2 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 0F 7A 00 90 00 FD [06:08:56]RAPDU: 90 00 [06:08:56]wFMCommunicate OK [06:08:56]wFMCommunicate request_size=255 [06:08:56]MH_SAM_APDU [06:08:56]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 4A 00 00 00 F4 03 04 00 00 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 [06:08:56]Write to MH i2c: E2 02 01 10 7A 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 4A 00 00 00 F4 03 04 00 00 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 00 00 6A [06:08:56]Write i2c OK [06:08:56]MH_I2C_Read... [06:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:56]Read from MH i2c: E2 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 10 7A 00 90 00 FE [06:08:56]RAPDU: 90 00 [06:08:56]wFMCommunicate OK [06:08:56]wFMCommunicate request_size=63 [06:08:56]MH_SAM_APDU [06:08:56]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 4D 21 02 00 35 04 06 00 46 AE 91 0F B2 D9 [06:08:56]Write to MH i2c: E2 42 00 11 7A 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 4D 21 02 00 35 04 06 00 46 AE 91 0F B2 D9 00 00 E1 [06:08:56]Write i2c OK [06:08:56]MH_I2C_Read... [06:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:56]Read from MH i2c: E2 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 03 00 11 7A 00 90 00 FF [06:08:56]RAPDU: 90 00 [06:08:56]wFMCommunicate OK [06:08:56]wFMCommunicate request_size=4 [06:08:56]MH_SAM_APDU [06:08:56]CAPDU: 80 0D 03 02 [06:08:56]Write to MH i2c: E2 08 00 12 7A 80 0D 03 02 00 00 00 00 07 [06:08:56]Write i2c OK [06:08:56]MH_I2C_Read... [06:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:56]Read from MH i2c: E2 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 0B 00 [06:08:56]MH_I2C_Read... [06:08:56]Read from MH i2c: E2 0B 00 12 7A 00 31 E4 91 C0 5C 1F 5F 59 90 00 A1 [06:08:56]RAPDU: 31 E4 91 C0 5C 1F 5F 59 90 00 [06:08:56]wFMCommunicate OK [06:08:56]SAM_PROTO_SignData done [06:08:56]FM_MakeSignedData done [06:08:56]CreateOFDProtocolMessage [06:08:56]wFMCommunicate request_size=4 [06:08:56]MH_SAM_APDU [06:08:56]CAPDU: 80 11 00 00 [06:08:56]Write to MH i2c: E2 08 00 13 7A 80 11 00 00 00 00 00 00 07 [06:08:56]Write i2c OK [06:08:56]MH_I2C_Read... [06:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:57]Read from MH i2c: E2 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: E2 17 00 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: E2 17 00 13 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 62 [06: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 [06:08:57]wFMCommunicate OK [06:08:57]CreateOFDProtocolMessage done [06:08:57]OFDSenderStorePacket 139597 [06:08:57]StoreOFDPacket docnum=139597 [06:08: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 44 01 00 00 93 2C 3C 01 B8 2D 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 4A 00 00 00 F4 03 04 00 00 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4D 21 02 00 35 04 06 00 46 AE 91 0F B2 D9 31 E4 91 C0 5C 1F 5F 59 [06:08:57]CheckFolder [06:08:57]dirname=/storage/ofd_packets [06:08:57]CheckFolder done [06:08:57]ProducePacketName [06:08:57]name=ofd_packets/00139597 [06:08:57]NVStorageSaveData ofd_packets/00139597 [06:08:57]File name is /storage/ofd_packets/00139597 [06:08:57]Write 354 bytes [06:08:57]NVStorageSaveData done [06:08:57]OFDSenderStorePacket done [06:08:57]KKMCreateOFDPacket done [06:08:57]NVStorageSaveData kkm_last_timestamp [06:08:57]File name is /storage/kkm_last_timestamp [06:08:57]Write 4 bytes [06:08:57]NVStorageSaveData done [06:08:57]ExternCall_PrintAddStr [06:08:57]wPrintStart [06:08:57]Write to MH i2c: 01 00 00 14 7A 8E [06:08:57]Write i2c OK [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: 01 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: 01 07 00 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: 01 07 00 14 7A 00 00 00 00 00 FF 0F A3 [06:08:57]RasterBufferAndPrint [06:08:57]line Счет N : (3)335477 [06:08:57]line ИНН: 02508201610067 [06:08:57]line Контрольно-Кассовый Чек [06:08:57]line ПРОДАЖА [06:08:57]line Товар: 4700000480302 [06:08:57]line Напиток энерг Nitro манго-клуб 0.45 ж/б [06:08:57]line 1.000 * 95.00 [06:08:57]line = 95.00 [06:08:57]line НДС 12% НСП 1% [06:08:57]line > о реализуемом товаре [06:08:57]line ИТОГО: 95.00 [06:08:57]line НСП 1% : 0.84 [06:08:57]line НДС 12% : 10.09 [06:08:57]line Наличными: 95.00 [06:08:57]line Безнал.: 0.00 [06:08:57]line Место: АЗС № 101 "Партнер Нефть" [06:08:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:08:57]line СНО: Общий режим [06:08:57]line Чек 74 31.10.2024 06:09 [06:08:57]line Смена: 557 ФФД: 1.0 [06:08:57]line ЗНМ: 0300000081 [06:08:57]line РНМ: 0000000000091631 [06:08:57]line Версия ККМ: 001 [06:08:57]line ФМ: 0000000000874669 [06:08:57]line ФД: 139597 [06:08:57]line ФПД: 77715571978969 [06:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T060904&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139597&fm=77715571978969&tin=02508201610067®Number=0000000000091631&sum=9500 [06:08:57]line 0 [06:08:57]written 0, free lines is 4095 [06:08:57]OFD Sender: Processing packet 139597 [packets to send 34, broken 33] [06:08:57]ProducePacketName [06:08:57]name=ofd_packets/00139597 [06:08:57]OFD Sender: To server: pG, [06:08:57]CommunicateWithHost lk.salyk.kg:30040 [06:08:57]ConnectInit lk.salyk.kg [06:08:57]Connected sock=10 [06:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 93 2C 3C 01 B8 2D 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 4A 00 00 00 F4 03 04 00 00 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4D 21 02 00 35 04 06 00 46 AE 91 0F B2 D9 31 E4 91 C0 5C 1F 5F 59 [06:08: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 79 7E 47 00 F3 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 4D 21 02 00 F4 03 04 00 AE CA 22 67 B6 04 01 00 00 97 16 9B 75 55 29 4E FA [06:08:57]CommunicateWithHost err = 0 [06:08:57]CheckOFDResponse [06:08:57]1017 (14) - 77093643461234 [06:08:57]1041 (16) - 0000000000874669 [06:08:57]1040 (4) - 139597 [06:08:57]1012 (4) - 31.10.2024 00:09 [06:08:57]1206 (1) - 0 [06:08:57]OFD Sender: Remove packet 139597 [06:08:57]ProducePacketName [06:08:57]name=ofd_packets/00139597 [06:08:57]NVStorageDeleteData [06:08:57]Write to MH i2c: 01 00 00 3D 7A B7 [06:08:57]Write i2c OK [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: 01 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: 01 07 00 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: 01 07 00 3D 7A 00 00 00 00 00 F5 0C BF [06:08:57]RasterBufferAndPrint [06:08:57]line [06:08:57]line [06:08:57]line [06:08:57]line [06:08:57]line [06:08:57]written 0, free lines is 3323 [06:08:57]MH_Cut [06:08:57]Write to MH i2c: D1 01 00 44 7A 01 90 [06:08:57]Write i2c OK [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: D1 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: D1 01 00 [06:08:57]MH_I2C_Read... [06:08:57]Read from MH i2c: D1 01 00 44 7A 00 8F [06:08:57]Write to MH i2c: 01 00 00 45 7A BF [06:08:57]Write i2c OK [06:08:57]MH_I2C_Read... [06:08:58]OFD Sender: No OFD packet to send [06:08:58]*** Cut start [06:08:58]*** Partial cut [06:08:58]*** CUTSNS_PIN = 1 [06:08:58]*** CUTSNS_PIN = 0 [06:08:58]*** Brake cut motor [06:08:59]Read from MH i2c: 01 [06:08:59]MH_I2C_Read... [06:08:59]*** Stop cut motor [06:08:59]*** Cut end [06:08:59]Read from MH i2c: 01 07 00 [06:08:59]MH_I2C_Read... [06:08:59]Read from MH i2c: 01 07 00 45 7A 00 00 00 00 00 FF 0F D4 [06:08:59]process_action close_receipt done [06:08:59]requested_data is exist [06:08:59]produce_requested_data [06:08:59]requested_item fm.sn is exist - process it [06:08:59]wFMCommunicate request_size=4 [06:08:59]MH_SAM_APDU [06:08:59]CAPDU: 80 11 00 00 [06:08:59]Write to MH i2c: E2 08 00 46 7A 80 11 00 00 00 00 00 00 3A [06:08:59]Write i2c OK [06:08:59]MH_I2C_Read... [06:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:59]Read from MH i2c: E2 [06:08:59]MH_I2C_Read... [06:08:59]Read from MH i2c: E2 17 00 [06:08:59]MH_I2C_Read... [06:08:59]Read from MH i2c: E2 17 00 46 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 95 [06:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:08:59]wFMCommunicate OK [06:08:59]requested_item fd.num is exist - process it [06:08:59]SAM_PROTO_GetFieldsCounters [06:08:59]wFMCommunicate request_size=4 [06:08:59]MH_SAM_APDU [06:08:59]CAPDU: 80 13 00 00 [06:08:59]Write to MH i2c: E2 08 00 47 7A 80 13 00 00 00 00 00 00 3D [06:08:59]Write i2c OK [06:08:59]MH_I2C_Read... [06:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:59]Read from MH i2c: E2 [06:08:59]MH_I2C_Read... [06:08:59]Read from MH i2c: E2 62 00 [06:08:59]MH_I2C_Read... [06:08:59]Read from MH i2c: E2 62 00 47 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4D 21 02 00 0E 04 04 00 2D 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 DE [06:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4D 21 02 00 0E 04 04 00 2D 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:08:59]wFMCommunicate OK [06:08:59]SAM_PROTO_GetFieldsCounters done [06:08:59]requested_item shift.num is exist - process it [06:08:59]requested_item shift.opened is exist - process it [06:08:59]req_shift_opened [06:08:59]FM_GetShiftState [06:08:59]SAM_PROTO_GetShiftState [06:08:59]wFMCommunicate request_size=4 [06:08:59]MH_SAM_APDU [06:08:59]CAPDU: 80 13 01 00 [06:08:59]Write to MH i2c: E2 08 00 48 7A 80 13 01 00 00 00 00 00 3F [06:08:59]Write i2c OK [06:08:59]MH_I2C_Read... [06:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:59]Read from MH i2c: E2 [06:08:59]MH_I2C_Read... [06:08:59]Read from MH i2c: E2 0E 00 [06:08:59]MH_I2C_Read... [06:08:59]Read from MH i2c: E2 0E 00 48 7A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 68 [06:08:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:08:59]wFMCommunicate OK [06:08:59]SAM_PROTO_GetShiftState done [06:08:59]FM_GetShiftState done [06:08:59]req_shift_opened done [06:08:59]requested_item shift.open_date is exist - process it [06:08:59]req_shift_open_date [06:08:59]req_shift_open_date done [06:08:59]produce_requested_data done [06:08:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139597,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:08:59]process_action_free close_receipt [06:08:59]json_value_free [06:08:59]json_value_free done [06:08:59]process_json_proto returns [06:08:59]Send response to host [06:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139597,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:08:59]free response buf [06:08:59]execute_script done [06:08:59]execute_script returns [06:08:59]free content buf [06:08:59]Sock 8.Close socket [06:08:59]Sock 8.Thread stoped [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:56]accept exits with 9 [06:10:56]New connection [06:10:56]New thread 3067141476 created [06:10:56]Thread 3067284836 joined [06:10:56]Waiting for new connection... [06:10:56] Sock 9.Parse request [06:10:56]Sock 9.Check first char [06:10:56]Sock 9.First char is OK [06:10:56]request: POST /json_proto HTTP/1.0 [06:10:56]Method: POST [06:10:56]URL: /json_proto [06:10:56]Method is POST - this is cgi request [06:10:56]url: /json_proto [06:10:56]query_string will be loaded in cgi processing [06:10:56]execute_cgi json_proto POST (null) [06:10:56]execute_cgi path=json_proto method=POST [06:10:56]POST find Content-Length [06:10:56]Host: 172.17.50.196:8080 [06:10:56]Content-Length: 624 [06:10:56]Content-Type: application/json [06:10:56] [06:10:56]POST finish read [06:10:56]Found Content-Length = 624 [06:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335478", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:56]execute_script... [06:10: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)335478", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:56]POST & json_proto [06:10:56]process_json_proto [06:10:56]json parsed OK: [06:10:56]protocol is kg_v1.0 [06:10:56]action value=close_receipt [06:10:56]process_action close_receipt [06:10:56]cmd_close_receipt [06:10:56]MH_GetDate [06:10:56]Write to MH i2c: F0 00 00 49 7A B2 [06:10:56]Write i2c OK [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: F0 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: F0 09 00 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: F0 09 00 49 7A 00 79 1F 23 67 72 0D 1C 67 DF [06:10:56]GetLastDocTimeStamp 1730354944 [06:10:56]current date 1730355065 [06:10:56]FM_GetShiftState [06:10:56]SAM_PROTO_GetShiftState [06:10:56]wFMCommunicate request_size=4 [06:10:56]MH_SAM_APDU [06:10:56]CAPDU: 80 13 01 00 [06:10:56]Write to MH i2c: E2 08 00 4A 7A 80 13 01 00 00 00 00 00 41 [06:10:56]Write i2c OK [06:10:56]MH_I2C_Read... [06:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:56]Read from MH i2c: E2 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 0E 00 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 0E 00 4A 7A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6A [06:10:56]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:10:56]wFMCommunicate OK [06:10:56]SAM_PROTO_GetShiftState done [06:10:56]FM_GetShiftState done [06:10:56]opened in 1730332621 [06:10:56]opened+sec_in_day 1730419021 [06:10:56]quantity*price = 14700 [06:10:56]sum+1 = 14701 [06:10:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 75 31.10.2024 06:11 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139598 ФПД: 109863924114614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T061105&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139598&fm=109863924114614&tin=02508201610067®Number=0000000000091631&sum=14700 0 [06:10:57]StoreToDocumentArchive [06:10:57]shift 557 fd 139598 [06:10:57]save to /storage/0557/doc_00139598 [06:10:57]save last doc name /storage/0557/doc_00139598 to /storage/kkm_last_doc_name [06:10:57]save OK [06:10:57]Clear old archive folders... [06:10:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:10:57]tlvbuf is 01133440 [06:10:57]SAM_PROTO_ClearQueue [06:10:57]wFMCommunicate request_size=4 [06:10:57]MH_SAM_APDU [06:10:57]CAPDU: 80 09 00 00 [06:10:57]Write to MH i2c: E2 08 00 57 7A 80 09 00 00 00 00 00 00 43 [06:10:57]Write i2c OK [06:10:57]MH_I2C_Read... [06:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:57]Read from MH i2c: E2 [06:10:57]MH_I2C_Read... [06:10:57]Read from MH i2c: E2 03 00 [06:10:57]MH_I2C_Read... [06:10:57]Read from MH i2c: E2 03 00 57 7A 00 90 00 45 [06:10:57]RAPDU: 90 00 [06:10:57]wFMCommunicate OK [06:10:57]SAM_PROTO_ClearQueue done [06:10:57]KKMCreateOFDPacket [06:10:57]OFDProtocolAddRootSTLVToBuf [06:10:57]FM_MakeSignedData [06:10:57]FM_MakeSignedData [06:10:57]SAM_PROTO_SignData [06:10:57]wFMCommunicate request_size=4 [06:10:57]MH_SAM_APDU [06:10:57]CAPDU: 80 0D 01 02 [06:10:57]Write to MH i2c: E2 08 00 58 7A 80 0D 01 02 00 00 00 00 4B [06:10:57]Write i2c OK [06:10:57]MH_I2C_Read... [06:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:57]Read from MH i2c: E2 [06:10:57]MH_I2C_Read... [06:10:57]Read from MH i2c: E2 03 00 [06:10:57]MH_I2C_Read... [06:10:57]Read from MH i2c: E2 03 00 58 7A 00 90 00 46 [06:10:57]RAPDU: 90 00 [06:10:57]wFMCommunicate OK [06:10:57]wFMCommunicate request_size=255 [06:10:57]MH_SAM_APDU [06:10:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 79 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [06:10:57]Write to MH i2c: E2 02 01 59 7A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 79 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 A8 [06:10:57]Write i2c OK [06:10:57]MH_I2C_Read... [06:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:57]Read from MH i2c: E2 [06:10:57]MH_I2C_Read... [06:10:57]Read from MH i2c: E2 03 00 [06:10:57]MH_I2C_Read... [06:10:57]Read from MH i2c: E2 03 00 59 7A 00 90 00 47 [06:10:57]RAPDU: 90 00 [06:10:57]wFMCommunicate OK [06:10:57]wFMCommunicate request_size=35 [06:10:57]MH_SAM_APDU [06:10:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 21 02 00 35 04 06 00 63 EB B0 2B A4 B6 [06:10:57]Write to MH i2c: E2 26 00 5A 7A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 21 02 00 35 04 06 00 63 EB B0 2B A4 B6 00 00 3D [06:10:57]Write i2c OK [06:10:57]MH_I2C_Read... [06:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:58]Read from MH i2c: E2 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: E2 03 00 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: E2 03 00 5A 7A 00 90 00 48 [06:10:58]RAPDU: 90 00 [06:10:58]wFMCommunicate OK [06:10:58]wFMCommunicate request_size=4 [06:10:58]MH_SAM_APDU [06:10:58]CAPDU: 80 0D 03 02 [06:10:58]Write to MH i2c: E2 08 00 5B 7A 80 0D 03 02 00 00 00 00 50 [06:10:58]Write i2c OK [06:10:58]MH_I2C_Read... [06:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:58]Read from MH i2c: E2 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: E2 0B 00 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: E2 0B 00 5B 7A 00 26 D4 38 55 33 01 75 C2 90 00 43 [06:10:58]RAPDU: 26 D4 38 55 33 01 75 C2 90 00 [06:10:58]wFMCommunicate OK [06:10:58]SAM_PROTO_SignData done [06:10:58]FM_MakeSignedData done [06:10:58]CreateOFDProtocolMessage [06:10:58]wFMCommunicate request_size=4 [06:10:58]MH_SAM_APDU [06:10:58]CAPDU: 80 11 00 00 [06:10:58]Write to MH i2c: E2 08 00 5C 7A 80 11 00 00 00 00 00 00 50 [06:10:58]Write i2c OK [06:10:58]MH_I2C_Read... [06:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:58]Read from MH i2c: E2 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: E2 17 00 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: E2 17 00 5C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AB [06:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:10:58]wFMCommunicate OK [06:10:58]CreateOFDProtocolMessage done [06:10:58]OFDSenderStorePacket 139598 [06:10:58]StoreOFDPacket docnum=139598 [06:10: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 28 01 00 00 D4 80 20 01 E2 C3 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 79 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 21 02 00 35 04 06 00 63 EB B0 2B A4 B6 26 D4 38 55 33 01 75 C2 [06:10:58]CheckFolder [06:10:58]dirname=/storage/ofd_packets [06:10:58]CheckFolder done [06:10:58]ProducePacketName [06:10:58]name=ofd_packets/00139598 [06:10:58]NVStorageSaveData ofd_packets/00139598 [06:10:58]File name is /storage/ofd_packets/00139598 [06:10:58]Write 326 bytes [06:10:58]NVStorageSaveData done [06:10:58]OFDSenderStorePacket done [06:10:58]KKMCreateOFDPacket done [06:10:58]NVStorageSaveData kkm_last_timestamp [06:10:58]File name is /storage/kkm_last_timestamp [06:10:58]Write 4 bytes [06:10:58]NVStorageSaveData done [06:10:58]ExternCall_PrintAddStr [06:10:58]wPrintStart [06:10:58]Write to MH i2c: 01 00 00 5D 7A D7 [06:10:58]Write i2c OK [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: 01 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: 01 07 00 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: 01 07 00 5D 7A 00 00 00 00 00 FF 0F EC [06:10:58]RasterBufferAndPrint [06:10:58]line Счет N : (3)335478 [06:10:58]line ИНН: 02508201610067 [06:10:58]line Контрольно-Кассовый Чек [06:10:58]line ПРОДАЖА [06:10:58]line Товар: 48744683 [06:10:58]line Сигареты Winston XStyle Caster+ [06:10:58]line 1.000 * 147.00 [06:10:58]line = 147.00 [06:10:58]line НДС 12% НСП 1% [06:10:58]line > о реализуемом товаре [06:10:58]line ИТОГО: 147.00 [06:10:58]line НСП 1% : 1.30 [06:10:58]line НДС 12% : 15.61 [06:10:58]line Наличными: 147.00 [06:10:58]line Безнал.: 0.00 [06:10:58]line Место: АЗС № 101 "Партнер Нефть" [06:10:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:10:58]line СНО: Общий режим [06:10:58]line Чек 75 31.10.2024 06:11 [06:10:58]line Смена: 557 ФФД: 1.0 [06:10:58]line ЗНМ: 0300000081 [06:10:58]line РНМ: 0000000000091631 [06:10:58]line Версия ККМ: 001 [06:10:58]line ФМ: 0000000000874669 [06:10:58]line ФД: 139598 [06:10:58]line ФПД: 109863924114614 [06:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T061105&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139598&fm=109863924114614&tin=02508201610067®Number=0000000000091631&sum=14700 [06:10:58]line 0 [06:10:58]OFD Sender: Processing packet 139598 [packets to send 34, broken 33] [06:10:58]ProducePacketName [06:10:58]name=ofd_packets/00139598 [06:10:58]OFD Sender: To server: pG, [06:10:58]CommunicateWithHost lk.salyk.kg:30040 [06:10:58]ConnectInit lk.salyk.kg [06:10:58]written 0, free lines is 4095 [06:10:58]Connected sock=10 [06:10: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 28 01 00 00 D4 80 20 01 E2 C3 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 79 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 21 02 00 35 04 06 00 63 EB B0 2B A4 B6 26 D4 38 55 33 01 75 C2 [06:10: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 3F A4 47 00 8E 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 4E 21 02 00 F4 03 04 00 27 CB 22 67 B6 04 01 00 00 CA 50 E9 B5 86 C3 DB 71 [06:10:58]CommunicateWithHost err = 0 [06:10:58]CheckOFDResponse [06:10:58]1017 (14) - 77093643461234 [06:10:58]1041 (16) - 0000000000874669 [06:10:58]1040 (4) - 139598 [06:10:58]1012 (4) - 31.10.2024 00:11 [06:10:58]1206 (1) - 0 [06:10:58]OFD Sender: Remove packet 139598 [06:10:58]ProducePacketName [06:10:58]name=ofd_packets/00139598 [06:10:58]NVStorageDeleteData [06:10:58]Write to MH i2c: 01 00 00 86 7A 00 [06:10:58]Write i2c OK [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: 01 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: 01 07 00 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: 01 07 00 86 7A 00 00 00 00 00 F4 0C 07 [06:10:58]RasterBufferAndPrint [06:10:58]line [06:10:58]line [06:10:58]line [06:10:58]line [06:10:58]line [06:10:58]written 0, free lines is 3324 [06:10:58]MH_Cut [06:10:58]Write to MH i2c: D1 01 00 8D 7A 01 D9 [06:10:58]Write i2c OK [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: D1 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: D1 01 00 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: D1 01 00 8D 7A 00 D8 [06:10:58]Write to MH i2c: 01 00 00 8E 7A 08 [06:10:58]Write i2c OK [06:10:58]MH_I2C_Read... [06:10:59]OFD Sender: No OFD packet to send [06:10:59]*** Cut start [06:10:59]*** Partial cut [06:10:59]*** CUTSNS_PIN = 1 [06:10:59]*** CUTSNS_PIN = 0 [06:10:59]*** Brake cut motor [06:11:00]Read from MH i2c: 01 [06:11:00]MH_I2C_Read... [06:11:00]*** Stop cut motor [06:11:00]*** Cut end [06:11:00]Read from MH i2c: 01 07 00 [06:11:00]MH_I2C_Read... [06:11:00]Read from MH i2c: 01 07 00 8E 7A 00 00 00 00 00 FF 0F 1D [06:11:00]process_action close_receipt done [06:11:00]requested_data is exist [06:11:00]produce_requested_data [06:11:00]requested_item fm.sn is exist - process it [06:11:00]wFMCommunicate request_size=4 [06:11:00]MH_SAM_APDU [06:11:00]CAPDU: 80 11 00 00 [06:11:00]Write to MH i2c: E2 08 00 8F 7A 80 11 00 00 00 00 00 00 83 [06:11:00]Write i2c OK [06:11:00]MH_I2C_Read... [06:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:00]Read from MH i2c: E2 [06:11:00]MH_I2C_Read... [06:11:00]Read from MH i2c: E2 17 00 [06:11:00]MH_I2C_Read... [06:11:00]Read from MH i2c: E2 17 00 8F 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [06:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:11:00]wFMCommunicate OK [06:11:00]requested_item fd.num is exist - process it [06:11:00]SAM_PROTO_GetFieldsCounters [06:11:00]wFMCommunicate request_size=4 [06:11:00]MH_SAM_APDU [06:11:00]CAPDU: 80 13 00 00 [06:11:00]Write to MH i2c: E2 08 00 90 7A 80 13 00 00 00 00 00 00 86 [06:11:00]Write i2c OK [06:11:00]MH_I2C_Read... [06:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:00]Read from MH i2c: E2 [06:11:00]MH_I2C_Read... [06:11:00]Read from MH i2c: E2 62 00 [06:11:00]MH_I2C_Read... [06:11:00]Read from MH i2c: E2 62 00 90 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4E 21 02 00 0E 04 04 00 2D 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 2B [06:11: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 4E 21 02 00 0E 04 04 00 2D 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:11:00]wFMCommunicate OK [06:11:00]SAM_PROTO_GetFieldsCounters done [06:11:00]requested_item shift.num is exist - process it [06:11:00]requested_item shift.opened is exist - process it [06:11:00]req_shift_opened [06:11:00]FM_GetShiftState [06:11:00]SAM_PROTO_GetShiftState [06:11:00]wFMCommunicate request_size=4 [06:11:00]MH_SAM_APDU [06:11:00]CAPDU: 80 13 01 00 [06:11:00]Write to MH i2c: E2 08 00 91 7A 80 13 01 00 00 00 00 00 88 [06:11:00]Write i2c OK [06:11:00]MH_I2C_Read... [06:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:00]Read from MH i2c: E2 [06:11:00]MH_I2C_Read... [06:11:00]Read from MH i2c: E2 0E 00 [06:11:00]MH_I2C_Read... [06:11:00]Read from MH i2c: E2 0E 00 91 7A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B1 [06:11:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:11:00]wFMCommunicate OK [06:11:00]SAM_PROTO_GetShiftState done [06:11:00]FM_GetShiftState done [06:11:00]req_shift_opened done [06:11:00]requested_item shift.open_date is exist - process it [06:11:00]req_shift_open_date [06:11:00]req_shift_open_date done [06:11:00]produce_requested_data done [06:11:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139598,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:11:00]process_action_free close_receipt [06:11:00]json_value_free [06:11:00]json_value_free done [06:11:00]process_json_proto returns [06:11:00]Send response to host [06:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139598,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:11:00]free response buf [06:11:00]execute_script done [06:11:00]execute_script returns [06:11:00]free content buf [06:11:00]Sock 9.Close socket [06:11:00]Sock 9.Thread stoped [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:11]accept exits with 8 [06:11:11]New connection [06:11:11]New thread 3067284836 created [06:11:11]Thread 3067141476 joined [06:11:11]Waiting for new connection... [06:11:11] Sock 8.Parse request [06:11:11]Sock 8.Check first char [06:11:11]Sock 8.First char is OK [06:11:11]request: POST /json_proto HTTP/1.0 [06:11:11]Method: POST [06:11:11]URL: /json_proto [06:11:11]Method is POST - this is cgi request [06:11:11]url: /json_proto [06:11:11]query_string will be loaded in cgi processing [06:11:11]execute_cgi json_proto POST (null) [06:11:11]execute_cgi path=json_proto method=POST [06:11:11]POST find Content-Length [06:11:11]Host: 172.17.50.196:8080 [06:11:11]Content-Length: 628 [06:11:11]Content-Type: application/json [06:11:11] [06:11:11]POST finish read [06:11:11]Found Content-Length = 628 [06:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335479", "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" ] } } [06:11:11]execute_script... [06: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)335479", "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" ] } } [06:11:11]POST & json_proto [06:11:11]process_json_proto [06:11:11]json parsed OK: [06:11:11]protocol is kg_v1.0 [06:11:11]action value=close_receipt [06:11:11]process_action close_receipt [06:11:11]cmd_close_receipt [06:11:11]MH_GetDate [06:11:11]Write to MH i2c: F0 00 00 92 7A FB [06:11:11]Write i2c OK [06:11:11]MH_I2C_Read... [06:11:11]Read from MH i2c: F0 [06:11:11]MH_I2C_Read... [06:11:11]Read from MH i2c: F0 09 00 [06:11:11]MH_I2C_Read... [06:11:11]Read from MH i2c: F0 09 00 92 7A 00 88 1F 23 67 72 0D 1C 67 37 [06:11:11]GetLastDocTimeStamp 1730355065 [06:11:11]current date 1730355080 [06:11:11]FM_GetShiftState [06:11:11]SAM_PROTO_GetShiftState [06:11:11]wFMCommunicate request_size=4 [06:11:11]MH_SAM_APDU [06:11:11]CAPDU: 80 13 01 00 [06:11:11]Write to MH i2c: E2 08 00 93 7A 80 13 01 00 00 00 00 00 8A [06:11:11]Write i2c OK [06:11:11]MH_I2C_Read... [06:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:11]Read from MH i2c: E2 [06:11:11]MH_I2C_Read... [06:11:11]Read from MH i2c: E2 0E 00 [06:11:11]MH_I2C_Read... [06:11:11]Read from MH i2c: E2 0E 00 93 7A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B3 [06:11:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:11:11]wFMCommunicate OK [06:11:11]SAM_PROTO_GetShiftState done [06:11:11]FM_GetShiftState done [06:11:11]opened in 1730332621 [06:11:11]opened+sec_in_day 1730419021 [06:11:11]quantity*price = 13000 [06:11:11]sum+1 = 13001 [06:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 76 31.10.2024 06:11 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139599 ФПД: 184605964508032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T061120&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139599&fm=184605964508032&tin=02508201610067®Number=0000000000091631&sum=13000 0 [06:11:12]StoreToDocumentArchive [06:11:12]shift 557 fd 139599 [06:11:12]save to /storage/0557/doc_00139599 [06:11:12]save last doc name /storage/0557/doc_00139599 to /storage/kkm_last_doc_name [06:11:12]save OK [06:11:12]Clear old archive folders... [06:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:11:12]tlvbuf is 0131EA00 [06:11:12]SAM_PROTO_ClearQueue [06:11:12]wFMCommunicate request_size=4 [06:11:12]MH_SAM_APDU [06:11:12]CAPDU: 80 09 00 00 [06:11:12]Write to MH i2c: E2 08 00 A0 7A 80 09 00 00 00 00 00 00 8C [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:12]Read from MH i2c: E2 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 A0 7A 00 90 00 8E [06:11:12]RAPDU: 90 00 [06:11:12]wFMCommunicate OK [06:11:12]SAM_PROTO_ClearQueue done [06:11:12]KKMCreateOFDPacket [06:11:12]OFDProtocolAddRootSTLVToBuf [06:11:12]FM_MakeSignedData [06:11:12]FM_MakeSignedData [06:11:12]SAM_PROTO_SignData [06:11:12]wFMCommunicate request_size=4 [06:11:12]MH_SAM_APDU [06:11:12]CAPDU: 80 0D 01 02 [06:11:12]Write to MH i2c: E2 08 00 A1 7A 80 0D 01 02 00 00 00 00 94 [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:12]Read from MH i2c: E2 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 A1 7A 00 90 00 8F [06:11:12]RAPDU: 90 00 [06:11:12]wFMCommunicate OK [06:11:12]wFMCommunicate request_size=255 [06:11:12]MH_SAM_APDU [06:11:12]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 4C 00 00 00 F4 03 04 00 88 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [06:11:12]Write to MH i2c: E2 02 01 A2 7A 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 4C 00 00 00 F4 03 04 00 88 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 56 [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:12]Read from MH i2c: E2 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 A2 7A 00 90 00 90 [06:11:12]RAPDU: 90 00 [06:11:12]wFMCommunicate OK [06:11:12]wFMCommunicate request_size=35 [06:11:12]MH_SAM_APDU [06:11:12]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 21 02 00 35 04 06 00 A7 E5 EC F0 1B 80 [06:11:12]Write to MH i2c: E2 26 00 A3 7A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 21 02 00 35 04 06 00 A7 E5 EC F0 1B 80 00 00 07 [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:12]Read from MH i2c: E2 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 03 00 A3 7A 00 90 00 91 [06:11:12]RAPDU: 90 00 [06:11:12]wFMCommunicate OK [06:11:12]wFMCommunicate request_size=4 [06:11:12]MH_SAM_APDU [06:11:12]CAPDU: 80 0D 03 02 [06:11:12]Write to MH i2c: E2 08 00 A4 7A 80 0D 03 02 00 00 00 00 99 [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:12]Read from MH i2c: E2 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 0B 00 [06:11:12]MH_I2C_Read... [06:11:12]Read from MH i2c: E2 0B 00 A4 7A 00 09 C3 01 A9 9B 50 9C EC 90 00 83 [06:11:12]RAPDU: 09 C3 01 A9 9B 50 9C EC 90 00 [06:11:12]wFMCommunicate OK [06:11:12]SAM_PROTO_SignData done [06:11:12]FM_MakeSignedData done [06:11:12]CreateOFDProtocolMessage [06:11:12]wFMCommunicate request_size=4 [06:11:12]MH_SAM_APDU [06:11:12]CAPDU: 80 11 00 00 [06:11:12]Write to MH i2c: E2 08 00 A5 7A 80 11 00 00 00 00 00 00 99 [06:11:12]Write i2c OK [06:11:12]MH_I2C_Read... [06:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:13]Read from MH i2c: E2 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: E2 17 00 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: E2 17 00 A5 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F4 [06:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:11:13]wFMCommunicate OK [06:11:13]CreateOFDProtocolMessage done [06:11:13]OFDSenderStorePacket 139599 [06:11:13]StoreOFDPacket docnum=139599 [06:11: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 28 01 00 00 75 8E 20 01 E9 E3 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 4C 00 00 00 F4 03 04 00 88 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 21 02 00 35 04 06 00 A7 E5 EC F0 1B 80 09 C3 01 A9 9B 50 9C EC [06:11:13]CheckFolder [06:11:13]dirname=/storage/ofd_packets [06:11:13]CheckFolder done [06:11:13]ProducePacketName [06:11:13]name=ofd_packets/00139599 [06:11:13]NVStorageSaveData ofd_packets/00139599 [06:11:13]File name is /storage/ofd_packets/00139599 [06:11:13]Write 326 bytes [06:11:13]NVStorageSaveData done [06:11:13]OFDSenderStorePacket done [06:11:13]KKMCreateOFDPacket done [06:11:13]NVStorageSaveData kkm_last_timestamp [06:11:13]File name is /storage/kkm_last_timestamp [06:11:13]Write 4 bytes [06:11:13]NVStorageSaveData done [06:11:13]ExternCall_PrintAddStr [06:11:13]wPrintStart [06:11:13]Write to MH i2c: 01 00 00 A6 7A 20 [06:11:13]Write i2c OK [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: 01 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: 01 07 00 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: 01 07 00 A6 7A 00 00 00 00 00 FF 0F 35 [06:11:13]RasterBufferAndPrint [06:11:13]line Счет N : (3)335479 [06:11:13]line ИНН: 02508201610067 [06:11:13]line Контрольно-Кассовый Чек [06:11:13]line ПРОДАЖА [06:11:13]line Товар: 2000036230011 [06:11:13]line Кофе Латте XL(GABB TRADE) [06:11:13]line 1.000 * 130.00 [06:11:13]line = 130.00 [06:11:13]line НДС 12% НСП 1% [06:11:13]line > о реализуемом товаре [06:11:13]line ИТОГО: 130.00 [06:11:13]line НСП 1% : 1.15 [06:11:13]line НДС 12% : 13.80 [06:11:13]line Наличными: 130.00 [06:11:13]line Безнал.: 0.00 [06:11:13]line Место: АЗС № 101 "Партнер Нефть" [06:11:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:11:13]line СНО: Общий режим [06:11:13]line Чек 76 31.10.2024 06:11 [06:11:13]line Смена: 557 ФФД: 1.0 [06:11:13]line ЗНМ: 0300000081 [06:11:13]line РНМ: 0000000000091631 [06:11:13]line Версия ККМ: 001 [06:11:13]line ФМ: 0000000000874669 [06:11:13]line ФД: 139599 [06:11:13]line ФПД: 184605964508032 [06:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T061120&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139599&fm=184605964508032&tin=02508201610067®Number=0000000000091631&sum=13000 [06:11:13]line 0 [06:11:13]OFD Sender: Processing packet 139599 [packets to send 34, broken 33] [06:11:13]ProducePacketName [06:11:13]name=ofd_packets/00139599 [06:11:13]OFD Sender: To server: pG, [06:11:13]CommunicateWithHost lk.salyk.kg:30040 [06:11:13]ConnectInit lk.salyk.kg [06:11:13]written 0, free lines is 4095 [06:11:13]Connected sock=11 [06: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 28 01 00 00 75 8E 20 01 E9 E3 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 4C 00 00 00 F4 03 04 00 88 1F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 21 02 00 35 04 06 00 A7 E5 EC F0 1B 80 09 C3 01 A9 9B 50 9C EC [06: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 AB 9F 47 00 76 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 21 02 00 F4 03 04 00 36 CB 22 67 B6 04 01 00 00 A4 2A 90 2C 9D 36 7A 02 [06:11:13]CommunicateWithHost err = 0 [06:11:13]CheckOFDResponse [06:11:13]1017 (14) - 77093643461234 [06:11:13]1041 (16) - 0000000000874669 [06:11:13]1040 (4) - 139599 [06:11:13]1012 (4) - 31.10.2024 00:11 [06:11:13]1206 (1) - 0 [06:11:13]OFD Sender: Remove packet 139599 [06:11:13]ProducePacketName [06:11:13]name=ofd_packets/00139599 [06:11:13]NVStorageDeleteData [06:11:13]Write to MH i2c: 01 00 00 CE 7A 48 [06:11:13]Write i2c OK [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: 01 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: 01 07 00 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: 01 07 00 CE 7A 00 00 00 00 00 1D 0D 79 [06:11:13]RasterBufferAndPrint [06:11:13]line [06:11:13]line [06:11:13]line [06:11:13]line [06:11:13]line [06:11:13]written 0, free lines is 3362 [06:11:13]MH_Cut [06:11:13]Write to MH i2c: D1 01 00 D5 7A 01 21 [06:11:13]Write i2c OK [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: D1 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: D1 01 00 [06:11:13]MH_I2C_Read... [06:11:13]Read from MH i2c: D1 01 00 D5 7A 00 20 [06:11:13]Write to MH i2c: 01 00 00 D6 7A 50 [06:11:13]Write i2c OK [06:11:13]MH_I2C_Read... [06:11:14]OFD Sender: No OFD packet to send [06:11:14]*** Cut start [06:11:14]*** Partial cut [06:11:14]*** CUTSNS_PIN = 1 [06:11:14]*** CUTSNS_PIN = 0 [06:11:14]*** Brake cut motor [06:11:15]Read from MH i2c: 01 [06:11:15]MH_I2C_Read... [06:11:15]*** Stop cut motor [06:11:15]*** Cut end [06:11:15]Read from MH i2c: 01 07 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: 01 07 00 D6 7A 00 00 00 00 00 FF 0F 65 [06:11:15]process_action close_receipt done [06:11:15]requested_data is exist [06:11:15]produce_requested_data [06:11:15]requested_item fm.sn is exist - process it [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 11 00 00 [06:11:15]Write to MH i2c: E2 08 00 D7 7A 80 11 00 00 00 00 00 00 CB [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 17 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 17 00 D7 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 26 [06:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:11:15]wFMCommunicate OK [06:11:15]requested_item fd.num is exist - process it [06:11:15]SAM_PROTO_GetFieldsCounters [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 13 00 00 [06:11:15]Write to MH i2c: E2 08 00 D8 7A 80 13 00 00 00 00 00 00 CE [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 62 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 62 00 D8 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4F 21 02 00 0E 04 04 00 2D 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 77 [06: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 4F 21 02 00 0E 04 04 00 2D 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:11:15]wFMCommunicate OK [06:11:15]SAM_PROTO_GetFieldsCounters done [06:11:15]requested_item shift.num is exist - process it [06:11:15]requested_item shift.opened is exist - process it [06:11:15]req_shift_opened [06:11:15]FM_GetShiftState [06:11:15]SAM_PROTO_GetShiftState [06:11:15]wFMCommunicate request_size=4 [06:11:15]MH_SAM_APDU [06:11:15]CAPDU: 80 13 01 00 [06:11:15]Write to MH i2c: E2 08 00 D9 7A 80 13 01 00 00 00 00 00 D0 [06:11:15]Write i2c OK [06:11:15]MH_I2C_Read... [06:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:15]Read from MH i2c: E2 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 0E 00 [06:11:15]MH_I2C_Read... [06:11:15]Read from MH i2c: E2 0E 00 D9 7A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F9 [06:11:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:11:15]wFMCommunicate OK [06:11:15]SAM_PROTO_GetShiftState done [06:11:15]FM_GetShiftState done [06:11:15]req_shift_opened done [06:11:15]requested_item shift.open_date is exist - process it [06:11:15]req_shift_open_date [06:11:15]req_shift_open_date done [06:11:15]produce_requested_data done [06:11:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139599,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:11:15]process_action_free close_receipt [06:11:15]json_value_free [06:11:15]json_value_free done [06:11:15]process_json_proto returns [06:11:15]Send response to host [06:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139599,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:11:15]free response buf [06:11:15]execute_script done [06:11:15]execute_script returns [06:11:15]free content buf [06:11:15]Sock 8.Close socket [06:11:15]Sock 8.Thread stoped [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27: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:46]accept exits with 9 [06:28:46]New connection [06:28:46]New thread 3067141476 created [06:28:46]Thread 3067284836 joined [06:28:46]Waiting for new connection... [06:28:46] Sock 9.Parse request [06:28:46]Sock 9.Check first char [06:28:46]Sock 9.First char is OK [06:28:46]request: POST /json_proto HTTP/1.0 [06:28:46]Method: POST [06:28:46]URL: /json_proto [06:28:46]Method is POST - this is cgi request [06:28:46]url: /json_proto [06:28:46]query_string will be loaded in cgi processing [06:28:46]execute_cgi json_proto POST (null) [06:28:46]execute_cgi path=json_proto method=POST [06:28:46]POST find Content-Length [06:28:46]Host: 172.17.50.196:8080 [06:28:46]Content-Length: 668 [06:28:46]Content-Type: application/json [06:28:46] [06:28:46]POST finish read [06:28:46]Found Content-Length = 668 [06:28:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335480", "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" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:46]execute_script... [06:28: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)335480", "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" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:46]POST & json_proto [06:28:46]process_json_proto [06:28:46]json parsed OK: [06:28:46]protocol is kg_v1.0 [06:28:46]action value=close_receipt [06:28:46]process_action close_receipt [06:28:46]cmd_close_receipt [06:28:46]MH_GetDate [06:28:46]Write to MH i2c: F0 00 00 DA 7A 43 [06:28:46]Write i2c OK [06:28:46]MH_I2C_Read... [06:28:46]Read from MH i2c: F0 [06:28:46]MH_I2C_Read... [06:28:46]Read from MH i2c: F0 09 00 [06:28:46]MH_I2C_Read... [06:28:46]Read from MH i2c: F0 09 00 DA 7A 00 A7 23 23 67 72 0D 1C 67 A2 [06:28:46]GetLastDocTimeStamp 1730355080 [06:28:46]current date 1730356135 [06:28:46]FM_GetShiftState [06:28:46]SAM_PROTO_GetShiftState [06:28:46]wFMCommunicate request_size=4 [06:28:46]MH_SAM_APDU [06:28:46]CAPDU: 80 13 01 00 [06:28:46]Write to MH i2c: E2 08 00 DB 7A 80 13 01 00 00 00 00 00 D2 [06:28:46]Write i2c OK [06:28:46]MH_I2C_Read... [06:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:46]Read from MH i2c: E2 [06:28:46]MH_I2C_Read... [06:28:46]Read from MH i2c: E2 0E 00 [06:28:46]MH_I2C_Read... [06:28:46]Read from MH i2c: E2 0E 00 DB 7A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FB [06:28:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:28:46]wFMCommunicate OK [06:28:46]SAM_PROTO_GetShiftState done [06:28:46]FM_GetShiftState done [06:28:46]opened in 1730332621 [06:28:46]opened+sec_in_day 1730419021 [06:28:46]quantity*price = 19800 [06:28:46]sum+1 = 19801 [06:28:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 198.00 НСП 1% : 1.75 НДС 12% : 21.03 Наличными: 198.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 77 31.10.2024 06:28 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139600 ФПД: 147717952132546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T062855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139600&fm=147717952132546&tin=02508201610067®Number=0000000000091631&sum=19800 0 [06:28:47]StoreToDocumentArchive [06:28:47]shift 557 fd 139600 [06:28:47]save to /storage/0557/doc_00139600 [06:28:47]save last doc name /storage/0557/doc_00139600 to /storage/kkm_last_doc_name [06:28:47]save OK [06:28:47]Clear old archive folders... [06:28:47]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:28:47]tlvbuf is 0139D150 [06:28:47]SAM_PROTO_ClearQueue [06:28:47]wFMCommunicate request_size=4 [06:28:47]MH_SAM_APDU [06:28:47]CAPDU: 80 09 00 00 [06:28:47]Write to MH i2c: E2 08 00 E8 7A 80 09 00 00 00 00 00 00 D4 [06:28:47]Write i2c OK [06:28:47]MH_I2C_Read... [06:28:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:47]Read from MH i2c: E2 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 E8 7A 00 90 00 D6 [06:28:47]RAPDU: 90 00 [06:28:47]wFMCommunicate OK [06:28:47]SAM_PROTO_ClearQueue done [06:28:47]KKMCreateOFDPacket [06:28:47]OFDProtocolAddRootSTLVToBuf [06:28:47]FM_MakeSignedData [06:28:47]FM_MakeSignedData [06:28:47]SAM_PROTO_SignData [06:28:47]wFMCommunicate request_size=4 [06:28:47]MH_SAM_APDU [06:28:47]CAPDU: 80 0D 01 02 [06:28:47]Write to MH i2c: E2 08 00 E9 7A 80 0D 01 02 00 00 00 00 DC [06:28:47]Write i2c OK [06:28:47]MH_I2C_Read... [06:28:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:47]Read from MH i2c: E2 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 E9 7A 00 90 00 D7 [06:28:47]RAPDU: 90 00 [06:28:47]wFMCommunicate OK [06:28:47]wFMCommunicate request_size=255 [06:28:47]MH_SAM_APDU [06:28:47]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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:28:47]Write to MH i2c: E2 02 01 EA 7A 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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 E4 [06:28:47]Write i2c OK [06:28:47]MH_I2C_Read... [06:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:47]Read from MH i2c: E2 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 EA 7A 00 90 00 D8 [06:28:47]RAPDU: 90 00 [06:28:47]wFMCommunicate OK [06:28:47]wFMCommunicate request_size=52 [06:28:47]MH_SAM_APDU [06:28:47]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 50 21 02 00 35 04 06 00 86 59 44 10 55 C2 [06:28:47]Write to MH i2c: E2 37 00 EB 7A 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 50 21 02 00 35 04 06 00 86 59 44 10 55 C2 00 00 62 [06:28:47]Write i2c OK [06:28:47]MH_I2C_Read... [06:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:47]Read from MH i2c: E2 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 03 00 EB 7A 00 90 00 D9 [06:28:47]RAPDU: 90 00 [06:28:47]wFMCommunicate OK [06:28:47]wFMCommunicate request_size=4 [06:28:47]MH_SAM_APDU [06:28:47]CAPDU: 80 0D 03 02 [06:28:47]Write to MH i2c: E2 08 00 EC 7A 80 0D 03 02 00 00 00 00 E1 [06:28:47]Write i2c OK [06:28:47]MH_I2C_Read... [06:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:47]Read from MH i2c: E2 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 0B 00 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 0B 00 EC 7A 00 C6 8E 6E FF 5B 4F 77 FE 90 00 C2 [06:28:47]RAPDU: C6 8E 6E FF 5B 4F 77 FE 90 00 [06:28:47]wFMCommunicate OK [06:28:47]SAM_PROTO_SignData done [06:28:47]FM_MakeSignedData done [06:28:47]CreateOFDProtocolMessage [06:28:47]wFMCommunicate request_size=4 [06:28:47]MH_SAM_APDU [06:28:47]CAPDU: 80 11 00 00 [06:28:47]Write to MH i2c: E2 08 00 ED 7A 80 11 00 00 00 00 00 00 E1 [06:28:47]Write i2c OK [06:28:47]MH_I2C_Read... [06:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:47]Read from MH i2c: E2 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 17 00 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: E2 17 00 ED 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3C [06:28: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:28:47]wFMCommunicate OK [06:28:47]CreateOFDProtocolMessage done [06:28:47]OFDSenderStorePacket 139600 [06:28:47]StoreOFDPacket docnum=139600 [06:28: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 39 01 00 00 E4 70 31 01 4C D8 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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 21 02 00 35 04 06 00 86 59 44 10 55 C2 C6 8E 6E FF 5B 4F 77 FE [06:28:47]CheckFolder [06:28:47]dirname=/storage/ofd_packets [06:28:47]CheckFolder done [06:28:47]ProducePacketName [06:28:47]name=ofd_packets/00139600 [06:28:47]NVStorageSaveData ofd_packets/00139600 [06:28:47]File name is /storage/ofd_packets/00139600 [06:28:47]Write 343 bytes [06:28:47]NVStorageSaveData done [06:28:47]OFDSenderStorePacket done [06:28:47]KKMCreateOFDPacket done [06:28:47]NVStorageSaveData kkm_last_timestamp [06:28:47]File name is /storage/kkm_last_timestamp [06:28:47]Write 4 bytes [06:28:47]NVStorageSaveData done [06:28:47]ExternCall_PrintAddStr [06:28:47]wPrintStart [06:28:47]Write to MH i2c: 01 00 00 EE 7A 68 [06:28:47]Write i2c OK [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: 01 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: 01 07 00 [06:28:47]MH_I2C_Read... [06:28:47]Read from MH i2c: 01 07 00 EE 7A 00 00 00 00 00 FF 0F 7D [06:28:47]RasterBufferAndPrint [06:28:47]line Счет N : (3)335480 [06:28:47]line ИНН: 02508201610067 [06:28:47]line Контрольно-Кассовый Чек [06:28:47]line ПРОДАЖА [06:28:47]line Товар: 4870022003305 [06:28:47]line Напиток Gorilla эн нат ж/б 0,5/0,45л [06:28:47]line 2.000 * 99.00 [06:28:47]line = 198.00 [06:28:47]line НДС 12% НСП 1% [06:28:47]line > о реализуемом товаре [06:28:47]line ИТОГО: 198.00 [06:28:47]line НСП 1% : 1.75 [06:28:47]line НДС 12% : 21.03 [06:28:47]line Наличными: 198.00 [06:28:47]line Безнал.: 0.00 [06:28:47]line Место: АЗС № 101 "Партнер Нефть" [06:28:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:28:47]line СНО: Общий режим [06:28:47]line Чек 77 31.10.2024 06:28 [06:28:47]line Смена: 557 ФФД: 1.0 [06:28:47]line ЗНМ: 0300000081 [06:28:47]line РНМ: 0000000000091631 [06:28:47]line Версия ККМ: 001 [06:28:47]line ФМ: 0000000000874669 [06:28:47]line ФД: 139600 [06:28:47]line ФПД: 147717952132546 [06:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T062855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139600&fm=147717952132546&tin=02508201610067®Number=0000000000091631&sum=19800 [06:28:47]line 0 [06:28:47]written 0, free lines is 4095 [06:28:47]OFD Sender: Processing packet 139600 [packets to send 34, broken 33] [06:28:47]ProducePacketName [06:28:47]name=ofd_packets/00139600 [06:28:47]OFD Sender: To server: pG, [06:28:48]CommunicateWithHost lk.salyk.kg:30040 [06:28:48]ConnectInit lk.salyk.kg [06:28:48]Connected sock=10 [06:28: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 39 01 00 00 E4 70 31 01 4C D8 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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 21 02 00 35 04 06 00 86 59 44 10 55 C2 C6 8E 6E FF 5B 4F 77 FE [06:28:48]Write to MH i2c: 01 00 00 17 7B 92 [06:28:48]Write i2c OK [06:28:48]MH_I2C_Read... [06:28:48]Read from MH i2c: 01 [06:28:48]MH_I2C_Read... [06:28:48]Read from MH i2c: 01 07 00 [06:28:48]MH_I2C_Read... [06:28:48]Read from MH i2c: 01 07 00 17 7B 00 00 00 00 00 13 0D B9 [06:28:48]RasterBufferAndPrint [06:28:48]line [06:28:48]line [06:28:48]line [06:28:48]line [06:28:48]line [06:28:48]written 0, free lines is 3354 [06:28:48]MH_Cut [06:28:48]Write to MH i2c: D1 01 00 1E 7B 01 6B [06:28:48]Write i2c OK [06:28:48]MH_I2C_Read... [06:28:48]Read from MH i2c: D1 [06:28:48]MH_I2C_Read... [06:28:48]Read from MH i2c: D1 01 00 [06:28:48]MH_I2C_Read... [06:28:48]Read from MH i2c: D1 01 00 1E 7B 00 6A [06:28:48]Write to MH i2c: 01 00 00 1F 7B 9A [06:28:48]Write i2c OK [06:28:48]MH_I2C_Read... [06:28: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 03 D0 47 00 D1 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 21 02 00 F4 03 04 00 55 CF 22 67 B6 04 01 00 00 0D 9B 55 DD 9F 7E 67 15 [06:28:48]CommunicateWithHost err = 0 [06:28:48]CheckOFDResponse [06:28:48]1017 (14) - 77093643461234 [06:28:48]1041 (16) - 0000000000874669 [06:28:48]1040 (4) - 139600 [06:28:48]1012 (4) - 31.10.2024 00:29 [06:28:48]1206 (1) - 0 [06:28:48]OFD Sender: Remove packet 139600 [06:28:48]ProducePacketName [06:28:48]name=ofd_packets/00139600 [06:28:48]NVStorageDeleteData [06:28:49]*** Cut start [06:28:49]*** Partial cut [06:28:49]*** CUTSNS_PIN = 1 [06:28:49]OFD Sender: No OFD packet to send [06:28:49]*** CUTSNS_PIN = 0 [06:28:49]*** Brake cut motor [06:28:49]Read from MH i2c: 01 [06:28:49]MH_I2C_Read... [06:28:49]*** Stop cut motor [06:28:49]*** Cut end [06:28:49]Read from MH i2c: 01 07 00 [06:28:49]MH_I2C_Read... [06:28:49]Read from MH i2c: 01 07 00 1F 7B 00 00 00 00 00 FF 0F AF [06:28:49]process_action close_receipt done [06:28:49]requested_data is exist [06:28:49]produce_requested_data [06:28:49]requested_item fm.sn is exist - process it [06:28:49]wFMCommunicate request_size=4 [06:28:49]MH_SAM_APDU [06:28:49]CAPDU: 80 11 00 00 [06:28:49]Write to MH i2c: E2 08 00 20 7B 80 11 00 00 00 00 00 00 15 [06:28:49]Write i2c OK [06:28:49]MH_I2C_Read... [06:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:49]Read from MH i2c: E2 [06:28:49]MH_I2C_Read... [06:28:49]Read from MH i2c: E2 17 00 [06:28:49]MH_I2C_Read... [06:28:49]Read from MH i2c: E2 17 00 20 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 70 [06:28: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:28:49]wFMCommunicate OK [06:28:49]requested_item fd.num is exist - process it [06:28:49]SAM_PROTO_GetFieldsCounters [06:28:49]wFMCommunicate request_size=4 [06:28:49]MH_SAM_APDU [06:28:49]CAPDU: 80 13 00 00 [06:28:49]Write to MH i2c: E2 08 00 21 7B 80 13 00 00 00 00 00 00 18 [06:28:49]Write i2c OK [06:28:49]MH_I2C_Read... [06:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:49]Read from MH i2c: E2 [06:28:49]MH_I2C_Read... [06:28:49]Read from MH i2c: E2 62 00 [06:28:49]MH_I2C_Read... [06:28:49]Read from MH i2c: E2 62 00 21 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 50 21 02 00 0E 04 04 00 2D 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 C5 [06:28: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 50 21 02 00 0E 04 04 00 2D 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:28:49]wFMCommunicate OK [06:28:49]SAM_PROTO_GetFieldsCounters done [06:28:49]requested_item shift.num is exist - process it [06:28:49]requested_item shift.opened is exist - process it [06:28:49]req_shift_opened [06:28:49]FM_GetShiftState [06:28:49]SAM_PROTO_GetShiftState [06:28:49]wFMCommunicate request_size=4 [06:28:49]MH_SAM_APDU [06:28:49]CAPDU: 80 13 01 00 [06:28:49]Write to MH i2c: E2 08 00 22 7B 80 13 01 00 00 00 00 00 1A [06:28:49]Write i2c OK [06:28:49]MH_I2C_Read... [06:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:49]Read from MH i2c: E2 [06:28:49]MH_I2C_Read... [06:28:49]Read from MH i2c: E2 0E 00 [06:28:49]MH_I2C_Read... [06:28:49]Read from MH i2c: E2 0E 00 22 7B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 43 [06:28:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:28:49]wFMCommunicate OK [06:28:49]SAM_PROTO_GetShiftState done [06:28:49]FM_GetShiftState done [06:28:49]req_shift_opened done [06:28:49]requested_item shift.open_date is exist - process it [06:28:49]req_shift_open_date [06:28:49]req_shift_open_date done [06:28:49]produce_requested_data done [06:28:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139600,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:28:49]process_action_free close_receipt [06:28:49]json_value_free [06:28:49]json_value_free done [06:28:49]process_json_proto returns [06:28:49]Send response to host [06:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139600,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:28:49]free response buf [06:28:49]execute_script done [06:28:49]execute_script returns [06:28:49]free content buf [06:28:49]Sock 9.Close socket [06:28:49]Sock 9.Thread stoped [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:05]accept exits with 8 [06:29:05]New connection [06:29:05]New thread 3067284836 created [06:29:05]Thread 3067141476 joined [06:29:05]Waiting for new connection... [06:29:05] Sock 8.Parse request [06:29:05]Sock 8.Check first char [06:29:05]Sock 8.First char is OK [06:29:05]request: POST /json_proto HTTP/1.0 [06:29:05]Method: POST [06:29:05]URL: /json_proto [06:29:05]Method is POST - this is cgi request [06:29:05]url: /json_proto [06:29:05]query_string will be loaded in cgi processing [06:29:05]execute_cgi json_proto POST (null) [06:29:05]execute_cgi path=json_proto method=POST [06:29:05]POST find Content-Length [06:29:05]Host: 172.17.50.196:8080 [06:29:05]Content-Length: 630 [06:29:05]Content-Type: application/json [06:29:05] [06:29:05]POST finish read [06:29:05]Found Content-Length = 630 [06:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335481", "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:29:05]execute_script... [06:29:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335481", "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:29:05]POST & json_proto [06:29:05]process_json_proto [06:29:05]json parsed OK: [06:29:05]protocol is kg_v1.0 [06:29:05]action value=close_receipt [06:29:05]process_action close_receipt [06:29:05]cmd_close_receipt [06:29:05]MH_GetDate [06:29:05]Write to MH i2c: F0 00 00 23 7B 8D [06:29:05]Write i2c OK [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: F0 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: F0 09 00 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: F0 09 00 23 7B 00 BA 23 23 67 72 0D 1C 67 FF [06:29:05]GetLastDocTimeStamp 1730356135 [06:29:05]current date 1730356154 [06:29:05]FM_GetShiftState [06:29:05]SAM_PROTO_GetShiftState [06:29:05]wFMCommunicate request_size=4 [06:29:05]MH_SAM_APDU [06:29:05]CAPDU: 80 13 01 00 [06:29:05]Write to MH i2c: E2 08 00 24 7B 80 13 01 00 00 00 00 00 1C [06:29:05]Write i2c OK [06:29:05]MH_I2C_Read... [06:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:05]Read from MH i2c: E2 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 0E 00 [06:29:05]MH_I2C_Read... [06:29:05]Read from MH i2c: E2 0E 00 24 7B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 45 [06:29:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:29:05]wFMCommunicate OK [06:29:05]SAM_PROTO_GetShiftState done [06:29:05]FM_GetShiftState done [06:29:05]opened in 1730332621 [06:29:05]opened+sec_in_day 1730419021 [06:29:05]quantity*price = 5000 [06:29:05]sum+1 = 5001 [06:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 78 31.10.2024 06:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139601 ФПД: 162250244273687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T062914&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139601&fm=162250244273687&tin=02508201610067®Number=0000000000091631&sum=5000 0 [06:29:06]StoreToDocumentArchive [06:29:06]shift 557 fd 139601 [06:29:06]save to /storage/0557/doc_00139601 [06:29:06]save last doc name /storage/0557/doc_00139601 to /storage/kkm_last_doc_name [06:29:06]save OK [06:29:06]Clear old archive folders... [06:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=269 [06:29:06]tlvbuf is 012BF600 [06:29:06]SAM_PROTO_ClearQueue [06:29:06]wFMCommunicate request_size=4 [06:29:06]MH_SAM_APDU [06:29:06]CAPDU: 80 09 00 00 [06:29:06]Write to MH i2c: E2 08 00 31 7B 80 09 00 00 00 00 00 00 1E [06:29:06]Write i2c OK [06:29:06]MH_I2C_Read... [06:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:29:06]Read from MH i2c: E2 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 31 7B 00 90 00 20 [06:29:06]RAPDU: 90 00 [06:29:06]wFMCommunicate OK [06:29:06]SAM_PROTO_ClearQueue done [06:29:06]KKMCreateOFDPacket [06:29:06]OFDProtocolAddRootSTLVToBuf [06:29:06]FM_MakeSignedData [06:29:06]FM_MakeSignedData [06:29:06]SAM_PROTO_SignData [06:29:06]wFMCommunicate request_size=4 [06:29:06]MH_SAM_APDU [06:29:06]CAPDU: 80 0D 01 02 [06:29:06]Write to MH i2c: E2 08 00 32 7B 80 0D 01 02 00 00 00 00 26 [06:29:06]Write i2c OK [06:29:06]MH_I2C_Read... [06:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:29:06]Read from MH i2c: E2 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 32 7B 00 90 00 21 [06:29:06]RAPDU: 90 00 [06:29:06]wFMCommunicate OK [06:29:06]wFMCommunicate request_size=255 [06:29:06]MH_SAM_APDU [06:29:06]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BA 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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:29:06]Write to MH i2c: E2 02 01 33 7B 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 4E 00 00 00 F4 03 04 00 BA 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 1C [06:29:06]Write i2c OK [06:29:06]MH_I2C_Read... [06:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:06]Read from MH i2c: E2 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 33 7B 00 90 00 22 [06:29:06]RAPDU: 90 00 [06:29:06]wFMCommunicate OK [06:29:06]wFMCommunicate request_size=28 [06:29:06]MH_SAM_APDU [06:29:06]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 51 21 02 00 35 04 06 00 93 90 D4 2C B6 17 [06:29:06]Write to MH i2c: E2 1F 00 34 7B 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 51 21 02 00 35 04 06 00 93 90 D4 2C B6 17 00 00 22 [06:29:06]Write i2c OK [06:29:06]MH_I2C_Read... [06:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:06]Read from MH i2c: E2 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 03 00 34 7B 00 90 00 23 [06:29:06]RAPDU: 90 00 [06:29:06]wFMCommunicate OK [06:29:06]wFMCommunicate request_size=4 [06:29:06]MH_SAM_APDU [06:29:06]CAPDU: 80 0D 03 02 [06:29:06]Write to MH i2c: E2 08 00 35 7B 80 0D 03 02 00 00 00 00 2B [06:29:06]Write i2c OK [06:29:06]MH_I2C_Read... [06:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:29:06]Read from MH i2c: E2 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 0B 00 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 0B 00 35 7B 00 55 07 D4 0F F7 74 AD 33 90 00 B6 [06:29:06]RAPDU: 55 07 D4 0F F7 74 AD 33 90 00 [06:29:06]wFMCommunicate OK [06:29:06]SAM_PROTO_SignData done [06:29:06]FM_MakeSignedData done [06:29:06]CreateOFDProtocolMessage [06:29:06]wFMCommunicate request_size=4 [06:29:06]MH_SAM_APDU [06:29:06]CAPDU: 80 11 00 00 [06:29:06]Write to MH i2c: E2 08 00 36 7B 80 11 00 00 00 00 00 00 2B [06:29:06]Write i2c OK [06:29:06]MH_I2C_Read... [06:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:06]Read from MH i2c: E2 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 17 00 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: E2 17 00 36 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 86 [06:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:29:06]wFMCommunicate OK [06:29:06]CreateOFDProtocolMessage done [06:29:06]OFDSenderStorePacket 139601 [06:29:06]StoreOFDPacket docnum=139601 [06:29: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 21 01 00 00 D0 81 19 01 9B 78 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 4E 00 00 00 F4 03 04 00 BA 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 21 02 00 35 04 06 00 93 90 D4 2C B6 17 55 07 D4 0F F7 74 AD 33 [06:29:06]CheckFolder [06:29:06]dirname=/storage/ofd_packets [06:29:06]CheckFolder done [06:29:06]ProducePacketName [06:29:06]name=ofd_packets/00139601 [06:29:06]NVStorageSaveData ofd_packets/00139601 [06:29:06]File name is /storage/ofd_packets/00139601 [06:29:06]Write 319 bytes [06:29:06]NVStorageSaveData done [06:29:06]OFDSenderStorePacket done [06:29:06]KKMCreateOFDPacket done [06:29:06]NVStorageSaveData kkm_last_timestamp [06:29:06]File name is /storage/kkm_last_timestamp [06:29:06]Write 4 bytes [06:29:06]NVStorageSaveData done [06:29:06]ExternCall_PrintAddStr [06:29:06]wPrintStart [06:29:06]Write to MH i2c: 01 00 00 37 7B B2 [06:29:06]Write i2c OK [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: 01 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: 01 07 00 [06:29:06]MH_I2C_Read... [06:29:06]Read from MH i2c: 01 07 00 37 7B 00 00 00 00 00 FF 0F C7 [06:29:06]RasterBufferAndPrint [06:29:06]line Счет N : (3)335481 [06:29:06]line ИНН: 02508201610067 [06:29:06]line Контрольно-Кассовый Чек [06:29:06]line ПРОДАЖА [06:29:06]line Товар: 4700000160358 [06:29:06]line Вода Легенда 1л [06:29:07]line 1.000 * 50.00 [06:29:07]line = 50.00 [06:29:07]line НДС 12% НСП 1% [06:29:07]line > о реализуемом товаре [06:29:07]line ИТОГО: 50.00 [06:29:07]line НСП 1% : 0.44 [06:29:07]line НДС 12% : 5.31 [06:29:07]line Наличными: 50.00 [06:29:07]line Безнал.: 0.00 [06:29:07]line Место: АЗС № 101 "Партнер Нефть" [06:29:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:29:07]line СНО: Общий режим [06:29:07]line Чек 78 31.10.2024 06:29 [06:29:07]line Смена: 557 ФФД: 1.0 [06:29:07]line ЗНМ: 0300000081 [06:29:07]line РНМ: 0000000000091631 [06:29:07]line Версия ККМ: 001 [06:29:07]line ФМ: 0000000000874669 [06:29:07]line ФД: 139601 [06:29:07]line ФПД: 162250244273687 [06:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T062914&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139601&fm=162250244273687&tin=02508201610067®Number=0000000000091631&sum=5000 [06:29:07]line 0 [06:29:07]OFD Sender: Processing packet 139601 [packets to send 34, broken 33] [06:29:07]ProducePacketName [06:29:07]name=ofd_packets/00139601 [06:29:07]OFD Sender: To server: pG, [06:29:07]CommunicateWithHost lk.salyk.kg:30040 [06:29:07]ConnectInit lk.salyk.kg [06:29:07]written 0, free lines is 4095 [06:29:07]Connected sock=10 [06:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 D0 81 19 01 9B 78 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 4E 00 00 00 F4 03 04 00 BA 23 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 21 02 00 35 04 06 00 93 90 D4 2C B6 17 55 07 D4 0F F7 74 AD 33 [06:29: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 26 CA 47 00 26 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 51 21 02 00 F4 03 04 00 68 CF 22 67 B6 04 01 00 00 B4 AA FB DF 1E C7 F3 B8 [06:29:07]CommunicateWithHost err = 0 [06:29:07]CheckOFDResponse [06:29:07]1017 (14) - 77093643461234 [06:29:07]1041 (16) - 0000000000874669 [06:29:07]1040 (4) - 139601 [06:29:07]1012 (4) - 31.10.2024 00:29 [06:29:07]1206 (1) - 0 [06:29:07]OFD Sender: Remove packet 139601 [06:29:07]ProducePacketName [06:29:07]name=ofd_packets/00139601 [06:29:07]NVStorageDeleteData [06:29:07]Write to MH i2c: 01 00 00 5F 7B DA [06:29:07]Write i2c OK [06:29:07]MH_I2C_Read... [06:29:07]Read from MH i2c: 01 [06:29:07]MH_I2C_Read... [06:29:07]Read from MH i2c: 01 07 00 [06:29:07]MH_I2C_Read... [06:29:07]Read from MH i2c: 01 07 00 5F 7B 00 00 00 00 00 13 0D 01 [06:29:07]RasterBufferAndPrint [06:29:07]line [06:29:07]line [06:29:07]line [06:29:07]line [06:29:07]line [06:29:07]written 0, free lines is 3354 [06:29:07]MH_Cut [06:29:07]Write to MH i2c: D1 01 00 66 7B 01 B3 [06:29:07]Write i2c OK [06:29:07]MH_I2C_Read... [06:29:07]Read from MH i2c: D1 [06:29:07]MH_I2C_Read... [06:29:07]Read from MH i2c: D1 01 00 [06:29:07]MH_I2C_Read... [06:29:07]Read from MH i2c: D1 01 00 66 7B 00 B2 [06:29:07]Write to MH i2c: 01 00 00 67 7B E2 [06:29:07]Write i2c OK [06:29:07]MH_I2C_Read... [06:29:08]OFD Sender: No OFD packet to send [06:29:08]*** Cut start [06:29:08]*** Partial cut [06:29:08]*** CUTSNS_PIN = 1 [06:29:08]*** CUTSNS_PIN = 0 [06:29:08]*** Brake cut motor [06:29:09]Read from MH i2c: 01 [06:29:09]MH_I2C_Read... [06:29:09]*** Stop cut motor [06:29:09]*** Cut end [06:29:09]Read from MH i2c: 01 07 00 [06:29:09]MH_I2C_Read... [06:29:09]Read from MH i2c: 01 07 00 67 7B 00 00 00 00 00 FF 0F F7 [06:29:09]process_action close_receipt done [06:29:09]requested_data is exist [06:29:09]produce_requested_data [06:29:09]requested_item fm.sn is exist - process it [06:29:09]wFMCommunicate request_size=4 [06:29:09]MH_SAM_APDU [06:29:09]CAPDU: 80 11 00 00 [06:29:09]Write to MH i2c: E2 08 00 68 7B 80 11 00 00 00 00 00 00 5D [06:29:09]Write i2c OK [06:29:09]MH_I2C_Read... [06:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:09]Read from MH i2c: E2 [06:29:09]MH_I2C_Read... [06:29:09]Read from MH i2c: E2 17 00 [06:29:09]MH_I2C_Read... [06:29:09]Read from MH i2c: E2 17 00 68 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B8 [06:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:29:09]wFMCommunicate OK [06:29:09]requested_item fd.num is exist - process it [06:29:09]SAM_PROTO_GetFieldsCounters [06:29:09]wFMCommunicate request_size=4 [06:29:09]MH_SAM_APDU [06:29:09]CAPDU: 80 13 00 00 [06:29:09]Write to MH i2c: E2 08 00 69 7B 80 13 00 00 00 00 00 00 60 [06:29:09]Write i2c OK [06:29:09]MH_I2C_Read... [06:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:29:09]Read from MH i2c: E2 [06:29:09]MH_I2C_Read... [06:29:09]Read from MH i2c: E2 62 00 [06:29:09]MH_I2C_Read... [06:29:09]Read from MH i2c: E2 62 00 69 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 51 21 02 00 0E 04 04 00 2D 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 11 [06:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 51 21 02 00 0E 04 04 00 2D 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:29:09]wFMCommunicate OK [06:29:09]SAM_PROTO_GetFieldsCounters done [06:29:09]requested_item shift.num is exist - process it [06:29:09]requested_item shift.opened is exist - process it [06:29:09]req_shift_opened [06:29:09]FM_GetShiftState [06:29:09]SAM_PROTO_GetShiftState [06:29:09]wFMCommunicate request_size=4 [06:29:09]MH_SAM_APDU [06:29:09]CAPDU: 80 13 01 00 [06:29:09]Write to MH i2c: E2 08 00 6A 7B 80 13 01 00 00 00 00 00 62 [06:29:09]Write i2c OK [06:29:09]MH_I2C_Read... [06:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:09]Read from MH i2c: E2 [06:29:09]MH_I2C_Read... [06:29:09]Read from MH i2c: E2 0E 00 [06:29:09]MH_I2C_Read... [06:29:09]Read from MH i2c: E2 0E 00 6A 7B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8B [06:29:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:29:09]wFMCommunicate OK [06:29:09]SAM_PROTO_GetShiftState done [06:29:09]FM_GetShiftState done [06:29:09]req_shift_opened done [06:29:09]requested_item shift.open_date is exist - process it [06:29:09]req_shift_open_date [06:29:09]req_shift_open_date done [06:29:09]produce_requested_data done [06:29:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139601,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:29:09]process_action_free close_receipt [06:29:09]json_value_free [06:29:09]json_value_free done [06:29:09]process_json_proto returns [06:29:09]Send response to host [06:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139601,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:29:09]free response buf [06:29:09]execute_script done [06:29:09]execute_script returns [06:29:09]free content buf [06:29:09]Sock 8.Close socket [06:29:09]Sock 8.Thread stoped [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:01]accept exits with 9 [06:43:01]New connection [06:43:01]New thread 3067141476 created [06:43:01]Thread 3067284836 joined [06:43:01]Waiting for new connection... [06:43:01] Sock 9.Parse request [06:43:01]Sock 9.Check first char [06:43:01]Sock 9.First char is OK [06:43:01]request: POST /json_proto HTTP/1.0 [06:43:01]Method: POST [06:43:01]URL: /json_proto [06:43:01]Method is POST - this is cgi request [06:43:01]url: /json_proto [06:43:01]query_string will be loaded in cgi processing [06:43:01]execute_cgi json_proto POST (null) [06:43:01]execute_cgi path=json_proto method=POST [06:43:01]POST find Content-Length [06:43:01]Host: 172.17.50.196:8080 [06:43:01]Content-Length: 1165 [06:43:01]Content-Type: application/json [06:43:01] [06:43:01]POST finish read [06:43:01]Found Content-Length = 1165 [06:43:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335482", "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 }]} ,{ "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:01]execute_script... [06:43: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)335482", "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 }]} ,{ "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:01]POST & json_proto [06:43:01]process_json_proto [06:43:01]json parsed OK: [06:43:01]protocol is kg_v1.0 [06:43:01]action value=close_receipt [06:43:01]process_action close_receipt [06:43:01]cmd_close_receipt [06:43:01]MH_GetDate [06:43:01]Write to MH i2c: F0 00 00 6B 7B D5 [06:43:01]Write i2c OK [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: F0 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: F0 09 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: F0 09 00 6B 7B 00 FE 26 23 67 72 0D 1C 67 8E [06:43:01]GetLastDocTimeStamp 1730356154 [06:43:01]current date 1730356990 [06:43:01]FM_GetShiftState [06:43:01]SAM_PROTO_GetShiftState [06:43:01]wFMCommunicate request_size=4 [06:43:01]MH_SAM_APDU [06:43:01]CAPDU: 80 13 01 00 [06:43:01]Write to MH i2c: E2 08 00 6C 7B 80 13 01 00 00 00 00 00 64 [06:43:01]Write i2c OK [06:43:01]MH_I2C_Read... [06:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:01]Read from MH i2c: E2 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 0E 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 0E 00 6C 7B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8D [06:43:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:43:01]wFMCommunicate OK [06:43:01]SAM_PROTO_GetShiftState done [06:43:01]FM_GetShiftState done [06:43:01]opened in 1730332621 [06:43:01]opened+sec_in_day 1730419021 [06:43:01]quantity*price = 14400 [06:43:01]sum+1 = 14401 [06:43:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002082931 Водка Хорошая 0,1л 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620006995702 Водка Зеленая Марка 0,1л 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 424.00 НСП 1% : 3.75 НДС 12% : 45.03 Наличными: 424.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 79 31.10.2024 06:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139602 ФПД: 261698858712131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T064310&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139602&fm=261698858712131&tin=02508201610067®Number=0000000000091631&sum=42400 0 [06:43:02]StoreToDocumentArchive [06:43:02]shift 557 fd 139602 [06:43:02]save to /storage/0557/doc_00139602 [06:43:02]save last doc name /storage/0557/doc_00139602 to /storage/kkm_last_doc_name [06:43:02]save OK [06:43:02]Clear old archive folders... [06:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=490 [06:43:02]tlvbuf is 0135CFC0 [06:43:02]SAM_PROTO_ClearQueue [06:43:02]wFMCommunicate request_size=4 [06:43:02]MH_SAM_APDU [06:43:02]CAPDU: 80 09 00 00 [06:43:02]Write to MH i2c: E2 08 00 79 7B 80 09 00 00 00 00 00 00 66 [06:43:02]Write i2c OK [06:43:02]MH_I2C_Read... [06:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:02]Read from MH i2c: E2 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: E2 03 00 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: E2 03 00 79 7B 00 90 00 68 [06:43:02]RAPDU: 90 00 [06:43:02]wFMCommunicate OK [06:43:02]SAM_PROTO_ClearQueue done [06:43:02]KKMCreateOFDPacket [06:43:02]OFDProtocolAddRootSTLVToBuf [06:43:02]FM_MakeSignedData [06:43:02]FM_MakeSignedData [06:43:02]SAM_PROTO_SignData [06:43:02]wFMCommunicate request_size=4 [06:43:02]MH_SAM_APDU [06:43:02]CAPDU: 80 0D 01 02 [06:43:02]Write to MH i2c: E2 08 00 7A 7B 80 0D 01 02 00 00 00 00 6E [06:43:02]Write i2c OK [06:43:02]MH_I2C_Read... [06:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:02]Read from MH i2c: E2 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: E2 03 00 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: E2 03 00 7A 7B 00 90 00 69 [06:43:02]RAPDU: 90 00 [06:43:02]wFMCommunicate OK [06:43:02]wFMCommunicate request_size=255 [06:43:02]MH_SAM_APDU [06:43:02]CAPDU: 80 0D 02 02 FA 03 00 EA 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 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 [06:43:03]Write to MH i2c: E2 02 01 7B 7B 80 0D 02 02 FA 00 03 00 EA 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 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 00 00 BB [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:03]Read from MH i2c: E2 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 03 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 03 00 7B 7B 00 90 00 6A [06:43:03]RAPDU: 90 00 [06:43:03]wFMCommunicate OK [06:43:03]wFMCommunicate request_size=249 [06:43:03]MH_SAM_APDU [06:43:03]CAPDU: 80 0D 02 02 F4 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 26 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 21 02 00 35 04 06 00 EE 03 83 82 FC 43 [06:43:03]Write to MH i2c: E2 FC 00 7C 7B 80 0D 02 02 F4 00 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 26 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 21 02 00 35 04 06 00 EE 03 83 82 FC 43 00 00 1C [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:03]Read from MH i2c: E2 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 03 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 03 00 7C 7B 00 90 00 6B [06:43:03]RAPDU: 90 00 [06:43:03]wFMCommunicate OK [06:43:03]wFMCommunicate request_size=4 [06:43:03]MH_SAM_APDU [06:43:03]CAPDU: 80 0D 03 02 [06:43:03]Write to MH i2c: E2 08 00 7D 7B 80 0D 03 02 00 00 00 00 73 [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:03]Read from MH i2c: E2 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 0B 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 0B 00 7D 7B 00 8D 6B 46 BA 28 99 3C 72 90 00 DB [06:43:03]RAPDU: 8D 6B 46 BA 28 99 3C 72 90 00 [06:43:03]wFMCommunicate OK [06:43:03]SAM_PROTO_SignData done [06:43:03]FM_MakeSignedData done [06:43:03]CreateOFDProtocolMessage [06:43:03]wFMCommunicate request_size=4 [06:43:03]MH_SAM_APDU [06:43:03]CAPDU: 80 11 00 00 [06:43:03]Write to MH i2c: E2 08 00 7E 7B 80 11 00 00 00 00 00 00 73 [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:03]Read from MH i2c: E2 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 17 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 17 00 7E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [06:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:43:03]wFMCommunicate OK [06:43:03]CreateOFDProtocolMessage done [06:43:03]OFDSenderStorePacket 139602 [06:43:03]StoreOFDPacket docnum=139602 [06:43: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 FE 01 00 00 74 81 F6 01 84 6D 5A 03 01 00 03 00 EA 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 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 26 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 21 02 00 35 04 06 00 EE 03 83 82 FC 43 8D 6B 46 BA 28 99 3C 72 [06:43:03]CheckFolder [06:43:03]dirname=/storage/ofd_packets [06:43:03]CheckFolder done [06:43:03]ProducePacketName [06:43:03]name=ofd_packets/00139602 [06:43:03]NVStorageSaveData ofd_packets/00139602 [06:43:03]File name is /storage/ofd_packets/00139602 [06:43:03]OFD Sender: No OFD packet to send [06:43:03]Write 540 bytes [06:43:03]NVStorageSaveData done [06:43:03]OFDSenderStorePacket done [06:43:03]KKMCreateOFDPacket done [06:43:03]NVStorageSaveData kkm_last_timestamp [06:43:03]File name is /storage/kkm_last_timestamp [06:43:03]Write 4 bytes [06:43:03]NVStorageSaveData done [06:43:03]ExternCall_PrintAddStr [06:43:03]wPrintStart [06:43:03]Write to MH i2c: 01 00 00 7F 7B FA [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: 01 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: 01 07 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: 01 07 00 7F 7B 00 00 00 00 00 FF 0F 0F [06:43:03]RasterBufferAndPrint [06:43:03]line Счет N : (3)335482 [06:43:03]line ИНН: 02508201610067 [06:43:03]line Контрольно-Кассовый Чек [06:43:03]line ПРОДАЖА [06:43:03]line Товар: 48747059 [06:43:03]line Сигареты Winston Legend Blue [06:43:03]line 1.000 * 144.00 [06:43:03]line = 144.00 [06:43:03]line НДС 12% НСП 1% [06:43:03]line > о реализуемом товаре [06:43:03]line Товар: 4700002082931 [06:43:03]line Водка Хорошая 0,1л [06:43:03]line 2.000 * 70.00 [06:43:03]line = 140.00 [06:43:03]line НДС 12% НСП 1% [06:43:03]line > о реализуемом товаре [06:43:03]line Товар: 4620006995702 [06:43:03]line Водка Зеленая Марка 0,1л [06:43:03]line 1.000 * 140.00 [06:43:03]line = 140.00 [06:43:03]line НДС 12% НСП 1% [06:43:03]line > о реализуемом товаре [06:43:03]line ИТОГО: 424.00 [06:43:03]line НСП 1% : 3.75 [06:43:03]line НДС 12% : 45.03 [06:43:03]line Наличными: 424.00 [06:43:03]line Безнал.: 0.00 [06:43:03]line Место: АЗС № 101 "Партнер Нефть" [06:43:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:43:03]line СНО: Общий режим [06:43:03]line Чек 79 31.10.2024 06:43 [06:43:03]line Смена: 557 ФФД: 1.0 [06:43:03]line ЗНМ: 0300000081 [06:43:03]line РНМ: 0000000000091631 [06:43:03]line Версия ККМ: 001 [06:43:03]line ФМ: 0000000000874669 [06:43:03]line ФД: 139602 [06:43:03]line ФПД: 261698858712131 [06:43:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T064310&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139602&fm=261698858712131&tin=02508201610067®Number=0000000000091631&sum=42400 [06:43:03]line 0 [06:43:03]written 0, free lines is 4095 [06:43:04]OFD Sender: Processing packet 139602 [packets to send 34, broken 33] [06:43:04]ProducePacketName [06:43:04]name=ofd_packets/00139602 [06:43:04]OFD Sender: To server: pG, [06:43:04]CommunicateWithHost lk.salyk.kg:30040 [06:43:04]ConnectInit lk.salyk.kg [06:43:04]Connected sock=10 [06:43: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 FE 01 00 00 74 81 F6 01 84 6D 5A 03 01 00 03 00 EA 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 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FE 26 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 21 02 00 35 04 06 00 EE 03 83 82 FC 43 8D 6B 46 BA 28 99 3C 72 [06:43: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 9D 87 47 00 10 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 52 21 02 00 F4 03 04 00 AD D2 22 67 B6 04 01 00 00 C1 9F 30 7F 3D C6 75 51 [06:43:04]CommunicateWithHost err = 0 [06:43:04]CheckOFDResponse [06:43:04]1017 (14) - 77093643461234 [06:43:04]1041 (16) - 0000000000874669 [06:43:04]1040 (4) - 139602 [06:43:04]1012 (4) - 31.10.2024 00:43 [06:43:04]1206 (1) - 0 [06:43:04]OFD Sender: Remove packet 139602 [06:43:04]ProducePacketName [06:43:04]name=ofd_packets/00139602 [06:43:04]NVStorageDeleteData [06:43:04]Write to MH i2c: 01 00 00 B4 7B 2F [06:43:04]Write i2c OK [06:43:04]MH_I2C_Read... [06:43:04]Read from MH i2c: 01 [06:43:04]MH_I2C_Read... [06:43:04]Read from MH i2c: 01 07 00 [06:43:04]MH_I2C_Read... [06:43:04]Read from MH i2c: 01 07 00 B4 7B 00 00 00 00 00 64 0C A6 [06:43:04]RasterBufferAndPrint [06:43:04]line [06:43:04]line [06:43:04]line [06:43:04]line [06:43:04]line [06:43:04]written 0, free lines is 3180 [06:43:04]MH_Cut [06:43:04]Write to MH i2c: D1 01 00 BB 7B 01 08 [06:43:04]Write i2c OK [06:43:04]MH_I2C_Read... [06:43:04]Read from MH i2c: D1 [06:43:04]MH_I2C_Read... [06:43:04]Read from MH i2c: D1 01 00 [06:43:04]MH_I2C_Read... [06:43:04]Read from MH i2c: D1 01 00 BB 7B 00 07 [06:43:04]Write to MH i2c: 01 00 00 BC 7B 37 [06:43:04]Write i2c OK [06:43:04]MH_I2C_Read... [06:43:04]OFD Sender: No OFD packet to send [06:43:05]*** Cut start [06:43:05]*** Partial cut [06:43:05]*** CUTSNS_PIN = 1 [06:43:05]*** CUTSNS_PIN = 0 [06:43:05]*** Brake cut motor [06:43:05]Read from MH i2c: 01 [06:43:05]MH_I2C_Read... [06:43:05]*** Stop cut motor [06:43:05]*** Cut end [06:43:05]Read from MH i2c: 01 07 00 [06:43:05]MH_I2C_Read... [06:43:05]Read from MH i2c: 01 07 00 BC 7B 00 00 00 00 00 FF 0F 4C [06:43:05]process_action close_receipt done [06:43:05]requested_data is exist [06:43:05]produce_requested_data [06:43:05]requested_item fm.sn is exist - process it [06:43:05]wFMCommunicate request_size=4 [06:43:05]MH_SAM_APDU [06:43:05]CAPDU: 80 11 00 00 [06:43:05]Write to MH i2c: E2 08 00 BD 7B 80 11 00 00 00 00 00 00 B2 [06:43:05]Write i2c OK [06:43:05]MH_I2C_Read... [06:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:05]Read from MH i2c: E2 [06:43:05]MH_I2C_Read... [06:43:05]Read from MH i2c: E2 17 00 [06:43:05]MH_I2C_Read... [06:43:05]Read from MH i2c: E2 17 00 BD 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0D [06:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:43:05]wFMCommunicate OK [06:43:05]requested_item fd.num is exist - process it [06:43:05]SAM_PROTO_GetFieldsCounters [06:43:05]wFMCommunicate request_size=4 [06:43:05]MH_SAM_APDU [06:43:05]CAPDU: 80 13 00 00 [06:43:05]Write to MH i2c: E2 08 00 BE 7B 80 13 00 00 00 00 00 00 B5 [06:43:05]Write i2c OK [06:43:05]MH_I2C_Read... [06:43:06]Read from MH i2c: E2 [06:43:06]MH_I2C_Read... [06:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:06]Read from MH i2c: E2 62 00 [06:43:06]MH_I2C_Read... [06:43:06]Read from MH i2c: E2 62 00 BE 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 52 21 02 00 0E 04 04 00 2D 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 6A [06:43: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 52 21 02 00 0E 04 04 00 2D 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:43:06]wFMCommunicate OK [06:43:06]SAM_PROTO_GetFieldsCounters done [06:43:06]requested_item shift.num is exist - process it [06:43:06]requested_item shift.opened is exist - process it [06:43:06]req_shift_opened [06:43:06]FM_GetShiftState [06:43:06]SAM_PROTO_GetShiftState [06:43:06]wFMCommunicate request_size=4 [06:43:06]MH_SAM_APDU [06:43:06]CAPDU: 80 13 01 00 [06:43:06]Write to MH i2c: E2 08 00 BF 7B 80 13 01 00 00 00 00 00 B7 [06:43:06]Write i2c OK [06:43:06]MH_I2C_Read... [06:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:06]Read from MH i2c: E2 [06:43:06]MH_I2C_Read... [06:43:06]Read from MH i2c: E2 0E 00 [06:43:06]MH_I2C_Read... [06:43:06]Read from MH i2c: E2 0E 00 BF 7B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E0 [06:43:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:43:06]wFMCommunicate OK [06:43:06]SAM_PROTO_GetShiftState done [06:43:06]FM_GetShiftState done [06:43:06]req_shift_opened done [06:43:06]requested_item shift.open_date is exist - process it [06:43:06]req_shift_open_date [06:43:06]req_shift_open_date done [06:43:06]produce_requested_data done [06:43:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139602,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:43:06]process_action_free close_receipt [06:43:06]json_value_free [06:43:06]json_value_free done [06:43:06]process_json_proto returns [06:43:06]Send response to host [06:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139602,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:43:06]free response buf [06:43:06]execute_script done [06:43:06]execute_script returns [06:43:06]free content buf [06:43:06]Sock 9.Close socket [06:43:06]Sock 9.Thread stoped [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:47]accept exits with 8 [06:55:47]New connection [06:55:47]New thread 3067284836 created [06:55:47]Thread 3067141476 joined [06:55:47]Waiting for new connection... [06:55:47] Sock 8.Parse request [06:55:47]Sock 8.Check first char [06:55:47]Sock 8.First char is OK [06:55:47]request: POST /json_proto HTTP/1.0 [06:55:47]Method: POST [06:55:47]URL: /json_proto [06:55:47]Method is POST - this is cgi request [06:55:47]url: /json_proto [06:55:47]query_string will be loaded in cgi processing [06:55:47]execute_cgi json_proto POST (null) [06:55:47]execute_cgi path=json_proto method=POST [06:55:47]POST find Content-Length [06:55:47]Host: 172.17.50.196:8080 [06:55:47]Content-Length: 771 [06:55:47]Content-Type: application/json [06:55:47] [06:55:47]POST finish read [06:55:47]Found Content-Length = 771 [06:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335483", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:47]execute_script... [06:55: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)335483", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:47]POST & json_proto [06:55:47]process_json_proto [06:55:47]json parsed OK: [06:55:47]protocol is kg_v1.0 [06:55:47]action value=close_receipt [06:55:47]process_action close_receipt [06:55:47]cmd_close_receipt [06:55:47]MH_GetDate [06:55:47]Write to MH i2c: F0 00 00 C0 7B 2A [06:55:47]Write i2c OK [06:55:47]MH_I2C_Read... [06:55:47]Read from MH i2c: F0 [06:55:47]MH_I2C_Read... [06:55:47]Read from MH i2c: F0 09 00 [06:55:47]MH_I2C_Read... [06:55:47]Read from MH i2c: F0 09 00 C0 7B 00 FC 29 23 67 72 0D 1C 67 E4 [06:55:47]GetLastDocTimeStamp 1730356990 [06:55:47]current date 1730357756 [06:55:47]FM_GetShiftState [06:55:47]SAM_PROTO_GetShiftState [06:55:47]wFMCommunicate request_size=4 [06:55:47]MH_SAM_APDU [06:55:47]CAPDU: 80 13 01 00 [06:55:47]Write to MH i2c: E2 08 00 C1 7B 80 13 01 00 00 00 00 00 B9 [06:55:47]Write i2c OK [06:55:47]MH_I2C_Read... [06:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:47]Read from MH i2c: E2 [06:55:47]MH_I2C_Read... [06:55:47]Read from MH i2c: E2 0E 00 [06:55:47]MH_I2C_Read... [06:55:47]Read from MH i2c: E2 0E 00 C1 7B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E2 [06:55:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:55:47]wFMCommunicate OK [06:55:47]SAM_PROTO_GetShiftState done [06:55:47]FM_GetShiftState done [06:55:47]opened in 1730332621 [06:55:47]opened+sec_in_day 1730419021 [06:55:47]quantity*price = 4900 [06:55:47]sum+1 = 4901 [06:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 0.00 Безнал.: 49.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 80 31.10.2024 06:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139603 ФПД: 110223006516901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T065556&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139603&fm=110223006516901&tin=02508201610067®Number=0000000000091631&sum=4900 0 [06:55:48]StoreToDocumentArchive [06:55:48]shift 557 fd 139603 [06:55:48]save to /storage/0557/doc_00139603 [06:55:48]save last doc name /storage/0557/doc_00139603 to /storage/kkm_last_doc_name [06:55:48]save OK [06:55:48]Clear old archive folders... [06:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=275 [06:55:48]tlvbuf is 0124F000 [06:55:48]SAM_PROTO_ClearQueue [06:55:48]wFMCommunicate request_size=4 [06:55:48]MH_SAM_APDU [06:55:48]CAPDU: 80 09 00 00 [06:55:48]Write to MH i2c: E2 08 00 CE 7B 80 09 00 00 00 00 00 00 BB [06:55:48]Write i2c OK [06:55:48]MH_I2C_Read... [06:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:48]Read from MH i2c: E2 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 CE 7B 00 90 00 BD [06:55:48]RAPDU: 90 00 [06:55:48]wFMCommunicate OK [06:55:48]SAM_PROTO_ClearQueue done [06:55:48]KKMCreateOFDPacket [06:55:48]OFDProtocolAddRootSTLVToBuf [06:55:48]FM_MakeSignedData [06:55:48]FM_MakeSignedData [06:55:48]SAM_PROTO_SignData [06:55:48]wFMCommunicate request_size=4 [06:55:48]MH_SAM_APDU [06:55:48]CAPDU: 80 0D 01 02 [06:55:48]Write to MH i2c: E2 08 00 CF 7B 80 0D 01 02 00 00 00 00 C3 [06:55:48]Write i2c OK [06:55:48]MH_I2C_Read... [06:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:48]Read from MH i2c: E2 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 CF 7B 00 90 00 BE [06:55:48]RAPDU: 90 00 [06:55:48]wFMCommunicate OK [06:55:48]wFMCommunicate request_size=255 [06:55:48]MH_SAM_APDU [06:55:48]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FC 29 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [06:55:48]Write to MH i2c: E2 02 01 D0 7B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FC 29 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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 6D [06:55:48]Write i2c OK [06:55:48]MH_I2C_Read... [06:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:48]Read from MH i2c: E2 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 D0 7B 00 90 00 BF [06:55:48]RAPDU: 90 00 [06:55:48]wFMCommunicate OK [06:55:48]wFMCommunicate request_size=34 [06:55:48]MH_SAM_APDU [06:55:48]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 21 02 00 35 04 06 00 64 3F 4B 26 46 A5 [06:55:48]Write to MH i2c: E2 25 00 D1 7B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 21 02 00 35 04 06 00 64 3F 4B 26 46 A5 00 00 04 [06:55:48]Write i2c OK [06:55:48]MH_I2C_Read... [06:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:48]Read from MH i2c: E2 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 03 00 D1 7B 00 90 00 C0 [06:55:48]RAPDU: 90 00 [06:55:48]wFMCommunicate OK [06:55:48]wFMCommunicate request_size=4 [06:55:48]MH_SAM_APDU [06:55:48]CAPDU: 80 0D 03 02 [06:55:48]Write to MH i2c: E2 08 00 D2 7B 80 0D 03 02 00 00 00 00 C8 [06:55:48]Write i2c OK [06:55:48]MH_I2C_Read... [06:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:48]Read from MH i2c: E2 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 0B 00 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 0B 00 D2 7B 00 ED 2D BA 8C FC FD FF D9 90 00 FA [06:55:48]RAPDU: ED 2D BA 8C FC FD FF D9 90 00 [06:55:48]wFMCommunicate OK [06:55:48]SAM_PROTO_SignData done [06:55:48]FM_MakeSignedData done [06:55:48]CreateOFDProtocolMessage [06:55:48]wFMCommunicate request_size=4 [06:55:48]MH_SAM_APDU [06:55:48]CAPDU: 80 11 00 00 [06:55:48]Write to MH i2c: E2 08 00 D3 7B 80 11 00 00 00 00 00 00 C8 [06:55:48]Write i2c OK [06:55:48]MH_I2C_Read... [06:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:48]Read from MH i2c: E2 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 17 00 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: E2 17 00 D3 7B 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: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 [06:55:48]wFMCommunicate OK [06:55:48]CreateOFDProtocolMessage done [06:55:48]OFDSenderStorePacket 139603 [06:55:48]StoreOFDPacket docnum=139603 [06:55: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 27 01 00 00 4E B6 1F 01 CA 3C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FC 29 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 21 02 00 35 04 06 00 64 3F 4B 26 46 A5 ED 2D BA 8C FC FD FF D9 [06:55:48]CheckFolder [06:55:48]dirname=/storage/ofd_packets [06:55:48]CheckFolder done [06:55:48]ProducePacketName [06:55:48]name=ofd_packets/00139603 [06:55:48]NVStorageSaveData ofd_packets/00139603 [06:55:48]File name is /storage/ofd_packets/00139603 [06:55:48]Write 325 bytes [06:55:48]NVStorageSaveData done [06:55:48]OFDSenderStorePacket done [06:55:48]KKMCreateOFDPacket done [06:55:48]NVStorageSaveData kkm_last_timestamp [06:55:48]File name is /storage/kkm_last_timestamp [06:55:48]Write 4 bytes [06:55:48]NVStorageSaveData done [06:55:48]ExternCall_PrintAddStr [06:55:48]wPrintStart [06:55:48]Write to MH i2c: 01 00 00 D4 7B 4F [06:55:48]Write i2c OK [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: 01 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: 01 07 00 [06:55:48]MH_I2C_Read... [06:55:48]Read from MH i2c: 01 07 00 D4 7B 00 00 00 00 00 FF 0F 64 [06:55:48]RasterBufferAndPrint [06:55:48]line Счет N : (3)335483 [06:55:48]line ИНН: 02508201610067 [06:55:48]line Контрольно-Кассовый Чек [06:55:48]line ПРОДАЖА [06:55:48]line Товар: 4700000310326 [06:55:48]line Вода Адыгене 1л б/г [06:55:48]line 1.000 * 49.00 [06:55:48]line = 49.00 [06:55:48]line НДС 12% НСП 1% [06:55:48]line > о реализуемом товаре [06:55:48]line ИТОГО: 49.00 [06:55:48]line НСП 1% : 0.43 [06:55:48]line НДС 12% : 5.20 [06:55:48]line Наличными: 0.00 [06:55:48]line Безнал.: 49.00 [06:55:48]line Место: АЗС № 101 "Партнер Нефть" [06:55:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:55:48]line СНО: Общий режим [06:55:48]line Чек 80 31.10.2024 06:55 [06:55:48]line Смена: 557 ФФД: 1.0 [06:55:48]line ЗНМ: 0300000081 [06:55:48]line РНМ: 0000000000091631 [06:55:48]line Версия ККМ: 001 [06:55:48]line Платежная система: Mbank [06:55:48]line ФМ: 0000000000874669 [06:55:48]line ФД: 139603 [06:55:48]line ФПД: 110223006516901 [06:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T065556&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139603&fm=110223006516901&tin=02508201610067®Number=0000000000091631&sum=4900 [06:55:49]OFD Sender: Processing packet 139603 [packets to send 34, broken 33] [06:55:49]ProducePacketName [06:55:49]name=ofd_packets/00139603 [06:55:49]OFD Sender: To server: pG, [06:55:49]CommunicateWithHost lk.salyk.kg:30040 [06:55:49]ConnectInit lk.salyk.kg [06:55:49]line 0 [06:55:49]written 0, free lines is 4095 [06:55:49]Connected sock=10 [06:55: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 27 01 00 00 4E B6 1F 01 CA 3C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FC 29 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 21 02 00 35 04 06 00 64 3F 4B 26 46 A5 ED 2D BA 8C FC FD FF D9 [06:55: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 7A 5A 47 00 35 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 53 21 02 00 F4 03 04 00 AA D5 22 67 B6 04 01 00 00 82 6E 83 00 BA 59 6C 49 [06:55:49]CommunicateWithHost err = 0 [06:55:49]CheckOFDResponse [06:55:49]1017 (14) - 77093643461234 [06:55:49]1041 (16) - 0000000000874669 [06:55:49]1040 (4) - 139603 [06:55:49]1012 (4) - 31.10.2024 00:56 [06:55:49]1206 (1) - 0 [06:55:49]OFD Sender: Remove packet 139603 [06:55:49]ProducePacketName [06:55:49]name=ofd_packets/00139603 [06:55:49]NVStorageDeleteData [06:55:49]Write to MH i2c: 01 00 00 FD 7B 78 [06:55:49]Write i2c OK [06:55:49]MH_I2C_Read... [06:55:49]Read from MH i2c: 01 [06:55:49]MH_I2C_Read... [06:55:49]Read from MH i2c: 01 07 00 [06:55:49]MH_I2C_Read... [06:55:49]Read from MH i2c: 01 07 00 FD 7B 00 00 00 00 00 0D 0D 99 [06:55:49]RasterBufferAndPrint [06:55:49]line [06:55:49]line [06:55:49]line [06:55:49]line [06:55:49]line [06:55:49]written 0, free lines is 3348 [06:55:49]MH_Cut [06:55:49]Write to MH i2c: D1 01 00 04 7C 01 52 [06:55:49]Write i2c OK [06:55:49]MH_I2C_Read... [06:55:49]Read from MH i2c: D1 [06:55:49]MH_I2C_Read... [06:55:49]Read from MH i2c: D1 01 00 [06:55:49]MH_I2C_Read... [06:55:49]Read from MH i2c: D1 01 00 04 7C 00 51 [06:55:49]Write to MH i2c: 01 00 00 05 7C 81 [06:55:49]Write i2c OK [06:55:49]MH_I2C_Read... [06:55:50]OFD Sender: No OFD packet to send [06:55:50]*** Cut start [06:55:50]*** Partial cut [06:55:50]*** CUTSNS_PIN = 1 [06:55:50]*** CUTSNS_PIN = 0 [06:55:50]*** Brake cut motor [06:55:50]Read from MH i2c: 01 [06:55:50]MH_I2C_Read... [06:55:50]*** Stop cut motor [06:55:51]*** Cut end [06:55:51]Read from MH i2c: 01 07 00 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: 01 07 00 05 7C 00 00 00 00 00 FF 0F 96 [06:55:51]process_action close_receipt done [06:55:51]requested_data is exist [06:55:51]produce_requested_data [06:55:51]requested_item fm.sn is exist - process it [06:55:51]wFMCommunicate request_size=4 [06:55:51]MH_SAM_APDU [06:55:51]CAPDU: 80 11 00 00 [06:55:51]Write to MH i2c: E2 08 00 06 7C 80 11 00 00 00 00 00 00 FC [06:55:51]Write i2c OK [06:55:51]MH_I2C_Read... [06:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:51]Read from MH i2c: E2 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 17 00 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 17 00 06 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 57 [06:55: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:55:51]wFMCommunicate OK [06:55:51]requested_item fd.num is exist - process it [06:55:51]SAM_PROTO_GetFieldsCounters [06:55:51]wFMCommunicate request_size=4 [06:55:51]MH_SAM_APDU [06:55:51]CAPDU: 80 13 00 00 [06:55:51]Write to MH i2c: E2 08 00 07 7C 80 13 00 00 00 00 00 00 FF [06:55:51]Write i2c OK [06:55:51]MH_I2C_Read... [06:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:55:51]Read from MH i2c: E2 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 62 00 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 62 00 07 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 53 21 02 00 0E 04 04 00 2D 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 B8 [06:55: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 53 21 02 00 0E 04 04 00 2D 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:55:51]wFMCommunicate OK [06:55:51]SAM_PROTO_GetFieldsCounters done [06:55:51]requested_item shift.num is exist - process it [06:55:51]requested_item shift.opened is exist - process it [06:55:51]req_shift_opened [06:55:51]FM_GetShiftState [06:55:51]SAM_PROTO_GetShiftState [06:55:51]wFMCommunicate request_size=4 [06:55:51]MH_SAM_APDU [06:55:51]CAPDU: 80 13 01 00 [06:55:51]Write to MH i2c: E2 08 00 08 7C 80 13 01 00 00 00 00 00 01 [06:55:51]Write i2c OK [06:55:51]MH_I2C_Read... [06:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:51]Read from MH i2c: E2 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 0E 00 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 0E 00 08 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2A [06:55:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:55:51]wFMCommunicate OK [06:55:51]SAM_PROTO_GetShiftState done [06:55:51]FM_GetShiftState done [06:55:51]req_shift_opened done [06:55:51]requested_item shift.open_date is exist - process it [06:55:51]req_shift_open_date [06:55:51]req_shift_open_date done [06:55:51]produce_requested_data done [06:55:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139603,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:55:51]process_action_free close_receipt [06:55:51]json_value_free [06:55:51]json_value_free done [06:55:51]process_json_proto returns [06:55:51]Send response to host [06:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139603,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:55:51]free response buf [06:55:51]execute_script done [06:55:51]execute_script returns [06:55:51]free content buf [06:55:51]Sock 8.Close socket [06:55:51]Sock 8.Thread stoped [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:14]accept exits with 9 [06:56:14]New connection [06:56:14]New thread 3067141476 created [06:56:14]Thread 3067284836 joined [06:56:14]Waiting for new connection... [06:56:14] Sock 9.Parse request [06:56:14]Sock 9.Check first char [06:56:14]Sock 9.First char is OK [06:56:14]request: POST /json_proto HTTP/1.0 [06:56:14]Method: POST [06:56:14]URL: /json_proto [06:56:14]Method is POST - this is cgi request [06:56:14]url: /json_proto [06:56:14]query_string will be loaded in cgi processing [06:56:14]execute_cgi json_proto POST (null) [06:56:14]execute_cgi path=json_proto method=POST [06:56:14]POST find Content-Length [06:56:14]Host: 172.17.50.196:8080 [06:56:14]Content-Length: 939 [06:56:14]Content-Type: application/json [06:56:14] [06:56:14]POST finish read [06:56:14]Found Content-Length = 939 [06:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335484", "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": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:14]execute_script... [06:56: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)335484", "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": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:14]POST & json_proto [06:56:14]process_json_proto [06:56:14]json parsed OK: [06:56:14]protocol is kg_v1.0 [06:56:14]action value=close_receipt [06:56:14]process_action close_receipt [06:56:14]cmd_close_receipt [06:56:14]MH_GetDate [06:56:14]Write to MH i2c: F0 00 00 09 7C 74 [06:56:14]Write i2c OK [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: F0 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: F0 09 00 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: F0 09 00 09 7C 00 17 2A 23 67 72 0D 1C 67 4A [06:56:14]GetLastDocTimeStamp 1730357756 [06:56:14]current date 1730357783 [06:56:14]FM_GetShiftState [06:56:14]SAM_PROTO_GetShiftState [06:56:14]wFMCommunicate request_size=4 [06:56:14]MH_SAM_APDU [06:56:14]CAPDU: 80 13 01 00 [06:56:14]Write to MH i2c: E2 08 00 0A 7C 80 13 01 00 00 00 00 00 03 [06:56:14]Write i2c OK [06:56:14]MH_I2C_Read... [06:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:14]Read from MH i2c: E2 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 0E 00 [06:56:14]MH_I2C_Read... [06:56:14]Read from MH i2c: E2 0E 00 0A 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2C [06:56:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:56:14]wFMCommunicate OK [06:56:14]SAM_PROTO_GetShiftState done [06:56:14]FM_GetShiftState done [06:56:14]opened in 1730332621 [06:56:14]opened+sec_in_day 1730419021 [06:56:14]quantity*price = 6000 [06:56:14]sum+1 = 6001 [06:56:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400990 Семечки ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 81 31.10.2024 06:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139604 ФПД: 96882754480682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T065623&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139604&fm=96882754480682&tin=02508201610067®Number=0000000000091631&sum=18000 0 [06:56:15]StoreToDocumentArchive [06:56:15]shift 557 fd 139604 [06:56:15]save to /storage/0557/doc_00139604 [06:56:15]save last doc name /storage/0557/doc_00139604 to /storage/kkm_last_doc_name [06:56:15]save OK [06:56:15]Clear old archive folders... [06:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=391 [06:56:15]tlvbuf is 01158860 [06:56:15]SAM_PROTO_ClearQueue [06:56:15]wFMCommunicate request_size=4 [06:56:15]MH_SAM_APDU [06:56:15]CAPDU: 80 09 00 00 [06:56:15]Write to MH i2c: E2 08 00 17 7C 80 09 00 00 00 00 00 00 05 [06:56:15]Write i2c OK [06:56:15]MH_I2C_Read... [06:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:15]Read from MH i2c: E2 [06:56:15]MH_I2C_Read... [06:56:15]Read from MH i2c: E2 03 00 [06:56:15]MH_I2C_Read... [06:56:15]Read from MH i2c: E2 03 00 17 7C 00 90 00 07 [06:56:15]RAPDU: 90 00 [06:56:15]wFMCommunicate OK [06:56:15]SAM_PROTO_ClearQueue done [06:56:15]KKMCreateOFDPacket [06:56:15]OFDProtocolAddRootSTLVToBuf [06:56:15]FM_MakeSignedData [06:56:15]FM_MakeSignedData [06:56:15]SAM_PROTO_SignData [06:56:15]wFMCommunicate request_size=4 [06:56:15]MH_SAM_APDU [06:56:15]CAPDU: 80 0D 01 02 [06:56:15]Write to MH i2c: E2 08 00 18 7C 80 0D 01 02 00 00 00 00 0D [06:56:15]Write i2c OK [06:56:15]MH_I2C_Read... [06:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:15]Read from MH i2c: E2 [06:56:15]MH_I2C_Read... [06:56:15]Read from MH i2c: E2 03 00 [06:56:15]MH_I2C_Read... [06:56:15]Read from MH i2c: E2 03 00 18 7C 00 90 00 08 [06:56:15]RAPDU: 90 00 [06:56:15]wFMCommunicate OK [06:56:15]wFMCommunicate request_size=255 [06:56:15]MH_SAM_APDU [06:56:15]CAPDU: 80 0D 02 02 FA 03 00 87 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [06:56:15]Write to MH i2c: E2 02 01 19 7C 80 0D 02 02 FA 00 03 00 87 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 23 [06:56:15]Write i2c OK [06:56:15]MH_I2C_Read... [06:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:15]Read from MH i2c: E2 [06:56:15]MH_I2C_Read... [06:56:15]Read from MH i2c: E2 03 00 [06:56:15]MH_I2C_Read... [06:56:15]Read from MH i2c: E2 03 00 19 7C 00 90 00 09 [06:56:15]RAPDU: 90 00 [06:56:15]wFMCommunicate OK [06:56:15]wFMCommunicate request_size=150 [06:56:15]MH_SAM_APDU [06:56:15]CAPDU: 80 0D 02 02 91 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 51 00 00 00 F4 03 04 00 17 2A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 21 02 00 35 04 06 00 58 1D 46 2A 6A 2A [06:56:15]Write to MH i2c: E2 99 00 1A 7C 80 0D 02 02 91 00 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 51 00 00 00 F4 03 04 00 17 2A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 21 02 00 35 04 06 00 58 1D 46 2A 6A 2A 00 00 52 [06:56:15]Write i2c OK [06:56:15]MH_I2C_Read... [06:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:16]Read from MH i2c: E2 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 03 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 03 00 1A 7C 00 90 00 0A [06:56:16]RAPDU: 90 00 [06:56:16]wFMCommunicate OK [06:56:16]wFMCommunicate request_size=4 [06:56:16]MH_SAM_APDU [06:56:16]CAPDU: 80 0D 03 02 [06:56:16]Write to MH i2c: E2 08 00 1B 7C 80 0D 03 02 00 00 00 00 12 [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:16]Read from MH i2c: E2 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 0B 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 0B 00 1B 7C 00 CF D2 EF 14 A1 C4 27 F2 90 00 35 [06:56:16]RAPDU: CF D2 EF 14 A1 C4 27 F2 90 00 [06:56:16]wFMCommunicate OK [06:56:16]SAM_PROTO_SignData done [06:56:16]FM_MakeSignedData done [06:56:16]CreateOFDProtocolMessage [06:56:16]wFMCommunicate request_size=4 [06:56:16]MH_SAM_APDU [06:56:16]CAPDU: 80 11 00 00 [06:56:16]Write to MH i2c: E2 08 00 1C 7C 80 11 00 00 00 00 00 00 12 [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:16]Read from MH i2c: E2 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 17 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 17 00 1C 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6D [06:56: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:56:16]wFMCommunicate OK [06:56:16]CreateOFDProtocolMessage done [06:56:16]OFDSenderStorePacket 139604 [06:56:16]StoreOFDPacket docnum=139604 [06:56: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 9B 01 00 00 8E C0 93 01 B2 FC 5A 03 01 00 03 00 87 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 00 00 00 F4 03 04 00 17 2A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 21 02 00 35 04 06 00 58 1D 46 2A 6A 2A CF D2 EF 14 A1 C4 27 F2 [06:56:16]CheckFolder [06:56:16]dirname=/storage/ofd_packets [06:56:16]CheckFolder done [06:56:16]ProducePacketName [06:56:16]name=ofd_packets/00139604 [06:56:16]NVStorageSaveData ofd_packets/00139604 [06:56:16]File name is /storage/ofd_packets/00139604 [06:56:16]Write 441 bytes [06:56:16]NVStorageSaveData done [06:56:16]OFDSenderStorePacket done [06:56:16]KKMCreateOFDPacket done [06:56:16]NVStorageSaveData kkm_last_timestamp [06:56:16]File name is /storage/kkm_last_timestamp [06:56:16]Write 4 bytes [06:56:16]NVStorageSaveData done [06:56:16]ExternCall_PrintAddStr [06:56:16]wPrintStart [06:56:16]Write to MH i2c: 01 00 00 1D 7C 99 [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: 01 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: 01 07 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: 01 07 00 1D 7C 00 00 00 00 00 FF 0F AE [06:56:16]RasterBufferAndPrint [06:56:16]line Счет N : (3)335484 [06:56:16]line ИНН: 02508201610067 [06:56:16]line Контрольно-Кассовый Чек [06:56:16]line ПРОДАЖА [06:56:16]line Товар: 4700000160204 [06:56:16]line Вода Легенда 1,5л [06:56:16]line 1.000 * 60.00 [06:56:16]line = 60.00 [06:56:16]line НДС 12% НСП 1% [06:56:16]line > о реализуемом товаре [06:56:16]line Товар: 4630007400990 [06:56:16]line Семечки ДЖИНН Великан 100гр [06:56:16]line 1.000 * 120.00 [06:56:16]line = 120.00 [06:56:16]line НДС 12% НСП 1% [06:56:16]line > о реализуемом товаре [06:56:16]line ИТОГО: 180.00 [06:56:16]line НСП 1% : 1.59 [06:56:16]line НДС 12% : 19.11 [06:56:16]line Наличными: 180.00 [06:56:16]line Безнал.: 0.00 [06:56:16]line Место: АЗС № 101 "Партнер Нефть" [06:56:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:56:16]line СНО: Общий режим [06:56:16]line Чек 81 31.10.2024 06:56 [06:56:16]line Смена: 557 ФФД: 1.0 [06:56:16]line ЗНМ: 0300000081 [06:56:16]line РНМ: 0000000000091631 [06:56:16]line Версия ККМ: 001 [06:56:16]line ФМ: 0000000000874669 [06:56:16]line ФД: 139604 [06:56:16]line ФПД: 96882754480682 [06:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T065623&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139604&fm=96882754480682&tin=02508201610067®Number=0000000000091631&sum=18000 [06:56:16]line 0 [06:56:16]OFD Sender: Processing packet 139604 [packets to send 34, broken 33] [06:56:16]ProducePacketName [06:56:16]name=ofd_packets/00139604 [06:56:16]OFD Sender: To server: pG, [06:56:16]CommunicateWithHost lk.salyk.kg:30040 [06:56:16]ConnectInit lk.salyk.kg [06:56:16]written 0, free lines is 4095 [06:56:16]Connected sock=10 [06:56: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 9B 01 00 00 8E C0 93 01 B2 FC 5A 03 01 00 03 00 87 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 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 00 00 00 F4 03 04 00 17 2A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 21 02 00 35 04 06 00 58 1D 46 2A 6A 2A CF D2 EF 14 A1 C4 27 F2 [06:56: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 6F 3D 47 00 4D DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 21 02 00 F4 03 04 00 C5 D5 22 67 B6 04 01 00 00 31 D3 A2 ED 2F D4 D5 48 [06:56:16]CommunicateWithHost err = 0 [06:56:16]CheckOFDResponse [06:56:16]1017 (14) - 77093643461234 [06:56:16]1041 (16) - 0000000000874669 [06:56:16]1040 (4) - 139604 [06:56:16]1012 (4) - 31.10.2024 00:56 [06:56:16]1206 (1) - 0 [06:56:16]OFD Sender: Remove packet 139604 [06:56:16]ProducePacketName [06:56:16]name=ofd_packets/00139604 [06:56:16]NVStorageDeleteData [06:56:16]Write to MH i2c: 01 00 00 4C 7C C8 [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: 01 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: 01 07 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: 01 07 00 4C 7C 00 00 00 00 00 B0 0C 8B [06:56:16]RasterBufferAndPrint [06:56:16]line [06:56:16]line [06:56:16]line [06:56:16]line [06:56:16]line [06:56:16]written 0, free lines is 3254 [06:56:16]MH_Cut [06:56:16]Write to MH i2c: D1 01 00 53 7C 01 A1 [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: D1 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: D1 01 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: D1 01 00 53 7C 00 A0 [06:56:16]Write to MH i2c: 01 00 00 54 7C D0 [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:17]OFD Sender: No OFD packet to send [06:56:17]*** Cut start [06:56:17]*** Partial cut [06:56:17]*** CUTSNS_PIN = 1 [06:56:17]*** CUTSNS_PIN = 0 [06:56:17]*** Brake cut motor [06:56:18]Read from MH i2c: 01 [06:56:18]MH_I2C_Read... [06:56:18]*** Stop cut motor [06:56:18]*** Cut end [06:56:18]Read from MH i2c: 01 07 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: 01 07 00 54 7C 00 00 00 00 00 FF 0F E5 [06:56:18]process_action close_receipt done [06:56:18]requested_data is exist [06:56:18]produce_requested_data [06:56:18]requested_item fm.sn is exist - process it [06:56:18]wFMCommunicate request_size=4 [06:56:18]MH_SAM_APDU [06:56:18]CAPDU: 80 11 00 00 [06:56:18]Write to MH i2c: E2 08 00 55 7C 80 11 00 00 00 00 00 00 4B [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:18]Read from MH i2c: E2 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 17 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 17 00 55 7C 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:56: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:56:18]wFMCommunicate OK [06:56:18]requested_item fd.num is exist - process it [06:56:18]SAM_PROTO_GetFieldsCounters [06:56:18]wFMCommunicate request_size=4 [06:56:18]MH_SAM_APDU [06:56:18]CAPDU: 80 13 00 00 [06:56:18]Write to MH i2c: E2 08 00 56 7C 80 13 00 00 00 00 00 00 4E [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:18]Read from MH i2c: E2 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 62 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 62 00 56 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 54 21 02 00 0E 04 04 00 2D 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 0B [06:56: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 54 21 02 00 0E 04 04 00 2D 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 [06:56:18]wFMCommunicate OK [06:56:18]SAM_PROTO_GetFieldsCounters done [06:56:18]requested_item shift.num is exist - process it [06:56:18]requested_item shift.opened is exist - process it [06:56:18]req_shift_opened [06:56:18]FM_GetShiftState [06:56:18]SAM_PROTO_GetShiftState [06:56:18]wFMCommunicate request_size=4 [06:56:18]MH_SAM_APDU [06:56:18]CAPDU: 80 13 01 00 [06:56:18]Write to MH i2c: E2 08 00 57 7C 80 13 01 00 00 00 00 00 50 [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:18]Read from MH i2c: E2 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 0E 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 0E 00 57 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 79 [06:56:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [06:56:18]wFMCommunicate OK [06:56:18]SAM_PROTO_GetShiftState done [06:56:18]FM_GetShiftState done [06:56:18]req_shift_opened done [06:56:18]requested_item shift.open_date is exist - process it [06:56:18]req_shift_open_date [06:56:18]req_shift_open_date done [06:56:18]produce_requested_data done [06:56:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139604,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [06:56:18]process_action_free close_receipt [06:56:18]json_value_free [06:56:18]json_value_free done [06:56:18]process_json_proto returns [06:56:18]Send response to host [06:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139604,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [06:56:18]free response buf [06:56:18]execute_script done [06:56:18]execute_script returns [06:56:18]free content buf [06:56:18]Sock 9.Close socket [06:56:18]Sock 9.Thread stoped [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07: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:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:51]ConnectInit Can't connect to host [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]accept exits with 8 [07:36:04]New connection [07:36:04]New thread 3067284836 created [07:36:04]Thread 3067141476 joined [07:36:04]Waiting for new connection... [07:36:04] Sock 8.Parse request [07:36:04]Sock 8.Check first char [07:36:04]Sock 8.First char is OK [07:36:04]request: POST /json_proto HTTP/1.0 [07:36:04]Method: POST [07:36:04]URL: /json_proto [07:36:04]Method is POST - this is cgi request [07:36:04]url: /json_proto [07:36:04]query_string will be loaded in cgi processing [07:36:04]execute_cgi json_proto POST (null) [07:36:04]execute_cgi path=json_proto method=POST [07:36:04]POST find Content-Length [07:36:04]Host: 172.17.50.196:8080 [07:36:04]Content-Length: 915 [07:36:04]Content-Type: application/json [07:36:04] [07:36:04]POST finish read [07:36:04]Found Content-Length = 915 [07:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335485", "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": "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" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:04]execute_script... [07:36: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)335485", "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": "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" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:04]POST & json_proto [07:36:04]process_json_proto [07:36:04]json parsed OK: [07:36:04]protocol is kg_v1.0 [07:36:04]action value=close_receipt [07:36:04]process_action close_receipt [07:36:04]cmd_close_receipt [07:36:04]MH_GetDate [07:36:04]Write to MH i2c: F0 00 00 58 7C C3 [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: F0 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: F0 09 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: F0 09 00 58 7C 00 6D 33 23 67 72 0D 1C 67 F8 [07:36:04]GetLastDocTimeStamp 1730357783 [07:36:04]current date 1730360173 [07:36:04]FM_GetShiftState [07:36:04]SAM_PROTO_GetShiftState [07:36:04]wFMCommunicate request_size=4 [07:36:04]MH_SAM_APDU [07:36:04]CAPDU: 80 13 01 00 [07:36:04]Write to MH i2c: E2 08 00 59 7C 80 13 01 00 00 00 00 00 52 [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:04]Read from MH i2c: E2 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 0E 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 0E 00 59 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7B [07:36:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [07:36:04]wFMCommunicate OK [07:36:04]SAM_PROTO_GetShiftState done [07:36:04]FM_GetShiftState done [07:36:04]opened in 1730332621 [07:36:04]opened+sec_in_day 1730419021 [07:36:04]quantity*price = 13000 [07:36:04]sum+1 = 13001 [07:36:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.18 НДС 12% : 14.22 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 82 31.10.2024 07:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139605 ФПД: 182828798029297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T073613&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139605&fm=182828798029297&tin=02508201610067®Number=0000000000091631&sum=13400 0 [07:36:05]StoreToDocumentArchive [07:36:05]shift 557 fd 139605 [07:36:05]save to /storage/0557/doc_00139605 [07:36:05]save last doc name /storage/0557/doc_00139605 to /storage/kkm_last_doc_name [07:36:05]save OK [07:36:05]Clear old archive folders... [07:36:05]ProcessDocumentItem done err = 0, tmpTLVsize=381 [07:36:05]tlvbuf is 0133BA30 [07:36:05]SAM_PROTO_ClearQueue [07:36:05]wFMCommunicate request_size=4 [07:36:05]MH_SAM_APDU [07:36:05]CAPDU: 80 09 00 00 [07:36:05]Write to MH i2c: E2 08 00 66 7C 80 09 00 00 00 00 00 00 54 [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:05]Read from MH i2c: E2 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 66 7C 00 90 00 56 [07:36:05]RAPDU: 90 00 [07:36:05]wFMCommunicate OK [07:36:05]SAM_PROTO_ClearQueue done [07:36:05]KKMCreateOFDPacket [07:36:05]OFDProtocolAddRootSTLVToBuf [07:36:05]FM_MakeSignedData [07:36:05]FM_MakeSignedData [07:36:05]SAM_PROTO_SignData [07:36:05]wFMCommunicate request_size=4 [07:36:05]MH_SAM_APDU [07:36:05]CAPDU: 80 0D 01 02 [07:36:05]Write to MH i2c: E2 08 00 67 7C 80 0D 01 02 00 00 00 00 5C [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:05]Read from MH i2c: E2 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 67 7C 00 90 00 57 [07:36:05]RAPDU: 90 00 [07:36:05]wFMCommunicate OK [07:36:05]wFMCommunicate request_size=255 [07:36:05]MH_SAM_APDU [07:36:05]CAPDU: 80 0D 02 02 FA 03 00 7D 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 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 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 [07:36:05]Write to MH i2c: E2 02 01 68 7C 80 0D 02 02 FA 00 03 00 7D 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 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 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 5A [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:05]Read from MH i2c: E2 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 68 7C 00 90 00 58 [07:36:05]RAPDU: 90 00 [07:36:05]wFMCommunicate OK [07:36:05]wFMCommunicate request_size=140 [07:36:05]MH_SAM_APDU [07:36:05]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 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 52 00 00 00 F4 03 04 00 6D 33 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 21 02 00 35 04 06 00 A6 48 25 8F AD F1 [07:36:05]Write to MH i2c: E2 8F 00 69 7C 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 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 52 00 00 00 F4 03 04 00 6D 33 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 21 02 00 35 04 06 00 A6 48 25 8F AD F1 00 00 1F [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:05]Read from MH i2c: E2 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: E2 03 00 69 7C 00 90 00 59 [07:36:05]RAPDU: 90 00 [07:36:05]wFMCommunicate OK [07:36:05]wFMCommunicate request_size=4 [07:36:05]MH_SAM_APDU [07:36:05]CAPDU: 80 0D 03 02 [07:36:05]Write to MH i2c: E2 08 00 6A 7C 80 0D 03 02 00 00 00 00 61 [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:06]Read from MH i2c: E2 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 0B 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 0B 00 6A 7C 00 A8 62 0D E3 D3 08 DD 6A 90 00 7E [07:36:06]RAPDU: A8 62 0D E3 D3 08 DD 6A 90 00 [07:36:06]wFMCommunicate OK [07:36:06]SAM_PROTO_SignData done [07:36:06]FM_MakeSignedData done [07:36:06]CreateOFDProtocolMessage [07:36:06]wFMCommunicate request_size=4 [07:36:06]MH_SAM_APDU [07:36:06]CAPDU: 80 11 00 00 [07:36:06]Write to MH i2c: E2 08 00 6B 7C 80 11 00 00 00 00 00 00 61 [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:06]Read from MH i2c: E2 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 17 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 17 00 6B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BC [07:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:36:06]wFMCommunicate OK [07:36:06]CreateOFDProtocolMessage done [07:36:06]OFDSenderStorePacket 139605 [07:36:06]StoreOFDPacket docnum=139605 [07:36: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 91 01 00 00 F2 83 89 01 83 E5 5A 03 01 00 03 00 7D 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 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 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 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 52 00 00 00 F4 03 04 00 6D 33 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 21 02 00 35 04 06 00 A6 48 25 8F AD F1 A8 62 0D E3 D3 08 DD 6A [07:36:06]CheckFolder [07:36:06]dirname=/storage/ofd_packets [07:36:06]CheckFolder done [07:36:06]ProducePacketName [07:36:06]name=ofd_packets/00139605 [07:36:06]NVStorageSaveData ofd_packets/00139605 [07:36:06]File name is /storage/ofd_packets/00139605 [07:36:06]Write 431 bytes [07:36:06]NVStorageSaveData done [07:36:06]OFDSenderStorePacket done [07:36:06]KKMCreateOFDPacket done [07:36:06]NVStorageSaveData kkm_last_timestamp [07:36:06]File name is /storage/kkm_last_timestamp [07:36:06]Write 4 bytes [07:36:06]NVStorageSaveData done [07:36:06]ExternCall_PrintAddStr [07:36:06]wPrintStart [07:36:06]Write to MH i2c: 01 00 00 6C 7C E8 [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: 01 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: 01 07 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: 01 07 00 6C 7C 00 00 00 00 00 FF 0F FD [07:36:06]RasterBufferAndPrint [07:36:06]line Счет N : (3)335485 [07:36:06]line ИНН: 02508201610067 [07:36:06]line Контрольно-Кассовый Чек [07:36:06]line ПРОДАЖА [07:36:06]line Товар: 4630007400389 [07:36:06]line Семечки ДЖИНН 140г [07:36:06]line 1.000 * 130.00 [07:36:06]line = 130.00 [07:36:06]line НДС 12% НСП 1% [07:36:06]line > о реализуемом товаре [07:36:06]line Товар: 2000031750019 [07:36:06]line Пакет Партнер Нефть [07:36:06]line 1.000 * 4.00 [07:36:06]line = 4.00 [07:36:06]line НДС 12% НСП 1% [07:36:06]line > о реализуемом товаре [07:36:06]line ИТОГО: 134.00 [07:36:06]line НСП 1% : 1.18 [07:36:06]line НДС 12% : 14.22 [07:36:06]line Наличными: 134.00 [07:36:06]line Безнал.: 0.00 [07:36:06]line Место: АЗС № 101 "Партнер Нефть" [07:36:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:36:06]line СНО: Общий режим [07:36:06]line Чек 82 31.10.2024 07:36 [07:36:06]line Смена: 557 ФФД: 1.0 [07:36:06]line ЗНМ: 0300000081 [07:36:06]line РНМ: 0000000000091631 [07:36:06]line Версия ККМ: 001 [07:36:06]line ФМ: 0000000000874669 [07:36:06]line ФД: 139605 [07:36:06]line ФПД: 182828798029297 [07:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T073613&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139605&fm=182828798029297&tin=02508201610067®Number=0000000000091631&sum=13400 [07:36:06]line 0 [07:36:06]OFD Sender: Processing packet 139605 [packets to send 34, broken 33] [07:36:06]ProducePacketName [07:36:06]name=ofd_packets/00139605 [07:36:06]OFD Sender: To server: pG, [07:36:06]CommunicateWithHost lk.salyk.kg:30040 [07:36:06]ConnectInit lk.salyk.kg [07:36:06]written 0, free lines is 4095 [07:36:06]Connected sock=10 [07:36: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 91 01 00 00 F2 83 89 01 83 E5 5A 03 01 00 03 00 7D 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 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 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 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 52 00 00 00 F4 03 04 00 6D 33 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 21 02 00 35 04 06 00 A6 48 25 8F AD F1 A8 62 0D E3 D3 08 DD 6A [07:36: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 50 26 47 00 E4 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 21 02 00 F4 03 04 00 1B DF 22 67 B6 04 01 00 00 0F 28 F4 E8 6F 14 2C CA [07:36:06]CommunicateWithHost err = 0 [07:36:06]CheckOFDResponse [07:36:06]1017 (14) - 77093643461234 [07:36:06]1041 (16) - 0000000000874669 [07:36:06]1040 (4) - 139605 [07:36:06]1012 (4) - 31.10.2024 01:36 [07:36:06]1206 (1) - 0 [07:36:06]OFD Sender: Remove packet 139605 [07:36:06]ProducePacketName [07:36:06]name=ofd_packets/00139605 [07:36:06]NVStorageDeleteData [07:36:06]Write to MH i2c: 01 00 00 9A 7C 16 [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: 01 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: 01 07 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: 01 07 00 9A 7C 00 00 00 00 00 CA 0C F3 [07:36:06]RasterBufferAndPrint [07:36:06]line [07:36:06]line [07:36:06]line [07:36:06]line [07:36:06]line [07:36:06]written 0, free lines is 3283 [07:36:06]MH_Cut [07:36:06]Write to MH i2c: D1 01 00 A1 7C 01 EF [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: D1 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: D1 01 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: D1 01 00 A1 7C 00 EE [07:36:06]Write to MH i2c: 01 00 00 A2 7C 1E [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:07]OFD Sender: No OFD packet to send [07:36:07]*** Cut start [07:36:07]*** Partial cut [07:36:07]*** CUTSNS_PIN = 1 [07:36:07]*** CUTSNS_PIN = 0 [07:36:07]*** Brake cut motor [07:36:08]Read from MH i2c: 01 [07:36:08]MH_I2C_Read... [07:36:08]*** Stop cut motor [07:36:08]*** Cut end [07:36:08]Read from MH i2c: 01 07 00 [07:36:08]MH_I2C_Read... [07:36:08]Read from MH i2c: 01 07 00 A2 7C 00 00 00 00 00 FF 0F 33 [07:36:08]process_action close_receipt done [07:36:08]requested_data is exist [07:36:08]produce_requested_data [07:36:08]requested_item fm.sn is exist - process it [07:36:08]wFMCommunicate request_size=4 [07:36:08]MH_SAM_APDU [07:36:08]CAPDU: 80 11 00 00 [07:36:08]Write to MH i2c: E2 08 00 A3 7C 80 11 00 00 00 00 00 00 99 [07:36:08]Write i2c OK [07:36:08]MH_I2C_Read... [07:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:08]Read from MH i2c: E2 [07:36:08]MH_I2C_Read... [07:36:08]Read from MH i2c: E2 17 00 [07:36:08]MH_I2C_Read... [07:36:08]Read from MH i2c: E2 17 00 A3 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F4 [07:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:36:08]wFMCommunicate OK [07:36:08]requested_item fd.num is exist - process it [07:36:08]SAM_PROTO_GetFieldsCounters [07:36:08]wFMCommunicate request_size=4 [07:36:08]MH_SAM_APDU [07:36:08]CAPDU: 80 13 00 00 [07:36:08]Write to MH i2c: E2 08 00 A4 7C 80 13 00 00 00 00 00 00 9C [07:36:08]Write i2c OK [07:36:08]MH_I2C_Read... [07:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:08]Read from MH i2c: E2 [07:36:08]MH_I2C_Read... [07:36:08]Read from MH i2c: E2 62 00 [07:36:08]MH_I2C_Read... [07:36:08]Read from MH i2c: E2 62 00 A4 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 55 21 02 00 0E 04 04 00 2D 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 5D [07:36: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 55 21 02 00 0E 04 04 00 2D 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:36:08]wFMCommunicate OK [07:36:08]SAM_PROTO_GetFieldsCounters done [07:36:08]requested_item shift.num is exist - process it [07:36:08]requested_item shift.opened is exist - process it [07:36:08]req_shift_opened [07:36:08]FM_GetShiftState [07:36:08]SAM_PROTO_GetShiftState [07:36:08]wFMCommunicate request_size=4 [07:36:08]MH_SAM_APDU [07:36:08]CAPDU: 80 13 01 00 [07:36:08]Write to MH i2c: E2 08 00 A5 7C 80 13 01 00 00 00 00 00 9E [07:36:08]Write i2c OK [07:36:08]MH_I2C_Read... [07:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:08]Read from MH i2c: E2 [07:36:08]MH_I2C_Read... [07:36:08]Read from MH i2c: E2 0E 00 [07:36:08]MH_I2C_Read... [07:36:08]Read from MH i2c: E2 0E 00 A5 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C7 [07:36:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [07:36:08]wFMCommunicate OK [07:36:08]SAM_PROTO_GetShiftState done [07:36:08]FM_GetShiftState done [07:36:08]req_shift_opened done [07:36:08]requested_item shift.open_date is exist - process it [07:36:08]req_shift_open_date [07:36:08]req_shift_open_date done [07:36:08]produce_requested_data done [07:36:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139605,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [07:36:08]process_action_free close_receipt [07:36:08]json_value_free [07:36:08]json_value_free done [07:36:08]process_json_proto returns [07:36:08]Send response to host [07:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139605,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [07:36:08]free response buf [07:36:08]execute_script done [07:36:08]execute_script returns [07:36:08]free content buf [07:36:08]Sock 8.Close socket [07:36:08]Sock 8.Thread stoped [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:54]accept exits with 9 [07:49:54]New connection [07:49:54]New thread 3067141476 created [07:49:54]Thread 3067284836 joined [07:49:54]Waiting for new connection... [07:49:54] Sock 9.Parse request [07:49:54]Sock 9.Check first char [07:49:54]Sock 9.First char is OK [07:49:54]request: POST /json_proto HTTP/1.0 [07:49:54]Method: POST [07:49:54]URL: /json_proto [07:49:54]Method is POST - this is cgi request [07:49:54]url: /json_proto [07:49:54]query_string will be loaded in cgi processing [07:49:54]execute_cgi json_proto POST (null) [07:49:54]execute_cgi path=json_proto method=POST [07:49:54]POST find Content-Length [07:49:54]Host: 172.17.50.196:8080 [07:49:54]Content-Length: 652 [07:49:54]Content-Type: application/json [07:49:54] [07:49:54]POST finish read [07:49:54]Found Content-Length = 652 [07:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335486", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:54]execute_script... [07:49: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)335486", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:54]POST & json_proto [07:49:54]process_json_proto [07:49:54]json parsed OK: [07:49:54]protocol is kg_v1.0 [07:49:54]action value=close_receipt [07:49:54]process_action close_receipt [07:49:54]cmd_close_receipt [07:49:54]MH_GetDate [07:49:54]Write to MH i2c: F0 00 00 A6 7C 11 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: F0 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: F0 09 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: F0 09 00 A6 7C 00 AB 36 23 67 72 0D 1C 67 87 [07:49:54]GetLastDocTimeStamp 1730360173 [07:49:54]current date 1730361003 [07:49:54]FM_GetShiftState [07:49:54]SAM_PROTO_GetShiftState [07:49:54]wFMCommunicate request_size=4 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 13 01 00 [07:49:54]Write to MH i2c: E2 08 00 A7 7C 80 13 01 00 00 00 00 00 A0 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 0E 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 0E 00 A7 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C9 [07:49:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [07:49:54]wFMCommunicate OK [07:49:54]SAM_PROTO_GetShiftState done [07:49:54]FM_GetShiftState done [07:49:54]opened in 1730332621 [07:49:54]opened+sec_in_day 1730419021 [07:49:54]quantity*price = 12500 [07:49:54]sum+1 = 12501 [07:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 83 31.10.2024 07:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139606 ФПД: 6038079825455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T075003&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139606&fm=6038079825455&tin=02508201610067®Number=0000000000091631&sum=12500 0 [07:49:55]StoreToDocumentArchive [07:49:55]shift 557 fd 139606 [07:49:55]save to /storage/0557/doc_00139606 [07:49:55]save last doc name /storage/0557/doc_00139606 to /storage/kkm_last_doc_name [07:49:55]save OK [07:49:55]Clear old archive folders... [07:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=284 [07:49:55]tlvbuf is 0139CE20 [07:49:55]SAM_PROTO_ClearQueue [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 09 00 00 [07:49:55]Write to MH i2c: E2 08 00 B4 7C 80 09 00 00 00 00 00 00 A2 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 B4 7C 00 90 00 A4 [07:49:55]RAPDU: 90 00 [07:49:55]wFMCommunicate OK [07:49:55]SAM_PROTO_ClearQueue done [07:49:55]KKMCreateOFDPacket [07:49:55]OFDProtocolAddRootSTLVToBuf [07:49:55]FM_MakeSignedData [07:49:55]FM_MakeSignedData [07:49:55]SAM_PROTO_SignData [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 0D 01 02 [07:49:55]Write to MH i2c: E2 08 00 B5 7C 80 0D 01 02 00 00 00 00 AA [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 B5 7C 00 90 00 A5 [07:49:55]RAPDU: 90 00 [07:49:55]wFMCommunicate OK [07:49:55]wFMCommunicate request_size=255 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [07:49:55]Write to MH i2c: E2 02 01 B6 7C 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 34 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 B6 7C 00 90 00 A6 [07:49:55]RAPDU: 90 00 [07:49:55]wFMCommunicate OK [07:49:55]wFMCommunicate request_size=43 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 21 02 00 35 04 06 00 05 7D D9 9A 66 2F [07:49:55]Write to MH i2c: E2 2E 00 B7 7C 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 21 02 00 35 04 06 00 05 7D D9 9A 66 2F 00 00 A0 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 03 00 B7 7C 00 90 00 A7 [07:49:55]RAPDU: 90 00 [07:49:55]wFMCommunicate OK [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 0D 03 02 [07:49:55]Write to MH i2c: E2 08 00 B8 7C 80 0D 03 02 00 00 00 00 AF [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 0B 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 0B 00 B8 7C 00 38 C5 A0 4E 38 0B FC F6 90 00 D0 [07:49:55]RAPDU: 38 C5 A0 4E 38 0B FC F6 90 00 [07:49:55]wFMCommunicate OK [07:49:55]SAM_PROTO_SignData done [07:49:55]FM_MakeSignedData done [07:49:55]CreateOFDProtocolMessage [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 11 00 00 [07:49:55]Write to MH i2c: E2 08 00 B9 7C 80 11 00 00 00 00 00 00 AF [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 17 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 17 00 B9 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0A [07:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:49:55]wFMCommunicate OK [07:49:55]CreateOFDProtocolMessage done [07:49:55]OFDSenderStorePacket 139606 [07:49:55]StoreOFDPacket docnum=139606 [07:49: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 30 01 00 00 19 B8 28 01 3C 30 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 21 02 00 35 04 06 00 05 7D D9 9A 66 2F 38 C5 A0 4E 38 0B FC F6 [07:49:55]CheckFolder [07:49:55]dirname=/storage/ofd_packets [07:49:55]CheckFolder done [07:49:55]ProducePacketName [07:49:55]name=ofd_packets/00139606 [07:49:55]NVStorageSaveData ofd_packets/00139606 [07:49:55]File name is /storage/ofd_packets/00139606 [07:49:55]Write 334 bytes [07:49:55]NVStorageSaveData done [07:49:55]OFDSenderStorePacket done [07:49:55]KKMCreateOFDPacket done [07:49:55]NVStorageSaveData kkm_last_timestamp [07:49:55]File name is /storage/kkm_last_timestamp [07:49:55]Write 4 bytes [07:49:55]NVStorageSaveData done [07:49:55]ExternCall_PrintAddStr [07:49:55]wPrintStart [07:49:55]Write to MH i2c: 01 00 00 BA 7C 36 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 BA 7C 00 00 00 00 00 FF 0F 4B [07:49:55]RasterBufferAndPrint [07:49:55]line Счет N : (3)335486 [07:49:55]line ИНН: 02508201610067 [07:49:55]line Контрольно-Кассовый Чек [07:49:55]line ПРОДАЖА [07:49:55]line Товар: 2000036190018 [07:49:55]line Кофе Американо XL(GABB TRADE) [07:49:55]line 1.000 * 125.00 [07:49:55]line = 125.00 [07:49:55]line НДС 12% НСП 1% [07:49:55]line > о реализуемом товаре [07:49:55]line ИТОГО: 125.00 [07:49:55]line НСП 1% : 1.11 [07:49:55]line НДС 12% : 13.27 [07:49:55]line Наличными: 125.00 [07:49:55]line Безнал.: 0.00 [07:49:55]line Место: АЗС № 101 "Партнер Нефть" [07:49:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:49:55]line СНО: Общий режим [07:49:55]line Чек 83 31.10.2024 07:50 [07:49:55]line Смена: 557 ФФД: 1.0 [07:49:55]line ЗНМ: 0300000081 [07:49:55]line РНМ: 0000000000091631 [07:49:55]line Версия ККМ: 001 [07:49:55]line ФМ: 0000000000874669 [07:49:55]line ФД: 139606 [07:49:55]line ФПД: 6038079825455 [07:49:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T075003&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139606&fm=6038079825455&tin=02508201610067®Number=0000000000091631&sum=12500 [07:49:56]OFD Sender: Processing packet 139606 [packets to send 34, broken 33] [07:49:56]ProducePacketName [07:49:56]name=ofd_packets/00139606 [07:49:56]OFD Sender: To server: pG, [07:49:56]CommunicateWithHost lk.salyk.kg:30040 [07:49:56]ConnectInit lk.salyk.kg [07:49:56]line 0 [07:49:56]written 0, free lines is 4095 [07:49:56]Connected sock=10 [07:49: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 30 01 00 00 19 B8 28 01 3C 30 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 36 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 21 02 00 35 04 06 00 05 7D D9 9A 66 2F 38 C5 A0 4E 38 0B FC F6 [07:49: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 4B 3E 47 00 BC 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 21 02 00 F4 03 04 00 59 E2 22 67 B6 04 01 00 00 BF A4 A4 B8 86 69 94 E8 [07:49:56]CommunicateWithHost err = 0 [07:49:56]CheckOFDResponse [07:49:56]1017 (14) - 77093643461234 [07:49:56]1041 (16) - 0000000000874669 [07:49:56]1040 (4) - 139606 [07:49:56]1012 (4) - 31.10.2024 01:50 [07:49:56]1206 (1) - 0 [07:49:56]OFD Sender: Remove packet 139606 [07:49:56]ProducePacketName [07:49:56]name=ofd_packets/00139606 [07:49:56]NVStorageDeleteData [07:49:56]Write to MH i2c: 01 00 00 E3 7C 5F [07:49:56]Write i2c OK [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: 01 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: 01 07 00 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: 01 07 00 E3 7C 00 00 00 00 00 01 0D 74 [07:49:56]RasterBufferAndPrint [07:49:56]line [07:49:56]line [07:49:56]line [07:49:56]line [07:49:56]line [07:49:56]written 0, free lines is 3338 [07:49:56]MH_Cut [07:49:56]Write to MH i2c: D1 01 00 EA 7C 01 38 [07:49:56]Write i2c OK [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: D1 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: D1 01 00 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: D1 01 00 EA 7C 00 37 [07:49:56]Write to MH i2c: 01 00 00 EB 7C 67 [07:49:56]Write i2c OK [07:49:56]MH_I2C_Read... [07:49:56]OFD Sender: No OFD packet to send [07:49:57]*** Cut start [07:49:57]*** Partial cut [07:49:57]*** CUTSNS_PIN = 1 [07:49:57]*** CUTSNS_PIN = 0 [07:49:57]*** Brake cut motor [07:49:57]Read from MH i2c: 01 [07:49:57]MH_I2C_Read... [07:49:57]*** Stop cut motor [07:49:57]*** Cut end [07:49:57]Read from MH i2c: 01 07 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: 01 07 00 EB 7C 00 00 00 00 00 FF 0F 7C [07:49:57]process_action close_receipt done [07:49:57]requested_data is exist [07:49:57]produce_requested_data [07:49:57]requested_item fm.sn is exist - process it [07:49:57]wFMCommunicate request_size=4 [07:49:57]MH_SAM_APDU [07:49:57]CAPDU: 80 11 00 00 [07:49:57]Write to MH i2c: E2 08 00 EC 7C 80 11 00 00 00 00 00 00 E2 [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:57]Read from MH i2c: E2 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: E2 17 00 [07:49:57]MH_I2C_Read... [07:49:57]Read from MH i2c: E2 17 00 EC 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [07:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:49:57]wFMCommunicate OK [07:49:57]requested_item fd.num is exist - process it [07:49:57]SAM_PROTO_GetFieldsCounters [07:49:57]wFMCommunicate request_size=4 [07:49:57]MH_SAM_APDU [07:49:57]CAPDU: 80 13 00 00 [07:49:57]Write to MH i2c: E2 08 00 ED 7C 80 13 00 00 00 00 00 00 E5 [07:49:57]Write i2c OK [07:49:57]MH_I2C_Read... [07:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:58]Read from MH i2c: E2 [07:49:58]MH_I2C_Read... [07:49:58]Read from MH i2c: E2 62 00 [07:49:58]MH_I2C_Read... [07:49:58]Read from MH i2c: E2 62 00 ED 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 56 21 02 00 0E 04 04 00 2D 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 AA [07:49: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 56 21 02 00 0E 04 04 00 2D 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:49:58]wFMCommunicate OK [07:49:58]SAM_PROTO_GetFieldsCounters done [07:49:58]requested_item shift.num is exist - process it [07:49:58]requested_item shift.opened is exist - process it [07:49:58]req_shift_opened [07:49:58]FM_GetShiftState [07:49:58]SAM_PROTO_GetShiftState [07:49:58]wFMCommunicate request_size=4 [07:49:58]MH_SAM_APDU [07:49:58]CAPDU: 80 13 01 00 [07:49:58]Write to MH i2c: E2 08 00 EE 7C 80 13 01 00 00 00 00 00 E7 [07:49:58]Write i2c OK [07:49:58]MH_I2C_Read... [07:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:58]Read from MH i2c: E2 [07:49:58]MH_I2C_Read... [07:49:58]Read from MH i2c: E2 0E 00 [07:49:58]MH_I2C_Read... [07:49:58]Read from MH i2c: E2 0E 00 EE 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 10 [07:49:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [07:49:58]wFMCommunicate OK [07:49:58]SAM_PROTO_GetShiftState done [07:49:58]FM_GetShiftState done [07:49:58]req_shift_opened done [07:49:58]requested_item shift.open_date is exist - process it [07:49:58]req_shift_open_date [07:49:58]req_shift_open_date done [07:49:58]produce_requested_data done [07:49:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139606,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [07:49:58]process_action_free close_receipt [07:49:58]json_value_free [07:49:58]json_value_free done [07:49:58]process_json_proto returns [07:49:58]Send response to host [07:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139606,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [07:49:58]free response buf [07:49:58]execute_script done [07:49:58]execute_script returns [07:49:58]free content buf [07:49:58]Sock 9.Close socket [07:49:58]Sock 9.Thread stoped [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:54:59]accept exits with 8 [07:54:59]New connection [07:54:59]New thread 3067284836 created [07:54:59]Thread 3067141476 joined [07:54:59]Waiting for new connection... [07:54:59] Sock 8.Parse request [07:54:59]Sock 8.Check first char [07:54:59]Sock 8.First char is OK [07:54:59]request: POST /json_proto HTTP/1.0 [07:54:59]Method: POST [07:54:59]URL: /json_proto [07:54:59]Method is POST - this is cgi request [07:54:59]url: /json_proto [07:54:59]query_string will be loaded in cgi processing [07:54:59]execute_cgi json_proto POST (null) [07:54:59]execute_cgi path=json_proto method=POST [07:54:59]POST find Content-Length [07:54:59]Host: 172.17.50.196:8080 [07:54:59]Content-Length: 644 [07:54:59]Content-Type: application/json [07:54:59] [07:54:59]POST finish read [07:54:59]Found Content-Length = 644 [07:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335487", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:59]execute_script... [07:54: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)335487", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:59]POST & json_proto [07:54:59]process_json_proto [07:54:59]json parsed OK: [07:54:59]protocol is kg_v1.0 [07:54:59]action value=close_receipt [07:54:59]process_action close_receipt [07:54:59]cmd_close_receipt [07:54:59]MH_GetDate [07:54:59]Write to MH i2c: F0 00 00 EF 7C 5A [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: F0 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: F0 09 00 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: F0 09 00 EF 7C 00 DD 37 23 67 72 0D 1C 67 03 [07:54:59]GetLastDocTimeStamp 1730361003 [07:54:59]current date 1730361309 [07:54:59]FM_GetShiftState [07:54:59]SAM_PROTO_GetShiftState [07:54:59]wFMCommunicate request_size=4 [07:54:59]MH_SAM_APDU [07:54:59]CAPDU: 80 13 01 00 [07:54:59]Write to MH i2c: E2 08 00 F0 7C 80 13 01 00 00 00 00 00 E9 [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:00]Read from MH i2c: E2 [07:55:00]MH_I2C_Read... [07:55:00]Read from MH i2c: E2 0E 00 [07:55:00]MH_I2C_Read... [07:55:00]Read from MH i2c: E2 0E 00 F0 7C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 12 [07:55:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [07:55:00]wFMCommunicate OK [07:55:00]SAM_PROTO_GetShiftState done [07:55:00]FM_GetShiftState done [07:55:00]opened in 1730332621 [07:55:00]opened+sec_in_day 1730419021 [07:55:00]quantity*price = 23000 [07:55:00]sum+1 = 23001 [07:55:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 84 31.10.2024 07:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139607 ФПД: 58358547583132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T075509&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139607&fm=58358547583132&tin=02508201610067®Number=0000000000091631&sum=23000 0 [07:55:01]StoreToDocumentArchive [07:55:01]shift 557 fd 139607 [07:55:01]save to /storage/0557/doc_00139607 [07:55:01]save last doc name /storage/0557/doc_00139607 to /storage/kkm_last_doc_name [07:55:01]save OK [07:55:01]Clear old archive folders... [07:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=280 [07:55:01]tlvbuf is 013DDAE0 [07:55:01]SAM_PROTO_ClearQueue [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 09 00 00 [07:55:01]Write to MH i2c: E2 08 00 FD 7C 80 09 00 00 00 00 00 00 EB [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 FD 7C 00 90 00 ED [07:55:01]RAPDU: 90 00 [07:55:01]wFMCommunicate OK [07:55:01]SAM_PROTO_ClearQueue done [07:55:01]KKMCreateOFDPacket [07:55:01]OFDProtocolAddRootSTLVToBuf [07:55:01]FM_MakeSignedData [07:55:01]FM_MakeSignedData [07:55:01]SAM_PROTO_SignData [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 0D 01 02 [07:55:01]Write to MH i2c: E2 08 00 FE 7C 80 0D 01 02 00 00 00 00 F3 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 FE 7C 00 90 00 EE [07:55:01]RAPDU: 90 00 [07:55:01]wFMCommunicate OK [07:55:01]wFMCommunicate request_size=255 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DD 37 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [07:55:01]Write to MH i2c: E2 02 01 FF 7C 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DD 37 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 B5 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 FF 7C 00 90 00 EF [07:55:01]RAPDU: 90 00 [07:55:01]wFMCommunicate OK [07:55:01]wFMCommunicate request_size=39 [07:55:01]MH_SAM_APDU [07:55:01]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 57 21 02 00 35 04 06 00 35 13 A8 7F 90 9C [07:55:01]Write to MH i2c: E2 2A 00 00 7D 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 57 21 02 00 35 04 06 00 35 13 A8 7F 90 9C 00 00 CF [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 03 00 00 7D 00 90 00 F1 [07:55:01]RAPDU: 90 00 [07:55:01]wFMCommunicate OK [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 0D 03 02 [07:55:01]Write to MH i2c: E2 08 00 01 7D 80 0D 03 02 00 00 00 00 F9 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 0B 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 0B 00 01 7D 00 57 52 54 DF 64 7A 9A FD 90 00 4B [07:55:01]RAPDU: 57 52 54 DF 64 7A 9A FD 90 00 [07:55:01]wFMCommunicate OK [07:55:01]SAM_PROTO_SignData done [07:55:01]FM_MakeSignedData done [07:55:01]CreateOFDProtocolMessage [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 11 00 00 [07:55:01]Write to MH i2c: E2 08 00 02 7D 80 11 00 00 00 00 00 00 F9 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 17 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 17 00 02 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [07:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:55:01]wFMCommunicate OK [07:55:01]CreateOFDProtocolMessage done [07:55:01]OFDSenderStorePacket 139607 [07:55:01]StoreOFDPacket docnum=139607 [07:55: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 2C 01 00 00 95 87 24 01 D7 A5 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DD 37 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 21 02 00 35 04 06 00 35 13 A8 7F 90 9C 57 52 54 DF 64 7A 9A FD [07:55:01]CheckFolder [07:55:01]dirname=/storage/ofd_packets [07:55:01]CheckFolder done [07:55:01]ProducePacketName [07:55:01]name=ofd_packets/00139607 [07:55:01]NVStorageSaveData ofd_packets/00139607 [07:55:01]File name is /storage/ofd_packets/00139607 [07:55:01]Write 330 bytes [07:55:01]NVStorageSaveData done [07:55:01]OFDSenderStorePacket done [07:55:01]KKMCreateOFDPacket done [07:55:01]NVStorageSaveData kkm_last_timestamp [07:55:01]File name is /storage/kkm_last_timestamp [07:55:01]Write 4 bytes [07:55:01]NVStorageSaveData done [07:55:01]ExternCall_PrintAddStr [07:55:01]wPrintStart [07:55:01]Write to MH i2c: 01 00 00 03 7D 80 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: 01 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: 01 07 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: 01 07 00 03 7D 00 00 00 00 00 FF 0F 95 [07:55:01]RasterBufferAndPrint [07:55:01]line Счет N : (3)335487 [07:55:01]line ИНН: 02508201610067 [07:55:01]line Контрольно-Кассовый Чек [07:55:01]line ПРОДАЖА [07:55:01]line Товар: 2000036210013 [07:55:01]line Кофе Капучино (GABB TRADE) [07:55:01]line 2.000 * 115.00 [07:55:01]line = 230.00 [07:55:01]line НДС 12% НСП 1% [07:55:01]line > о реализуемом товаре [07:55:01]line ИТОГО: 230.00 [07:55:01]line НСП 1% : 2.03 [07:55:01]line НДС 12% : 24.42 [07:55:01]line Наличными: 230.00 [07:55:01]line Безнал.: 0.00 [07:55:01]line Место: АЗС № 101 "Партнер Нефть" [07:55:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:55:01]line СНО: Общий режим [07:55:01]line Чек 84 31.10.2024 07:55 [07:55:01]line Смена: 557 ФФД: 1.0 [07:55:01]line ЗНМ: 0300000081 [07:55:01]line РНМ: 0000000000091631 [07:55:01]line Версия ККМ: 001 [07:55:01]line ФМ: 0000000000874669 [07:55:01]line ФД: 139607 [07:55:01]line ФПД: 58358547583132 [07:55:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T075509&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139607&fm=58358547583132&tin=02508201610067®Number=0000000000091631&sum=23000 [07:55:02]line 0 [07:55:02]OFD Sender: Processing packet 139607 [packets to send 34, broken 33] [07:55:02]ProducePacketName [07:55:02]name=ofd_packets/00139607 [07:55:02]OFD Sender: To server: pG, [07:55:02]CommunicateWithHost lk.salyk.kg:30040 [07:55:02]ConnectInit lk.salyk.kg [07:55:02]written 0, free lines is 4095 [07:55:02]Connected sock=10 [07:55: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 2C 01 00 00 95 87 24 01 D7 A5 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DD 37 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 21 02 00 35 04 06 00 35 13 A8 7F 90 9C 57 52 54 DF 64 7A 9A FD [07:55: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 A6 FB 47 00 13 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 21 02 00 F4 03 04 00 8B E3 22 67 B6 04 01 00 00 27 E7 51 6B 61 FA 9A D0 [07:55:02]CommunicateWithHost err = 0 [07:55:02]CheckOFDResponse [07:55:02]1017 (14) - 77093643461234 [07:55:02]1041 (16) - 0000000000874669 [07:55:02]1040 (4) - 139607 [07:55:02]1012 (4) - 31.10.2024 01:55 [07:55:02]1206 (1) - 0 [07:55:02]OFD Sender: Remove packet 139607 [07:55:02]ProducePacketName [07:55:02]name=ofd_packets/00139607 [07:55:02]NVStorageDeleteData [07:55:02]Write to MH i2c: 01 00 00 2B 7D A8 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 2B 7D 00 00 00 00 00 2D 0D E9 [07:55:02]RasterBufferAndPrint [07:55:02]line [07:55:02]line [07:55:02]line [07:55:02]line [07:55:02]line [07:55:02]written 0, free lines is 3380 [07:55:02]MH_Cut [07:55:02]Write to MH i2c: D1 01 00 32 7D 01 81 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D1 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D1 01 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D1 01 00 32 7D 00 80 [07:55:02]Write to MH i2c: 01 00 00 33 7D B0 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]OFD Sender: No OFD packet to send [07:55:03]*** Cut start [07:55:03]*** Partial cut [07:55:03]*** CUTSNS_PIN = 1 [07:55:03]*** CUTSNS_PIN = 0 [07:55:03]*** Brake cut motor [07:55:03]Read from MH i2c: 01 [07:55:03]MH_I2C_Read... [07:55:03]*** Stop cut motor [07:55:03]*** Cut end [07:55:03]Read from MH i2c: 01 07 00 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: 01 07 00 33 7D 00 00 00 00 00 FF 0F C5 [07:55:03]process_action close_receipt done [07:55:03]requested_data is exist [07:55:03]produce_requested_data [07:55:03]requested_item fm.sn is exist - process it [07:55:03]wFMCommunicate request_size=4 [07:55:03]MH_SAM_APDU [07:55:03]CAPDU: 80 11 00 00 [07:55:03]Write to MH i2c: E2 08 00 34 7D 80 11 00 00 00 00 00 00 2B [07:55:03]Write i2c OK [07:55:03]MH_I2C_Read... [07:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:03]Read from MH i2c: E2 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: E2 17 00 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: E2 17 00 34 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 86 [07:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:55:03]wFMCommunicate OK [07:55:03]requested_item fd.num is exist - process it [07:55:03]SAM_PROTO_GetFieldsCounters [07:55:03]wFMCommunicate request_size=4 [07:55:03]MH_SAM_APDU [07:55:03]CAPDU: 80 13 00 00 [07:55:03]Write to MH i2c: E2 08 00 35 7D 80 13 00 00 00 00 00 00 2E [07:55:03]Write i2c OK [07:55:03]MH_I2C_Read... [07:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:03]Read from MH i2c: E2 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: E2 62 00 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: E2 62 00 35 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 57 21 02 00 0E 04 04 00 2D 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 F7 [07:55: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 57 21 02 00 0E 04 04 00 2D 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 [07:55:03]wFMCommunicate OK [07:55:03]SAM_PROTO_GetFieldsCounters done [07:55:03]requested_item shift.num is exist - process it [07:55:03]requested_item shift.opened is exist - process it [07:55:03]req_shift_opened [07:55:03]FM_GetShiftState [07:55:03]SAM_PROTO_GetShiftState [07:55:03]wFMCommunicate request_size=4 [07:55:03]MH_SAM_APDU [07:55:03]CAPDU: 80 13 01 00 [07:55:03]Write to MH i2c: E2 08 00 36 7D 80 13 01 00 00 00 00 00 30 [07:55:03]Write i2c OK [07:55:03]MH_I2C_Read... [07:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:03]Read from MH i2c: E2 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: E2 0E 00 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: E2 0E 00 36 7D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 59 [07:55:03]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [07:55:03]wFMCommunicate OK [07:55:03]SAM_PROTO_GetShiftState done [07:55:03]FM_GetShiftState done [07:55:03]req_shift_opened done [07:55:03]requested_item shift.open_date is exist - process it [07:55:03]req_shift_open_date [07:55:03]req_shift_open_date done [07:55:03]produce_requested_data done [07:55:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139607,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [07:55:03]process_action_free close_receipt [07:55:03]json_value_free [07:55:03]json_value_free done [07:55:03]process_json_proto returns [07:55:03]Send response to host [07:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139607,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [07:55:03]free response buf [07:55:03]execute_script done [07:55:03]execute_script returns [07:55:03]free content buf [07:55:03]Sock 8.Close socket [07:55:03]Sock 8.Thread stoped [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:28]accept exits with 9 [08:02:28]New connection [08:02:28]New thread 3067141476 created [08:02:28]Thread 3067284836 joined [08:02:28]Waiting for new connection... [08:02:28] Sock 9.Parse request [08:02:28]Sock 9.Check first char [08:02:28]Sock 9.First char is OK [08:02:28]request: POST /json_proto HTTP/1.0 [08:02:28]Method: POST [08:02:28]URL: /json_proto [08:02:28]Method is POST - this is cgi request [08:02:28]url: /json_proto [08:02:28]query_string will be loaded in cgi processing [08:02:28]execute_cgi json_proto POST (null) [08:02:28]execute_cgi path=json_proto method=POST [08:02:28]POST find Content-Length [08:02:28]Host: 172.17.50.196:8080 [08:02:28]Content-Length: 625 [08:02:28]Content-Type: application/json [08:02:28] [08:02:28]POST finish read [08:02:28]Found Content-Length = 625 [08:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335488", "tax_sys" : 0, "items" : [ { "code": "4606532011642", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 2.000, "sum" : 126.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 126.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:28]execute_script... [08:02: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)335488", "tax_sys" : 0, "items" : [ { "code": "4606532011642", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 2.000, "sum" : 126.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 126.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:28]POST & json_proto [08:02:28]process_json_proto [08:02:28]json parsed OK: [08:02:28]protocol is kg_v1.0 [08:02:28]action value=close_receipt [08:02:28]process_action close_receipt [08:02:28]cmd_close_receipt [08:02:28]MH_GetDate [08:02:28]Write to MH i2c: F0 00 00 37 7D A3 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: F0 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: F0 09 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: F0 09 00 37 7D 00 9E 39 23 67 72 0D 1C 67 0F [08:02:28]GetLastDocTimeStamp 1730361309 [08:02:28]current date 1730361758 [08:02:28]FM_GetShiftState [08:02:28]SAM_PROTO_GetShiftState [08:02:28]wFMCommunicate request_size=4 [08:02:28]MH_SAM_APDU [08:02:28]CAPDU: 80 13 01 00 [08:02:28]Write to MH i2c: E2 08 00 38 7D 80 13 01 00 00 00 00 00 32 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:28]Read from MH i2c: E2 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 0E 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 0E 00 38 7D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5B [08:02:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [08:02:28]wFMCommunicate OK [08:02:28]SAM_PROTO_GetShiftState done [08:02:28]FM_GetShiftState done [08:02:28]opened in 1730332621 [08:02:28]opened+sec_in_day 1730419021 [08:02:28]quantity*price = 12600 [08:02:28]sum+1 = 12601 [08:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 126.00 НСП 1% : 1.11 НДС 12% : 13.38 Наличными: 126.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 85 31.10.2024 08:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139608 ФПД: 138111578303744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080238&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139608&fm=138111578303744&tin=02508201610067®Number=0000000000091631&sum=12600 0 [08:02:30]StoreToDocumentArchive [08:02:30]shift 557 fd 139608 [08:02:30]save to /storage/0557/doc_00139608 [08:02:30]save last doc name /storage/0557/doc_00139608 to /storage/kkm_last_doc_name [08:02:30]save OK [08:02:30]Clear old archive folders... [08:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=270 [08:02:30]tlvbuf is 012DD780 [08:02:30]SAM_PROTO_ClearQueue [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 09 00 00 [08:02:30]Write to MH i2c: E2 08 00 45 7D 80 09 00 00 00 00 00 00 34 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 45 7D 00 90 00 36 [08:02:30]RAPDU: 90 00 [08:02:30]wFMCommunicate OK [08:02:30]SAM_PROTO_ClearQueue done [08:02:30]KKMCreateOFDPacket [08:02:30]OFDProtocolAddRootSTLVToBuf [08:02:30]FM_MakeSignedData [08:02:30]FM_MakeSignedData [08:02:30]SAM_PROTO_SignData [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 0D 01 02 [08:02:30]Write to MH i2c: E2 08 00 46 7D 80 0D 01 02 00 00 00 00 3C [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 46 7D 00 90 00 37 [08:02:30]RAPDU: 90 00 [08:02:30]wFMCommunicate OK [08:02:30]wFMCommunicate request_size=255 [08:02:30]MH_SAM_APDU [08:02:30]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 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 05 00 00 00 00 07 04 06 00 38 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [08:02:30]Write to MH i2c: E2 02 01 47 7D 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 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 05 00 00 00 00 07 04 06 00 38 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 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 27 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 47 7D 00 90 00 38 [08:02:30]RAPDU: 90 00 [08:02:30]wFMCommunicate OK [08:02:30]wFMCommunicate request_size=29 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 0D 02 02 18 38 37 34 36 36 39 10 04 04 00 58 21 02 00 35 04 06 00 7D 9C 9B 90 6D 00 [08:02:30]Write to MH i2c: E2 20 00 48 7D 80 0D 02 02 18 00 38 37 34 36 36 39 10 04 04 00 58 21 02 00 35 04 06 00 7D 9C 9B 90 6D 00 00 00 3A [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 48 7D 00 90 00 39 [08:02:30]RAPDU: 90 00 [08:02:30]wFMCommunicate OK [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 0D 03 02 [08:02:30]Write to MH i2c: E2 08 00 49 7D 80 0D 03 02 00 00 00 00 41 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 0B 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 0B 00 49 7D 00 48 32 C5 1A C9 EA E5 7B 90 00 AE [08:02:30]RAPDU: 48 32 C5 1A C9 EA E5 7B 90 00 [08:02:30]wFMCommunicate OK [08:02:30]SAM_PROTO_SignData done [08:02:30]FM_MakeSignedData done [08:02:30]CreateOFDProtocolMessage [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 11 00 00 [08:02:30]Write to MH i2c: E2 08 00 4A 7D 80 11 00 00 00 00 00 00 41 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 17 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 17 00 4A 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [08:02: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:02:30]wFMCommunicate OK [08:02:30]CreateOFDProtocolMessage done [08:02:30]OFDSenderStorePacket 139608 [08:02:30]StoreOFDPacket docnum=139608 [08:02: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 22 01 00 00 EB DF 1A 01 F1 A7 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 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 05 00 00 00 00 07 04 06 00 38 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 21 02 00 35 04 06 00 7D 9C 9B 90 6D 00 48 32 C5 1A C9 EA E5 7B [08:02:30]CheckFolder [08:02:30]dirname=/storage/ofd_packets [08:02:30]CheckFolder done [08:02:30]ProducePacketName [08:02:30]name=ofd_packets/00139608 [08:02:30]NVStorageSaveData ofd_packets/00139608 [08:02:30]File name is /storage/ofd_packets/00139608 [08:02:30]Write 320 bytes [08:02:30]NVStorageSaveData done [08:02:30]OFDSenderStorePacket done [08:02:30]KKMCreateOFDPacket done [08:02:30]NVStorageSaveData kkm_last_timestamp [08:02:30]File name is /storage/kkm_last_timestamp [08:02:30]Write 4 bytes [08:02:30]NVStorageSaveData done [08:02:30]ExternCall_PrintAddStr [08:02:30]wPrintStart [08:02:30]Write to MH i2c: 01 00 00 4B 7D C8 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: 01 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: 01 07 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: 01 07 00 4B 7D 00 00 00 00 00 FF 0F DD [08:02:30]RasterBufferAndPrint [08:02:30]line Счет N : (3)335488 [08:02:30]line ИНН: 02508201610067 [08:02:30]line Контрольно-Кассовый Чек [08:02:30]line ПРОДАЖА [08:02:30]line Товар: 4606532011642 [08:02:30]line Перчатки Felix х/б [08:02:30]line 2.000 * 63.00 [08:02:30]line = 126.00 [08:02:30]line НДС 12% НСП 1% [08:02:30]line > о реализуемом товаре [08:02:30]line ИТОГО: 126.00 [08:02:30]line НСП 1% : 1.11 [08:02:30]line НДС 12% : 13.38 [08:02:30]line Наличными: 126.00 [08:02:30]line Безнал.: 0.00 [08:02:30]line Место: АЗС № 101 "Партнер Нефть" [08:02:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:02:30]line СНО: Общий режим [08:02:30]line Чек 85 31.10.2024 08:02 [08:02:30]line Смена: 557 ФФД: 1.0 [08:02:30]line ЗНМ: 0300000081 [08:02:30]line РНМ: 0000000000091631 [08:02:30]line Версия ККМ: 001 [08:02:30]line ФМ: 0000000000874669 [08:02:30]line ФД: 139608 [08:02:30]line ФПД: 138111578303744 [08:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T080238&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139608&fm=138111578303744&tin=02508201610067®Number=0000000000091631&sum=12600 [08:02:31]OFD Sender: Processing packet 139608 [packets to send 34, broken 33] [08:02:31]ProducePacketName [08:02:31]name=ofd_packets/00139608 [08:02:31]OFD Sender: To server: pG, [08:02:31]CommunicateWithHost lk.salyk.kg:30040 [08:02:31]ConnectInit lk.salyk.kg [08:02:31]line 0 [08:02:31]written 0, free lines is 4095 [08:02:31]Connected sock=10 [08:02: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 22 01 00 00 EB DF 1A 01 F1 A7 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 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 05 00 00 00 00 07 04 06 00 38 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 39 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 21 02 00 35 04 06 00 7D 9C 9B 90 6D 00 48 32 C5 1A C9 EA E5 7B [08:02: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 69 FD 47 00 B5 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 58 21 02 00 F4 03 04 00 4C E5 22 67 B6 04 01 00 00 48 05 9B 65 2E 20 2C 45 [08:02:31]CommunicateWithHost err = 0 [08:02:31]CheckOFDResponse [08:02:31]1017 (14) - 77093643461234 [08:02:31]1041 (16) - 0000000000874669 [08:02:31]1040 (4) - 139608 [08:02:31]1012 (4) - 31.10.2024 02:02 [08:02:31]1206 (1) - 0 [08:02:31]OFD Sender: Remove packet 139608 [08:02:31]ProducePacketName [08:02:31]name=ofd_packets/00139608 [08:02:31]NVStorageDeleteData [08:02:31]Write to MH i2c: 01 00 00 73 7D F0 [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: 01 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: 01 07 00 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: 01 07 00 73 7D 00 00 00 00 00 10 0D 14 [08:02:31]RasterBufferAndPrint [08:02:31]line [08:02:31]line [08:02:31]line [08:02:31]line [08:02:31]line [08:02:31]written 0, free lines is 3351 [08:02:31]MH_Cut [08:02:31]Write to MH i2c: D1 01 00 7A 7D 01 C9 [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: D1 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: D1 01 00 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: D1 01 00 7A 7D 00 C8 [08:02:31]Write to MH i2c: 01 00 00 7B 7D F8 [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]OFD Sender: No OFD packet to send [08:02:32]*** Cut start [08:02:32]*** Partial cut [08:02:32]*** CUTSNS_PIN = 1 [08:02:32]*** CUTSNS_PIN = 0 [08:02:32]*** Brake cut motor [08:02:32]Read from MH i2c: 01 [08:02:32]MH_I2C_Read... [08:02:32]*** Stop cut motor [08:02:32]*** Cut end [08:02:32]Read from MH i2c: 01 07 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: 01 07 00 7B 7D 00 00 00 00 00 FF 0F 0D [08:02:32]process_action close_receipt done [08:02:32]requested_data is exist [08:02:32]produce_requested_data [08:02:32]requested_item fm.sn is exist - process it [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 11 00 00 [08:02:32]Write to MH i2c: E2 08 00 7C 7D 80 11 00 00 00 00 00 00 73 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 17 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 17 00 7C 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [08:02: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:02:32]wFMCommunicate OK [08:02:32]requested_item fd.num is exist - process it [08:02:32]SAM_PROTO_GetFieldsCounters [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 13 00 00 [08:02:32]Write to MH i2c: E2 08 00 7D 7D 80 13 00 00 00 00 00 00 76 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 62 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 62 00 7D 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 58 21 02 00 0E 04 04 00 2D 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 43 [08:02: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 58 21 02 00 0E 04 04 00 2D 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:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_GetFieldsCounters done [08:02:32]requested_item shift.num is exist - process it [08:02:32]requested_item shift.opened is exist - process it [08:02:32]req_shift_opened [08:02:32]FM_GetShiftState [08:02:32]SAM_PROTO_GetShiftState [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 13 01 00 [08:02:32]Write to MH i2c: E2 08 00 7E 7D 80 13 01 00 00 00 00 00 78 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 7E 7D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [08:02:32]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [08:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_GetShiftState done [08:02:32]FM_GetShiftState done [08:02:32]req_shift_opened done [08:02:32]requested_item shift.open_date is exist - process it [08:02:32]req_shift_open_date [08:02:32]req_shift_open_date done [08:02:32]produce_requested_data done [08:02:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139608,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [08:02:32]process_action_free close_receipt [08:02:32]json_value_free [08:02:32]json_value_free done [08:02:32]process_json_proto returns [08:02:32]Send response to host [08:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139608,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [08:02:32]free response buf [08:02:32]execute_script done [08:02:32]execute_script returns [08:02:32]free content buf [08:02:32]Sock 9.Close socket [08:02:32]Sock 9.Thread stoped [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:46]accept exits with 8 [08:13:46]New connection [08:13:46]New thread 3067284836 created [08:13:46]Thread 3067141476 joined [08:13:46]Waiting for new connection... [08:13:46] Sock 8.Parse request [08:13:46]Sock 8.Check first char [08:13:46]Sock 8.First char is OK [08:13:46]request: POST /json_proto HTTP/1.0 [08:13:46]Method: POST [08:13:46]URL: /json_proto [08:13:46]Method is POST - this is cgi request [08:13:46]url: /json_proto [08:13:46]query_string will be loaded in cgi processing [08:13:46]execute_cgi json_proto POST (null) [08:13:46]execute_cgi path=json_proto method=POST [08:13:46]POST find Content-Length [08:13:46]Host: 172.17.50.196:8080 [08:13:46]Content-Length: 749 [08:13:46]Content-Type: application/json [08:13:46] [08:13:46]POST finish read [08:13:46]Found Content-Length = 749 [08:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335489", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:46]execute_script... [08:13:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335489", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:46]POST & json_proto [08:13:46]process_json_proto [08:13:46]json parsed OK: [08:13:46]protocol is kg_v1.0 [08:13:46]action value=close_receipt [08:13:46]process_action close_receipt [08:13:46]cmd_close_receipt [08:13:46]MH_GetDate [08:13:46]Write to MH i2c: F0 00 00 7F 7D EB [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: F0 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: F0 09 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: F0 09 00 7F 7D 00 44 3C 23 67 72 0D 1C 67 00 [08:13:46]GetLastDocTimeStamp 1730361758 [08:13:46]current date 1730362436 [08:13:46]FM_GetShiftState [08:13:46]SAM_PROTO_GetShiftState [08:13:46]wFMCommunicate request_size=4 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 13 01 00 [08:13:46]Write to MH i2c: E2 08 00 80 7D 80 13 01 00 00 00 00 00 7A [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 0E 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 0E 00 80 7D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A3 [08:13:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [08:13:46]wFMCommunicate OK [08:13:46]SAM_PROTO_GetShiftState done [08:13:46]FM_GetShiftState done [08:13:46]opened in 1730332621 [08:13:46]opened+sec_in_day 1730419021 [08:13:46]quantity*price = 27800 [08:13:46]sum+1 = 27801 [08:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 0.00 Безнал.: 278.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 86 31.10.2024 08:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139609 ФПД: 109990862547874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T081356&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139609&fm=109990862547874&tin=02508201610067®Number=0000000000091631&sum=27800 0 [08:13:48]StoreToDocumentArchive [08:13:48]shift 557 fd 139609 [08:13:48]save to /storage/0557/doc_00139609 [08:13:48]save last doc name /storage/0557/doc_00139609 to /storage/kkm_last_doc_name [08:13:48]save OK [08:13:48]Clear old archive folders... [08:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:13:48]tlvbuf is 01265570 [08:13:48]SAM_PROTO_ClearQueue [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 09 00 00 [08:13:48]Write to MH i2c: E2 08 00 8D 7D 80 09 00 00 00 00 00 00 7C [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 8D 7D 00 90 00 7E [08:13:48]RAPDU: 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_ClearQueue done [08:13:48]KKMCreateOFDPacket [08:13:48]OFDProtocolAddRootSTLVToBuf [08:13:48]FM_MakeSignedData [08:13:48]FM_MakeSignedData [08:13:48]SAM_PROTO_SignData [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 0D 01 02 [08:13:48]Write to MH i2c: E2 08 00 8E 7D 80 0D 01 02 00 00 00 00 84 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 8E 7D 00 90 00 7F [08:13:48]RAPDU: 90 00 [08:13:48]wFMCommunicate OK [08:13:48]wFMCommunicate request_size=255 [08:13:48]MH_SAM_APDU [08:13:48]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 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 3C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [08:13:48]Write to MH i2c: E2 02 01 8F 7D 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 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 3C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 5D [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 8F 7D 00 90 00 80 [08:13:48]RAPDU: 90 00 [08:13:48]wFMCommunicate OK [08:13:48]wFMCommunicate request_size=33 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 21 02 00 35 04 06 00 64 09 3E 4A 6B A2 [08:13:48]Write to MH i2c: E2 24 00 90 7D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 21 02 00 35 04 06 00 64 09 3E 4A 6B A2 00 00 9C [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 03 00 90 7D 00 90 00 81 [08:13:48]RAPDU: 90 00 [08:13:48]wFMCommunicate OK [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 0D 03 02 [08:13:48]Write to MH i2c: E2 08 00 91 7D 80 0D 03 02 00 00 00 00 89 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0B 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0B 00 91 7D 00 00 7D 92 C9 91 29 F2 DD 90 00 EB [08:13:48]RAPDU: 00 7D 92 C9 91 29 F2 DD 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_SignData done [08:13:48]FM_MakeSignedData done [08:13:48]CreateOFDProtocolMessage [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 11 00 00 [08:13:48]Write to MH i2c: E2 08 00 92 7D 80 11 00 00 00 00 00 00 89 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 92 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E4 [08:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:13:48]wFMCommunicate OK [08:13:48]CreateOFDProtocolMessage done [08:13:48]OFDSenderStorePacket 139609 [08:13:48]StoreOFDPacket docnum=139609 [08:13: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 26 01 00 00 AC 4D 1E 01 60 3A 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 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 3C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 21 02 00 35 04 06 00 64 09 3E 4A 6B A2 00 7D 92 C9 91 29 F2 DD [08:13:48]CheckFolder [08:13:48]dirname=/storage/ofd_packets [08:13:48]CheckFolder done [08:13:48]ProducePacketName [08:13:48]name=ofd_packets/00139609 [08:13:48]NVStorageSaveData ofd_packets/00139609 [08:13:48]File name is /storage/ofd_packets/00139609 [08:13:48]Write 324 bytes [08:13:48]NVStorageSaveData done [08:13:48]OFDSenderStorePacket done [08:13:48]KKMCreateOFDPacket done [08:13:48]NVStorageSaveData kkm_last_timestamp [08:13:48]File name is /storage/kkm_last_timestamp [08:13:48]Write 4 bytes [08:13:48]NVStorageSaveData done [08:13:48]ExternCall_PrintAddStr [08:13:48]wPrintStart [08:13:48]Write to MH i2c: 01 00 00 93 7D 10 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 07 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 07 00 93 7D 00 00 00 00 00 FF 0F 25 [08:13:48]RasterBufferAndPrint [08:13:48]line Счет N : (3)335489 [08:13:48]line ИНН: 02508201610067 [08:13:48]line Контрольно-Кассовый Чек [08:13:48]line ПРОДАЖА [08:13:48]line Товар: 48744997 [08:13:48]line Сигареты Winston Compact Blue [08:13:48]line 2.000 * 139.00 [08:13:48]line = 278.00 [08:13:48]line НДС 12% НСП 1% [08:13:48]line > о реализуемом товаре [08:13:48]line ИТОГО: 278.00 [08:13:48]line НСП 1% : 2.46 [08:13:48]line НДС 12% : 29.52 [08:13:48]line Наличными: 0.00 [08:13:48]line Безнал.: 278.00 [08:13:48]line Место: АЗС № 101 "Партнер Нефть" [08:13:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:13:48]line СНО: Общий режим [08:13:48]line Чек 86 31.10.2024 08:13 [08:13:48]line Смена: 557 ФФД: 1.0 [08:13:48]line ЗНМ: 0300000081 [08:13:48]line РНМ: 0000000000091631 [08:13:48]line Версия ККМ: 001 [08:13:48]line Платежная система: Mbank [08:13:48]line ФМ: 0000000000874669 [08:13:48]line ФД: 139609 [08:13:48]line ФПД: 109990862547874 [08:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T081356&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139609&fm=109990862547874&tin=02508201610067®Number=0000000000091631&sum=27800 [08:13:48]line 0 [08:13:48]written 0, free lines is 4095 [08:13:48]OFD Sender: Processing packet 139609 [packets to send 34, broken 33] [08:13:48]ProducePacketName [08:13:48]name=ofd_packets/00139609 [08:13:48]OFD Sender: To server: pG, [08:13:48]CommunicateWithHost lk.salyk.kg:30040 [08:13:48]ConnectInit lk.salyk.kg [08:13:48]Connected sock=10 [08:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 AC 4D 1E 01 60 3A 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 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 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 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 44 3C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 21 02 00 35 04 06 00 64 09 3E 4A 6B A2 00 7D 92 C9 91 29 F2 DD [08:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A6 C4 47 00 B3 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 59 21 02 00 F4 03 04 00 F2 E7 22 67 B6 04 01 00 00 49 00 46 06 F0 8F E6 6D [08:13:48]CommunicateWithHost err = 0 [08:13:48]CheckOFDResponse [08:13:48]1017 (14) - 77093643461234 [08:13:48]1041 (16) - 0000000000874669 [08:13:48]1040 (4) - 139609 [08:13:48]1012 (4) - 31.10.2024 02:14 [08:13:48]1206 (1) - 0 [08:13:48]OFD Sender: Remove packet 139609 [08:13:48]ProducePacketName [08:13:48]name=ofd_packets/00139609 [08:13:48]NVStorageDeleteData [08:13:49]Write to MH i2c: 01 00 00 BD 7D 3A [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: 01 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: 01 07 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: 01 07 00 BD 7D 00 00 00 00 00 FB 0C 48 [08:13:49]RasterBufferAndPrint [08:13:49]line [08:13:49]line [08:13:49]line [08:13:49]line [08:13:49]line [08:13:49]written 0, free lines is 3330 [08:13:49]MH_Cut [08:13:49]Write to MH i2c: D1 01 00 C4 7D 01 13 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: D1 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: D1 01 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: D1 01 00 C4 7D 00 12 [08:13:49]Write to MH i2c: 01 00 00 C5 7D 42 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]OFD Sender: No OFD packet to send [08:13:49]*** Cut start [08:13:49]*** Partial cut [08:13:49]*** CUTSNS_PIN = 1 [08:13:49]*** CUTSNS_PIN = 0 [08:13:50]*** Brake cut motor [08:13:50]Read from MH i2c: 01 [08:13:50]MH_I2C_Read... [08:13:50]*** Stop cut motor [08:13:50]*** Cut end [08:13:50]Read from MH i2c: 01 07 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: 01 07 00 C5 7D 00 00 00 00 00 FF 0F 57 [08:13:50]process_action close_receipt done [08:13:50]requested_data is exist [08:13:50]produce_requested_data [08:13:50]requested_item fm.sn is exist - process it [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 11 00 00 [08:13:50]Write to MH i2c: E2 08 00 C6 7D 80 11 00 00 00 00 00 00 BD [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 17 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 17 00 C6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [08:13: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:13:50]wFMCommunicate OK [08:13:50]requested_item fd.num is exist - process it [08:13:50]SAM_PROTO_GetFieldsCounters [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 13 00 00 [08:13:50]Write to MH i2c: E2 08 00 C7 7D 80 13 00 00 00 00 00 00 C0 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 62 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 62 00 C7 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 59 21 02 00 0E 04 04 00 2D 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 91 [08:13: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 59 21 02 00 0E 04 04 00 2D 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:13:50]wFMCommunicate OK [08:13:50]SAM_PROTO_GetFieldsCounters done [08:13:50]requested_item shift.num is exist - process it [08:13:50]requested_item shift.opened is exist - process it [08:13:50]req_shift_opened [08:13:50]FM_GetShiftState [08:13:50]SAM_PROTO_GetShiftState [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 13 01 00 [08:13:50]Write to MH i2c: E2 08 00 C8 7D 80 13 01 00 00 00 00 00 C2 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0E 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0E 00 C8 7D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EB [08:13:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [08:13:50]wFMCommunicate OK [08:13:50]SAM_PROTO_GetShiftState done [08:13:50]FM_GetShiftState done [08:13:50]req_shift_opened done [08:13:50]requested_item shift.open_date is exist - process it [08:13:50]req_shift_open_date [08:13:50]req_shift_open_date done [08:13:50]produce_requested_data done [08:13:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139609,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [08:13:50]process_action_free close_receipt [08:13:50]json_value_free [08:13:50]json_value_free done [08:13:50]process_json_proto returns [08:13:50]Send response to host [08:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139609,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [08:13:50]free response buf [08:13:50]execute_script done [08:13:50]execute_script returns [08:13:50]free content buf [08:13:50]Sock 8.Close socket [08:13:50]Sock 8.Thread stoped [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:52:59]accept exits with 9 [08:52:59]New connection [08:52:59]New thread 3067141476 created [08:52:59]Thread 3067284836 joined [08:52:59]Waiting for new connection... [08:52:59] Sock 9.Parse request [08:52:59]Sock 9.Check first char [08:52:59]Sock 9.First char is OK [08:52:59]request: POST /json_proto HTTP/1.0 [08:52:59]Method: POST [08:52:59]URL: /json_proto [08:52:59]Method is POST - this is cgi request [08:52:59]url: /json_proto [08:52:59]query_string will be loaded in cgi processing [08:52:59]execute_cgi json_proto POST (null) [08:52:59]execute_cgi path=json_proto method=POST [08:52:59]POST find Content-Length [08:52:59]Host: 172.17.50.196:8080 [08:52:59]Content-Length: 678 [08:52:59]Content-Type: application/json [08:52:59] [08:52:59]POST finish read [08:52:59]Found Content-Length = 678 [08:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095005", "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" : 5.980, "sum" : 400.06, "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" ] } } [08:52:59]execute_script... [08:52:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095005", "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" : 5.980, "sum" : 400.06, "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" ] } } [08:52:59]POST & json_proto [08:52:59]process_json_proto [08:52:59]json parsed OK: [08:52:59]protocol is kg_v1.0 [08:52:59]action value=close_receipt [08:52:59]process_action close_receipt [08:52:59]cmd_close_receipt [08:52:59]MH_GetDate [08:52:59]Write to MH i2c: F0 00 00 C9 7D 35 [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: F0 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: F0 09 00 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: F0 09 00 C9 7D 00 75 45 23 67 72 0D 1C 67 84 [08:52:59]GetLastDocTimeStamp 1730362436 [08:52:59]current date 1730364789 [08:52:59]FM_GetShiftState [08:52:59]SAM_PROTO_GetShiftState [08:52:59]wFMCommunicate request_size=4 [08:52:59]MH_SAM_APDU [08:52:59]CAPDU: 80 13 01 00 [08:52:59]Write to MH i2c: E2 08 00 CA 7D 80 13 01 00 00 00 00 00 C4 [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:00]Read from MH i2c: E2 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 0E 00 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 0E 00 CA 7D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 ED [08:53:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [08:53:00]wFMCommunicate OK [08:53:00]SAM_PROTO_GetShiftState done [08:53:00]FM_GetShiftState done [08:53:00]opened in 1730332621 [08:53:00]opened+sec_in_day 1730419021 [08:53:00]quantity*price = 40006 [08:53:00]sum+1 = 40007 [08:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 87 31.10.2024 08:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139610 ФПД: 280356935334713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T085309&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139610&fm=280356935334713&tin=02508201610067®Number=0000000000091631&sum=40000 [08:53:01]StoreToDocumentArchive [08:53:01]shift 557 fd 139610 [08:53:01]save to /storage/0557/doc_00139610 [08:53:01]save last doc name /storage/0557/doc_00139610 to /storage/kkm_last_doc_name [08:53:01]save OK [08:53:01]Clear old archive folders... [08:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:01]tlvbuf is 011E0B20 [08:53:01]SAM_PROTO_ClearQueue [08:53:01]wFMCommunicate request_size=4 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 09 00 00 [08:53:01]Write to MH i2c: E2 08 00 D7 7D 80 09 00 00 00 00 00 00 C6 [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 D7 7D 00 90 00 C8 [08:53:01]RAPDU: 90 00 [08:53:01]wFMCommunicate OK [08:53:01]SAM_PROTO_ClearQueue done [08:53:01]KKMCreateOFDPacket [08:53:01]OFDProtocolAddRootSTLVToBuf [08:53:01]FM_MakeSignedData [08:53:01]FM_MakeSignedData [08:53:01]SAM_PROTO_SignData [08:53:01]wFMCommunicate request_size=4 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 0D 01 02 [08:53:01]Write to MH i2c: E2 08 00 D8 7D 80 0D 01 02 00 00 00 00 CE [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 D8 7D 00 90 00 C9 [08:53:01]RAPDU: 90 00 [08:53:01]wFMCommunicate OK [08:53:01]wFMCommunicate request_size=255 [08:53:01]MH_SAM_APDU [08:53:01]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 21 02 00 35 04 06 00 FE [08:53:01]Write to MH i2c: E2 02 01 D9 7D 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 21 02 00 35 04 06 00 FE 00 00 71 [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 D9 7D 00 90 00 CA [08:53:01]RAPDU: 90 00 [08:53:01]wFMCommunicate OK [08:53:01]wFMCommunicate request_size=10 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 0D 02 02 05 FB AF 8A 7B 39 [08:53:01]Write to MH i2c: E2 0D 00 DA 7D 80 0D 02 02 05 00 FB AF 8A 7B 39 00 00 C3 [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]OFD Sender: No OFD packet to send [08:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 03 00 DA 7D 00 90 00 CB [08:53:01]RAPDU: 90 00 [08:53:01]wFMCommunicate OK [08:53:01]wFMCommunicate request_size=4 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 0D 03 02 [08:53:01]Write to MH i2c: E2 08 00 DB 7D 80 0D 03 02 00 00 00 00 D3 [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 0B 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 0B 00 DB 7D 00 25 F2 40 A0 DD D9 B2 9F 90 00 D2 [08:53:01]RAPDU: 25 F2 40 A0 DD D9 B2 9F 90 00 [08:53:01]wFMCommunicate OK [08:53:01]SAM_PROTO_SignData done [08:53:01]FM_MakeSignedData done [08:53:01]CreateOFDProtocolMessage [08:53:01]wFMCommunicate request_size=4 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 11 00 00 [08:53:01]Write to MH i2c: E2 08 00 DC 7D 80 11 00 00 00 00 00 00 D3 [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 17 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 17 00 DC 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [08:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:53:01]wFMCommunicate OK [08:53:01]CreateOFDProtocolMessage done [08:53:01]OFDSenderStorePacket 139610 [08:53:01]StoreOFDPacket docnum=139610 [08:53: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 EB A1 07 01 95 35 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 21 02 00 35 04 06 00 FE FB AF 8A 7B 39 25 F2 40 A0 DD D9 B2 9F [08:53:01]CheckFolder [08:53:01]dirname=/storage/ofd_packets [08:53:01]CheckFolder done [08:53:01]ProducePacketName [08:53:01]name=ofd_packets/00139610 [08:53:01]NVStorageSaveData ofd_packets/00139610 [08:53:01]File name is /storage/ofd_packets/00139610 [08:53:01]Write 301 bytes [08:53:01]NVStorageSaveData done [08:53:01]OFDSenderStorePacket done [08:53:01]KKMCreateOFDPacket done [08:53:01]NVStorageSaveData kkm_last_timestamp [08:53:01]File name is /storage/kkm_last_timestamp [08:53:01]Write 4 bytes [08:53:01]NVStorageSaveData done [08:53:01]ExternCall_PrintAddStr [08:53:01]wPrintStart [08:53:01]Write to MH i2c: 01 00 00 DD 7D 5A [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: 01 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: 01 07 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: 01 07 00 DD 7D 00 00 00 00 00 FF 0F 6F [08:53:01]RasterBufferAndPrint [08:53:01]line Счет N : (1)1095005 [08:53:01]line ИНН: 02508201610067 [08:53:01]line Контрольно-Кассовый Чек [08:53:01]line ПРОДАЖА [08:53:01]line ТРК (МРК, ГНК) : 33 [08:53:01]line Товар: 2710124130 [08:53:01]line Аи-92-К-2 [08:53:01]line 5.980 * 66.90 [08:53:01]line = 400.06 [08:53:01]line НДС 12% НСП 1% [08:53:01]line > о реализуемом товаре [08:53:01]line ОКРУГЛЕНИЕ: -0.06 [08:53:01]line ИТОГО: 400.00 [08:53:01]line Внесено: 400.00 [08:53:01]line СДАЧА: 0.00 [08:53:01]line НСП 1% : 3.54 [08:53:01]line НДС 12% : 42.48 [08:53:01]line Наличными: 400.00 [08:53:01]line Безнал.: 0.00 [08:53:01]line Место: АЗС № 101 "Партнер Нефть" [08:53:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:53:01]line СНО: Общий режим [08:53:01]line Чек 87 31.10.2024 08:53 [08:53:01]line Смена: 557 ФФД: 1.0 [08:53:01]line ЗНМ: 0300000081 [08:53:01]line РНМ: 0000000000091631 [08:53:01]line Версия ККМ: 001 [08:53:01]line ФМ: 0000000000874669 [08:53:01]line ФД: 139610 [08:53:01]line ФПД: 280356935334713 [08:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T085309&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139610&fm=280356935334713&tin=02508201610067®Number=0000000000091631&sum=40000 [08:53:02]OFD Sender: Processing packet 139610 [packets to send 34, broken 33] [08:53:02]ProducePacketName [08:53:02]name=ofd_packets/00139610 [08:53:02]OFD Sender: To server: pG, [08:53:02]CommunicateWithHost lk.salyk.kg:30040 [08:53:02]ConnectInit lk.salyk.kg [08:53:02]written 0, free lines is 4095 [08:53:02]Connected sock=10 [08:53: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 0F 01 00 00 EB A1 07 01 95 35 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 45 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 21 02 00 35 04 06 00 FE FB AF 8A 7B 39 25 F2 40 A0 DD D9 B2 9F [08:53: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 DC BB 47 00 10 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 21 02 00 F4 03 04 00 23 F1 22 67 B6 04 01 00 00 AB 69 65 92 9E 85 E9 77 [08:53:02]CommunicateWithHost err = 0 [08:53:02]CheckOFDResponse [08:53:02]1017 (14) - 77093643461234 [08:53:02]1041 (16) - 0000000000874669 [08:53:02]1040 (4) - 139610 [08:53:02]1012 (4) - 31.10.2024 02:53 [08:53:02]1206 (1) - 0 [08:53:02]OFD Sender: Remove packet 139610 [08:53:02]ProducePacketName [08:53:02]name=ofd_packets/00139610 [08:53:02]NVStorageDeleteData [08:53:02]Write to MH i2c: 01 00 00 08 7E 86 [08:53:02]Write i2c OK [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: 01 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: 01 07 00 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: 01 07 00 08 7E 00 00 00 00 00 FF 0C 98 [08:53:02]RasterBufferAndPrint [08:53:02]line [08:53:02]line [08:53:02]line [08:53:02]line [08:53:02]line [08:53:02]written 0, free lines is 3333 [08:53:02]MH_Cut [08:53:02]Write to MH i2c: D1 01 00 0F 7E 01 5F [08:53:02]Write i2c OK [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: D1 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: D1 01 00 [08:53:02]MH_I2C_Read... [08:53:02]Read from MH i2c: D1 01 00 0F 7E 00 5E [08:53:02]Write to MH i2c: 01 00 00 10 7E 8E [08:53:02]Write i2c OK [08:53:02]MH_I2C_Read... [08:53:02]OFD Sender: No OFD packet to send [08:53:03]*** Cut start [08:53:03]*** Partial cut [08:53:03]*** CUTSNS_PIN = 1 [08:53:03]*** CUTSNS_PIN = 0 [08:53:03]*** Brake cut motor [08:53:03]Read from MH i2c: 01 [08:53:03]MH_I2C_Read... [08:53:03]*** Stop cut motor [08:53:03]*** Cut end [08:53:03]Read from MH i2c: 01 07 00 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: 01 07 00 10 7E 00 00 00 00 00 FF 0F A3 [08:53:03]process_action close_receipt done [08:53:03]requested_data is exist [08:53:03]produce_requested_data [08:53:03]requested_item fm.sn is exist - process it [08:53:03]wFMCommunicate request_size=4 [08:53:03]MH_SAM_APDU [08:53:03]CAPDU: 80 11 00 00 [08:53:03]Write to MH i2c: E2 08 00 11 7E 80 11 00 00 00 00 00 00 09 [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:03]Read from MH i2c: E2 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 17 00 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 17 00 11 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 64 [08:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:53:03]wFMCommunicate OK [08:53:03]requested_item fd.num is exist - process it [08:53:03]SAM_PROTO_GetFieldsCounters [08:53:03]wFMCommunicate request_size=4 [08:53:03]MH_SAM_APDU [08:53:03]CAPDU: 80 13 00 00 [08:53:03]Write to MH i2c: E2 08 00 12 7E 80 13 00 00 00 00 00 00 0C [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:03]Read from MH i2c: E2 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 62 00 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: E2 62 00 12 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5A 21 02 00 0E 04 04 00 2D 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 E1 [08:53: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 5A 21 02 00 0E 04 04 00 2D 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:53:03]wFMCommunicate OK [08:53:03]SAM_PROTO_GetFieldsCounters done [08:53:03]requested_item shift.num is exist - process it [08:53:03]requested_item shift.opened is exist - process it [08:53:03]req_shift_opened [08:53:03]FM_GetShiftState [08:53:03]SAM_PROTO_GetShiftState [08:53:03]wFMCommunicate request_size=4 [08:53:03]MH_SAM_APDU [08:53:03]CAPDU: 80 13 01 00 [08:53:03]Write to MH i2c: E2 08 00 13 7E 80 13 01 00 00 00 00 00 0E [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:04]Read from MH i2c: E2 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 0E 00 [08:53:04]MH_I2C_Read... [08:53:04]Read from MH i2c: E2 0E 00 13 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 37 [08:53:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [08:53:04]wFMCommunicate OK [08:53:04]SAM_PROTO_GetShiftState done [08:53:04]FM_GetShiftState done [08:53:04]req_shift_opened done [08:53:04]requested_item shift.open_date is exist - process it [08:53:04]req_shift_open_date [08:53:04]req_shift_open_date done [08:53:04]produce_requested_data done [08:53:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139610,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [08:53:04]process_action_free close_receipt [08:53:04]json_value_free [08:53:04]json_value_free done [08:53:04]process_json_proto returns [08:53:04]Send response to host [08:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139610,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [08:53:04]free response buf [08:53:04]execute_script done [08:53:04]execute_script returns [08:53:04]free content buf [08:53:04]Sock 9.Close socket [08:53:04]Sock 9.Thread stoped [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:24]accept exits with 8 [09:15:24]New connection [09:15:24]New thread 3067284836 created [09:15:24]Thread 3067141476 joined [09:15:24]Waiting for new connection... [09:15:24] Sock 8.Parse request [09:15:24]Sock 8.Check first char [09:15:24]Sock 8.First char is OK [09:15:24]request: POST /json_proto HTTP/1.0 [09:15:24]Method: POST [09:15:24]URL: /json_proto [09:15:24]Method is POST - this is cgi request [09:15:24]url: /json_proto [09:15:24]query_string will be loaded in cgi processing [09:15:24]execute_cgi json_proto POST (null) [09:15:24]execute_cgi path=json_proto method=POST [09:15:24]POST find Content-Length [09:15:24]Host: 172.17.50.196:8080 [09:15:24]Content-Length: 625 [09:15:24]Content-Type: application/json [09:15:24] [09:15:24]POST finish read [09:15:24]Found Content-Length = 625 [09:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335490", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:24]execute_script... [09:15:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335490", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:24]POST & json_proto [09:15:24]process_json_proto [09:15:24]json parsed OK: [09:15:24]protocol is kg_v1.0 [09:15:24]action value=close_receipt [09:15:24]process_action close_receipt [09:15:24]cmd_close_receipt [09:15:24]MH_GetDate [09:15:24]Write to MH i2c: F0 00 00 14 7E 81 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 09 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 09 00 14 7E 00 B6 4A 23 67 72 0D 1C 67 16 [09:15:24]GetLastDocTimeStamp 1730364789 [09:15:24]current date 1730366134 [09:15:24]FM_GetShiftState [09:15:24]SAM_PROTO_GetShiftState [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 13 01 00 [09:15:24]Write to MH i2c: E2 08 00 15 7E 80 13 01 00 00 00 00 00 10 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:24]Read from MH i2c: E2 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 15 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 39 [09:15:24]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:15:24]wFMCommunicate OK [09:15:24]SAM_PROTO_GetShiftState done [09:15:24]FM_GetShiftState done [09:15:24]opened in 1730332621 [09:15:24]opened+sec_in_day 1730419021 [09:15:24]quantity*price = 15400 [09:15:24]sum+1 = 15401 [09:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 88 31.10.2024 09:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139611 ФПД: 277454630741348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T091534&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139611&fm=277454630741348&tin=02508201610067®Number=0000000000091631&sum=15400 0 [09:15:25]StoreToDocumentArchive [09:15:25]shift 557 fd 139611 [09:15:25]save to /storage/0557/doc_00139611 [09:15:25]save last doc name /storage/0557/doc_00139611 to /storage/kkm_last_doc_name [09:15:25]save OK [09:15:25]Clear old archive folders... [09:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=277 [09:15:25]tlvbuf is 013F0B70 [09:15:25]SAM_PROTO_ClearQueue [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 09 00 00 [09:15:25]Write to MH i2c: E2 08 00 22 7E 80 09 00 00 00 00 00 00 12 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 22 7E 00 90 00 14 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]SAM_PROTO_ClearQueue done [09:15:25]KKMCreateOFDPacket [09:15:25]OFDProtocolAddRootSTLVToBuf [09:15:25]FM_MakeSignedData [09:15:25]FM_MakeSignedData [09:15:25]SAM_PROTO_SignData [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 01 02 [09:15:25]Write to MH i2c: E2 08 00 23 7E 80 0D 01 02 00 00 00 00 1A [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 23 7E 00 90 00 15 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=255 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B6 4A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 [09:15:25]Write to MH i2c: E2 02 01 24 7E 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B6 4A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 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 83 [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:26]Read from MH i2c: E2 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 03 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 03 00 24 7E 00 90 00 16 [09:15:26]RAPDU: 90 00 [09:15:26]wFMCommunicate OK [09:15:26]wFMCommunicate request_size=36 [09:15:26]MH_SAM_APDU [09:15:26]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 21 02 00 35 04 06 00 FC 57 F0 B4 E5 64 [09:15:26]Write to MH i2c: E2 27 00 25 7E 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 21 02 00 35 04 06 00 FC 57 F0 B4 E5 64 00 00 08 [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:26]Read from MH i2c: E2 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 03 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 03 00 25 7E 00 90 00 17 [09:15:26]RAPDU: 90 00 [09:15:26]wFMCommunicate OK [09:15:26]wFMCommunicate request_size=4 [09:15:26]MH_SAM_APDU [09:15:26]CAPDU: 80 0D 03 02 [09:15:26]Write to MH i2c: E2 08 00 26 7E 80 0D 03 02 00 00 00 00 1F [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:26]Read from MH i2c: E2 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 0B 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 0B 00 26 7E 00 D0 F4 9E 35 95 B0 69 F2 90 00 57 [09:15:26]RAPDU: D0 F4 9E 35 95 B0 69 F2 90 00 [09:15:26]wFMCommunicate OK [09:15:26]SAM_PROTO_SignData done [09:15:26]FM_MakeSignedData done [09:15:26]CreateOFDProtocolMessage [09:15:26]wFMCommunicate request_size=4 [09:15:26]MH_SAM_APDU [09:15:26]CAPDU: 80 11 00 00 [09:15:26]Write to MH i2c: E2 08 00 27 7E 80 11 00 00 00 00 00 00 1F [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:26]Read from MH i2c: E2 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 17 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: E2 17 00 27 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7A [09:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:15:26]wFMCommunicate OK [09:15:26]CreateOFDProtocolMessage done [09:15:26]OFDSenderStorePacket 139611 [09:15:26]StoreOFDPacket docnum=139611 [09:15: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 29 01 00 00 FF E1 21 01 29 1F 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B6 4A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FC 57 F0 B4 E5 64 D0 F4 9E 35 95 B0 69 F2 [09:15:26]CheckFolder [09:15:26]dirname=/storage/ofd_packets [09:15:26]CheckFolder done [09:15:26]ProducePacketName [09:15:26]name=ofd_packets/00139611 [09:15:26]NVStorageSaveData ofd_packets/00139611 [09:15:26]File name is /storage/ofd_packets/00139611 [09:15:26]Write 327 bytes [09:15:26]NVStorageSaveData done [09:15:26]OFDSenderStorePacket done [09:15:26]KKMCreateOFDPacket done [09:15:26]NVStorageSaveData kkm_last_timestamp [09:15:26]File name is /storage/kkm_last_timestamp [09:15:26]Write 4 bytes [09:15:26]NVStorageSaveData done [09:15:26]ExternCall_PrintAddStr [09:15:26]wPrintStart [09:15:26]Write to MH i2c: 01 00 00 28 7E A6 [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 28 7E 00 00 00 00 00 FF 0F BB [09:15:26]RasterBufferAndPrint [09:15:26]line Счет N : (3)335490 [09:15:26]line ИНН: 02508201610067 [09:15:26]line Контрольно-Кассовый Чек [09:15:26]line ПРОДАЖА [09:15:26]line Товар: 46230607 [09:15:26]line Сигареты Richmond Bronze Edition [09:15:26]line 1.000 * 154.00 [09:15:26]line = 154.00 [09:15:26]line НДС 12% НСП 1% [09:15:26]line > о реализуемом товаре [09:15:26]line ИТОГО: 154.00 [09:15:26]line НСП 1% : 1.36 [09:15:26]line НДС 12% : 16.35 [09:15:26]line Наличными: 154.00 [09:15:26]line Безнал.: 0.00 [09:15:26]line Место: АЗС № 101 "Партнер Нефть" [09:15:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:15:26]line СНО: Общий режим [09:15:26]line Чек 88 31.10.2024 09:15 [09:15:26]line Смена: 557 ФФД: 1.0 [09:15:26]line ЗНМ: 0300000081 [09:15:26]line РНМ: 0000000000091631 [09:15:26]line Версия ККМ: 001 [09:15:26]line ФМ: 0000000000874669 [09:15:26]line ФД: 139611 [09:15:26]line ФПД: 277454630741348 [09:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T091534&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139611&fm=277454630741348&tin=02508201610067®Number=0000000000091631&sum=15400 [09:15:26]line 0 [09:15:26]OFD Sender: Processing packet 139611 [packets to send 34, broken 33] [09:15:26]ProducePacketName [09:15:26]name=ofd_packets/00139611 [09:15:26]OFD Sender: To server: pG, [09:15:26]CommunicateWithHost lk.salyk.kg:30040 [09:15:26]ConnectInit lk.salyk.kg [09:15:26]written 0, free lines is 4095 [09:15:26]Connected sock=10 [09:15:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 29 01 00 00 FF E1 21 01 29 1F 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B6 4A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FC 57 F0 B4 E5 64 D0 F4 9E 35 95 B0 69 F2 [09:15: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 61 FC 47 00 F8 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 21 02 00 F4 03 04 00 64 F6 22 67 B6 04 01 00 00 F6 30 85 42 33 94 14 60 [09:15:27]CommunicateWithHost err = 0 [09:15:27]CheckOFDResponse [09:15:27]1017 (14) - 77093643461234 [09:15:27]1041 (16) - 0000000000874669 [09:15:27]1040 (4) - 139611 [09:15:27]1012 (4) - 31.10.2024 03:15 [09:15:27]1206 (1) - 0 [09:15:27]OFD Sender: Remove packet 139611 [09:15:27]ProducePacketName [09:15:27]name=ofd_packets/00139611 [09:15:27]NVStorageDeleteData [09:15:27]Write to MH i2c: 01 00 00 51 7E CF [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 51 7E 00 00 00 00 00 FB 0C DD [09:15:27]RasterBufferAndPrint [09:15:27]line [09:15:27]line [09:15:27]line [09:15:27]line [09:15:27]line [09:15:27]written 0, free lines is 3329 [09:15:27]MH_Cut [09:15:27]Write to MH i2c: D1 01 00 58 7E 01 A8 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: D1 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: D1 01 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: D1 01 00 58 7E 00 A7 [09:15:27]Write to MH i2c: 01 00 00 59 7E D7 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]OFD Sender: No OFD packet to send [09:15:27]*** Cut start [09:15:27]*** Partial cut [09:15:27]*** CUTSNS_PIN = 1 [09:15:27]*** CUTSNS_PIN = 0 [09:15:28]*** Brake cut motor [09:15:28]Read from MH i2c: 01 [09:15:28]MH_I2C_Read... [09:15:28]*** Stop cut motor [09:15:28]*** Cut end [09:15:28]Read from MH i2c: 01 07 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: 01 07 00 59 7E 00 00 00 00 00 FF 0F EC [09:15:28]process_action close_receipt done [09:15:28]requested_data is exist [09:15:28]produce_requested_data [09:15:28]requested_item fm.sn is exist - process it [09:15:28]wFMCommunicate request_size=4 [09:15:28]MH_SAM_APDU [09:15:28]CAPDU: 80 11 00 00 [09:15:28]Write to MH i2c: E2 08 00 5A 7E 80 11 00 00 00 00 00 00 52 [09:15:28]Write i2c OK [09:15:28]MH_I2C_Read... [09:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:28]Read from MH i2c: E2 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 17 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 17 00 5A 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AD [09:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:15:28]wFMCommunicate OK [09:15:28]requested_item fd.num is exist - process it [09:15:28]SAM_PROTO_GetFieldsCounters [09:15:28]wFMCommunicate request_size=4 [09:15:28]MH_SAM_APDU [09:15:28]CAPDU: 80 13 00 00 [09:15:28]Write to MH i2c: E2 08 00 5B 7E 80 13 00 00 00 00 00 00 55 [09:15:28]Write i2c OK [09:15:28]MH_I2C_Read... [09:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:28]Read from MH i2c: E2 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 62 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 62 00 5B 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 2E [09:15:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 [09:15:28]wFMCommunicate OK [09:15:28]SAM_PROTO_GetFieldsCounters done [09:15:28]requested_item shift.num is exist - process it [09:15:28]requested_item shift.opened is exist - process it [09:15:28]req_shift_opened [09:15:28]FM_GetShiftState [09:15:28]SAM_PROTO_GetShiftState [09:15:28]wFMCommunicate request_size=4 [09:15:28]MH_SAM_APDU [09:15:28]CAPDU: 80 13 01 00 [09:15:28]Write to MH i2c: E2 08 00 5C 7E 80 13 01 00 00 00 00 00 57 [09:15:28]Write i2c OK [09:15:28]MH_I2C_Read... [09:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:28]Read from MH i2c: E2 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 0E 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 0E 00 5C 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 80 [09:15:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:15:28]wFMCommunicate OK [09:15:28]SAM_PROTO_GetShiftState done [09:15:28]FM_GetShiftState done [09:15:28]req_shift_opened done [09:15:28]requested_item shift.open_date is exist - process it [09:15:28]req_shift_open_date [09:15:28]req_shift_open_date done [09:15:28]produce_requested_data done [09:15:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139611,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:15:28]process_action_free close_receipt [09:15:28]json_value_free [09:15:28]json_value_free done [09:15:28]process_json_proto returns [09:15:28]Send response to host [09:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139611,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:15:28]free response buf [09:15:28]execute_script done [09:15:28]execute_script returns [09:15:28]free content buf [09:15:28]Sock 8.Close socket [09:15:28]Sock 8.Thread stoped [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:10]accept exits with 9 [09:18:10]New connection [09:18:10]New thread 3067141476 created [09:18:10]Thread 3067284836 joined [09:18:10]Waiting for new connection... [09:18:10] Sock 9.Parse request [09:18:10]Sock 9.Check first char [09:18:10]Sock 9.First char is OK [09:18:10]request: POST /json_proto HTTP/1.0 [09:18:10]Method: POST [09:18:10]URL: /json_proto [09:18:10]Method is POST - this is cgi request [09:18:10]url: /json_proto [09:18:10]query_string will be loaded in cgi processing [09:18:10]execute_cgi json_proto POST (null) [09:18:10]execute_cgi path=json_proto method=POST [09:18:10]POST find Content-Length [09:18:10]Host: 172.17.50.196:8080 [09:18:10]Content-Length: 767 [09:18:10]Content-Type: application/json [09:18:10] [09:18:10]POST finish read [09:18:10]Found Content-Length = 767 [09:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095013", "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" : 6.070, "sum" : 450.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 450.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:10]execute_script... [09:18: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)1095013", "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" : 6.070, "sum" : 450.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 450.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:10]POST & json_proto [09:18:10]process_json_proto [09:18:10]json parsed OK: [09:18:10]protocol is kg_v1.0 [09:18:10]action value=close_receipt [09:18:10]process_action close_receipt [09:18:10]cmd_close_receipt [09:18:10]MH_GetDate [09:18:10]Write to MH i2c: F0 00 00 5D 7E CA [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: F0 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: F0 09 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: F0 09 00 5D 7E 00 5C 4B 23 67 72 0D 1C 67 06 [09:18:10]GetLastDocTimeStamp 1730366134 [09:18:10]current date 1730366300 [09:18:10]FM_GetShiftState [09:18:10]SAM_PROTO_GetShiftState [09:18:10]wFMCommunicate request_size=4 [09:18:10]MH_SAM_APDU [09:18:10]CAPDU: 80 13 01 00 [09:18:10]Write to MH i2c: E2 08 00 5E 7E 80 13 01 00 00 00 00 00 59 [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:10]Read from MH i2c: E2 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 0E 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 0E 00 5E 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 82 [09:18:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:18:10]wFMCommunicate OK [09:18:10]SAM_PROTO_GetShiftState done [09:18:10]FM_GetShiftState done [09:18:10]opened in 1730332621 [09:18:10]opened+sec_in_day 1730419021 [09:18:10]quantity*price = 45039 [09:18:10]sum+1 = 45040 [09:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.39 НСП 1% : 3.99 НДС 12% : 47.83 Наличными: 0.00 Безнал.: 450.39 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 89 31.10.2024 09:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139612 ФПД: 112056642647229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T091820&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139612&fm=112056642647229&tin=02508201610067®Number=0000000000091631&sum=45039 [09:18:11]StoreToDocumentArchive [09:18:11]shift 557 fd 139612 [09:18:11]save to /storage/0557/doc_00139612 [09:18:11]save last doc name /storage/0557/doc_00139612 to /storage/kkm_last_doc_name [09:18:11]save OK [09:18:11]Clear old archive folders... [09:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:11]tlvbuf is 013369F0 [09:18:11]SAM_PROTO_ClearQueue [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 09 00 00 [09:18:11]Write to MH i2c: E2 08 00 6B 7E 80 09 00 00 00 00 00 00 5B [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 6B 7E 00 90 00 5D [09:18:12]RAPDU: 90 00 [09:18:12]wFMCommunicate OK [09:18:12]SAM_PROTO_ClearQueue done [09:18:12]KKMCreateOFDPacket [09:18:12]OFDProtocolAddRootSTLVToBuf [09:18:12]FM_MakeSignedData [09:18:12]FM_MakeSignedData [09:18:12]SAM_PROTO_SignData [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 0D 01 02 [09:18:12]Write to MH i2c: E2 08 00 6C 7E 80 0D 01 02 00 00 00 00 63 [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 6C 7E 00 90 00 5E [09:18:12]RAPDU: 90 00 [09:18:12]wFMCommunicate OK [09:18:12]wFMCommunicate request_size=255 [09:18:12]MH_SAM_APDU [09:18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5C 4B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 [09:18:12]Write to MH i2c: E2 02 01 6D 7E 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 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5C 4B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 00 00 1F [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 6D 7E 00 90 00 5F [09:18:12]RAPDU: 90 00 [09:18:12]wFMCommunicate OK [09:18:12]wFMCommunicate request_size=10 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 0D 02 02 05 EA 38 61 34 BD [09:18:12]Write to MH i2c: E2 0D 00 6E 7E 80 0D 02 02 05 00 EA 38 61 34 BD 00 00 E4 [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 03 00 6E 7E 00 90 00 60 [09:18:12]RAPDU: 90 00 [09:18:12]wFMCommunicate OK [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 0D 03 02 [09:18:12]Write to MH i2c: E2 08 00 6F 7E 80 0D 03 02 00 00 00 00 68 [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0B 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0B 00 6F 7E 00 85 D9 77 3C 9F 5E F8 E8 90 00 57 [09:18:12]RAPDU: 85 D9 77 3C 9F 5E F8 E8 90 00 [09:18:12]wFMCommunicate OK [09:18:12]SAM_PROTO_SignData done [09:18:12]FM_MakeSignedData done [09:18:12]CreateOFDProtocolMessage [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 11 00 00 [09:18:12]Write to MH i2c: E2 08 00 70 7E 80 11 00 00 00 00 00 00 68 [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 17 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 17 00 70 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C3 [09:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:18:12]wFMCommunicate OK [09:18:12]CreateOFDProtocolMessage done [09:18:12]OFDSenderStorePacket 139612 [09:18:12]StoreOFDPacket docnum=139612 [09:18: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 54 1D 07 01 2E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5C 4B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 EA 38 61 34 BD 85 D9 77 3C 9F 5E F8 E8 [09:18:12]CheckFolder [09:18:12]dirname=/storage/ofd_packets [09:18:12]CheckFolder done [09:18:12]ProducePacketName [09:18:12]name=ofd_packets/00139612 [09:18:12]NVStorageSaveData ofd_packets/00139612 [09:18:12]File name is /storage/ofd_packets/00139612 [09:18:12]Write 301 bytes [09:18:12]NVStorageSaveData done [09:18:12]OFDSenderStorePacket done [09:18:12]KKMCreateOFDPacket done [09:18:12]NVStorageSaveData kkm_last_timestamp [09:18:12]File name is /storage/kkm_last_timestamp [09:18:12]Write 4 bytes [09:18:12]NVStorageSaveData done [09:18:12]ExternCall_PrintAddStr [09:18:12]wPrintStart [09:18:12]Write to MH i2c: 01 00 00 71 7E EF [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: 01 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: 01 07 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: 01 07 00 71 7E 00 00 00 00 00 FF 0F 04 [09:18:12]RasterBufferAndPrint [09:18:12]line Счет N : (1)1095013 [09:18:12]line ИНН: 02508201610067 [09:18:12]line Контрольно-Кассовый Чек [09:18:12]line ПРОДАЖА [09:18:12]line ТРК (МРК, ГНК) : 64 [09:18:12]line Товар: 2710124500 [09:18:12]line Аи-95-К-3 [09:18:12]line 6.070 * 74.20 [09:18:12]line = 450.39 [09:18:12]line НДС 12% НСП 1% [09:18:12]line > о реализуемом товаре [09:18:12]line ИТОГО: 450.39 [09:18:12]line НСП 1% : 3.99 [09:18:12]line НДС 12% : 47.83 [09:18:12]line Наличными: 0.00 [09:18:12]line Безнал.: 450.39 [09:18:12]line Место: АЗС № 101 "Партнер Нефть" [09:18:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:18:12]line СНО: Общий режим [09:18:12]line Чек 89 31.10.2024 09:18 [09:18:12]line Смена: 557 ФФД: 1.0 [09:18:12]line ЗНМ: 0300000081 [09:18:12]line РНМ: 0000000000091631 [09:18:12]line Версия ККМ: 001 [09:18:12]line Платежная система: Mbank [09:18:12]line ФМ: 0000000000874669 [09:18:12]line ФД: 139612 [09:18:12]line ФПД: 112056642647229 [09:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T091820&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139612&fm=112056642647229&tin=02508201610067®Number=0000000000091631&sum=45039 [09:18:12]OFD Sender: Processing packet 139612 [packets to send 34, broken 33] [09:18:12]ProducePacketName [09:18:12]name=ofd_packets/00139612 [09:18:12]OFD Sender: To server: pG, [09:18:12]CommunicateWithHost lk.salyk.kg:30040 [09:18:12]ConnectInit lk.salyk.kg [09:18:12]written 0, free lines is 4095 [09:18:12]Connected sock=10 [09:18: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 54 1D 07 01 2E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5C 4B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 EA 38 61 34 BD 85 D9 77 3C 9F 5E F8 E8 [09:18: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 F1 FC 47 00 60 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 21 02 00 F4 03 04 00 0A F7 22 67 B6 04 01 00 00 BA 6D 46 CC E7 46 FF 54 [09:18:13]CommunicateWithHost err = 0 [09:18:13]CheckOFDResponse [09:18:13]1017 (14) - 77093643461234 [09:18:13]1041 (16) - 0000000000874669 [09:18:13]1040 (4) - 139612 [09:18:13]1012 (4) - 31.10.2024 03:18 [09:18:13]1206 (1) - 0 [09:18:13]OFD Sender: Remove packet 139612 [09:18:13]ProducePacketName [09:18:13]name=ofd_packets/00139612 [09:18:13]NVStorageDeleteData [09:18:13]Write to MH i2c: 01 00 00 9A 7E 18 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: 01 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: 01 07 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: 01 07 00 9A 7E 00 00 00 00 00 1D 0D 49 [09:18:13]RasterBufferAndPrint [09:18:13]line [09:18:13]line [09:18:13]line [09:18:13]line [09:18:13]line [09:18:13]written 0, free lines is 3363 [09:18:13]MH_Cut [09:18:13]Write to MH i2c: D1 01 00 A1 7E 01 F1 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: D1 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: D1 01 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: D1 01 00 A1 7E 00 F0 [09:18:13]Write to MH i2c: 01 00 00 A2 7E 20 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]OFD Sender: No OFD packet to send [09:18:13]*** Cut start [09:18:13]*** Partial cut [09:18:13]*** CUTSNS_PIN = 1 [09:18:14]*** CUTSNS_PIN = 0 [09:18:14]*** Brake cut motor [09:18:14]Read from MH i2c: 01 [09:18:14]MH_I2C_Read... [09:18:14]*** Stop cut motor [09:18:14]*** Cut end [09:18:14]Read from MH i2c: 01 07 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: 01 07 00 A2 7E 00 00 00 00 00 FF 0F 35 [09:18:14]process_action close_receipt done [09:18:14]requested_data is exist [09:18:14]produce_requested_data [09:18:14]requested_item fm.sn is exist - process it [09:18:14]wFMCommunicate request_size=4 [09:18:14]MH_SAM_APDU [09:18:14]CAPDU: 80 11 00 00 [09:18:14]Write to MH i2c: E2 08 00 A3 7E 80 11 00 00 00 00 00 00 9B [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:14]Read from MH i2c: E2 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 17 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 17 00 A3 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F6 [09:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:18:14]wFMCommunicate OK [09:18:14]requested_item fd.num is exist - process it [09:18:14]SAM_PROTO_GetFieldsCounters [09:18:14]wFMCommunicate request_size=4 [09:18:14]MH_SAM_APDU [09:18:14]CAPDU: 80 13 00 00 [09:18:14]Write to MH i2c: E2 08 00 A4 7E 80 13 00 00 00 00 00 00 9E [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:14]Read from MH i2c: E2 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 62 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 62 00 A4 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 7B [09:18: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 5C 21 02 00 0E 04 04 00 2D 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 [09:18:14]wFMCommunicate OK [09:18:14]SAM_PROTO_GetFieldsCounters done [09:18:14]requested_item shift.num is exist - process it [09:18:14]requested_item shift.opened is exist - process it [09:18:14]req_shift_opened [09:18:14]FM_GetShiftState [09:18:14]SAM_PROTO_GetShiftState [09:18:14]wFMCommunicate request_size=4 [09:18:14]MH_SAM_APDU [09:18:14]CAPDU: 80 13 01 00 [09:18:14]Write to MH i2c: E2 08 00 A5 7E 80 13 01 00 00 00 00 00 A0 [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:14]Read from MH i2c: E2 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 0E 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 0E 00 A5 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C9 [09:18:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:18:14]wFMCommunicate OK [09:18:14]SAM_PROTO_GetShiftState done [09:18:14]FM_GetShiftState done [09:18:14]req_shift_opened done [09:18:14]requested_item shift.open_date is exist - process it [09:18:14]req_shift_open_date [09:18:14]req_shift_open_date done [09:18:14]produce_requested_data done [09:18:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139612,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:18:14]process_action_free close_receipt [09:18:14]json_value_free [09:18:14]json_value_free done [09:18:14]process_json_proto returns [09:18:14]Send response to host [09:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139612,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:18:14]free response buf [09:18:14]execute_script done [09:18:14]execute_script returns [09:18:14]free content buf [09:18:14]Sock 9.Close socket [09:18:14]Sock 9.Thread stoped [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:36]accept exits with 8 [09:24:36]New connection [09:24:36]New thread 3067284836 created [09:24:36]Thread 3067141476 joined [09:24:36]Waiting for new connection... [09:24:36] Sock 8.Parse request [09:24:36]Sock 8.Check first char [09:24:36]Sock 8.First char is OK [09:24:36]request: POST /json_proto HTTP/1.0 [09:24:36]Method: POST [09:24:36]URL: /json_proto [09:24:36]Method is POST - this is cgi request [09:24:36]url: /json_proto [09:24:36]query_string will be loaded in cgi processing [09:24:36]execute_cgi json_proto POST (null) [09:24:36]execute_cgi path=json_proto method=POST [09:24:36]POST find Content-Length [09:24:36]Host: 172.17.50.196:8080 [09:24:36]Content-Length: 799 [09:24:36]Content-Type: application/json [09:24:36] [09:24:36]POST finish read [09:24:36]Found Content-Length = 799 [09:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095019", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68804", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:36]execute_script... [09:24:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095019", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68804", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:36]POST & json_proto [09:24:36]process_json_proto [09:24:36]json parsed OK: [09:24:36]protocol is kg_v1.0 [09:24:36]action value=close_receipt [09:24:36]process_action close_receipt [09:24:36]cmd_close_receipt [09:24:36]MH_GetDate [09:24:36]Write to MH i2c: F0 00 00 A6 7E 13 [09:24:36]Write i2c OK [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: F0 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: F0 09 00 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: F0 09 00 A6 7E 00 DE 4C 23 67 72 0D 1C 67 D2 [09:24:36]GetLastDocTimeStamp 1730366300 [09:24:36]current date 1730366686 [09:24:36]FM_GetShiftState [09:24:36]SAM_PROTO_GetShiftState [09:24:36]wFMCommunicate request_size=4 [09:24:36]MH_SAM_APDU [09:24:36]CAPDU: 80 13 01 00 [09:24:36]Write to MH i2c: E2 08 00 A7 7E 80 13 01 00 00 00 00 00 A2 [09:24:36]Write i2c OK [09:24:36]MH_I2C_Read... [09:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:36]Read from MH i2c: E2 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: E2 0E 00 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: E2 0E 00 A7 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CB [09:24:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:24:36]wFMCommunicate OK [09:24:36]SAM_PROTO_GetShiftState done [09:24:36]FM_GetShiftState done [09:24:36]opened in 1730332621 [09:24:36]opened+sec_in_day 1730419021 [09:24:36]quantity*price = 0 [09:24:36]sum+1 = 1 [09:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 90 31.10.2024 09:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: Топливная Карта 68804 ФМ: 0000000000874669 ФД: 139613 ФПД: 276795584085194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092446&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139613&fm=276795584085194&tin=02508201610067®Number=0000000000091631&sum=0 [09:24:37]StoreToDocumentArchive [09:24:37]shift 557 fd 139613 [09:24:37]save to /storage/0557/doc_00139613 [09:24:37]save last doc name /storage/0557/doc_00139613 to /storage/kkm_last_doc_name [09:24:37]save OK [09:24:37]Clear old archive folders... [09:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:24:37]tlvbuf is 013725B0 [09:24:37]SAM_PROTO_ClearQueue [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 09 00 00 [09:24:37]Write to MH i2c: E2 08 00 B4 7E 80 09 00 00 00 00 00 00 A4 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 B4 7E 00 90 00 A6 [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]SAM_PROTO_ClearQueue done [09:24:37]KKMCreateOFDPacket [09:24:37]OFDProtocolAddRootSTLVToBuf [09:24:37]FM_MakeSignedData [09:24:37]FM_MakeSignedData [09:24:37]SAM_PROTO_SignData [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 0D 01 02 [09:24:37]Write to MH i2c: E2 08 00 B5 7E 80 0D 01 02 00 00 00 00 AC [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 B5 7E 00 90 00 A7 [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]wFMCommunicate request_size=255 [09:24:37]MH_SAM_APDU [09:24:37]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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [09:24:37]Write to MH i2c: E2 02 01 B6 7E 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 D5 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 B6 7E 00 90 00 A8 [09:24:38]RAPDU: 90 00 [09:24:38]wFMCommunicate OK [09:24:38]wFMCommunicate request_size=11 [09:24:38]MH_SAM_APDU [09:24:38]CAPDU: 80 0D 02 02 06 FB BE 7E 76 FC CA [09:24:38]Write to MH i2c: E2 0E 00 B7 7E 80 0D 02 02 06 00 FB BE 7E 76 FC CA 00 00 2E [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 B7 7E 00 90 00 A9 [09:24:38]RAPDU: 90 00 [09:24:38]wFMCommunicate OK [09:24:38]wFMCommunicate request_size=4 [09:24:38]MH_SAM_APDU [09:24:38]CAPDU: 80 0D 03 02 [09:24:38]Write to MH i2c: E2 08 00 B8 7E 80 0D 03 02 00 00 00 00 B1 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 0B 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 0B 00 B8 7E 00 7C 96 8C FD E4 28 FA 89 90 00 DC [09:24:38]RAPDU: 7C 96 8C FD E4 28 FA 89 90 00 [09:24:38]wFMCommunicate OK [09:24:38]SAM_PROTO_SignData done [09:24:38]FM_MakeSignedData done [09:24:38]CreateOFDProtocolMessage [09:24:38]wFMCommunicate request_size=4 [09:24:38]MH_SAM_APDU [09:24:38]CAPDU: 80 11 00 00 [09:24:38]Write to MH i2c: E2 08 00 B9 7E 80 11 00 00 00 00 00 00 B1 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 17 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 17 00 B9 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0C [09:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:24:38]wFMCommunicate OK [09:24:38]CreateOFDProtocolMessage done [09:24:38]OFDSenderStorePacket 139613 [09:24:38]StoreOFDPacket docnum=139613 [09:24: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 10 01 00 00 D7 3A 08 01 24 54 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FB BE 7E 76 FC CA 7C 96 8C FD E4 28 FA 89 [09:24:38]CheckFolder [09:24:38]dirname=/storage/ofd_packets [09:24:38]CheckFolder done [09:24:38]ProducePacketName [09:24:38]name=ofd_packets/00139613 [09:24:38]NVStorageSaveData ofd_packets/00139613 [09:24:38]File name is /storage/ofd_packets/00139613 [09:24:38]Write 302 bytes [09:24:38]NVStorageSaveData done [09:24:38]OFDSenderStorePacket done [09:24:38]KKMCreateOFDPacket done [09:24:38]NVStorageSaveData kkm_last_timestamp [09:24:38]File name is /storage/kkm_last_timestamp [09:24:38]Write 4 bytes [09:24:38]NVStorageSaveData done [09:24:38]ExternCall_PrintAddStr [09:24:38]wPrintStart [09:24:38]Write to MH i2c: 01 00 00 BA 7E 38 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 07 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 07 00 BA 7E 00 00 00 00 00 FF 0F 4D [09:24:38]RasterBufferAndPrint [09:24:38]line Счет N : (1)1095019 [09:24:38]line ИНН: 02508201610067 [09:24:38]line Контрольно-Кассовый Чек [09:24:38]line ПРОДАЖА [09:24:38]line ТРК (МРК, ГНК) : 11 [09:24:38]line Товар: 2710194210 [09:24:38]line ДТ(л)-К-2 [09:24:38]line 100.000 * 0.00 [09:24:38]line = 0.00 [09:24:38]line НДС 12% НСП 1% [09:24:38]line > о реализуемом товаре [09:24:38]line ИТОГО: 0.00 [09:24:38]line НСП 1% : 0.00 [09:24:38]line НДС 12% : 0.00 [09:24:38]line Наличными: 0.00 [09:24:38]line Безнал.: 0.00 [09:24:38]line Место: АЗС № 101 "Партнер Нефть" [09:24:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:24:38]line СНО: Общий режим [09:24:38]line Чек 90 31.10.2024 09:24 [09:24:38]line Смена: 557 ФФД: 1.0 [09:24:38]line ЗНМ: 0300000081 [09:24:38]line РНМ: 0000000000091631 [09:24:38]line Версия ККМ: 001 [09:24:38]line Талоны: Топливная Карта [09:24:38]line 68804 [09:24:38]line ФМ: 0000000000874669 [09:24:38]line ФД: 139613 [09:24:38]line ФПД: 276795584085194 [09:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092446&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139613&fm=276795584085194&tin=02508201610067®Number=0000000000091631&sum=0 [09:24:38]written 0, free lines is 4095 [09:24:38]OFD Sender: Processing packet 139613 [packets to send 34, broken 33] [09:24:38]ProducePacketName [09:24:38]name=ofd_packets/00139613 [09:24:38]OFD Sender: To server: pG, [09:24:38]CommunicateWithHost lk.salyk.kg:30040 [09:24:38]ConnectInit lk.salyk.kg [09:24:38]Connected sock=10 [09:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 D7 3A 08 01 24 54 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 4C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FB BE 7E 76 FC CA 7C 96 8C FD E4 28 FA 89 [09:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 63 43 47 00 9C B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 21 02 00 F4 03 04 00 8C F8 22 67 B6 04 01 00 00 4D 4A B8 02 37 17 0B 52 [09:24:38]CommunicateWithHost err = 0 [09:24:38]CheckOFDResponse [09:24:38]1017 (14) - 77093643461234 [09:24:38]1041 (16) - 0000000000874669 [09:24:38]1040 (4) - 139613 [09:24:38]1012 (4) - 31.10.2024 03:25 [09:24:38]1206 (1) - 0 [09:24:38]OFD Sender: Remove packet 139613 [09:24:38]ProducePacketName [09:24:38]name=ofd_packets/00139613 [09:24:38]NVStorageDeleteData [09:24:39]Write to MH i2c: 01 00 00 E4 7E 62 [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: 01 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: 01 07 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: 01 07 00 E4 7E 00 00 00 00 00 F4 0C 69 [09:24:39]RasterBufferAndPrint [09:24:39]line [09:24:39]line [09:24:39]line [09:24:39]line [09:24:39]line [09:24:39]written 0, free lines is 3322 [09:24:39]MH_Cut [09:24:39]Write to MH i2c: D1 01 00 EB 7E 01 3B [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: D1 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: D1 01 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: D1 01 00 EB 7E 00 3A [09:24:39]Write to MH i2c: 01 00 00 EC 7E 6A [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]OFD Sender: No OFD packet to send [09:24:39]*** Cut start [09:24:39]*** Partial cut [09:24:39]*** CUTSNS_PIN = 1 [09:24:39]*** CUTSNS_PIN = 0 [09:24:39]*** Brake cut motor [09:24:40]Read from MH i2c: 01 [09:24:40]MH_I2C_Read... [09:24:40]*** Stop cut motor [09:24:40]*** Cut end [09:24:40]Read from MH i2c: 01 07 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: 01 07 00 EC 7E 00 00 00 00 00 FF 0F 7F [09:24:40]process_action close_receipt done [09:24:40]requested_data is exist [09:24:40]produce_requested_data [09:24:40]requested_item fm.sn is exist - process it [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 11 00 00 [09:24:40]Write to MH i2c: E2 08 00 ED 7E 80 11 00 00 00 00 00 00 E5 [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 17 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 17 00 ED 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [09:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:24:40]wFMCommunicate OK [09:24:40]requested_item fd.num is exist - process it [09:24:40]SAM_PROTO_GetFieldsCounters [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 13 00 00 [09:24:40]Write to MH i2c: E2 08 00 EE 7E 80 13 00 00 00 00 00 00 E8 [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 62 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 62 00 EE 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 C9 [09:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 [09:24:40]wFMCommunicate OK [09:24:40]SAM_PROTO_GetFieldsCounters done [09:24:40]requested_item shift.num is exist - process it [09:24:40]requested_item shift.opened is exist - process it [09:24:40]req_shift_opened [09:24:40]FM_GetShiftState [09:24:40]SAM_PROTO_GetShiftState [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 13 01 00 [09:24:40]Write to MH i2c: E2 08 00 EF 7E 80 13 01 00 00 00 00 00 EA [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 0E 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 0E 00 EF 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 13 [09:24:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:24:40]wFMCommunicate OK [09:24:40]SAM_PROTO_GetShiftState done [09:24:40]FM_GetShiftState done [09:24:40]req_shift_opened done [09:24:40]requested_item shift.open_date is exist - process it [09:24:40]req_shift_open_date [09:24:40]req_shift_open_date done [09:24:40]produce_requested_data done [09:24:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139613,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:24:40]process_action_free close_receipt [09:24:40]json_value_free [09:24:40]json_value_free done [09:24:40]process_json_proto returns [09:24:40]Send response to host [09:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139613,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:24:40]free response buf [09:24:40]execute_script done [09:24:40]execute_script returns [09:24:40]free content buf [09:24:40]Sock 8.Close socket [09:24:40]Sock 8.Thread stoped [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:38]accept exits with 9 [09:29:38]New connection [09:29:38]New thread 3067141476 created [09:29:38]Thread 3067284836 joined [09:29:38]Waiting for new connection... [09:29:38] Sock 9.Parse request [09:29:38]Sock 9.Check first char [09:29:38]Sock 9.First char is OK [09:29:38]request: POST /json_proto HTTP/1.0 [09:29:38]Method: POST [09:29:38]URL: /json_proto [09:29:38]Method is POST - this is cgi request [09:29:38]url: /json_proto [09:29:38]query_string will be loaded in cgi processing [09:29:38]execute_cgi json_proto POST (null) [09:29:38]execute_cgi path=json_proto method=POST [09:29:38]POST find Content-Length [09:29:38]Host: 172.17.50.196:8080 [09:29:38]Content-Length: 678 [09:29:38]Content-Type: application/json [09:29:38] [09:29:38]POST finish read [09:29:38]Found Content-Length = 678 [09:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095027", "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" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:38]execute_script... [09:29:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095027", "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" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:38]POST & json_proto [09:29:38]process_json_proto [09:29:38]json parsed OK: [09:29:38]protocol is kg_v1.0 [09:29:38]action value=close_receipt [09:29:38]process_action close_receipt [09:29:38]cmd_close_receipt [09:29:38]MH_GetDate [09:29:38]Write to MH i2c: F0 00 00 F0 7E 5D [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: F0 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: F0 09 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: F0 09 00 F0 7E 00 0B 4E 23 67 72 0D 1C 67 4B [09:29:38]GetLastDocTimeStamp 1730366686 [09:29:38]current date 1730366987 [09:29:38]FM_GetShiftState [09:29:38]SAM_PROTO_GetShiftState [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 13 01 00 [09:29:38]Write to MH i2c: E2 08 00 F1 7E 80 13 01 00 00 00 00 00 EC [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0E 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0E 00 F1 7E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 15 [09:29:38]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_GetShiftState done [09:29:38]FM_GetShiftState done [09:29:38]opened in 1730332621 [09:29:38]opened+sec_in_day 1730419021 [09:29:38]quantity*price = 60009 [09:29:38]sum+1 = 60010 [09:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 91 31.10.2024 09:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139614 ФПД: 213328422836001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092947&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139614&fm=213328422836001&tin=02508201610067®Number=0000000000091631&sum=60000 [09:29:39]StoreToDocumentArchive [09:29:39]shift 557 fd 139614 [09:29:39]save to /storage/0557/doc_00139614 [09:29:39]save last doc name /storage/0557/doc_00139614 to /storage/kkm_last_doc_name [09:29:39]save OK [09:29:39]Clear old archive folders... [09:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:39]tlvbuf is 012AC770 [09:29:39]SAM_PROTO_ClearQueue [09:29:39]wFMCommunicate request_size=4 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 09 00 00 [09:29:39]Write to MH i2c: E2 08 00 FE 7E 80 09 00 00 00 00 00 00 EE [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 FE 7E 00 90 00 F0 [09:29:39]RAPDU: 90 00 [09:29:39]wFMCommunicate OK [09:29:39]SAM_PROTO_ClearQueue done [09:29:39]KKMCreateOFDPacket [09:29:39]OFDProtocolAddRootSTLVToBuf [09:29:39]FM_MakeSignedData [09:29:39]FM_MakeSignedData [09:29:39]SAM_PROTO_SignData [09:29:39]wFMCommunicate request_size=4 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 0D 01 02 [09:29:39]Write to MH i2c: E2 08 00 FF 7E 80 0D 01 02 00 00 00 00 F6 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 FF 7E 00 90 00 F1 [09:29:39]RAPDU: 90 00 [09:29:39]wFMCommunicate OK [09:29:39]wFMCommunicate request_size=255 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0B 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C2 [09:29:39]Write to MH i2c: E2 02 01 00 7F 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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0B 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C2 00 00 13 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]OFD Sender: No OFD packet to send [09:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 00 7F 00 90 00 F3 [09:29:39]RAPDU: 90 00 [09:29:39]wFMCommunicate OK [09:29:39]wFMCommunicate request_size=10 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 0D 02 02 05 05 64 DD 17 21 [09:29:39]Write to MH i2c: E2 0D 00 01 7F 80 0D 02 02 05 00 05 64 DD 17 21 00 00 82 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 03 00 01 7F 00 90 00 F4 [09:29:39]RAPDU: 90 00 [09:29:39]wFMCommunicate OK [09:29:39]wFMCommunicate request_size=4 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 0D 03 02 [09:29:39]Write to MH i2c: E2 08 00 02 7F 80 0D 03 02 00 00 00 00 FC [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 0B 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 0B 00 02 7F 00 36 3B E5 F9 15 97 E0 0A 90 00 E2 [09:29:39]RAPDU: 36 3B E5 F9 15 97 E0 0A 90 00 [09:29:39]wFMCommunicate OK [09:29:39]SAM_PROTO_SignData done [09:29:39]FM_MakeSignedData done [09:29:39]CreateOFDProtocolMessage [09:29:39]wFMCommunicate request_size=4 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 11 00 00 [09:29:39]Write to MH i2c: E2 08 00 03 7F 80 11 00 00 00 00 00 00 FC [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 17 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 17 00 03 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 57 [09: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 [09:29:39]wFMCommunicate OK [09:29:39]CreateOFDProtocolMessage done [09:29:39]OFDSenderStorePacket 139614 [09:29:39]StoreOFDPacket docnum=139614 [09:29: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 89 A3 07 01 E4 87 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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0B 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C2 05 64 DD 17 21 36 3B E5 F9 15 97 E0 0A [09:29:39]CheckFolder [09:29:39]dirname=/storage/ofd_packets [09:29:39]CheckFolder done [09:29:39]ProducePacketName [09:29:39]name=ofd_packets/00139614 [09:29:39]NVStorageSaveData ofd_packets/00139614 [09:29:39]File name is /storage/ofd_packets/00139614 [09:29:39]Write 301 bytes [09:29:39]NVStorageSaveData done [09:29:39]OFDSenderStorePacket done [09:29:39]KKMCreateOFDPacket done [09:29:39]NVStorageSaveData kkm_last_timestamp [09:29:39]File name is /storage/kkm_last_timestamp [09:29:39]Write 4 bytes [09:29:39]NVStorageSaveData done [09:29:39]ExternCall_PrintAddStr [09:29:39]wPrintStart [09:29:39]Write to MH i2c: 01 00 00 04 7F 83 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 04 7F 00 00 00 00 00 FF 0F 98 [09:29:39]RasterBufferAndPrint [09:29:39]line Счет N : (1)1095027 [09:29:39]line ИНН: 02508201610067 [09:29:39]line Контрольно-Кассовый Чек [09:29:39]line ПРОДАЖА [09:29:39]line ТРК (МРК, ГНК) : 43 [09:29:39]line Товар: 2710124130 [09:29:39]line Аи-92-К-2 [09:29:39]line 8.970 * 66.90 [09:29:39]line = 600.09 [09:29:39]line НДС 12% НСП 1% [09:29:39]line > о реализуемом товаре [09:29:39]line ОКРУГЛЕНИЕ: -0.09 [09:29:39]line ИТОГО: 600.00 [09:29:39]line Внесено: 600.00 [09:29:39]line СДАЧА: 0.00 [09:29:39]line НСП 1% : 5.31 [09:29:39]line НДС 12% : 63.73 [09:29:39]line Наличными: 600.00 [09:29:39]line Безнал.: 0.00 [09:29:39]line Место: АЗС № 101 "Партнер Нефть" [09:29:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:29:39]line СНО: Общий режим [09:29:39]line Чек 91 31.10.2024 09:29 [09:29:39]line Смена: 557 ФФД: 1.0 [09:29:39]line ЗНМ: 0300000081 [09:29:39]line РНМ: 0000000000091631 [09:29:39]line Версия ККМ: 001 [09:29:39]line ФМ: 0000000000874669 [09:29:39]line ФД: 139614 [09:29:39]line ФПД: 213328422836001 [09:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T092947&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139614&fm=213328422836001&tin=02508201610067®Number=0000000000091631&sum=60000 [09:29:40]OFD Sender: Processing packet 139614 [packets to send 34, broken 33] [09:29:40]ProducePacketName [09:29:40]name=ofd_packets/00139614 [09:29:40]OFD Sender: To server: pG, [09:29:40]CommunicateWithHost lk.salyk.kg:30040 [09:29:40]ConnectInit lk.salyk.kg [09:29:40]written 0, free lines is 4095 [09:29:40]Connected sock=10 [09:29: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 0F 01 00 00 89 A3 07 01 E4 87 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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 0B 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C2 05 64 DD 17 21 36 3B E5 F9 15 97 E0 0A [09:29: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 D6 84 47 00 69 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 21 02 00 F4 03 04 00 BA F9 22 67 B6 04 01 00 00 30 7C F7 BF 60 15 34 5A [09:29:40]CommunicateWithHost err = 0 [09:29:40]CheckOFDResponse [09:29:40]1017 (14) - 77093643461234 [09:29:40]1041 (16) - 0000000000874669 [09:29:40]1040 (4) - 139614 [09:29:40]1012 (4) - 31.10.2024 03:30 [09:29:40]1206 (1) - 0 [09:29:40]OFD Sender: Remove packet 139614 [09:29:40]ProducePacketName [09:29:40]name=ofd_packets/00139614 [09:29:40]NVStorageDeleteData [09:29:40]Write to MH i2c: 01 00 00 2F 7F AE [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: 01 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: 01 07 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: 01 07 00 2F 7F 00 00 00 00 00 FB 0C BC [09:29:40]RasterBufferAndPrint [09:29:40]line [09:29:40]line [09:29:40]line [09:29:40]line [09:29:40]line [09:29:40]written 0, free lines is 3329 [09:29:40]MH_Cut [09:29:40]Write to MH i2c: D1 01 00 36 7F 01 87 [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: D1 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: D1 01 00 [09:29:40]MH_I2C_Read... [09:29:40]Read from MH i2c: D1 01 00 36 7F 00 86 [09:29:40]Write to MH i2c: 01 00 00 37 7F B6 [09:29:40]Write i2c OK [09:29:40]MH_I2C_Read... [09:29:41]OFD Sender: No OFD packet to send [09:29:41]*** Cut start [09:29:41]*** Partial cut [09:29:41]*** CUTSNS_PIN = 1 [09:29:41]*** CUTSNS_PIN = 0 [09:29:41]*** Brake cut motor [09:29:42]Read from MH i2c: 01 [09:29:42]MH_I2C_Read... [09:29:42]*** Stop cut motor [09:29:42]*** Cut end [09:29:42]Read from MH i2c: 01 07 00 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: 01 07 00 37 7F 00 00 00 00 00 FF 0F CB [09:29:42]process_action close_receipt done [09:29:42]requested_data is exist [09:29:42]produce_requested_data [09:29:42]requested_item fm.sn is exist - process it [09:29:42]wFMCommunicate request_size=4 [09:29:42]MH_SAM_APDU [09:29:42]CAPDU: 80 11 00 00 [09:29:42]Write to MH i2c: E2 08 00 38 7F 80 11 00 00 00 00 00 00 31 [09:29:42]Write i2c OK [09:29:42]MH_I2C_Read... [09:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:42]Read from MH i2c: E2 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: E2 17 00 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: E2 17 00 38 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8C [09:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:29:42]wFMCommunicate OK [09:29:42]requested_item fd.num is exist - process it [09:29:42]SAM_PROTO_GetFieldsCounters [09:29:42]wFMCommunicate request_size=4 [09:29:42]MH_SAM_APDU [09:29:42]CAPDU: 80 13 00 00 [09:29:42]Write to MH i2c: E2 08 00 39 7F 80 13 00 00 00 00 00 00 34 [09:29:42]Write i2c OK [09:29:42]MH_I2C_Read... [09:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:42]Read from MH i2c: E2 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: E2 62 00 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: E2 62 00 39 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 19 [09:29: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 5E 21 02 00 0E 04 04 00 2D 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 [09:29:42]wFMCommunicate OK [09:29:42]SAM_PROTO_GetFieldsCounters done [09:29:42]requested_item shift.num is exist - process it [09:29:42]requested_item shift.opened is exist - process it [09:29:42]req_shift_opened [09:29:42]FM_GetShiftState [09:29:42]SAM_PROTO_GetShiftState [09:29:42]wFMCommunicate request_size=4 [09:29:42]MH_SAM_APDU [09:29:42]CAPDU: 80 13 01 00 [09:29:42]Write to MH i2c: E2 08 00 3A 7F 80 13 01 00 00 00 00 00 36 [09:29:42]Write i2c OK [09:29:42]MH_I2C_Read... [09:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:42]Read from MH i2c: E2 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: E2 0E 00 [09:29:42]MH_I2C_Read... [09:29:42]Read from MH i2c: E2 0E 00 3A 7F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5F [09:29:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:29:42]wFMCommunicate OK [09:29:42]SAM_PROTO_GetShiftState done [09:29:42]FM_GetShiftState done [09:29:42]req_shift_opened done [09:29:42]requested_item shift.open_date is exist - process it [09:29:42]req_shift_open_date [09:29:42]req_shift_open_date done [09:29:42]produce_requested_data done [09:29:42]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139614,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:29:42]process_action_free close_receipt [09:29:42]json_value_free [09:29:42]json_value_free done [09:29:42]process_json_proto returns [09:29:42]Send response to host [09:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139614,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:29:42]free response buf [09:29:42]execute_script done [09:29:42]execute_script returns [09:29:42]free content buf [09:29:42]Sock 9.Close socket [09:29:42]Sock 9.Thread stoped [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:04]accept exits with 8 [09:31:04]New connection [09:31:04]New thread 3067284836 created [09:31:04]Thread 3067141476 joined [09:31:04]Waiting for new connection... [09:31:04] Sock 8.Parse request [09:31:04]Sock 8.Check first char [09:31:04]Sock 8.First char is OK [09:31:04]request: POST /json_proto HTTP/1.0 [09:31:04]Method: POST [09:31:04]URL: /json_proto [09:31:04]Method is POST - this is cgi request [09:31:04]url: /json_proto [09:31:04]query_string will be loaded in cgi processing [09:31:04]execute_cgi json_proto POST (null) [09:31:04]execute_cgi path=json_proto method=POST [09:31:04]POST find Content-Length [09:31:04]Host: 172.17.50.196:8080 [09:31:04]Content-Length: 1573 [09:31:04]Content-Type: application/json [09:31:04] [09:31:04]POST finish read [09:31:04]Found Content-Length = 1573 [09:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335493", "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 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "6921090700103", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 975.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:04]execute_script... [09:31: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)335493", "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 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "6921090700103", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 975.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:04]POST & json_proto [09:31:04]process_json_proto [09:31:04]json parsed OK: [09:31:04]protocol is kg_v1.0 [09:31:04]action value=close_receipt [09:31:04]process_action close_receipt [09:31:04]cmd_close_receipt [09:31:04]MH_GetDate [09:31:04]Write to MH i2c: F0 00 00 3B 7F A9 [09:31:04]Write i2c OK [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: F0 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: F0 09 00 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: F0 09 00 3B 7F 00 61 4E 23 67 72 0D 1C 67 ED [09:31:04]GetLastDocTimeStamp 1730366987 [09:31:04]current date 1730367073 [09:31:04]FM_GetShiftState [09:31:04]SAM_PROTO_GetShiftState [09:31:04]wFMCommunicate request_size=4 [09:31:04]MH_SAM_APDU [09:31:04]CAPDU: 80 13 01 00 [09:31:04]Write to MH i2c: E2 08 00 3C 7F 80 13 01 00 00 00 00 00 38 [09:31:04]Write i2c OK [09:31:04]MH_I2C_Read... [09:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:04]Read from MH i2c: E2 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: E2 0E 00 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: E2 0E 00 3C 7F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 61 [09:31:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:31:04]wFMCommunicate OK [09:31:04]SAM_PROTO_GetShiftState done [09:31:04]FM_GetShiftState done [09:31:04]opened in 1730332621 [09:31:04]opened+sec_in_day 1730419021 [09:31:04]quantity*price = 16000 [09:31:04]sum+1 = 16001 [09:31:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6921090700103 Очки солнцезащитные в ассортименте 1.000 * 590.00 = 590.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 975.00 НСП 1% : 8.63 НДС 12% : 103.53 Наличными: 975.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 92 31.10.2024 09:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139615 ФПД: 20582629212164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093114&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139615&fm=20582629212164&tin=02508201610067®Number=0000000000091631&sum=97500 0 [09:31:05]StoreToDocumentArchive [09:31:05]shift 557 fd 139615 [09:31:05]save to /storage/0557/doc_00139615 [09:31:05]save last doc name /storage/0557/doc_00139615 to /storage/kkm_last_doc_name [09:31:05]save OK [09:31:05]Clear old archive folders... [09:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=657 [09:31:05]tlvbuf is 011739E0 [09:31:05]SAM_PROTO_ClearQueue [09:31:05]wFMCommunicate request_size=4 [09:31:05]MH_SAM_APDU [09:31:05]CAPDU: 80 09 00 00 [09:31:05]Write to MH i2c: E2 08 00 49 7F 80 09 00 00 00 00 00 00 3A [09:31:05]Write i2c OK [09:31:05]MH_I2C_Read... [09:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:05]Read from MH i2c: E2 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 49 7F 00 90 00 3C [09:31:05]RAPDU: 90 00 [09:31:05]wFMCommunicate OK [09:31:05]SAM_PROTO_ClearQueue done [09:31:05]KKMCreateOFDPacket [09:31:05]OFDProtocolAddRootSTLVToBuf [09:31:05]FM_MakeSignedData [09:31:05]FM_MakeSignedData [09:31:05]SAM_PROTO_SignData [09:31:05]wFMCommunicate request_size=4 [09:31:05]MH_SAM_APDU [09:31:05]CAPDU: 80 0D 01 02 [09:31:05]Write to MH i2c: E2 08 00 4A 7F 80 0D 01 02 00 00 00 00 42 [09:31:05]Write i2c OK [09:31:05]MH_I2C_Read... [09:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:05]Read from MH i2c: E2 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: E2 03 00 4A 7F 00 90 00 3D [09:31:05]RAPDU: 90 00 [09:31:05]wFMCommunicate OK [09:31:05]wFMCommunicate request_size=255 [09:31:05]MH_SAM_APDU [09:31:05]CAPDU: 80 0D 02 02 FA 03 00 91 02 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 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C [09:31:05]Write to MH i2c: E2 02 01 4B 7F 80 0D 02 02 FA 00 03 00 91 02 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 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 00 C9 [09:31:05]Write i2c OK [09:31:05]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 4B 7F 00 90 00 3E [09:31:06]RAPDU: 90 00 [09:31:06]wFMCommunicate OK [09:31:06]wFMCommunicate request_size=255 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 0D 02 02 FA 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 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [09:31:06]Write to MH i2c: E2 02 01 4C 7F 80 0D 02 02 FA 00 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 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 71 [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]OFD Sender: No OFD packet to send [09:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 4C 7F 00 90 00 3F [09:31:06]RAPDU: 90 00 [09:31:06]wFMCommunicate OK [09:31:06]wFMCommunicate request_size=166 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 0D 02 02 A1 DC 7C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 28 00 00 00 00 07 04 06 00 DC 7C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 62 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 B8 44 4D 80 04 [09:31:06]Write to MH i2c: E2 A9 00 4D 7F 80 0D 02 02 A1 00 DC 7C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 28 00 00 00 00 07 04 06 00 DC 7C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 62 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 B8 44 4D 80 04 00 00 9B [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 03 00 4D 7F 00 90 00 40 [09:31:06]RAPDU: 90 00 [09:31:06]wFMCommunicate OK [09:31:06]wFMCommunicate request_size=4 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 0D 03 02 [09:31:06]Write to MH i2c: E2 08 00 4E 7F 80 0D 03 02 00 00 00 00 48 [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 0B 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 0B 00 4E 7F 00 31 72 2A E7 0A BF 07 72 90 00 3F [09:31:06]RAPDU: 31 72 2A E7 0A BF 07 72 90 00 [09:31:06]wFMCommunicate OK [09:31:06]SAM_PROTO_SignData done [09:31:06]FM_MakeSignedData done [09:31:06]CreateOFDProtocolMessage [09:31:06]wFMCommunicate request_size=4 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 11 00 00 [09:31:06]Write to MH i2c: E2 08 00 4F 7F 80 11 00 00 00 00 00 00 48 [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 17 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 17 00 4F 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A3 [09:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:31:06]wFMCommunicate OK [09:31:06]CreateOFDProtocolMessage done [09:31:06]OFDSenderStorePacket 139615 [09:31:06]StoreOFDPacket docnum=139615 [09:31: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 A5 02 00 00 C2 71 9D 02 A3 F2 5A 03 01 00 03 00 91 02 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 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 7C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 28 00 00 00 00 07 04 06 00 DC 7C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 62 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 B8 44 4D 80 04 31 72 2A E7 0A BF 07 72 [09:31:06]CheckFolder [09:31:06]dirname=/storage/ofd_packets [09:31:06]CheckFolder done [09:31:06]ProducePacketName [09:31:06]name=ofd_packets/00139615 [09:31:06]NVStorageSaveData ofd_packets/00139615 [09:31:06]File name is /storage/ofd_packets/00139615 [09:31:06]Write 707 bytes [09:31:06]NVStorageSaveData done [09:31:06]OFDSenderStorePacket done [09:31:06]KKMCreateOFDPacket done [09:31:06]NVStorageSaveData kkm_last_timestamp [09:31:06]File name is /storage/kkm_last_timestamp [09:31:06]Write 4 bytes [09:31:06]NVStorageSaveData done [09:31:06]ExternCall_PrintAddStr [09:31:06]wPrintStart [09:31:06]Write to MH i2c: 01 00 00 50 7F CF [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: 01 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: 01 07 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: 01 07 00 50 7F 00 00 00 00 00 FF 0F E4 [09:31:06]RasterBufferAndPrint [09:31:06]line Счет N : (3)335493 [09:31:06]line ИНН: 02508201610067 [09:31:06]line Контрольно-Кассовый Чек [09:31:06]line ПРОДАЖА [09:31:06]line Товар: 48741958 [09:31:06]line Сигареты Parliament Aqua Blue [09:31:06]line 1.000 * 160.00 [09:31:06]line = 160.00 [09:31:06]line НДС 12% НСП 1% [09:31:06]line > о реализуемом товаре [09:31:06]line Товар: 4700000480302 [09:31:07]line Напиток энерг Nitro манго-клуб 0.45 ж/б [09:31:07]line 1.000 * 95.00 [09:31:07]line = 95.00 [09:31:07]line НДС 12% НСП 1% [09:31:07]line > о реализуемом товаре [09:31:07]line Товар: 2000036220012 [09:31:07]line Кофе Капучино XL(GABB TRADE) [09:31:07]line 1.000 * 130.00 [09:31:07]line = 130.00 [09:31:07]line НДС 12% НСП 1% [09:31:07]line > о реализуемом товаре [09:31:07]line Товар: 6921090700103 [09:31:07]line Очки солнцезащитные в ассортименте [09:31:07]line 1.000 * 590.00 [09:31:07]line = 590.00 [09:31:07]line НДС 12% НСП 1% [09:31:07]line > о реализуемом товаре [09:31:07]line ИТОГО: 975.00 [09:31:07]line НСП 1% : 8.63 [09:31:07]line НДС 12% : 103.53 [09:31:07]line Наличными: 975.00 [09:31:07]line Безнал.: 0.00 [09:31:07]line Место: АЗС № 101 "Партнер Нефть" [09:31:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:31:07]line СНО: Общий режим [09:31:07]line Чек 92 31.10.2024 09:31 [09:31:07]line Смена: 557 ФФД: 1.0 [09:31:07]line ЗНМ: 0300000081 [09:31:07]line РНМ: 0000000000091631 [09:31:07]line Версия ККМ: 001 [09:31:07]line ФМ: 0000000000874669 [09:31:07]line ФД: 139615 [09:31:07]line ФПД: 20582629212164 [09:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093114&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139615&fm=20582629212164&tin=02508201610067®Number=0000000000091631&sum=97500 [09:31:07]line 0 [09:31:07]OFD Sender: Processing packet 139615 [packets to send 34, broken 33] [09:31:07]ProducePacketName [09:31:07]name=ofd_packets/00139615 [09:31:07]OFD Sender: To server: pG, [09:31:07]CommunicateWithHost lk.salyk.kg:30040 [09:31:07]ConnectInit lk.salyk.kg [09:31:07]written 0, free lines is 4095 [09:31:07]Connected sock=10 [09:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A5 02 00 00 C2 71 9D 02 A3 F2 5A 03 01 00 03 00 91 02 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 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 7C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 28 00 00 00 00 07 04 06 00 DC 7C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 62 4E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 B8 44 4D 80 04 31 72 2A E7 0A BF 07 72 [09:31: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 13 F9 47 00 2F D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 21 02 00 F4 03 04 00 10 FA 22 67 B6 04 01 00 00 48 95 D4 12 B2 4B 2C 4B [09:31:07]CommunicateWithHost err = 0 [09:31:07]CheckOFDResponse [09:31:07]1017 (14) - 77093643461234 [09:31:07]1041 (16) - 0000000000874669 [09:31:07]1040 (4) - 139615 [09:31:07]1012 (4) - 31.10.2024 03:31 [09:31:07]1206 (1) - 0 [09:31:07]OFD Sender: Remove packet 139615 [09:31:07]ProducePacketName [09:31:07]name=ofd_packets/00139615 [09:31:07]NVStorageDeleteData [09:31:07]Write to MH i2c: 01 00 00 8E 7F 0D [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: 01 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: 01 07 00 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: 01 07 00 8E 7F 00 00 00 00 00 F2 0B 11 [09:31:07]RasterBufferAndPrint [09:31:07]line [09:31:07]line [09:31:07]line [09:31:07]line [09:31:07]line [09:31:07]written 0, free lines is 3068 [09:31:07]MH_Cut [09:31:07]Write to MH i2c: D1 01 00 95 7F 01 E6 [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: D1 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: D1 01 00 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: D1 01 00 95 7F 00 E5 [09:31:07]Write to MH i2c: 01 00 00 96 7F 15 [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]OFD Sender: No OFD packet to send [09:31:08]*** Cut start [09:31:08]*** Partial cut [09:31:08]*** CUTSNS_PIN = 1 [09:31:08]*** CUTSNS_PIN = 0 [09:31:08]*** Brake cut motor [09:31:09]Read from MH i2c: 01 [09:31:09]MH_I2C_Read... [09:31:09]*** Stop cut motor [09:31:09]*** Cut end [09:31:09]Read from MH i2c: 01 07 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: 01 07 00 96 7F 00 00 00 00 00 FF 0F 2A [09:31:09]process_action close_receipt done [09:31:09]requested_data is exist [09:31:09]produce_requested_data [09:31:09]requested_item fm.sn is exist - process it [09:31:09]wFMCommunicate request_size=4 [09:31:09]MH_SAM_APDU [09:31:09]CAPDU: 80 11 00 00 [09:31:09]Write to MH i2c: E2 08 00 97 7F 80 11 00 00 00 00 00 00 90 [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:09]Read from MH i2c: E2 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 17 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 17 00 97 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EB [09: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 [09:31:09]wFMCommunicate OK [09:31:09]requested_item fd.num is exist - process it [09:31:09]SAM_PROTO_GetFieldsCounters [09:31:09]wFMCommunicate request_size=4 [09:31:09]MH_SAM_APDU [09:31:09]CAPDU: 80 13 00 00 [09:31:09]Write to MH i2c: E2 08 00 98 7F 80 13 00 00 00 00 00 00 93 [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:09]Read from MH i2c: E2 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 62 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 62 00 98 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 7C [09:31: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 5F 21 02 00 0E 04 04 00 2D 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:31:09]wFMCommunicate OK [09:31:09]SAM_PROTO_GetFieldsCounters done [09:31:09]requested_item shift.num is exist - process it [09:31:09]requested_item shift.opened is exist - process it [09:31:09]req_shift_opened [09:31:09]FM_GetShiftState [09:31:09]SAM_PROTO_GetShiftState [09:31:09]wFMCommunicate request_size=4 [09:31:09]MH_SAM_APDU [09:31:09]CAPDU: 80 13 01 00 [09:31:09]Write to MH i2c: E2 08 00 99 7F 80 13 01 00 00 00 00 00 95 [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:09]Read from MH i2c: E2 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 0E 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 0E 00 99 7F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BE [09:31:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:31:09]wFMCommunicate OK [09:31:09]SAM_PROTO_GetShiftState done [09:31:09]FM_GetShiftState done [09:31:09]req_shift_opened done [09:31:09]requested_item shift.open_date is exist - process it [09:31:09]req_shift_open_date [09:31:09]req_shift_open_date done [09:31:09]produce_requested_data done [09:31:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139615,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:31:09]process_action_free close_receipt [09:31:09]json_value_free [09:31:09]json_value_free done [09:31:09]process_json_proto returns [09:31:09]Send response to host [09:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139615,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:31:09]free response buf [09:31:09]execute_script done [09:31:09]execute_script returns [09:31:09]free content buf [09:31:09]Sock 8.Close socket [09:31:09]Sock 8.Thread stoped [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:46]accept exits with 9 [09:35:46]New connection [09:35:46]New thread 3067141476 created [09:35:46]Thread 3067284836 joined [09:35:46]Waiting for new connection... [09:35:46] Sock 9.Parse request [09:35:46]Sock 9.Check first char [09:35:46]Sock 9.First char is OK [09:35:46]request: POST /json_proto HTTP/1.0 [09:35:46]Method: POST [09:35:46]URL: /json_proto [09:35:46]Method is POST - this is cgi request [09:35:46]url: /json_proto [09:35:46]query_string will be loaded in cgi processing [09:35:46]execute_cgi json_proto POST (null) [09:35:46]execute_cgi path=json_proto method=POST [09:35:46]POST find Content-Length [09:35:46]Host: 172.17.50.196:8080 [09:35:46]Content-Length: 215 [09:35:46]Content-Type: application/json [09:35:46] [09:35:46]POST finish read [09:35:46]Found Content-Length = 215 [09:35:46]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" ] } } [09:35:46]execute_script... [09:35:46]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" ] } } [09:35:46]POST & json_proto [09:35:46]process_json_proto [09:35:46]json parsed OK: [09:35:46]protocol is kg_v1.0 [09:35:46]action value=get_value [09:35:46]process_action get_value [09:35:46]cmd_get_value [09:35:46]process_action get_value done [09:35:46]requested_data is exist [09:35:46]produce_requested_data [09:35:46]requested_item kkm.sn is exist - process it [09:35:46]requested_item kkm.ver is exist - process it [09:35:46]requested_item fm.sn is exist - process it [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 11 00 00 [09:35:46]Write to MH i2c: E2 08 00 9A 7F 80 11 00 00 00 00 00 00 93 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 17 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 17 00 9A 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EE [09:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:35:46]wFMCommunicate OK [09:35:46]requested_item fd.num is exist - process it [09:35:46]SAM_PROTO_GetFieldsCounters [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 13 00 00 [09:35:46]Write to MH i2c: E2 08 00 9B 7F 80 13 00 00 00 00 00 00 96 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 62 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 62 00 9B 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 7F [09:35: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 5F 21 02 00 0E 04 04 00 2D 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:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_GetFieldsCounters done [09:35:46]requested_item shift.num is exist - process it [09:35:46]requested_item shift.opened is exist - process it [09:35:46]req_shift_opened [09:35:46]FM_GetShiftState [09:35:46]SAM_PROTO_GetShiftState [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 13 01 00 [09:35:46]Write to MH i2c: E2 08 00 9C 7F 80 13 01 00 00 00 00 00 98 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0E 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0E 00 9C 7F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C1 [09:35:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_GetShiftState done [09:35:46]FM_GetShiftState done [09:35:46]req_shift_opened done [09:35:46]requested_item shift.open_date is exist - process it [09:35:46]req_shift_open_date [09:35:46]req_shift_open_date done [09:35:46]produce_requested_data done [09:35:46]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139615,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:35:46]process_action_free get_value [09:35:46]json_value_free [09:35:46]json_value_free done [09:35:46]process_json_proto returns [09:35:46]Send response to host [09:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139615,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:35:46]free response buf [09:35:46]execute_script done [09:35:46]execute_script returns [09:35:46]free content buf [09:35:46]Sock 9.Close socket [09:35:46]Sock 9.Thread stoped [09:35:46]accept exits with 8 [09:35:46]New connection [09:35:46]New thread 3067284836 created [09:35:46]Thread 3067141476 joined [09:35:46]Waiting for new connection... [09:35:46] Sock 8.Parse request [09:35:46]Sock 8.Check first char [09:35:46]Sock 8.First char is OK [09:35:46]request: POST /json_proto HTTP/1.0 [09:35:46]Method: POST [09:35:46]URL: /json_proto [09:35:46]Method is POST - this is cgi request [09:35:46]url: /json_proto [09:35:46]query_string will be loaded in cgi processing [09:35:46]execute_cgi json_proto POST (null) [09:35:46]execute_cgi path=json_proto method=POST [09:35:46]POST find Content-Length [09:35:46]Host: 172.17.50.196:8080 [09:35:46]Content-Length: 331 [09:35:46]Content-Type: application/json [09:35:46] [09:35:46]POST finish read [09:35:46]Found Content-Length = 331 [09:35: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" ] } } [09:35:46]execute_script... [09:35: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" ] } } [09:35:46]POST & json_proto [09:35:46]process_json_proto [09:35:46]json parsed OK: [09:35:46]protocol is kg_v1.0 [09:35:46]action value=get_value [09:35:46]process_action get_value [09:35:46]cmd_get_value [09:35:46]process_action get_value done [09:35:46]requested_data is exist [09:35:46]produce_requested_data [09:35:46]requested_item fm.sale.total is exist - process it [09:35:46]SAM_PROTO_GetFMData [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 13 03 00 [09:35:46]Write to MH i2c: E2 08 00 9D 7F 80 13 03 00 00 00 00 00 9B [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 FD 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 FD 00 9D 7F 00 C7 04 85 04 C3 04 6E 04 04 00 05 1D 02 00 69 04 A3 00 6F 04 04 00 B8 1A 02 00 B1 04 05 00 EC 19 AF 52 01 70 04 05 00 48 0C 4D 03 01 72 04 04 00 A4 0D 62 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 38 22 F8 23 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 74 15 FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4D 02 00 00 B1 04 04 00 28 83 05 09 70 04 04 00 64 57 E1 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 F9 45 F5 EF 90 00 B0 [09:35:47]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 05 1D 02 00 69 04 A3 00 6F 04 04 00 B8 1A 02 00 B1 04 05 00 EC 19 AF 52 01 70 04 05 00 48 0C 4D 03 01 72 04 04 00 A4 0D 62 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 38 22 F8 23 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 74 15 FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4D 02 00 00 B1 04 04 00 28 83 05 09 70 04 04 00 64 57 E1 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 F9 45 F5 EF 90 00 [09:35:47]wFMCommunicate OK [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 17 00 00 [09:35:47]Write to MH i2c: E2 08 00 9E 7F 80 17 00 00 00 00 00 00 9D [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 FD 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 FD 00 9E 7F 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 41 70 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 6F [09:35: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 41 70 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 [09:35:47]wFMCommunicate OK [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 17 00 00 [09:35:47]Write to MH i2c: E2 08 00 9F 7F 80 17 00 00 00 00 00 00 9E [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:47]Read from MH i2c: E2 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 FD 00 [09:35:47]MH_I2C_Read... [09:35:47]Read from MH i2c: E2 FD 00 9F 7F 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 76 [09:35: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 [09:35:47]wFMCommunicate OK [09:35:47]wFMCommunicate request_size=4 [09:35:47]MH_SAM_APDU [09:35:47]CAPDU: 80 17 00 00 [09:35:47]Write to MH i2c: E2 08 00 A0 7F 80 17 00 00 00 00 00 00 9F [09:35:47]Write i2c OK [09:35:47]MH_I2C_Read... [09:35:48]OFD Sender: No OFD packet to send [09:35:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 FD 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 FD 00 A0 7F 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [09:35:48]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 [09:35:48]wFMCommunicate OK [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 17 00 00 [09:35:48]Write to MH i2c: E2 08 00 A1 7F 80 17 00 00 00 00 00 00 A0 [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 E4 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 E4 00 A1 7F 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 80 [09:35:48]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 [09:35:48]wFMCommunicate OK [09:35:48]SAM_PROTO_GetFMData done [09:35:48]requested_item fm.sale_refund.total is exist - process it [09:35:48]requested_item fm.buy.total is exist - process it [09:35:48]requested_item shift.sale.total is exist - process it [09:35:48]SAM_PROTO_GetShiftData [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 13 02 00 [09:35:48]Write to MH i2c: E2 08 00 A2 7F 80 13 02 00 00 00 00 00 9F [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 FD 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 FD 00 A2 7F 00 B5 04 AA 04 B1 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 53 B8 20 70 04 03 00 48 F5 1C 72 04 03 00 0B C3 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 75 79 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 17 4A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 02 00 08 52 70 04 02 00 08 52 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 B6 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 60 [09:35:48]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 53 B8 20 70 04 03 00 48 F5 1C 72 04 03 00 0B C3 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 75 79 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 17 4A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 02 00 08 52 70 04 02 00 08 52 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 B6 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [09:35:48]wFMCommunicate OK [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 17 00 00 [09:35:48]Write to MH i2c: E2 08 00 A3 7F 80 17 00 00 00 00 00 00 A2 [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 FD 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 FD 00 A3 7F 00 F6 03 01 00 01 F7 03 01 00 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 72 [09:35:49]RAPDU: F6 03 01 00 01 F7 03 01 00 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 17 00 00 [09:35:49]Write to MH i2c: E2 08 00 A4 7F 80 17 00 00 00 00 00 00 A3 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 FD 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 FD 00 A4 7F 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 60 [09:35:49]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 17 00 00 [09:35:49]Write to MH i2c: E2 08 00 A5 7F 80 17 00 00 00 00 00 00 A4 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 FD 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 FD 00 A5 7F 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 90 00 1C [09:35:49]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 17 00 00 [09:35:49]Write to MH i2c: E2 08 00 A6 7F 80 17 00 00 00 00 00 00 A5 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [09:35:50]Read from MH i2c: E2 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 D2 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 D2 00 A6 7F 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [09:35:50]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:35:50]wFMCommunicate OK [09:35:50]SAM_PROTO_GetShiftData done [09:35:50]requested_item shift.sale.total_cash is exist - process it [09:35:50]requested_item shift.sale_refund.total is exist - process it [09:35:50]requested_item shift.sale_refund.total_cash is exist - process it [09:35:50]requested_item shift.buy.total is exist - process it [09:35:50]requested_item shift.buy.total_cash is exist - process it [09:35:50]produce_requested_data done [09:35:50]produce_requested_data return {"fm.sale.total":56821744.44,"fm.sale_refund.total":1513562.00,"fm.buy.total":0.00,"shift.sale.total":21443.39,"shift.sale.total_cash":18978.00,"shift.sale_refund.total":210.00,"shift.sale_refund.total_cash":210.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:35:50]process_action_free get_value [09:35:50]json_value_free [09:35:50]json_value_free done [09:35:50]process_json_proto returns [09:35:50]Send response to host [09:35:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56821744.44,"fm.sale_refund.total":1513562.00,"fm.buy.total":0.00,"shift.sale.total":21443.39,"shift.sale.total_cash":18978.00,"shift.sale_refund.total":210.00,"shift.sale_refund.total_cash":210.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:35:50]free response buf [09:35:50]execute_script done [09:35:50]execute_script returns [09:35:50]free content buf [09:35:50]Sock 8.Close socket [09:35:50]Sock 8.Thread stoped [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:43]accept exits with 9 [09:36:43]New connection [09:36:43]New thread 3067141476 created [09:36:43]Thread 3067284836 joined [09:36:43]Waiting for new connection... [09:36:43] Sock 9.Parse request [09:36:43]Sock 9.Check first char [09:36:43]Sock 9.First char is OK [09:36:43]request: POST /json_proto HTTP/1.0 [09:36:43]Method: POST [09:36:43]URL: /json_proto [09:36:43]Method is POST - this is cgi request [09:36:43]url: /json_proto [09:36:43]query_string will be loaded in cgi processing [09:36:43]execute_cgi json_proto POST (null) [09:36:43]execute_cgi path=json_proto method=POST [09:36:43]POST find Content-Length [09:36:43]Host: 172.17.50.196:8080 [09:36:43]Content-Length: 770 [09:36:43]Content-Type: application/json [09:36:43] [09:36:43]POST finish read [09:36:43]Found Content-Length = 770 [09:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095035", "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" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:43]execute_script... [09:36:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095035", "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" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:43]POST & json_proto [09:36:43]process_json_proto [09:36:43]json parsed OK: [09:36:43]protocol is kg_v1.0 [09:36:43]action value=close_receipt [09:36:43]process_action close_receipt [09:36:43]cmd_close_receipt [09:36:43]MH_GetDate [09:36:43]Write to MH i2c: F0 00 00 A7 7F 15 [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: F0 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: F0 09 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: F0 09 00 A7 7F 00 B4 4F 23 67 72 0D 1C 67 AD [09:36:43]GetLastDocTimeStamp 1730367074 [09:36:43]current date 1730367412 [09:36:43]FM_GetShiftState [09:36:43]SAM_PROTO_GetShiftState [09:36:43]wFMCommunicate request_size=4 [09:36:43]MH_SAM_APDU [09:36:43]CAPDU: 80 13 01 00 [09:36:43]Write to MH i2c: E2 08 00 A8 7F 80 13 01 00 00 00 00 00 A4 [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:43]Read from MH i2c: E2 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 0E 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 0E 00 A8 7F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CD [09:36:43]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:36:43]wFMCommunicate OK [09:36:43]SAM_PROTO_GetShiftState done [09:36:43]FM_GetShiftState done [09:36:43]opened in 1730332621 [09:36:43]opened+sec_in_day 1730419021 [09:36:43]quantity*price = 100021 [09:36:43]sum+1 = 100023 [09:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 93 31.10.2024 09:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139616 ФПД: 145496182885239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093653&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139616&fm=145496182885239&tin=02508201610067®Number=0000000000091631&sum=100022 [09:36:44]StoreToDocumentArchive [09:36:44]shift 557 fd 139616 [09:36:44]save to /storage/0557/doc_00139616 [09:36:44]save last doc name /storage/0557/doc_00139616 to /storage/kkm_last_doc_name [09:36:44]save OK [09:36:44]Clear old archive folders... [09:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:44]tlvbuf is 011636B0 [09:36:44]SAM_PROTO_ClearQueue [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 09 00 00 [09:36:44]Write to MH i2c: E2 08 00 B5 7F 80 09 00 00 00 00 00 00 A6 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 B5 7F 00 90 00 A8 [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]SAM_PROTO_ClearQueue done [09:36:44]KKMCreateOFDPacket [09:36:44]OFDProtocolAddRootSTLVToBuf [09:36:44]FM_MakeSignedData [09:36:44]FM_MakeSignedData [09:36:44]SAM_PROTO_SignData [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 01 02 [09:36:44]Write to MH i2c: E2 08 00 B6 7F 80 0D 01 02 00 00 00 00 AE [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 B6 7F 00 90 00 A9 [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=255 [09:36:44]MH_SAM_APDU [09:36:44]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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B5 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 [09:36:44]Write to MH i2c: E2 02 01 B7 7F 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B5 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 00 00 A8 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 B7 7F 00 90 00 AA [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=10 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 02 02 05 53 F8 4C 0B 77 [09:36:44]Write to MH i2c: E2 0D 00 B8 7F 80 0D 02 02 05 00 53 F8 4C 0B 77 00 00 D4 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 B8 7F 00 90 00 AB [09:36:45]RAPDU: 90 00 [09:36:45]wFMCommunicate OK [09:36:45]wFMCommunicate request_size=4 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 0D 03 02 [09:36:45]Write to MH i2c: E2 08 00 B9 7F 80 0D 03 02 00 00 00 00 B3 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 0B 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 0B 00 B9 7F 00 C0 A6 9B 7B 67 B8 3A 7E 90 00 07 [09:36:45]RAPDU: C0 A6 9B 7B 67 B8 3A 7E 90 00 [09:36:45]wFMCommunicate OK [09:36:45]SAM_PROTO_SignData done [09:36:45]FM_MakeSignedData done [09:36:45]CreateOFDProtocolMessage [09:36:45]wFMCommunicate request_size=4 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 11 00 00 [09:36:45]Write to MH i2c: E2 08 00 BA 7F 80 11 00 00 00 00 00 00 B3 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 17 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 17 00 BA 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [09:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:36:45]wFMCommunicate OK [09:36:45]CreateOFDProtocolMessage done [09:36:45]OFDSenderStorePacket 139616 [09:36:45]StoreOFDPacket docnum=139616 [09:36:45]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 6B 5A 07 01 B5 87 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B5 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 53 F8 4C 0B 77 C0 A6 9B 7B 67 B8 3A 7E [09:36:45]CheckFolder [09:36:45]dirname=/storage/ofd_packets [09:36:45]CheckFolder done [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00139616 [09:36:45]NVStorageSaveData ofd_packets/00139616 [09:36:45]File name is /storage/ofd_packets/00139616 [09:36:45]Write 301 bytes [09:36:45]NVStorageSaveData done [09:36:45]OFDSenderStorePacket done [09:36:45]KKMCreateOFDPacket done [09:36:45]NVStorageSaveData kkm_last_timestamp [09:36:45]File name is /storage/kkm_last_timestamp [09:36:45]Write 4 bytes [09:36:45]NVStorageSaveData done [09:36:45]ExternCall_PrintAddStr [09:36:45]wPrintStart [09:36:45]Write to MH i2c: 01 00 00 BB 7F 3A [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 BB 7F 00 00 00 00 00 FF 0F 4F [09:36:45]RasterBufferAndPrint [09:36:45]line Счет N : (1)1095035 [09:36:45]line ИНН: 02508201610067 [09:36:45]line Контрольно-Кассовый Чек [09:36:45]line ПРОДАЖА [09:36:45]line ТРК (МРК, ГНК) : 54 [09:36:45]line Товар: 2710124500 [09:36:45]line Аи-95-К-3 [09:36:45]line 13.480 * 74.20 [09:36:45]line = 1000.22 [09:36:45]line НДС 12% НСП 1% [09:36:45]line > о реализуемом товаре [09:36:45]line ИТОГО: 1000.22 [09:36:45]line НСП 1% : 8.85 [09:36:45]line НДС 12% : 106.22 [09:36:45]line Наличными: 0.00 [09:36:45]line Безнал.: 1000.22 [09:36:45]line Место: АЗС № 101 "Партнер Нефть" [09:36:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:36:45]line СНО: Общий режим [09:36:45]line Чек 93 31.10.2024 09:36 [09:36:45]line Смена: 557 ФФД: 1.0 [09:36:45]line ЗНМ: 0300000081 [09:36:45]line РНМ: 0000000000091631 [09:36:45]line Версия ККМ: 001 [09:36:45]line Платежная система: Mbank [09:36:45]line ФМ: 0000000000874669 [09:36:45]line ФД: 139616 [09:36:45]line ФПД: 145496182885239 [09:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T093653&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139616&fm=145496182885239&tin=02508201610067®Number=0000000000091631&sum=100022 [09:36:45]written 0, free lines is 4095 [09:36:45]OFD Sender: Processing packet 139616 [packets to send 34, broken 33] [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00139616 [09:36:45]OFD Sender: To server: pG, [09:36:45]CommunicateWithHost lk.salyk.kg:30040 [09:36:45]ConnectInit lk.salyk.kg [09:36:45]Connected sock=11 [09:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 6B 5A 07 01 B5 87 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B5 4F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 53 F8 4C 0B 77 C0 A6 9B 7B 67 B8 3A 7E [09:36:45]Write to MH i2c: 01 00 00 E4 7F 63 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 E4 7F 00 00 00 00 00 2A 0D A1 [09:36:45]RasterBufferAndPrint [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]written 0, free lines is 3377 [09:36:45]MH_Cut [09:36:45]Write to MH i2c: D1 01 00 EB 7F 01 3C [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 01 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 01 00 EB 7F 00 3B [09:36:45]Write to MH i2c: 01 00 00 EC 7F 6B [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 94 21 47 00 88 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 60 21 02 00 F4 03 04 00 63 FB 22 67 B6 04 01 00 00 51 B5 55 A5 19 A0 67 33 [09:36:45]CommunicateWithHost err = 0 [09:36:45]CheckOFDResponse [09:36:45]1017 (14) - 77093643461234 [09:36:45]1041 (16) - 0000000000874669 [09:36:45]1040 (4) - 139616 [09:36:45]1012 (4) - 31.10.2024 03:37 [09:36:45]1206 (1) - 0 [09:36:45]OFD Sender: Remove packet 139616 [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00139616 [09:36:45]NVStorageDeleteData [09:36:46]*** Cut start [09:36:46]*** Partial cut [09:36:46]*** CUTSNS_PIN = 1 [09:36:46]OFD Sender: No OFD packet to send [09:36:46]*** CUTSNS_PIN = 0 [09:36:46]*** Brake cut motor [09:36:46]Read from MH i2c: 01 [09:36:46]MH_I2C_Read... [09:36:46]*** Stop cut motor [09:36:46]*** Cut end [09:36:46]Read from MH i2c: 01 07 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 07 00 EC 7F 00 00 00 00 00 FF 0F 80 [09:36:46]process_action close_receipt done [09:36:46]requested_data is exist [09:36:46]produce_requested_data [09:36:46]requested_item fm.sn is exist - process it [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 11 00 00 [09:36:46]Write to MH i2c: E2 08 00 ED 7F 80 11 00 00 00 00 00 00 E6 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 17 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 17 00 ED 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 41 [09:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:36:46]wFMCommunicate OK [09:36:46]requested_item fd.num is exist - process it [09:36:46]SAM_PROTO_GetFieldsCounters [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 13 00 00 [09:36:46]Write to MH i2c: E2 08 00 EE 7F 80 13 00 00 00 00 00 00 E9 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 62 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 62 00 EE 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 D6 [09:36:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_GetFieldsCounters done [09:36:47]requested_item shift.num is exist - process it [09:36:47]requested_item shift.opened is exist - process it [09:36:47]req_shift_opened [09:36:47]FM_GetShiftState [09:36:47]SAM_PROTO_GetShiftState [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 13 01 00 [09:36:47]Write to MH i2c: E2 08 00 EF 7F 80 13 01 00 00 00 00 00 EB [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0E 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0E 00 EF 7F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 14 [09:36:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_GetShiftState done [09:36:47]FM_GetShiftState done [09:36:47]req_shift_opened done [09:36:47]requested_item shift.open_date is exist - process it [09:36:47]req_shift_open_date [09:36:47]req_shift_open_date done [09:36:47]produce_requested_data done [09:36:47]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139616,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:36:47]process_action_free close_receipt [09:36:47]json_value_free [09:36:47]json_value_free done [09:36:47]process_json_proto returns [09:36:47]Send response to host [09:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139616,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:36:47]free response buf [09:36:47]execute_script done [09:36:47]execute_script returns [09:36:47]free content buf [09:36:47]Sock 9.Close socket [09:36:47]Sock 9.Thread stoped [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]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]accept exits with 10 [09:49:51]New connection [09:49:51]New thread 3067284836 created [09:49:51]Thread 3067141476 joined [09:49:51]Waiting for new connection... [09:49:51] Sock 10.Parse request [09:49:51]Sock 10.Check first char [09:49:51]Sock 10.First char is OK [09:49:51]request: POST /json_proto HTTP/1.0 [09:49:51]Method: POST [09:49:51]URL: /json_proto [09:49:51]Method is POST - this is cgi request [09:49:51]url: /json_proto [09:49:51]query_string will be loaded in cgi processing [09:49:51]execute_cgi json_proto POST (null) [09:49:51]execute_cgi path=json_proto method=POST [09:49:51]POST find Content-Length [09:49:51]Host: 172.17.50.196:8080 [09:49:51]Content-Length: 683 [09:49:51]Content-Type: application/json [09:49:51] [09:49:51]POST finish read [09:49:51]Found Content-Length = 683 [09:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095046", "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" ] } } [09:49:51]execute_script... [09:49:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095046", "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" ] } } [09:49:51]POST & json_proto [09:49:51]process_json_proto [09:49:51]json parsed OK: [09:49:51]protocol is kg_v1.0 [09:49:51]action value=close_receipt [09:49:51]process_action close_receipt [09:49:51]cmd_close_receipt [09:49:51]MH_GetDate [09:49:51]Write to MH i2c: F0 00 00 F0 7F 5E [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 09 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 09 00 F0 7F 00 C9 52 23 67 72 0D 1C 67 0E [09:49:51]GetLastDocTimeStamp 1730367413 [09:49:51]current date 1730368201 [09:49:51]FM_GetShiftState [09:49:51]SAM_PROTO_GetShiftState [09:49:51]wFMCommunicate request_size=4 [09:49:51]MH_SAM_APDU [09:49:51]CAPDU: 80 13 01 00 [09:49:51]Write to MH i2c: E2 08 00 F1 7F 80 13 01 00 00 00 00 00 ED [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:51]Read from MH i2c: E2 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0E 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0E 00 F1 7F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 16 [09:49:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:49:51]wFMCommunicate OK [09:49:51]SAM_PROTO_GetShiftState done [09:49:51]FM_GetShiftState done [09:49:51]opened in 1730332621 [09:49:51]opened+sec_in_day 1730419021 [09:49:51]quantity*price = 100021 [09:49:51]sum+1 = 100023 [09:49:51]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 СНО: Общий режим Чек 94 31.10.2024 09:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139617 ФПД: 274091177480606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095001&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139617&fm=274091177480606&tin=02508201610067®Number=0000000000091631&sum=100000 [09:49:52]StoreToDocumentArchive [09:49:52]shift 557 fd 139617 [09:49:52]save to /storage/0557/doc_00139617 [09:49:52]save last doc name /storage/0557/doc_00139617 to /storage/kkm_last_doc_name [09:49:52]save OK [09:49:52]Clear old archive folders... [09:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:52]tlvbuf is 01163EA0 [09:49:52]SAM_PROTO_ClearQueue [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 09 00 00 [09:49:52]Write to MH i2c: E2 08 00 FE 7F 80 09 00 00 00 00 00 00 EF [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 FE 7F 00 90 00 F1 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_ClearQueue done [09:49:52]KKMCreateOFDPacket [09:49:52]OFDProtocolAddRootSTLVToBuf [09:49:52]FM_MakeSignedData [09:49:52]FM_MakeSignedData [09:49:52]SAM_PROTO_SignData [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 01 02 [09:49:52]Write to MH i2c: E2 08 00 FF 7F 80 0D 01 02 00 00 00 00 F7 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 FF 7F 00 90 00 F2 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=255 [09:49:52]MH_SAM_APDU [09:49:52]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 5E 00 00 00 F4 03 04 00 C9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F9 [09:49:52]Write to MH i2c: E2 02 01 00 80 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 5E 00 00 00 F4 03 04 00 C9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F9 00 00 54 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 00 80 00 90 00 F4 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=10 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 02 02 05 48 D3 45 11 9E [09:49:53]Write to MH i2c: E2 0D 00 01 80 80 0D 02 02 05 00 48 D3 45 11 9E 00 00 14 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 01 80 00 90 00 F5 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 03 02 [09:49:53]Write to MH i2c: E2 08 00 02 80 80 0D 03 02 00 00 00 00 FD [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 02 80 00 10 E9 7F 85 F2 BC C3 CE 90 00 3A [09:49:53]RAPDU: 10 E9 7F 85 F2 BC C3 CE 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_SignData done [09:49:53]FM_MakeSignedData done [09:49:53]CreateOFDProtocolMessage [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 11 00 00 [09:49:53]Write to MH i2c: E2 08 00 03 80 80 11 00 00 00 00 00 00 FD [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 03 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 58 [09:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:49:53]wFMCommunicate OK [09:49:53]CreateOFDProtocolMessage done [09:49:53]OFDSenderStorePacket 139617 [09:49:53]StoreOFDPacket docnum=139617 [09:49: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 0F 01 00 00 96 04 07 01 92 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 C9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F9 48 D3 45 11 9E 10 E9 7F 85 F2 BC C3 CE [09:49:53]CheckFolder [09:49:53]dirname=/storage/ofd_packets [09:49:53]CheckFolder done [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00139617 [09:49:53]NVStorageSaveData ofd_packets/00139617 [09:49:53]File name is /storage/ofd_packets/00139617 [09:49:53]Write 301 bytes [09:49:53]NVStorageSaveData done [09:49:53]OFDSenderStorePacket done [09:49:53]KKMCreateOFDPacket done [09:49:53]NVStorageSaveData kkm_last_timestamp [09:49:53]File name is /storage/kkm_last_timestamp [09:49:53]Write 4 bytes [09:49:53]NVStorageSaveData done [09:49:53]ExternCall_PrintAddStr [09:49:53]wPrintStart [09:49:53]Write to MH i2c: 01 00 00 04 80 84 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 04 80 00 00 00 00 00 FF 0F 99 [09:49:53]RasterBufferAndPrint [09:49:53]line Счет N : (1)1095046 [09:49:53]line ИНН: 02508201610067 [09:49:53]line Контрольно-Кассовый Чек [09:49:53]line ПРОДАЖА [09:49:53]line ТРК (МРК, ГНК) : 44 [09:49:53]line Товар: 2710124500 [09:49:53]line Аи-95-К-3 [09:49:53]line 13.480 * 74.20 [09:49:53]line = 1000.22 [09:49:53]line НДС 12% НСП 1% [09:49:53]line > о реализуемом товаре [09:49:53]line ОКРУГЛЕНИЕ: -0.22 [09:49:53]line ИТОГО: 1000.00 [09:49:53]line Внесено: 1000.00 [09:49:53]line СДАЧА: 0.00 [09:49:53]line НСП 1% : 8.85 [09:49:53]line НДС 12% : 106.22 [09:49:53]line Наличными: 1000.00 [09:49:53]line Безнал.: 0.00 [09:49:53]line Место: АЗС № 101 "Партнер Нефть" [09:49:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:49:53]line СНО: Общий режим [09:49:53]line Чек 94 31.10.2024 09:50 [09:49:53]line Смена: 557 ФФД: 1.0 [09:49:53]line ЗНМ: 0300000081 [09:49:53]line РНМ: 0000000000091631 [09:49:53]line Версия ККМ: 001 [09:49:53]line ФМ: 0000000000874669 [09:49:53]line ФД: 139617 [09:49:53]line ФПД: 274091177480606 [09:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095001&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139617&fm=274091177480606&tin=02508201610067®Number=0000000000091631&sum=100000 [09:49:53]OFD Sender: Processing packet 139617 [packets to send 34, broken 33] [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00139617 [09:49:53]OFD Sender: To server: pG, [09:49:53]CommunicateWithHost lk.salyk.kg:30040 [09:49:53]ConnectInit lk.salyk.kg [09:49:53]written 0, free lines is 4095 [09:49:53]Connected sock=9 [09:49: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 0F 01 00 00 96 04 07 01 92 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 C9 52 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F9 48 D3 45 11 9E 10 E9 7F 85 F2 BC C3 CE [09:49: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 94 7E 47 00 95 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 21 02 00 F4 03 04 00 77 FE 22 67 B6 04 01 00 00 93 0B B9 61 80 09 D1 06 [09:49:53]CommunicateWithHost err = 0 [09:49:53]CheckOFDResponse [09:49:53]1017 (14) - 77093643461234 [09:49:53]1041 (16) - 0000000000874669 [09:49:53]1040 (4) - 139617 [09:49:53]1012 (4) - 31.10.2024 03:50 [09:49:53]1206 (1) - 0 [09:49:53]OFD Sender: Remove packet 139617 [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00139617 [09:49:53]NVStorageDeleteData [09:49:54]Write to MH i2c: 01 00 00 2F 80 AF [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 2F 80 00 00 00 00 00 FF 0C C1 [09:49:54]RasterBufferAndPrint [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]written 0, free lines is 3335 [09:49:54]MH_Cut [09:49:54]Write to MH i2c: D1 01 00 36 80 01 88 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 36 80 00 87 [09:49:54]Write to MH i2c: 01 00 00 37 80 B7 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]OFD Sender: No OFD packet to send [09:49:54]*** Cut start [09:49:54]*** Partial cut [09:49:54]*** CUTSNS_PIN = 1 [09:49:54]*** CUTSNS_PIN = 0 [09:49:54]*** Brake cut motor [09:49:55]Read from MH i2c: 01 [09:49:55]MH_I2C_Read... [09:49:55]*** Stop cut motor [09:49:55]*** Cut end [09:49:55]Read from MH i2c: 01 07 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 37 80 00 00 00 00 00 FF 0F CC [09:49:55]process_action close_receipt done [09:49:55]requested_data is exist [09:49:55]produce_requested_data [09:49:55]requested_item fm.sn is exist - process it [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 11 00 00 [09:49:55]Write to MH i2c: E2 08 00 38 80 80 11 00 00 00 00 00 00 32 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 38 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8D [09:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:49:55]wFMCommunicate OK [09:49:55]requested_item fd.num is exist - process it [09:49:55]SAM_PROTO_GetFieldsCounters [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 00 00 [09:49:55]Write to MH i2c: E2 08 00 39 80 80 13 00 00 00 00 00 00 35 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 39 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 26 [09:49: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 61 21 02 00 0E 04 04 00 2D 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 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetFieldsCounters done [09:49:55]requested_item shift.num is exist - process it [09:49:55]requested_item shift.opened is exist - process it [09:49:55]req_shift_opened [09:49:55]FM_GetShiftState [09:49:55]SAM_PROTO_GetShiftState [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 01 00 [09:49:55]Write to MH i2c: E2 08 00 3A 80 80 13 01 00 00 00 00 00 37 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 3A 80 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 60 [09:49:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetShiftState done [09:49:55]FM_GetShiftState done [09:49:55]req_shift_opened done [09:49:55]requested_item shift.open_date is exist - process it [09:49:55]req_shift_open_date [09:49:55]req_shift_open_date done [09:49:55]produce_requested_data done [09:49:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139617,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:49:55]process_action_free close_receipt [09:49:55]json_value_free [09:49:55]json_value_free done [09:49:55]process_json_proto returns [09:49:55]Send response to host [09:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139617,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:49:55]free response buf [09:49:55]execute_script done [09:49:55]execute_script returns [09:49:55]free content buf [09:49:55]Sock 10.Close socket [09:49:55]Sock 10.Thread stoped [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:30]accept exits with 8 [09:53:30]New connection [09:53:30]New thread 3067141476 created [09:53:30]Thread 3067284836 joined [09:53:30]Waiting for new connection... [09:53:30] Sock 8.Parse request [09:53:30]Sock 8.Check first char [09:53:30]Sock 8.First char is OK [09:53:30]request: POST /json_proto HTTP/1.0 [09:53:30]Method: POST [09:53:30]URL: /json_proto [09:53:30]Method is POST - this is cgi request [09:53:30]url: /json_proto [09:53:30]query_string will be loaded in cgi processing [09:53:30]execute_cgi json_proto POST (null) [09:53:30]execute_cgi path=json_proto method=POST [09:53:30]POST find Content-Length [09:53:30]Host: 172.17.50.196:8080 [09:53:30]Content-Length: 746 [09:53:30]Content-Type: application/json [09:53:30] [09:53:30]POST finish read [09:53:30]Found Content-Length = 746 [09:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335494", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:30]execute_script... [09:53:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335494", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:30]POST & json_proto [09:53:30]process_json_proto [09:53:30]json parsed OK: [09:53:30]protocol is kg_v1.0 [09:53:30]action value=close_receipt [09:53:30]process_action close_receipt [09:53:30]cmd_close_receipt [09:53:30]MH_GetDate [09:53:30]Write to MH i2c: F0 00 00 3B 80 AA [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: F0 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: F0 09 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: F0 09 00 3B 80 00 A4 53 23 67 72 0D 1C 67 36 [09:53:30]GetLastDocTimeStamp 1730368201 [09:53:30]current date 1730368420 [09:53:30]FM_GetShiftState [09:53:30]SAM_PROTO_GetShiftState [09:53:30]wFMCommunicate request_size=4 [09:53:30]MH_SAM_APDU [09:53:30]CAPDU: 80 13 01 00 [09:53:30]Write to MH i2c: E2 08 00 3C 80 80 13 01 00 00 00 00 00 39 [09:53:30]Write i2c OK [09:53:30]MH_I2C_Read... [09:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:30]Read from MH i2c: E2 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 0E 00 [09:53:30]MH_I2C_Read... [09:53:30]Read from MH i2c: E2 0E 00 3C 80 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 62 [09:53:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:53:30]wFMCommunicate OK [09:53:30]SAM_PROTO_GetShiftState done [09:53:30]FM_GetShiftState done [09:53:30]opened in 1730332621 [09:53:30]opened+sec_in_day 1730419021 [09:53:30]quantity*price = 28800 [09:53:30]sum+1 = 28801 [09:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 0.00 Безнал.: 288.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 95 31.10.2024 09:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139618 ФПД: 172853162513678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095340&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139618&fm=172853162513678&tin=02508201610067®Number=0000000000091631&sum=28800 0 [09:53:31]StoreToDocumentArchive [09:53:31]shift 557 fd 139618 [09:53:31]save to /storage/0557/doc_00139618 [09:53:31]save last doc name /storage/0557/doc_00139618 to /storage/kkm_last_doc_name [09:53:31]save OK [09:53:31]Clear old archive folders... [09:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=271 [09:53:31]tlvbuf is 011AB470 [09:53:31]SAM_PROTO_ClearQueue [09:53:31]wFMCommunicate request_size=4 [09:53:31]MH_SAM_APDU [09:53:31]CAPDU: 80 09 00 00 [09:53:31]Write to MH i2c: E2 08 00 49 80 80 09 00 00 00 00 00 00 3B [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:31]Read from MH i2c: E2 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: E2 03 00 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: E2 03 00 49 80 00 90 00 3D [09:53:31]RAPDU: 90 00 [09:53:31]wFMCommunicate OK [09:53:31]SAM_PROTO_ClearQueue done [09:53:31]KKMCreateOFDPacket [09:53:31]OFDProtocolAddRootSTLVToBuf [09:53:31]FM_MakeSignedData [09:53:31]FM_MakeSignedData [09:53:31]SAM_PROTO_SignData [09:53:31]wFMCommunicate request_size=4 [09:53:31]MH_SAM_APDU [09:53:31]CAPDU: 80 0D 01 02 [09:53:31]Write to MH i2c: E2 08 00 4A 80 80 0D 01 02 00 00 00 00 43 [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:31]Read from MH i2c: E2 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: E2 03 00 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: E2 03 00 4A 80 00 90 00 3E [09:53:31]RAPDU: 90 00 [09:53:31]wFMCommunicate OK [09:53:31]wFMCommunicate request_size=255 [09:53:31]MH_SAM_APDU [09:53:31]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 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 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [09:53:31]Write to MH i2c: E2 02 01 4B 80 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 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 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 19 [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 4B 80 00 90 00 3F [09:53:32]RAPDU: 90 00 [09:53:32]wFMCommunicate OK [09:53:32]wFMCommunicate request_size=30 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 62 21 02 00 35 04 06 00 9D 35 83 59 95 0E [09:53:32]Write to MH i2c: E2 21 00 4C 80 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 62 21 02 00 35 04 06 00 9D 35 83 59 95 0E 00 00 1D [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 4C 80 00 90 00 40 [09:53:32]RAPDU: 90 00 [09:53:32]wFMCommunicate OK [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 0D 03 02 [09:53:32]Write to MH i2c: E2 08 00 4D 80 80 0D 03 02 00 00 00 00 48 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 0B 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 0B 00 4D 80 00 FB 00 05 4E 8B 4F 9D 28 90 00 36 [09:53:32]RAPDU: FB 00 05 4E 8B 4F 9D 28 90 00 [09:53:32]wFMCommunicate OK [09:53:32]SAM_PROTO_SignData done [09:53:32]FM_MakeSignedData done [09:53:32]CreateOFDProtocolMessage [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 11 00 00 [09:53:32]Write to MH i2c: E2 08 00 4E 80 80 11 00 00 00 00 00 00 48 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 17 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 17 00 4E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A3 [09:53:32]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:32]wFMCommunicate OK [09:53:32]CreateOFDProtocolMessage done [09:53:32]OFDSenderStorePacket 139618 [09:53:32]StoreOFDPacket docnum=139618 [09:53: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 23 01 00 00 70 45 1B 01 5A 00 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 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 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 9D 35 83 59 95 0E FB 00 05 4E 8B 4F 9D 28 [09:53:32]CheckFolder [09:53:32]dirname=/storage/ofd_packets [09:53:32]CheckFolder done [09:53:32]ProducePacketName [09:53:32]name=ofd_packets/00139618 [09:53:32]NVStorageSaveData ofd_packets/00139618 [09:53:32]File name is /storage/ofd_packets/00139618 [09:53:32]Write 321 bytes [09:53:32]NVStorageSaveData done [09:53:32]OFDSenderStorePacket done [09:53:32]KKMCreateOFDPacket done [09:53:32]NVStorageSaveData kkm_last_timestamp [09:53:32]File name is /storage/kkm_last_timestamp [09:53:32]Write 4 bytes [09:53:32]NVStorageSaveData done [09:53:32]OFD Sender: Processing packet 139618 [packets to send 34, broken 33] [09:53:32]ProducePacketName [09:53:32]name=ofd_packets/00139618 [09:53:32]OFD Sender: To server: pG, [09:53:32]CommunicateWithHost lk.salyk.kg:30040 [09:53:32]ConnectInit lk.salyk.kg [09:53:32]ExternCall_PrintAddStr [09:53:32]wPrintStart [09:53:32]Write to MH i2c: 01 00 00 4F 80 CF [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: 01 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: 01 07 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: 01 07 00 4F 80 00 00 00 00 00 FF 0F E4 [09:53:32]RasterBufferAndPrint [09:53:32]line Счет N : (3)335494 [09:53:32]line ИНН: 02508201610067 [09:53:32]line Контрольно-Кассовый Чек [09:53:32]line ПРОДАЖА [09:53:32]line Товар: 47802995 [09:53:32]line Сигареты Winston XS Silver [09:53:32]line 2.000 * 144.00 [09:53:32]line = 288.00 [09:53:32]line НДС 12% НСП 1% [09:53:32]line > о реализуемом товаре [09:53:32]line ИТОГО: 288.00 [09:53:32]line НСП 1% : 2.55 [09:53:32]line НДС 12% : 30.58 [09:53:32]line Наличными: 0.00 [09:53:32]line Безнал.: 288.00 [09:53:32]line Место: АЗС № 101 "Партнер Нефть" [09:53:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:53:32]line СНО: Общий режим [09:53:32]line Чек 95 31.10.2024 09:53 [09:53:32]line Смена: 557 ФФД: 1.0 [09:53:32]line ЗНМ: 0300000081 [09:53:32]line РНМ: 0000000000091631 [09:53:32]line Версия ККМ: 001 [09:53:32]line Платежная система: Mbank [09:53:32]line ФМ: 0000000000874669 [09:53:32]line ФД: 139618 [09:53:32]line ФПД: 172853162513678 [09:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095340&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139618&fm=172853162513678&tin=02508201610067®Number=0000000000091631&sum=28800 [09:53:32]line 0 [09:53:32]Connected sock=11 [09:53: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 23 01 00 00 70 45 1B 01 5A 00 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 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 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 9D 35 83 59 95 0E FB 00 05 4E 8B 4F 9D 28 [09:53:32]written 0, free lines is 4095 [09:53: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 B2 07 47 00 8F DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 21 02 00 F4 03 04 00 52 FF 22 67 B6 04 01 00 00 4A F8 1E DE F0 ED 32 54 [09:53:32]CommunicateWithHost err = 0 [09:53:32]CheckOFDResponse [09:53:32]1017 (14) - 77093643461234 [09:53:32]1041 (16) - 0000000000874669 [09:53:32]1040 (4) - 139618 [09:53:32]1012 (4) - 31.10.2024 03:53 [09:53:32]1206 (1) - 0 [09:53:32]OFD Sender: Remove packet 139618 [09:53:32]ProducePacketName [09:53:32]name=ofd_packets/00139618 [09:53:32]NVStorageDeleteData [09:53:33]Write to MH i2c: 01 00 00 78 80 F8 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 07 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 07 00 78 80 00 00 00 00 00 15 0D 21 [09:53:33]RasterBufferAndPrint [09:53:33]line [09:53:33]line [09:53:33]line [09:53:33]line [09:53:33]line [09:53:33]written 0, free lines is 3356 [09:53:33]MH_Cut [09:53:33]Write to MH i2c: D1 01 00 7F 80 01 D1 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: D1 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: D1 01 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: D1 01 00 7F 80 00 D0 [09:53:33]Write to MH i2c: 01 00 00 80 80 00 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]OFD Sender: No OFD packet to send [09:53:33]*** Cut start [09:53:33]*** Partial cut [09:53:33]*** CUTSNS_PIN = 1 [09:53:33]*** CUTSNS_PIN = 0 [09:53:33]*** Brake cut motor [09:53:34]Read from MH i2c: 01 [09:53:34]MH_I2C_Read... [09:53:34]*** Stop cut motor [09:53:34]*** Cut end [09:53:34]Read from MH i2c: 01 07 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: 01 07 00 80 80 00 00 00 00 00 FF 0F 15 [09:53:34]process_action close_receipt done [09:53:34]requested_data is exist [09:53:34]produce_requested_data [09:53:34]requested_item fm.sn is exist - process it [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 11 00 00 [09:53:34]Write to MH i2c: E2 08 00 81 80 80 11 00 00 00 00 00 00 7B [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 17 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 17 00 81 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [09:53:34]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:34]wFMCommunicate OK [09:53:34]requested_item fd.num is exist - process it [09:53:34]SAM_PROTO_GetFieldsCounters [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 13 00 00 [09:53:34]Write to MH i2c: E2 08 00 82 80 80 13 00 00 00 00 00 00 7E [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 62 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 62 00 82 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 73 [09:53: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 62 21 02 00 0E 04 04 00 2D 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 [09:53:34]wFMCommunicate OK [09:53:34]SAM_PROTO_GetFieldsCounters done [09:53:34]requested_item shift.num is exist - process it [09:53:34]requested_item shift.opened is exist - process it [09:53:34]req_shift_opened [09:53:34]FM_GetShiftState [09:53:34]SAM_PROTO_GetShiftState [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 13 01 00 [09:53:34]Write to MH i2c: E2 08 00 83 80 80 13 01 00 00 00 00 00 80 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 0E 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 0E 00 83 80 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A9 [09:53:34]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:53:34]wFMCommunicate OK [09:53:34]SAM_PROTO_GetShiftState done [09:53:34]FM_GetShiftState done [09:53:34]req_shift_opened done [09:53:34]requested_item shift.open_date is exist - process it [09:53:34]req_shift_open_date [09:53:34]req_shift_open_date done [09:53:34]produce_requested_data done [09:53:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139618,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:53:34]process_action_free close_receipt [09:53:34]json_value_free [09:53:34]json_value_free done [09:53:34]process_json_proto returns [09:53:34]Send response to host [09:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139618,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:53:34]free response buf [09:53:34]execute_script done [09:53:34]execute_script returns [09:53:34]free content buf [09:53:34]Sock 8.Close socket [09:53:34]Sock 8.Thread stoped [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:08]accept exits with 9 [09:54:08]New connection [09:54:08]New thread 3067284836 created [09:54:08]Thread 3067141476 joined [09:54:08]Waiting for new connection... [09:54:08] Sock 9.Parse request [09:54:08]Sock 9.Check first char [09:54:08]Sock 9.First char is OK [09:54:08]request: POST /json_proto HTTP/1.0 [09:54:08]Method: POST [09:54:08]URL: /json_proto [09:54:08]Method is POST - this is cgi request [09:54:08]url: /json_proto [09:54:08]query_string will be loaded in cgi processing [09:54:08]execute_cgi json_proto POST (null) [09:54:08]execute_cgi path=json_proto method=POST [09:54:08]POST find Content-Length [09:54:08]Host: 172.17.50.196:8080 [09:54:08]Content-Length: 660 [09:54:08]Content-Type: application/json [09:54:08] [09:54:08]POST finish read [09:54:08]Found Content-Length = 660 [09:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335495", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:08]execute_script... [09:54: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)335495", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:08]POST & json_proto [09:54:08]process_json_proto [09:54:08]json parsed OK: [09:54:08]protocol is kg_v1.0 [09:54:08]action value=close_receipt [09:54:08]process_action close_receipt [09:54:08]cmd_close_receipt [09:54:08]MH_GetDate [09:54:08]Write to MH i2c: F0 00 00 84 80 F3 [09:54:08]Write i2c OK [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: F0 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: F0 09 00 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: F0 09 00 84 80 00 CA 53 23 67 72 0D 1C 67 A5 [09:54:08]GetLastDocTimeStamp 1730368420 [09:54:08]current date 1730368458 [09:54:08]FM_GetShiftState [09:54:08]SAM_PROTO_GetShiftState [09:54:08]wFMCommunicate request_size=4 [09:54:08]MH_SAM_APDU [09:54:08]CAPDU: 80 13 01 00 [09:54:08]Write to MH i2c: E2 08 00 85 80 80 13 01 00 00 00 00 00 82 [09:54:08]Write i2c OK [09:54:08]MH_I2C_Read... [09:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:08]Read from MH i2c: E2 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: E2 0E 00 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: E2 0E 00 85 80 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AB [09:54:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:54:08]wFMCommunicate OK [09:54:08]SAM_PROTO_GetShiftState done [09:54:08]FM_GetShiftState done [09:54:08]opened in 1730332621 [09:54:08]opened+sec_in_day 1730419021 [09:54:08]quantity*price = 4900 [09:54:08]sum+1 = 4901 [09:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 96 31.10.2024 09:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139619 ФПД: 112879366138538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095418&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139619&fm=112879366138538&tin=02508201610067®Number=0000000000091631&sum=4900 0 [09:54:09]StoreToDocumentArchive [09:54:09]shift 557 fd 139619 [09:54:09]save to /storage/0557/doc_00139619 [09:54:09]save last doc name /storage/0557/doc_00139619 to /storage/kkm_last_doc_name [09:54:09]save OK [09:54:09]Clear old archive folders... [09:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=291 [09:54:09]tlvbuf is 0120E370 [09:54:09]SAM_PROTO_ClearQueue [09:54:09]wFMCommunicate request_size=4 [09:54:09]MH_SAM_APDU [09:54:09]CAPDU: 80 09 00 00 [09:54:09]Write to MH i2c: E2 08 00 92 80 80 09 00 00 00 00 00 00 84 [09:54:09]Write i2c OK [09:54:09]MH_I2C_Read... [09:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:09]Read from MH i2c: E2 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 92 80 00 90 00 86 [09:54:09]RAPDU: 90 00 [09:54:09]wFMCommunicate OK [09:54:09]SAM_PROTO_ClearQueue done [09:54:09]KKMCreateOFDPacket [09:54:09]OFDProtocolAddRootSTLVToBuf [09:54:09]FM_MakeSignedData [09:54:09]FM_MakeSignedData [09:54:09]SAM_PROTO_SignData [09:54:09]wFMCommunicate request_size=4 [09:54:09]MH_SAM_APDU [09:54:09]CAPDU: 80 0D 01 02 [09:54:09]Write to MH i2c: E2 08 00 93 80 80 0D 01 02 00 00 00 00 8C [09:54:09]Write i2c OK [09:54:09]MH_I2C_Read... [09:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:09]Read from MH i2c: E2 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 93 80 00 90 00 87 [09:54:09]RAPDU: 90 00 [09:54:09]wFMCommunicate OK [09:54:09]wFMCommunicate request_size=255 [09:54:09]MH_SAM_APDU [09:54:09]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CA 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [09:54:09]Write to MH i2c: E2 02 01 94 80 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CA 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 74 [09:54:09]Write i2c OK [09:54:09]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 03 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 03 00 94 80 00 90 00 88 [09:54:10]RAPDU: 90 00 [09:54:10]wFMCommunicate OK [09:54:10]wFMCommunicate request_size=50 [09:54:10]MH_SAM_APDU [09:54:10]CAPDU: 80 0D 02 02 2D 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 21 02 00 35 04 06 00 66 A9 C6 85 6A AA [09:54:10]Write to MH i2c: E2 35 00 95 80 80 0D 02 02 2D 00 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 21 02 00 35 04 06 00 66 A9 C6 85 6A AA 00 00 E5 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 03 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 03 00 95 80 00 90 00 89 [09:54:10]RAPDU: 90 00 [09:54:10]wFMCommunicate OK [09:54:10]wFMCommunicate request_size=4 [09:54:10]MH_SAM_APDU [09:54:10]CAPDU: 80 0D 03 02 [09:54:10]Write to MH i2c: E2 08 00 96 80 80 0D 03 02 00 00 00 00 91 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0B 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0B 00 96 80 00 B9 5B ED 23 5E 7B 0B A5 90 00 3F [09:54:10]RAPDU: B9 5B ED 23 5E 7B 0B A5 90 00 [09:54:10]wFMCommunicate OK [09:54:10]SAM_PROTO_SignData done [09:54:10]FM_MakeSignedData done [09:54:10]CreateOFDProtocolMessage [09:54:10]wFMCommunicate request_size=4 [09:54:10]MH_SAM_APDU [09:54:10]CAPDU: 80 11 00 00 [09:54:10]Write to MH i2c: E2 08 00 97 80 80 11 00 00 00 00 00 00 91 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 17 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 17 00 97 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EC [09:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:54:10]wFMCommunicate OK [09:54:10]CreateOFDProtocolMessage done [09:54:10]OFDSenderStorePacket 139619 [09:54:10]StoreOFDPacket docnum=139619 [09:54: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 37 01 00 00 D7 E2 2F 01 FF 9C 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CA 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 21 02 00 35 04 06 00 66 A9 C6 85 6A AA B9 5B ED 23 5E 7B 0B A5 [09:54:10]CheckFolder [09:54:10]dirname=/storage/ofd_packets [09:54:10]CheckFolder done [09:54:10]ProducePacketName [09:54:10]name=ofd_packets/00139619 [09:54:10]NVStorageSaveData ofd_packets/00139619 [09:54:10]File name is /storage/ofd_packets/00139619 [09:54:10]Write 341 bytes [09:54:10]NVStorageSaveData done [09:54:10]OFDSenderStorePacket done [09:54:10]KKMCreateOFDPacket done [09:54:10]NVStorageSaveData kkm_last_timestamp [09:54:10]File name is /storage/kkm_last_timestamp [09:54:10]Write 4 bytes [09:54:10]NVStorageSaveData done [09:54:10]ExternCall_PrintAddStr [09:54:10]wPrintStart [09:54:10]Write to MH i2c: 01 00 00 98 80 18 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 07 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 07 00 98 80 00 00 00 00 00 FF 0F 2D [09:54:10]RasterBufferAndPrint [09:54:10]line Счет N : (3)335495 [09:54:10]line ИНН: 02508201610067 [09:54:10]line Контрольно-Кассовый Чек [09:54:10]line ПРОДАЖА [09:54:10]line Товар: 46227720 [09:54:10]line Р/ж mentos pure fresh виноград ролл 15,5 [09:54:10]line 1.000 * 49.00 [09:54:10]line = 49.00 [09:54:10]line НДС 12% НСП 1% [09:54:10]line > о реализуемом товаре [09:54:10]line ИТОГО: 49.00 [09:54:10]line НСП 1% : 0.43 [09:54:10]line НДС 12% : 5.20 [09:54:10]line Наличными: 49.00 [09:54:10]line Безнал.: 0.00 [09:54:10]line Место: АЗС № 101 "Партнер Нефть" [09:54:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:54:10]line СНО: Общий режим [09:54:10]line Чек 96 31.10.2024 09:54 [09:54:10]line Смена: 557 ФФД: 1.0 [09:54:10]line ЗНМ: 0300000081 [09:54:10]line РНМ: 0000000000091631 [09:54:10]line Версия ККМ: 001 [09:54:10]line ФМ: 0000000000874669 [09:54:10]line ФД: 139619 [09:54:10]line ФПД: 112879366138538 [09:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T095418&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139619&fm=112879366138538&tin=02508201610067®Number=0000000000091631&sum=4900 [09:54:10]line 0 [09:54:10]OFD Sender: Processing packet 139619 [packets to send 34, broken 33] [09:54:10]ProducePacketName [09:54:10]name=ofd_packets/00139619 [09:54:10]OFD Sender: To server: pG, [09:54:10]CommunicateWithHost lk.salyk.kg:30040 [09:54:10]ConnectInit lk.salyk.kg [09:54:10]written 0, free lines is 4095 [09:54:10]Connected sock=10 [09:54: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 37 01 00 00 D7 E2 2F 01 FF 9C 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CA 53 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 21 02 00 35 04 06 00 66 A9 C6 85 6A AA B9 5B ED 23 5E 7B 0B A5 [09:54: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 78 F2 47 00 ED AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 21 02 00 F4 03 04 00 78 FF 22 67 B6 04 01 00 00 E0 8E 4A 3A CD 19 1B 95 [09:54:10]CommunicateWithHost err = 0 [09:54:10]CheckOFDResponse [09:54:10]1017 (14) - 77093643461234 [09:54:10]1041 (16) - 0000000000874669 [09:54:10]1040 (4) - 139619 [09:54:10]1012 (4) - 31.10.2024 03:54 [09:54:10]1206 (1) - 0 [09:54:10]OFD Sender: Remove packet 139619 [09:54:10]ProducePacketName [09:54:10]name=ofd_packets/00139619 [09:54:10]NVStorageDeleteData [09:54:11]Write to MH i2c: 01 00 00 C1 80 41 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: 01 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: 01 07 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: 01 07 00 C1 80 00 00 00 00 00 0C 0D 61 [09:54:11]RasterBufferAndPrint [09:54:11]line [09:54:11]line [09:54:11]line [09:54:11]line [09:54:11]line [09:54:11]written 0, free lines is 3349 [09:54:11]MH_Cut [09:54:11]Write to MH i2c: D1 01 00 C8 80 01 1A [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: D1 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: D1 01 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: D1 01 00 C8 80 00 19 [09:54:11]Write to MH i2c: 01 00 00 C9 80 49 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]OFD Sender: No OFD packet to send [09:54:11]*** Cut start [09:54:11]*** Partial cut [09:54:11]*** CUTSNS_PIN = 1 [09:54:11]*** CUTSNS_PIN = 0 [09:54:12]*** Brake cut motor [09:54:12]Read from MH i2c: 01 [09:54:12]MH_I2C_Read... [09:54:12]*** Stop cut motor [09:54:12]*** Cut end [09:54:12]Read from MH i2c: 01 07 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 07 00 C9 80 00 00 00 00 00 FF 0F 5E [09:54:12]process_action close_receipt done [09:54:12]requested_data is exist [09:54:12]produce_requested_data [09:54:12]requested_item fm.sn is exist - process it [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 11 00 00 [09:54:12]Write to MH i2c: E2 08 00 CA 80 80 11 00 00 00 00 00 00 C4 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 17 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 17 00 CA 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [09:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:54:12]wFMCommunicate OK [09:54:12]requested_item fd.num is exist - process it [09:54:12]SAM_PROTO_GetFieldsCounters [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 13 00 00 [09:54:12]Write to MH i2c: E2 08 00 CB 80 80 13 00 00 00 00 00 00 C7 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 62 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 62 00 CB 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 63 21 02 00 0E 04 04 00 2D 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 C0 [09:54: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 63 21 02 00 0E 04 04 00 2D 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 [09:54:12]wFMCommunicate OK [09:54:12]SAM_PROTO_GetFieldsCounters done [09:54:12]requested_item shift.num is exist - process it [09:54:12]requested_item shift.opened is exist - process it [09:54:12]req_shift_opened [09:54:12]FM_GetShiftState [09:54:12]SAM_PROTO_GetShiftState [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 13 01 00 [09:54:12]Write to MH i2c: E2 08 00 CC 80 80 13 01 00 00 00 00 00 C9 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 0E 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 0E 00 CC 80 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F2 [09:54:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [09:54:12]wFMCommunicate OK [09:54:12]SAM_PROTO_GetShiftState done [09:54:12]FM_GetShiftState done [09:54:12]req_shift_opened done [09:54:12]requested_item shift.open_date is exist - process it [09:54:12]req_shift_open_date [09:54:12]req_shift_open_date done [09:54:12]produce_requested_data done [09:54:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139619,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [09:54:12]process_action_free close_receipt [09:54:12]json_value_free [09:54:12]json_value_free done [09:54:12]process_json_proto returns [09:54:12]Send response to host [09:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139619,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [09:54:12]free response buf [09:54:12]execute_script done [09:54:12]execute_script returns [09:54:12]free content buf [09:54:12]Sock 9.Close socket [09:54:12]Sock 9.Thread stoped [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]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:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:36]accept exits with 8 [10:14:36]New connection [10:14:36]New thread 3067141476 created [10:14:36]Thread 3067284836 joined [10:14:36]Waiting for new connection... [10:14:36] Sock 8.Parse request [10:14:36]Sock 8.Check first char [10:14:36]Sock 8.First char is OK [10:14:36]request: POST /json_proto HTTP/1.0 [10:14:36]Method: POST [10:14:36]URL: /json_proto [10:14:36]Method is POST - this is cgi request [10:14:36]url: /json_proto [10:14:36]query_string will be loaded in cgi processing [10:14:36]execute_cgi json_proto POST (null) [10:14:36]execute_cgi path=json_proto method=POST [10:14:36]POST find Content-Length [10:14:36]Host: 172.17.50.196:8080 [10:14:36]Content-Length: 679 [10:14:36]Content-Type: application/json [10:14:36] [10:14:36]POST finish read [10:14:36]Found Content-Length = 679 [10:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095059", "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" : 10.620, "sum" : 710.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:36]execute_script... [10:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095059", "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" : 10.620, "sum" : 710.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:36]POST & json_proto [10:14:36]process_json_proto [10:14:36]json parsed OK: [10:14:36]protocol is kg_v1.0 [10:14:36]action value=close_receipt [10:14:36]process_action close_receipt [10:14:36]cmd_close_receipt [10:14:36]MH_GetDate [10:14:36]Write to MH i2c: F0 00 00 CD 80 3C [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: F0 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: F0 09 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: F0 09 00 CD 80 00 96 58 23 67 72 0D 1C 67 BF [10:14:36]GetLastDocTimeStamp 1730368458 [10:14:36]current date 1730369686 [10:14:36]FM_GetShiftState [10:14:36]SAM_PROTO_GetShiftState [10:14:36]wFMCommunicate request_size=4 [10:14:36]MH_SAM_APDU [10:14:36]CAPDU: 80 13 01 00 [10:14:36]Write to MH i2c: E2 08 00 CE 80 80 13 01 00 00 00 00 00 CB [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:36]Read from MH i2c: E2 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 0E 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 0E 00 CE 80 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F4 [10:14:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:14:36]wFMCommunicate OK [10:14:36]SAM_PROTO_GetShiftState done [10:14:36]FM_GetShiftState done [10:14:36]opened in 1730332621 [10:14:36]opened+sec_in_day 1730419021 [10:14:36]quantity*price = 71047 [10:14:36]sum+1 = 71049 [10:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 710.00 Внесено: 710.00 СДАЧА: 0.00 НСП 1% : 6.29 НДС 12% : 75.45 Наличными: 710.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 97 31.10.2024 10:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139620 ФПД: 268231532209641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T101446&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139620&fm=268231532209641&tin=02508201610067®Number=0000000000091631&sum=71000 [10:14:37]StoreToDocumentArchive [10:14:37]shift 557 fd 139620 [10:14:37]save to /storage/0557/doc_00139620 [10:14:37]save last doc name /storage/0557/doc_00139620 to /storage/kkm_last_doc_name [10:14:37]save OK [10:14:37]Clear old archive folders... [10:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:37]tlvbuf is 0124F0E0 [10:14:37]SAM_PROTO_ClearQueue [10:14:37]wFMCommunicate request_size=4 [10:14:37]MH_SAM_APDU [10:14:37]CAPDU: 80 09 00 00 [10:14:37]Write to MH i2c: E2 08 00 DB 80 80 09 00 00 00 00 00 00 CD [10:14:37]Write i2c OK [10:14:37]MH_I2C_Read... [10:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:37]Read from MH i2c: E2 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 03 00 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 03 00 DB 80 00 90 00 CF [10:14:37]RAPDU: 90 00 [10:14:37]wFMCommunicate OK [10:14:37]SAM_PROTO_ClearQueue done [10:14:37]KKMCreateOFDPacket [10:14:37]OFDProtocolAddRootSTLVToBuf [10:14:37]FM_MakeSignedData [10:14:37]FM_MakeSignedData [10:14:37]SAM_PROTO_SignData [10:14:37]wFMCommunicate request_size=4 [10:14:37]MH_SAM_APDU [10:14:37]CAPDU: 80 0D 01 02 [10:14:37]Write to MH i2c: E2 08 00 DC 80 80 0D 01 02 00 00 00 00 D5 [10:14:37]Write i2c OK [10:14:37]MH_I2C_Read... [10:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:37]Read from MH i2c: E2 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 03 00 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 03 00 DC 80 00 90 00 D0 [10:14:37]RAPDU: 90 00 [10:14:37]wFMCommunicate OK [10:14:37]wFMCommunicate request_size=255 [10:14:37]MH_SAM_APDU [10:14:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 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 96 58 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F3 [10:14:37]Write to MH i2c: E2 02 01 DD 80 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 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 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 96 58 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F3 00 00 C9 [10:14:37]Write i2c OK [10:14:37]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 DD 80 00 90 00 D1 [10:14:38]RAPDU: 90 00 [10:14:38]wFMCommunicate OK [10:14:38]wFMCommunicate request_size=10 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 0D 02 02 05 F4 85 31 E5 E9 [10:14:38]Write to MH i2c: E2 0D 00 DE 80 80 0D 02 02 05 00 F4 85 31 E5 E9 00 00 5A [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 DE 80 00 90 00 D2 [10:14:38]RAPDU: 90 00 [10:14:38]wFMCommunicate OK [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 0D 03 02 [10:14:38]Write to MH i2c: E2 08 00 DF 80 80 0D 03 02 00 00 00 00 DA [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0B 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0B 00 DF 80 00 63 5C EE DD C9 FF 5E 6A 90 00 F5 [10:14:38]RAPDU: 63 5C EE DD C9 FF 5E 6A 90 00 [10:14:38]wFMCommunicate OK [10:14:38]SAM_PROTO_SignData done [10:14:38]FM_MakeSignedData done [10:14:38]CreateOFDProtocolMessage [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 11 00 00 [10:14:38]Write to MH i2c: E2 08 00 E0 80 80 11 00 00 00 00 00 00 DA [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 17 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 17 00 E0 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 35 [10:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:14:38]wFMCommunicate OK [10:14:38]CreateOFDProtocolMessage done [10:14:38]OFDSenderStorePacket 139620 [10:14:38]StoreOFDPacket docnum=139620 [10:14: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 0F 01 00 00 90 16 07 01 2D 02 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 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 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 96 58 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F3 F4 85 31 E5 E9 63 5C EE DD C9 FF 5E 6A [10:14:38]CheckFolder [10:14:38]dirname=/storage/ofd_packets [10:14:38]CheckFolder done [10:14:38]ProducePacketName [10:14:38]name=ofd_packets/00139620 [10:14:38]NVStorageSaveData ofd_packets/00139620 [10:14:38]File name is /storage/ofd_packets/00139620 [10:14:38]Write 301 bytes [10:14:38]NVStorageSaveData done [10:14:38]OFDSenderStorePacket done [10:14:38]KKMCreateOFDPacket done [10:14:38]NVStorageSaveData kkm_last_timestamp [10:14:38]File name is /storage/kkm_last_timestamp [10:14:38]Write 4 bytes [10:14:38]NVStorageSaveData done [10:14:38]ExternCall_PrintAddStr [10:14:38]wPrintStart [10:14:38]Write to MH i2c: 01 00 00 E1 80 61 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: 01 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: 01 07 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: 01 07 00 E1 80 00 00 00 00 00 FF 0F 76 [10:14:38]RasterBufferAndPrint [10:14:38]line Счет N : (1)1095059 [10:14:38]line ИНН: 02508201610067 [10:14:38]line Контрольно-Кассовый Чек [10:14:38]line ПРОДАЖА [10:14:38]line ТРК (МРК, ГНК) : 53 [10:14:38]line Товар: 2710124130 [10:14:38]line Аи-92-К-2 [10:14:38]line 10.620 * 66.90 [10:14:38]line = 710.48 [10:14:38]line НДС 12% НСП 1% [10:14:38]line > о реализуемом товаре [10:14:38]line ОКРУГЛЕНИЕ: -0.48 [10:14:38]line ИТОГО: 710.00 [10:14:38]line Внесено: 710.00 [10:14:38]line СДАЧА: 0.00 [10:14:38]line НСП 1% : 6.29 [10:14:38]line НДС 12% : 75.45 [10:14:38]line Наличными: 710.00 [10:14:38]line Безнал.: 0.00 [10:14:38]line Место: АЗС № 101 "Партнер Нефть" [10:14:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:14:38]line СНО: Общий режим [10:14:38]line Чек 97 31.10.2024 10:14 [10:14:38]line Смена: 557 ФФД: 1.0 [10:14:38]line ЗНМ: 0300000081 [10:14:38]line РНМ: 0000000000091631 [10:14:38]line Версия ККМ: 001 [10:14:38]line ФМ: 0000000000874669 [10:14:38]line ФД: 139620 [10:14:38]line ФПД: 268231532209641 [10:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T101446&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139620&fm=268231532209641&tin=02508201610067®Number=0000000000091631&sum=71000 [10:14:38]written 0, free lines is 4095 [10:14:38]OFD Sender: Processing packet 139620 [packets to send 34, broken 33] [10:14:38]ProducePacketName [10:14:38]name=ofd_packets/00139620 [10:14:38]OFD Sender: To server: pG, [10:14:38]CommunicateWithHost lk.salyk.kg:30040 [10:14:38]ConnectInit lk.salyk.kg [10:14:38]Connected sock=10 [10:14:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 90 16 07 01 2D 02 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 7C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 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 96 58 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F3 F4 85 31 E5 E9 63 5C EE DD C9 FF 5E 6A [10:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6E C9 47 00 D8 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 21 02 00 F4 03 04 00 44 04 23 67 B6 04 01 00 00 CE 2D 1E 57 B7 44 B5 D6 [10:14:38]CommunicateWithHost err = 0 [10:14:38]CheckOFDResponse [10:14:38]1017 (14) - 77093643461234 [10:14:38]1041 (16) - 0000000000874669 [10:14:38]1040 (4) - 139620 [10:14:38]1012 (4) - 31.10.2024 04:15 [10:14:38]1206 (1) - 0 [10:14:38]OFD Sender: Remove packet 139620 [10:14:38]ProducePacketName [10:14:38]name=ofd_packets/00139620 [10:14:38]NVStorageDeleteData [10:14:39]Write to MH i2c: 01 00 00 0C 81 8D [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: 01 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: 01 07 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: 01 07 00 0C 81 00 00 00 00 00 FC 0C 9C [10:14:39]RasterBufferAndPrint [10:14:39]line [10:14:39]line [10:14:39]line [10:14:39]line [10:14:39]line [10:14:39]written 0, free lines is 3333 [10:14:39]MH_Cut [10:14:39]Write to MH i2c: D1 01 00 13 81 01 66 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: D1 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: D1 01 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: D1 01 00 13 81 00 65 [10:14:39]Write to MH i2c: 01 00 00 14 81 95 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]OFD Sender: No OFD packet to send [10:14:39]*** Cut start [10:14:39]*** Partial cut [10:14:39]*** CUTSNS_PIN = 1 [10:14:39]*** CUTSNS_PIN = 0 [10:14:40]*** Brake cut motor [10:14:40]Read from MH i2c: 01 [10:14:40]MH_I2C_Read... [10:14:40]*** Stop cut motor [10:14:40]*** Cut end [10:14:40]Read from MH i2c: 01 07 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 07 00 14 81 00 00 00 00 00 FF 0F AA [10:14:40]process_action close_receipt done [10:14:40]requested_data is exist [10:14:40]produce_requested_data [10:14:40]requested_item fm.sn is exist - process it [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 11 00 00 [10:14:40]Write to MH i2c: E2 08 00 15 81 80 11 00 00 00 00 00 00 10 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 17 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 17 00 15 81 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:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:14:40]wFMCommunicate OK [10:14:40]requested_item fd.num is exist - process it [10:14:40]SAM_PROTO_GetFieldsCounters [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 13 00 00 [10:14:40]Write to MH i2c: E2 08 00 16 81 80 13 00 00 00 00 00 00 13 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 62 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 62 00 16 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 [10:14:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_GetFieldsCounters done [10:14:40]requested_item shift.num is exist - process it [10:14:40]requested_item shift.opened is exist - process it [10:14:40]req_shift_opened [10:14:40]FM_GetShiftState [10:14:40]SAM_PROTO_GetShiftState [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 13 01 00 [10:14:40]Write to MH i2c: E2 08 00 17 81 80 13 01 00 00 00 00 00 15 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 17 81 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3E [10:14:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_GetShiftState done [10:14:40]FM_GetShiftState done [10:14:40]req_shift_opened done [10:14:40]requested_item shift.open_date is exist - process it [10:14:40]req_shift_open_date [10:14:40]req_shift_open_date done [10:14:40]produce_requested_data done [10:14:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139620,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:14:40]process_action_free close_receipt [10:14:40]json_value_free [10:14:40]json_value_free done [10:14:40]process_json_proto returns [10:14:40]Send response to host [10:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139620,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:14:40]free response buf [10:14:40]execute_script done [10:14:40]execute_script returns [10:14:40]free content buf [10:14:40]Sock 8.Close socket [10:14:40]Sock 8.Thread stoped [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:40]accept exits with 9 [10:21:40]New connection [10:21:40]New thread 3067284836 created [10:21:40]Thread 3067141476 joined [10:21:40]Waiting for new connection... [10:21:40] Sock 9.Parse request [10:21:40]Sock 9.Check first char [10:21:40]Sock 9.First char is OK [10:21:40]request: POST /json_proto HTTP/1.0 [10:21:40]Method: POST [10:21:40]URL: /json_proto [10:21:40]Method is POST - this is cgi request [10:21:40]url: /json_proto [10:21:40]query_string will be loaded in cgi processing [10:21:40]execute_cgi json_proto POST (null) [10:21:40]execute_cgi path=json_proto method=POST [10:21:40]POST find Content-Length [10:21:40]Host: 172.17.50.196:8080 [10:21:40]Content-Length: 683 [10:21:40]Content-Type: application/json [10:21:40] [10:21:40]POST finish read [10:21:40]Found Content-Length = 683 [10:21:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095063", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:40]execute_script... [10:21:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095063", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:40]POST & json_proto [10:21:40]process_json_proto [10:21:40]json parsed OK: [10:21:40]protocol is kg_v1.0 [10:21:40]action value=close_receipt [10:21:40]process_action close_receipt [10:21:40]cmd_close_receipt [10:21:40]MH_GetDate [10:21:40]Write to MH i2c: F0 00 00 18 81 88 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: F0 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: F0 09 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: F0 09 00 18 81 00 3D 5A 23 67 72 0D 1C 67 B4 [10:21:40]GetLastDocTimeStamp 1730369686 [10:21:40]current date 1730370109 [10:21:40]FM_GetShiftState [10:21:40]SAM_PROTO_GetShiftState [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 13 01 00 [10:21:40]Write to MH i2c: E2 08 00 19 81 80 13 01 00 00 00 00 00 17 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0E 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 0E 00 19 81 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 40 [10:21:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:21:40]wFMCommunicate OK [10:21:40]SAM_PROTO_GetShiftState done [10:21:40]FM_GetShiftState done [10:21:40]opened in 1730332621 [10:21:40]opened+sec_in_day 1730419021 [10:21:40]quantity*price = 100015 [10:21:40]sum+1 = 100017 [10:21:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 98 31.10.2024 10:21 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139621 ФПД: 272346939422636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102149&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139621&fm=272346939422636&tin=02508201610067®Number=0000000000091631&sum=100000 [10:21:41]StoreToDocumentArchive [10:21:41]shift 557 fd 139621 [10:21:41]save to /storage/0557/doc_00139621 [10:21:41]save last doc name /storage/0557/doc_00139621 to /storage/kkm_last_doc_name [10:21:41]save OK [10:21:41]Clear old archive folders... [10:21:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:41]tlvbuf is 012AC030 [10:21:41]SAM_PROTO_ClearQueue [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 09 00 00 [10:21:41]Write to MH i2c: E2 08 00 26 81 80 09 00 00 00 00 00 00 19 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 26 81 00 90 00 1B [10:21:41]RAPDU: 90 00 [10:21:41]wFMCommunicate OK [10:21:41]SAM_PROTO_ClearQueue done [10:21:41]KKMCreateOFDPacket [10:21:41]OFDProtocolAddRootSTLVToBuf [10:21:41]FM_MakeSignedData [10:21:41]FM_MakeSignedData [10:21:41]SAM_PROTO_SignData [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 0D 01 02 [10:21:41]Write to MH i2c: E2 08 00 27 81 80 0D 01 02 00 00 00 00 21 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 27 81 00 90 00 1C [10:21:41]RAPDU: 90 00 [10:21:41]wFMCommunicate OK [10:21:41]wFMCommunicate request_size=255 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3D 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F7 [10:21:41]Write to MH i2c: E2 02 01 28 81 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3D 5A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F7 00 00 DB [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 28 81 00 90 00 1D [10:21:41]RAPDU: 90 00 [10:21:41]wFMCommunicate OK [10:21:41]wFMCommunicate request_size=10 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 0D 02 02 05 B2 B6 94 77 AC [10:21:41]Write to MH i2c: E2 0D 00 29 81 80 0D 02 02 05 00 B2 B6 94 77 AC 00 00 4D [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 03 00 29 81 00 90 00 1E [10:21:41]RAPDU: 90 00 [10:21:41]wFMCommunicate OK [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 0D 03 02 [10:21:41]Write to MH i2c: E2 08 00 2A 81 80 0D 03 02 00 00 00 00 26 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0B 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0B 00 2A 81 00 33 63 E8 4D C1 F1 DE 79 90 00 FB [10:21:41]RAPDU: 33 63 E8 4D C1 F1 DE 79 90 00 [10:21:41]wFMCommunicate OK [10:21:41]SAM_PROTO_SignData done [10:21:41]FM_MakeSignedData done [10:21:41]CreateOFDProtocolMessage [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 11 00 00 [10:21:41]Write to MH i2c: E2 08 00 2B 81 80 11 00 00 00 00 00 00 26 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 17 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 17 00 2B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [10:21:44]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139621,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:21:44]process_action_free close_receipt [10:21:44]json_value_free [10:21:44]json_value_free done [10:21:44]process_json_proto returns [10:21:44]Send response to host [10:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139621,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:21:44]free response buf [10:21:44]execute_script done [10:21:44]execute_script returns [10:21:44]free content buf [10:21:44]Sock 9.Close socket [10:21:44]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]ConnectInit Can't connect to host [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:11]accept exits with 10 [10:28:11]New connection [10:28:11]New thread 3067141476 created [10:28:11]Thread 3067284836 joined [10:28:11]Waiting for new connection... [10:28:11] Sock 10.Parse request [10:28:11]Sock 10.Check first char [10:28:11]Sock 10.First char is OK [10:28:11]request: POST /json_proto HTTP/1.0 [10:28:11]Method: POST [10:28:11]URL: /json_proto [10:28:11]Method is POST - this is cgi request [10:28:11]url: /json_proto [10:28:11]query_string will be loaded in cgi processing [10:28:11]execute_cgi json_proto POST (null) [10:28:11]execute_cgi path=json_proto method=POST [10:28:11]POST find Content-Length [10:28:11]Host: 172.17.50.196:8080 [10:28:11]Content-Length: 683 [10:28:11]Content-Type: application/json [10:28:11] [10:28:11]POST finish read [10:28:11]Found Content-Length = 683 [10:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095070", "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" ] } } [10:28:11]execute_script... [10:28:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095070", "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" ] } } [10:28:11]POST & json_proto [10:28:11]process_json_proto [10:28:11]json parsed OK: [10:28:11]protocol is kg_v1.0 [10:28:11]action value=close_receipt [10:28:11]process_action close_receipt [10:28:11]cmd_close_receipt [10:28:11]MH_GetDate [10:28:11]Write to MH i2c: F0 00 00 63 81 D3 [10:28:11]Write i2c OK [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: F0 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: F0 09 00 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: F0 09 00 63 81 00 C5 5B 23 67 72 0D 1C 67 88 [10:28:11]GetLastDocTimeStamp 1730370109 [10:28:11]current date 1730370501 [10:28:11]FM_GetShiftState [10:28:11]SAM_PROTO_GetShiftState [10:28:11]wFMCommunicate request_size=4 [10:28:11]MH_SAM_APDU [10:28:11]CAPDU: 80 13 01 00 [10:28:11]Write to MH i2c: E2 08 00 64 81 80 13 01 00 00 00 00 00 62 [10:28:11]Write i2c OK [10:28:11]MH_I2C_Read... [10:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:11]Read from MH i2c: E2 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: E2 0E 00 [10:28:11]MH_I2C_Read... [10:28:11]Read from MH i2c: E2 0E 00 64 81 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8B [10:28:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:28:11]wFMCommunicate OK [10:28:11]SAM_PROTO_GetShiftState done [10:28:11]FM_GetShiftState done [10:28:11]opened in 1730332621 [10:28:11]opened+sec_in_day 1730419021 [10:28:11]quantity*price = 200043 [10:28:11]sum+1 = 200044 [10:28:11]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 СНО: Общий режим Чек 99 31.10.2024 10:28 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139622 ФПД: 66594546562511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102821&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139622&fm=66594546562511&tin=02508201610067®Number=0000000000091631&sum=200000 [10:28:12]StoreToDocumentArchive [10:28:12]shift 557 fd 139622 [10:28:12]save to /storage/0557/doc_00139622 [10:28:12]save last doc name /storage/0557/doc_00139622 to /storage/kkm_last_doc_name [10:28:12]save OK [10:28:12]Clear old archive folders... [10:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:12]tlvbuf is 0131E9E0 [10:28:12]SAM_PROTO_ClearQueue [10:28:12]wFMCommunicate request_size=4 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 09 00 00 [10:28:12]Write to MH i2c: E2 08 00 71 81 80 09 00 00 00 00 00 00 64 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:12]Read from MH i2c: E2 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 71 81 00 90 00 66 [10:28:12]RAPDU: 90 00 [10:28:12]wFMCommunicate OK [10:28:12]SAM_PROTO_ClearQueue done [10:28:12]KKMCreateOFDPacket [10:28:12]OFDProtocolAddRootSTLVToBuf [10:28:12]FM_MakeSignedData [10:28:12]FM_MakeSignedData [10:28:12]SAM_PROTO_SignData [10:28:12]wFMCommunicate request_size=4 [10:28:12]MH_SAM_APDU [10:28:12]CAPDU: 80 0D 01 02 [10:28:12]Write to MH i2c: E2 08 00 72 81 80 0D 01 02 00 00 00 00 6C [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:12]Read from MH i2c: E2 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 [10:28:12]MH_I2C_Read... [10:28:12]Read from MH i2c: E2 03 00 72 81 00 90 00 67 [10:28:12]RAPDU: 90 00 [10:28:12]wFMCommunicate OK [10:28:12]wFMCommunicate request_size=255 [10:28:12]MH_SAM_APDU [10:28: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 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 63 00 00 00 F4 03 04 00 C5 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3C [10:28:12]Write to MH i2c: E2 02 01 73 81 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 63 00 00 00 F4 03 04 00 C5 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3C 00 00 A5 [10:28:12]Write i2c OK [10:28:12]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 73 81 00 90 00 68 [10:28:13]RAPDU: 90 00 [10:28:13]wFMCommunicate OK [10:28:13]wFMCommunicate request_size=10 [10:28:13]MH_SAM_APDU [10:28:13]CAPDU: 80 0D 02 02 05 91 40 4A B5 CF [10:28:13]Write to MH i2c: E2 0D 00 74 81 80 0D 02 02 05 00 91 40 4A B5 CF 00 00 18 [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 03 00 74 81 00 90 00 69 [10:28:13]RAPDU: 90 00 [10:28:13]wFMCommunicate OK [10:28:13]wFMCommunicate request_size=4 [10:28:13]MH_SAM_APDU [10:28:13]CAPDU: 80 0D 03 02 [10:28:13]Write to MH i2c: E2 08 00 75 81 80 0D 03 02 00 00 00 00 71 [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 0B 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 0B 00 75 81 00 52 FE 94 92 91 F7 D1 0A 90 00 4B [10:28:13]RAPDU: 52 FE 94 92 91 F7 D1 0A 90 00 [10:28:13]wFMCommunicate OK [10:28:13]SAM_PROTO_SignData done [10:28:13]FM_MakeSignedData done [10:28:13]CreateOFDProtocolMessage [10:28:13]wFMCommunicate request_size=4 [10:28:13]MH_SAM_APDU [10:28:13]CAPDU: 80 11 00 00 [10:28:13]Write to MH i2c: E2 08 00 76 81 80 11 00 00 00 00 00 00 71 [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:13]Read from MH i2c: E2 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 17 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: E2 17 00 76 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [10:28: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:28:13]wFMCommunicate OK [10:28:13]CreateOFDProtocolMessage done [10:28:13]OFDSenderStorePacket 139622 [10:28:13]StoreOFDPacket docnum=139622 [10:28: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 0F 01 00 00 FB 88 07 01 FD 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 C5 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3C 91 40 4A B5 CF 52 FE 94 92 91 F7 D1 0A [10:28:13]CheckFolder [10:28:13]dirname=/storage/ofd_packets [10:28:13]CheckFolder done [10:28:13]ProducePacketName [10:28:13]name=ofd_packets/00139622 [10:28:13]NVStorageSaveData ofd_packets/00139622 [10:28:13]File name is /storage/ofd_packets/00139622 [10:28:13]Write 301 bytes [10:28:13]NVStorageSaveData done [10:28:13]OFDSenderStorePacket done [10:28:13]KKMCreateOFDPacket done [10:28:13]NVStorageSaveData kkm_last_timestamp [10:28:13]File name is /storage/kkm_last_timestamp [10:28:13]Write 4 bytes [10:28:13]NVStorageSaveData done [10:28:13]ExternCall_PrintAddStr [10:28:13]wPrintStart [10:28:13]Write to MH i2c: 01 00 00 77 81 F8 [10:28:13]OFD Sender: Processing packet 139622 [packets to send 34, broken 33] [10:28:13]ProducePacketName [10:28:13]name=ofd_packets/00139622 [10:28:13]OFD Sender: To server: pG, [10:28:13]CommunicateWithHost lk.salyk.kg:30040 [10:28:13]ConnectInit lk.salyk.kg [10:28:13]Write i2c OK [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: 01 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: 01 07 00 [10:28:13]MH_I2C_Read... [10:28:13]Read from MH i2c: 01 07 00 77 81 00 00 00 00 00 FF 0F 0D [10:28:13]RasterBufferAndPrint [10:28:13]line Счет N : (1)1095070 [10:28:13]line ИНН: 02508201610067 [10:28:13]line Контрольно-Кассовый Чек [10:28:13]line ПРОДАЖА [10:28:13]line ТРК (МРК, ГНК) : 64 [10:28:13]line Товар: 2710124500 [10:28:13]line Аи-95-К-3 [10:28:13]line 26.960 * 74.20 [10:28:13]line = 2000.43 [10:28:13]line НДС 12% НСП 1% [10:28:13]line > о реализуемом товаре [10:28:13]line ОКРУГЛЕНИЕ: -0.43 [10:28:13]line ИТОГО: 2000.00 [10:28:13]line Внесено: 2000.00 [10:28:13]line СДАЧА: 0.00 [10:28:13]line НСП 1% : 17.70 [10:28:13]line НДС 12% : 212.43 [10:28:13]line Наличными: 2000.00 [10:28:13]line Безнал.: 0.00 [10:28:13]line Место: АЗС № 101 "Партнер Нефть" [10:28:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:28:13]line СНО: Общий режим [10:28:13]line Чек 99 31.10.2024 10:28 [10:28:13]line Смена: 557 ФФД: 1.0 [10:28:13]line ЗНМ: 0300000081 [10:28:13]line РНМ: 0000000000091631 [10:28:13]line Версия ККМ: 001 [10:28:13]line ФМ: 0000000000874669 [10:28:13]line ФД: 139622 [10:28:13]line ФПД: 66594546562511 [10:28:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102821&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139622&fm=66594546562511&tin=02508201610067®Number=0000000000091631&sum=200000 [10:28:13]Connected sock=11 [10:28:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 FB 88 07 01 FD 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 C5 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3C 91 40 4A B5 CF 52 FE 94 92 91 F7 D1 0A [10:28:13]written 0, free lines is 4095 [10:28: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 37 28 47 00 AB 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 66 21 02 00 F4 03 04 00 73 07 23 67 B6 04 01 00 00 13 96 8A 50 CD 2D A1 D5 [10:28:13]CommunicateWithHost err = 0 [10:28:13]CheckOFDResponse [10:28:13]1017 (14) - 77093643461234 [10:28:13]1041 (16) - 0000000000874669 [10:28:13]1040 (4) - 139622 [10:28:13]1012 (4) - 31.10.2024 04:28 [10:28:13]1206 (1) - 0 [10:28:13]OFD Sender: Remove packet 139622 [10:28:13]ProducePacketName [10:28:13]name=ofd_packets/00139622 [10:28:13]NVStorageDeleteData [10:28:14]Write to MH i2c: 01 00 00 A2 81 23 [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 A2 81 00 00 00 00 00 F6 0C 2C [10:28:14]RasterBufferAndPrint [10:28:14]line [10:28:14]line [10:28:14]line [10:28:14]line [10:28:14]line [10:28:14]written 0, free lines is 3328 [10:28:14]MH_Cut [10:28:14]Write to MH i2c: D1 01 00 A9 81 01 FC [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D1 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D1 01 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: D1 01 00 A9 81 00 FB [10:28:14]Write to MH i2c: 01 00 00 AA 81 2B [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]OFD Sender: No OFD packet to send [10:28:14]*** Cut start [10:28:14]*** Partial cut [10:28:14]*** CUTSNS_PIN = 1 [10:28:14]*** CUTSNS_PIN = 0 [10:28:15]*** Brake cut motor [10:28:15]Read from MH i2c: 01 [10:28:15]MH_I2C_Read... [10:28:15]*** Stop cut motor [10:28:15]*** Cut end [10:28:15]Read from MH i2c: 01 07 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: 01 07 00 AA 81 00 00 00 00 00 FF 0F 40 [10:28:15]process_action close_receipt done [10:28:15]requested_data is exist [10:28:15]produce_requested_data [10:28:15]requested_item fm.sn is exist - process it [10:28:15]wFMCommunicate request_size=4 [10:28:15]MH_SAM_APDU [10:28:15]CAPDU: 80 11 00 00 [10:28:15]Write to MH i2c: E2 08 00 AB 81 80 11 00 00 00 00 00 00 A6 [10:28:15]Write i2c OK [10:28:15]MH_I2C_Read... [10:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:15]Read from MH i2c: E2 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 17 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 17 00 AB 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 01 [10:28: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:28:15]wFMCommunicate OK [10:28:15]requested_item fd.num is exist - process it [10:28:15]SAM_PROTO_GetFieldsCounters [10:28:15]wFMCommunicate request_size=4 [10:28:15]MH_SAM_APDU [10:28:15]CAPDU: 80 13 00 00 [10:28:15]Write to MH i2c: E2 08 00 AC 81 80 13 00 00 00 00 00 00 A9 [10:28:15]Write i2c OK [10:28:15]MH_I2C_Read... [10:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:15]Read from MH i2c: E2 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 62 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 62 00 AC 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 AE [10:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:28:15]wFMCommunicate OK [10:28:15]SAM_PROTO_GetFieldsCounters done [10:28:15]requested_item shift.num is exist - process it [10:28:15]requested_item shift.opened is exist - process it [10:28:15]req_shift_opened [10:28:15]FM_GetShiftState [10:28:15]SAM_PROTO_GetShiftState [10:28:15]wFMCommunicate request_size=4 [10:28:15]MH_SAM_APDU [10:28:15]CAPDU: 80 13 01 00 [10:28:15]Write to MH i2c: E2 08 00 AD 81 80 13 01 00 00 00 00 00 AB [10:28:15]Write i2c OK [10:28:15]MH_I2C_Read... [10:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:15]Read from MH i2c: E2 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 0E 00 [10:28:15]MH_I2C_Read... [10:28:15]Read from MH i2c: E2 0E 00 AD 81 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D4 [10:28:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:28:15]wFMCommunicate OK [10:28:15]SAM_PROTO_GetShiftState done [10:28:15]FM_GetShiftState done [10:28:15]req_shift_opened done [10:28:15]requested_item shift.open_date is exist - process it [10:28:15]req_shift_open_date [10:28:15]req_shift_open_date done [10:28:15]produce_requested_data done [10:28:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139622,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:28:15]process_action_free close_receipt [10:28:15]json_value_free [10:28:15]json_value_free done [10:28:15]process_json_proto returns [10:28:15]Send response to host [10:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139622,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:28:15]free response buf [10:28:15]execute_script done [10:28:15]execute_script returns [10:28:15]free content buf [10:28:15]Sock 10.Close socket [10:28:15]Sock 10.Thread stoped [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:45]accept exits with 9 [10:28:45]New connection [10:28:45]New thread 3067284836 created [10:28:45]Thread 3067141476 joined [10:28:45]Waiting for new connection... [10:28:45] Sock 9.Parse request [10:28:45]Sock 9.Check first char [10:28:45]Sock 9.First char is OK [10:28:45]request: POST /json_proto HTTP/1.0 [10:28:45]Method: POST [10:28:45]URL: /json_proto [10:28:45]Method is POST - this is cgi request [10:28:45]url: /json_proto [10:28:45]query_string will be loaded in cgi processing [10:28:45]execute_cgi json_proto POST (null) [10:28:45]execute_cgi path=json_proto method=POST [10:28:45]POST find Content-Length [10:28:45]Host: 172.17.50.196:8080 [10:28:45]Content-Length: 1309 [10:28:45]Content-Type: application/json [10:28:45] [10:28:45]POST finish read [10:28:45]Found Content-Length = 1309 [10:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335496", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:45]execute_script... [10:28: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)335496", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:45]POST & json_proto [10:28:45]process_json_proto [10:28:45]json parsed OK: [10:28:45]protocol is kg_v1.0 [10:28:45]action value=close_receipt [10:28:45]process_action close_receipt [10:28:45]cmd_close_receipt [10:28:45]MH_GetDate [10:28:45]Write to MH i2c: F0 00 00 AE 81 1E [10:28:45]Write i2c OK [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: F0 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: F0 09 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: F0 09 00 AE 81 00 E7 5B 23 67 72 0D 1C 67 F5 [10:28:45]GetLastDocTimeStamp 1730370501 [10:28:45]current date 1730370535 [10:28:45]FM_GetShiftState [10:28:45]SAM_PROTO_GetShiftState [10:28:45]wFMCommunicate request_size=4 [10:28:45]MH_SAM_APDU [10:28:45]CAPDU: 80 13 01 00 [10:28:45]Write to MH i2c: E2 08 00 AF 81 80 13 01 00 00 00 00 00 AD [10:28:45]Write i2c OK [10:28:45]MH_I2C_Read... [10:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:45]Read from MH i2c: E2 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 0E 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 0E 00 AF 81 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D6 [10:28:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:28:45]wFMCommunicate OK [10:28:45]SAM_PROTO_GetShiftState done [10:28:45]FM_GetShiftState done [10:28:45]opened in 1730332621 [10:28:45]opened+sec_in_day 1730419021 [10:28:45]quantity*price = 4000 [10:28:45]sum+1 = 4001 [10:28:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.54 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 100 31.10.2024 10:28 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139623 ФПД: 220646873533612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139623&fm=220646873533612&tin=02508201610067®Number=0000000000091631&sum=17500 0 [10:28:47]StoreToDocumentArchive [10:28:47]shift 557 fd 139623 [10:28:47]save to /storage/0557/doc_00139623 [10:28:47]save last doc name /storage/0557/doc_00139623 to /storage/kkm_last_doc_name [10:28:47]save OK [10:28:47]Clear old archive folders... [10:28:47]ProcessDocumentItem done err = 0, tmpTLVsize=535 [10:28:47]tlvbuf is 011AB9C0 [10:28:47]SAM_PROTO_ClearQueue [10:28:47]wFMCommunicate request_size=4 [10:28:47]MH_SAM_APDU [10:28:47]CAPDU: 80 09 00 00 [10:28:47]Write to MH i2c: E2 08 00 BC 81 80 09 00 00 00 00 00 00 AF [10:28:47]Write i2c OK [10:28:47]MH_I2C_Read... [10:28:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:47]Read from MH i2c: E2 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 BC 81 00 90 00 B1 [10:28:47]RAPDU: 90 00 [10:28:47]wFMCommunicate OK [10:28:47]SAM_PROTO_ClearQueue done [10:28:47]KKMCreateOFDPacket [10:28:47]OFDProtocolAddRootSTLVToBuf [10:28:47]FM_MakeSignedData [10:28:47]FM_MakeSignedData [10:28:47]SAM_PROTO_SignData [10:28:47]wFMCommunicate request_size=4 [10:28:47]MH_SAM_APDU [10:28:47]CAPDU: 80 0D 01 02 [10:28:47]Write to MH i2c: E2 08 00 BD 81 80 0D 01 02 00 00 00 00 B7 [10:28:47]Write i2c OK [10:28:47]MH_I2C_Read... [10:28:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:47]Read from MH i2c: E2 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 BD 81 00 90 00 B2 [10:28:47]RAPDU: 90 00 [10:28:47]wFMCommunicate OK [10:28:47]wFMCommunicate request_size=255 [10:28:47]MH_SAM_APDU [10:28:47]CAPDU: 80 0D 02 02 FA 03 00 17 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 81 00 8A 04 0D 00 34 [10:28:47]Write to MH i2c: E2 02 01 BE 81 80 0D 02 02 FA 00 03 00 17 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 81 00 8A 04 0D 00 34 00 00 40 [10:28:47]Write i2c OK [10:28:47]MH_I2C_Read... [10:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:47]Read from MH i2c: E2 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 BE 81 00 90 00 B3 [10:28:47]RAPDU: 90 00 [10:28:47]wFMCommunicate OK [10:28:47]wFMCommunicate request_size=255 [10:28:47]MH_SAM_APDU [10:28:47]CAPDU: 80 0D 02 02 FA 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 E7 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 [10:28:47]Write to MH i2c: E2 02 01 BF 81 80 0D 02 02 FA 00 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 E7 5B 23 67 0E 04 04 00 2D 02 00 00 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 81 [10:28:47]Write i2c OK [10:28:47]MH_I2C_Read... [10:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:47]Read from MH i2c: E2 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 BF 81 00 90 00 B4 [10:28:47]RAPDU: 90 00 [10:28:47]wFMCommunicate OK [10:28:47]wFMCommunicate request_size=44 [10:28:47]MH_SAM_APDU [10:28:47]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 67 21 02 00 35 04 06 00 C8 AD 5A 84 8C AC [10:28:47]Write to MH i2c: E2 2F 00 C0 81 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 67 21 02 00 35 04 06 00 C8 AD 5A 84 8C AC 00 00 F3 [10:28:47]Write i2c OK [10:28:47]MH_I2C_Read... [10:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:47]Read from MH i2c: E2 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 03 00 C0 81 00 90 00 B5 [10:28:47]RAPDU: 90 00 [10:28:47]wFMCommunicate OK [10:28:47]wFMCommunicate request_size=4 [10:28:47]MH_SAM_APDU [10:28:47]CAPDU: 80 0D 03 02 [10:28:47]Write to MH i2c: E2 08 00 C1 81 80 0D 03 02 00 00 00 00 BD [10:28:47]Write i2c OK [10:28:47]MH_I2C_Read... [10:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:47]Read from MH i2c: E2 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 0B 00 [10:28:47]MH_I2C_Read... [10:28:47]Read from MH i2c: E2 0B 00 C1 81 00 52 DE EF D0 6D 71 A2 02 90 00 2F [10:28:47]RAPDU: 52 DE EF D0 6D 71 A2 02 90 00 [10:28:47]wFMCommunicate OK [10:28:47]SAM_PROTO_SignData done [10:28:47]FM_MakeSignedData done [10:28:47]CreateOFDProtocolMessage [10:28:47]wFMCommunicate request_size=4 [10:28:47]MH_SAM_APDU [10:28:47]CAPDU: 80 11 00 00 [10:28:47]Write to MH i2c: E2 08 00 C2 81 80 11 00 00 00 00 00 00 BD [10:28:47]Write i2c OK [10:28:47]MH_I2C_Read... [10:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:48]Read from MH i2c: E2 [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: E2 17 00 [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: E2 17 00 C2 81 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:28: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:28:48]wFMCommunicate OK [10:28:48]CreateOFDProtocolMessage done [10:28:48]OFDSenderStorePacket 139623 [10:28:48]StoreOFDPacket docnum=139623 [10:28: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 2B 02 00 00 64 8E 23 02 19 FD 5A 03 01 00 03 00 17 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 E7 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C8 AD 5A 84 8C AC 52 DE EF D0 6D 71 A2 02 [10:28:48]CheckFolder [10:28:48]dirname=/storage/ofd_packets [10:28:48]CheckFolder done [10:28:48]ProducePacketName [10:28:48]name=ofd_packets/00139623 [10:28:48]NVStorageSaveData ofd_packets/00139623 [10:28:48]File name is /storage/ofd_packets/00139623 [10:28:48]Write 585 bytes [10:28:48]NVStorageSaveData done [10:28:48]OFDSenderStorePacket done [10:28:48]KKMCreateOFDPacket done [10:28:48]NVStorageSaveData kkm_last_timestamp [10:28:48]File name is /storage/kkm_last_timestamp [10:28:48]Write 4 bytes [10:28:48]NVStorageSaveData done [10:28:48]ExternCall_PrintAddStr [10:28:48]wPrintStart [10:28:48]Write to MH i2c: 01 00 00 C3 81 44 [10:28:48]Write i2c OK [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: 01 [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: 01 07 00 [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: 01 07 00 C3 81 00 00 00 00 00 FF 0F 59 [10:28:48]RasterBufferAndPrint [10:28:48]line Счет N : (3)335496 [10:28:48]line ИНН: 02508201610067 [10:28:48]line Контрольно-Кассовый Чек [10:28:48]line ПРОДАЖА [10:28:48]line Товар: 40822426 [10:28:48]line Вода Бонаква 0,5л б/г [10:28:48]line 1.000 * 40.00 [10:28:48]line = 40.00 [10:28:48]line НДС 12% НСП 1% [10:28:48]line > о реализуемом товаре [10:28:48]line Товар: 5449000189349 [10:28:48]line Холодный чай Fuse манго ананас 0,5л [10:28:48]line 1.000 * 75.00 [10:28:48]line = 75.00 [10:28:48]line НДС 12% НСП 1% [10:28:48]line > о реализуемом товаре [10:28:48]line Товар: 4700000160792 [10:28:48]line Снек Курут классический (круглый) [10:28:48]line 1.000 * 60.00 [10:28:48]line = 60.00 [10:28:48]line НДС 12% НСП 1% [10:28:48]line > о реализуемом товаре [10:28:48]line ИТОГО: 175.00 [10:28:48]line НСП 1% : 1.54 [10:28:48]line НДС 12% : 18.58 [10:28:48]line Наличными: 175.00 [10:28:48]line Безнал.: 0.00 [10:28:48]line Место: АЗС № 101 "Партнер Нефть" [10:28:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:28:48]line СНО: Общий режим [10:28:48]line Чек 100 31.10.2024 10:28 [10:28:48]line Смена: 557 ФФД: 1.0 [10:28:48]line ЗНМ: 0300000081 [10:28:48]line РНМ: 0000000000091631 [10:28:48]line Версия ККМ: 001 [10:28:48]line ФМ: 0000000000874669 [10:28:48]line ФД: 139623 [10:28:48]line ФПД: 220646873533612 [10:28:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T102855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139623&fm=220646873533612&tin=02508201610067®Number=0000000000091631&sum=17500 [10:28:48]line 0 [10:28:48]OFD Sender: Processing packet 139623 [packets to send 34, broken 33] [10:28:48]ProducePacketName [10:28:48]name=ofd_packets/00139623 [10:28:48]OFD Sender: To server: pG, [10:28:48]CommunicateWithHost lk.salyk.kg:30040 [10:28:48]ConnectInit lk.salyk.kg [10:28:48]written 0, free lines is 4095 [10:28:48]Connected sock=10 [10:28: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 2B 02 00 00 64 8E 23 02 19 FD 5A 03 01 00 03 00 17 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 E7 5B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C8 AD 5A 84 8C AC 52 DE EF D0 6D 71 A2 02 [10:28: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 E8 91 47 00 1F 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 21 02 00 F4 03 04 00 96 07 23 67 B6 04 01 00 00 FB 49 FF 1D AE 55 14 08 [10:28:48]CommunicateWithHost err = 0 [10:28:48]CheckOFDResponse [10:28:48]1017 (14) - 77093643461234 [10:28:48]1041 (16) - 0000000000874669 [10:28:48]1040 (4) - 139623 [10:28:48]1012 (4) - 31.10.2024 04:29 [10:28:48]1206 (1) - 0 [10:28:48]OFD Sender: Remove packet 139623 [10:28:48]ProducePacketName [10:28:48]name=ofd_packets/00139623 [10:28:48]NVStorageDeleteData [10:28:48]Write to MH i2c: 01 00 00 F9 81 7A [10:28:48]Write i2c OK [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: 01 [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: 01 07 00 [10:28:48]MH_I2C_Read... [10:28:48]Read from MH i2c: 01 07 00 F9 81 00 00 00 00 00 5D 0C EA [10:28:49]RasterBufferAndPrint [10:28:49]line [10:28:49]line [10:28:49]line [10:28:49]line [10:28:49]line [10:28:49]written 0, free lines is 3186 [10:28:49]MH_Cut [10:28:49]Write to MH i2c: D1 01 00 00 82 01 54 [10:28:49]Write i2c OK [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: D1 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: D1 01 00 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: D1 01 00 00 82 00 53 [10:28:49]Write to MH i2c: 01 00 00 01 82 83 [10:28:49]Write i2c OK [10:28:49]MH_I2C_Read... [10:28:49]OFD Sender: No OFD packet to send [10:28:49]*** Cut start [10:28:49]*** Partial cut [10:28:49]*** CUTSNS_PIN = 1 [10:28:49]*** CUTSNS_PIN = 0 [10:28:50]*** Brake cut motor [10:28:50]Read from MH i2c: 01 [10:28:50]MH_I2C_Read... [10:28:50]*** Stop cut motor [10:28:50]*** Cut end [10:28:50]Read from MH i2c: 01 07 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: 01 07 00 01 82 00 00 00 00 00 FF 0F 98 [10:28:50]process_action close_receipt done [10:28:50]requested_data is exist [10:28:50]produce_requested_data [10:28:50]requested_item fm.sn is exist - process it [10:28:50]wFMCommunicate request_size=4 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 11 00 00 [10:28:50]Write to MH i2c: E2 08 00 02 82 80 11 00 00 00 00 00 00 FE [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 17 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 17 00 02 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 59 [10:28: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:28:50]wFMCommunicate OK [10:28:50]requested_item fd.num is exist - process it [10:28:50]SAM_PROTO_GetFieldsCounters [10:28:50]wFMCommunicate request_size=4 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 13 00 00 [10:28:50]Write to MH i2c: E2 08 00 03 82 80 13 00 00 00 00 00 00 01 [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 62 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 62 00 03 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 0A [10:28: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 67 21 02 00 0E 04 04 00 2D 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:28:50]wFMCommunicate OK [10:28:50]SAM_PROTO_GetFieldsCounters done [10:28:50]requested_item shift.num is exist - process it [10:28:50]requested_item shift.opened is exist - process it [10:28:50]req_shift_opened [10:28:50]FM_GetShiftState [10:28:50]SAM_PROTO_GetShiftState [10:28:50]wFMCommunicate request_size=4 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 13 01 00 [10:28:50]Write to MH i2c: E2 08 00 04 82 80 13 01 00 00 00 00 00 03 [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 0E 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 0E 00 04 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2C [10:28:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:28:50]wFMCommunicate OK [10:28:50]SAM_PROTO_GetShiftState done [10:28:50]FM_GetShiftState done [10:28:50]req_shift_opened done [10:28:50]requested_item shift.open_date is exist - process it [10:28:50]req_shift_open_date [10:28:50]req_shift_open_date done [10:28:50]produce_requested_data done [10:28:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139623,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:28:50]process_action_free close_receipt [10:28:50]json_value_free [10:28:50]json_value_free done [10:28:50]process_json_proto returns [10:28:50]Send response to host [10:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139623,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:28:50]free response buf [10:28:50]execute_script done [10:28:50]execute_script returns [10:28:50]free content buf [10:28:50]Sock 9.Close socket [10:28:50]Sock 9.Thread stoped [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:55]accept exits with 8 [10:29:55]New connection [10:29:55]New thread 3067141476 created [10:29:55]Thread 3067284836 joined [10:29:55]Waiting for new connection... [10:29:55] Sock 8.Parse request [10:29:55]Sock 8.Check first char [10:29:55]Sock 8.First char is OK [10:29:55]request: POST /json_proto HTTP/1.0 [10:29:55]Method: POST [10:29:55]URL: /json_proto [10:29:55]Method is POST - this is cgi request [10:29:55]url: /json_proto [10:29:55]query_string will be loaded in cgi processing [10:29:55]execute_cgi json_proto POST (null) [10:29:55]execute_cgi path=json_proto method=POST [10:29:55]POST find Content-Length [10:29:55]Host: 172.17.50.196:8080 [10:29:55]Content-Length: 919 [10:29:55]Content-Type: application/json [10:29:55] [10:29:55]POST finish read [10:29:55]Found Content-Length = 919 [10:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335497", "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": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:55]execute_script... [10:29:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335497", "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": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:55]POST & json_proto [10:29:55]process_json_proto [10:29:55]json parsed OK: [10:29:55]protocol is kg_v1.0 [10:29:55]action value=close_receipt [10:29:55]process_action close_receipt [10:29:55]cmd_close_receipt [10:29:55]MH_GetDate [10:29:55]Write to MH i2c: F0 00 00 05 82 76 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: F0 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: F0 09 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: F0 09 00 05 82 00 2D 5C 23 67 72 0D 1C 67 94 [10:29:55]GetLastDocTimeStamp 1730370535 [10:29:55]current date 1730370605 [10:29:55]FM_GetShiftState [10:29:55]SAM_PROTO_GetShiftState [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 13 01 00 [10:29:55]Write to MH i2c: E2 08 00 06 82 80 13 01 00 00 00 00 00 05 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 0E 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 0E 00 06 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2E [10:29:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:29:55]wFMCommunicate OK [10:29:55]SAM_PROTO_GetShiftState done [10:29:55]FM_GetShiftState done [10:29:55]opened in 1730332621 [10:29:55]opened+sec_in_day 1730419021 [10:29:55]quantity*price = 5000 [10:29:55]sum+1 = 5001 [10:29:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400662 Семечки ДЖИНН 140г синий 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 101 31.10.2024 10:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139624 ФПД: 24899799116331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T103005&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139624&fm=24899799116331&tin=02508201610067®Number=0000000000091631&sum=18000 0 [10:29:56]StoreToDocumentArchive [10:29:56]shift 557 fd 139624 [10:29:56]save to /storage/0557/doc_00139624 [10:29:56]save last doc name /storage/0557/doc_00139624 to /storage/kkm_last_doc_name [10:29:56]save OK [10:29:56]Clear old archive folders... [10:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=383 [10:29:56]tlvbuf is 01336E30 [10:29:56]SAM_PROTO_ClearQueue [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 09 00 00 [10:29:56]Write to MH i2c: E2 08 00 13 82 80 09 00 00 00 00 00 00 07 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 13 82 00 90 00 09 [10:29:56]RAPDU: 90 00 [10:29:56]wFMCommunicate OK [10:29:56]SAM_PROTO_ClearQueue done [10:29:56]KKMCreateOFDPacket [10:29:56]OFDProtocolAddRootSTLVToBuf [10:29:56]FM_MakeSignedData [10:29:56]FM_MakeSignedData [10:29:56]SAM_PROTO_SignData [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 0D 01 02 [10:29:56]Write to MH i2c: E2 08 00 14 82 80 0D 01 02 00 00 00 00 0F [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 14 82 00 90 00 0A [10:29:56]RAPDU: 90 00 [10:29:56]wFMCommunicate OK [10:29:56]wFMCommunicate request_size=255 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F [10:29:56]Write to MH i2c: E2 02 01 15 82 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 ED [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 15 82 00 90 00 0B [10:29:57]RAPDU: 90 00 [10:29:57]wFMCommunicate OK [10:29:57]wFMCommunicate request_size=142 [10:29:57]MH_SAM_APDU [10:29: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 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 65 00 00 00 F4 03 04 00 2D 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 16 A5 6F AE 6A 2B [10:29:57]Write to MH i2c: E2 91 00 16 82 80 0D 02 02 89 00 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 65 00 00 00 F4 03 04 00 2D 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 16 A5 6F AE 6A 2B 00 00 07 [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 16 82 00 90 00 0C [10:29:57]RAPDU: 90 00 [10:29:57]wFMCommunicate OK [10:29:57]wFMCommunicate request_size=4 [10:29:57]MH_SAM_APDU [10:29:57]CAPDU: 80 0D 03 02 [10:29:57]Write to MH i2c: E2 08 00 17 82 80 0D 03 02 00 00 00 00 14 [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 0B 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 0B 00 17 82 00 97 0C 51 F9 F1 80 F7 CA 90 00 34 [10:29:57]RAPDU: 97 0C 51 F9 F1 80 F7 CA 90 00 [10:29:57]wFMCommunicate OK [10:29:57]SAM_PROTO_SignData done [10:29:57]FM_MakeSignedData done [10:29:57]CreateOFDProtocolMessage [10:29:57]wFMCommunicate request_size=4 [10:29:57]MH_SAM_APDU [10:29:57]CAPDU: 80 11 00 00 [10:29:57]Write to MH i2c: E2 08 00 18 82 80 11 00 00 00 00 00 00 14 [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 17 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 17 00 18 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6F [10:29: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:29:57]wFMCommunicate OK [10:29:57]CreateOFDProtocolMessage done [10:29:57]OFDSenderStorePacket 139624 [10:29:57]StoreOFDPacket docnum=139624 [10:29: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 C6 E0 8B 01 26 79 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2D 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 16 A5 6F AE 6A 2B 97 0C 51 F9 F1 80 F7 CA [10:29:57]CheckFolder [10:29:57]dirname=/storage/ofd_packets [10:29:57]CheckFolder done [10:29:57]ProducePacketName [10:29:57]name=ofd_packets/00139624 [10:29:57]NVStorageSaveData ofd_packets/00139624 [10:29:57]File name is /storage/ofd_packets/00139624 [10:29:57]Write 433 bytes [10:29:57]NVStorageSaveData done [10:29:57]OFDSenderStorePacket done [10:29:57]KKMCreateOFDPacket done [10:29:57]NVStorageSaveData kkm_last_timestamp [10:29:57]File name is /storage/kkm_last_timestamp [10:29:57]Write 4 bytes [10:29:57]NVStorageSaveData done [10:29:57]ExternCall_PrintAddStr [10:29:57]wPrintStart [10:29:57]Write to MH i2c: 01 00 00 19 82 9B [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: 01 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: 01 07 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: 01 07 00 19 82 00 00 00 00 00 FF 0F B0 [10:29:57]RasterBufferAndPrint [10:29:57]line Счет N : (3)335497 [10:29:57]line ИНН: 02508201610067 [10:29:57]line Контрольно-Кассовый Чек [10:29:57]line ПРОДАЖА [10:29:57]line Товар: 4700000160358 [10:29:57]line Вода Легенда 1л [10:29:57]line 1.000 * 50.00 [10:29:57]line = 50.00 [10:29:57]line НДС 12% НСП 1% [10:29:57]line > о реализуемом товаре [10:29:57]line Товар: 4630007400662 [10:29:57]line Семечки ДЖИНН 140г синий [10:29:57]line 1.000 * 130.00 [10:29:57]line = 130.00 [10:29:57]line НДС 12% НСП 1% [10:29:57]line > о реализуемом товаре [10:29:57]line ИТОГО: 180.00 [10:29:57]line НСП 1% : 1.59 [10:29:57]line НДС 12% : 19.11 [10:29:57]line Наличными: 180.00 [10:29:57]line Безнал.: 0.00 [10:29:57]line Место: АЗС № 101 "Партнер Нефть" [10:29:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:29:57]line СНО: Общий режим [10:29:57]line Чек 101 31.10.2024 10:30 [10:29:57]line Смена: 557 ФФД: 1.0 [10:29:57]line ЗНМ: 0300000081 [10:29:57]line РНМ: 0000000000091631 [10:29:57]line Версия ККМ: 001 [10:29:57]line ФМ: 0000000000874669 [10:29:57]line ФД: 139624 [10:29:57]line ФПД: 24899799116331 [10:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T103005&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139624&fm=24899799116331&tin=02508201610067®Number=0000000000091631&sum=18000 [10:29:57]line 0 [10:29:57]OFD Sender: Processing packet 139624 [packets to send 34, broken 33] [10:29:57]ProducePacketName [10:29:57]name=ofd_packets/00139624 [10:29:57]OFD Sender: To server: pG, [10:29:57]CommunicateWithHost lk.salyk.kg:30040 [10:29:57]ConnectInit lk.salyk.kg [10:29:57]written 0, free lines is 4095 [10:29:57]Connected sock=10 [10:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 93 01 00 00 C6 E0 8B 01 26 79 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2D 5C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 16 A5 6F AE 6A 2B 97 0C 51 F9 F1 80 F7 CA [10:29:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 96 9D 47 00 7D 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 68 21 02 00 F4 03 04 00 DB 07 23 67 B6 04 01 00 00 E4 B8 01 99 CE 1F 95 C6 [10:29:57]CommunicateWithHost err = 0 [10:29:57]CheckOFDResponse [10:29:57]1017 (14) - 77093643461234 [10:29:57]1041 (16) - 0000000000874669 [10:29:57]1040 (4) - 139624 [10:29:57]1012 (4) - 31.10.2024 04:30 [10:29:57]1206 (1) - 0 [10:29:57]OFD Sender: Remove packet 139624 [10:29:57]ProducePacketName [10:29:57]name=ofd_packets/00139624 [10:29:57]NVStorageDeleteData [10:29:58]Write to MH i2c: 01 00 00 47 82 C9 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 47 82 00 00 00 00 00 E3 0C BF [10:29:58]RasterBufferAndPrint [10:29:58]line [10:29:58]line [10:29:58]line [10:29:58]line [10:29:58]line [10:29:58]written 0, free lines is 3308 [10:29:58]MH_Cut [10:29:58]Write to MH i2c: D1 01 00 4E 82 01 A2 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: D1 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: D1 01 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: D1 01 00 4E 82 00 A1 [10:29:58]Write to MH i2c: 01 00 00 4F 82 D1 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]OFD Sender: No OFD packet to send [10:29:58]*** Cut start [10:29:58]*** Partial cut [10:29:58]*** CUTSNS_PIN = 1 [10:29:58]*** CUTSNS_PIN = 0 [10:29:59]*** Brake cut motor [10:29:59]Read from MH i2c: 01 [10:29:59]MH_I2C_Read... [10:29:59]*** Stop cut motor [10:29:59]*** Cut end [10:29:59]Read from MH i2c: 01 07 00 [10:29:59]MH_I2C_Read... [10:29:59]Read from MH i2c: 01 07 00 4F 82 00 00 00 00 00 FF 0F E6 [10:29:59]process_action close_receipt done [10:29:59]requested_data is exist [10:29:59]produce_requested_data [10:29:59]requested_item fm.sn is exist - process it [10:29:59]wFMCommunicate request_size=4 [10:29:59]MH_SAM_APDU [10:29:59]CAPDU: 80 11 00 00 [10:29:59]Write to MH i2c: E2 08 00 50 82 80 11 00 00 00 00 00 00 4C [10:29:59]Write i2c OK [10:29:59]MH_I2C_Read... [10:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:59]Read from MH i2c: E2 [10:29:59]MH_I2C_Read... [10:29:59]Read from MH i2c: E2 17 00 [10:29:59]MH_I2C_Read... [10:29:59]Read from MH i2c: E2 17 00 50 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A7 [10:29: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:29:59]wFMCommunicate OK [10:29:59]requested_item fd.num is exist - process it [10:29:59]SAM_PROTO_GetFieldsCounters [10:29:59]wFMCommunicate request_size=4 [10:29:59]MH_SAM_APDU [10:29:59]CAPDU: 80 13 00 00 [10:29:59]Write to MH i2c: E2 08 00 51 82 80 13 00 00 00 00 00 00 4F [10:29:59]Write i2c OK [10:29:59]MH_I2C_Read... [10:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:59]Read from MH i2c: E2 [10:29:59]MH_I2C_Read... [10:29:59]Read from MH i2c: E2 62 00 [10:29:59]MH_I2C_Read... [10:29:59]Read from MH i2c: E2 62 00 51 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 5C [10:29: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 68 21 02 00 0E 04 04 00 2D 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:29:59]wFMCommunicate OK [10:29:59]SAM_PROTO_GetFieldsCounters done [10:29:59]requested_item shift.num is exist - process it [10:29:59]requested_item shift.opened is exist - process it [10:29:59]req_shift_opened [10:29:59]FM_GetShiftState [10:29:59]SAM_PROTO_GetShiftState [10:29:59]wFMCommunicate request_size=4 [10:29:59]MH_SAM_APDU [10:29:59]CAPDU: 80 13 01 00 [10:29:59]Write to MH i2c: E2 08 00 52 82 80 13 01 00 00 00 00 00 51 [10:29:59]Write i2c OK [10:29:59]MH_I2C_Read... [10:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:59]Read from MH i2c: E2 [10:29:59]MH_I2C_Read... [10:29:59]Read from MH i2c: E2 0E 00 [10:29:59]MH_I2C_Read... [10:29:59]Read from MH i2c: E2 0E 00 52 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7A [10:29:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:29:59]wFMCommunicate OK [10:29:59]SAM_PROTO_GetShiftState done [10:29:59]FM_GetShiftState done [10:29:59]req_shift_opened done [10:29:59]requested_item shift.open_date is exist - process it [10:29:59]req_shift_open_date [10:29:59]req_shift_open_date done [10:29:59]produce_requested_data done [10:29:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139624,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:29:59]process_action_free close_receipt [10:29:59]json_value_free [10:29:59]json_value_free done [10:29:59]process_json_proto returns [10:29:59]Send response to host [10:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139624,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:29:59]free response buf [10:29:59]execute_script done [10:29:59]execute_script returns [10:29:59]free content buf [10:29:59]Sock 8.Close socket [10:29:59]Sock 8.Thread stoped [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35: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:01]accept exits with 9 [10:36:01]New connection [10:36:01]New thread 3067284836 created [10:36:01]Thread 3067141476 joined [10:36:01]Waiting for new connection... [10:36:01] Sock 9.Parse request [10:36:01]Sock 9.Check first char [10:36:01]Sock 9.First char is OK [10:36:01]request: POST /json_proto HTTP/1.0 [10:36:01]Method: POST [10:36:01]URL: /json_proto [10:36:01]Method is POST - this is cgi request [10:36:01]url: /json_proto [10:36:01]query_string will be loaded in cgi processing [10:36:01]execute_cgi json_proto POST (null) [10:36:01]execute_cgi path=json_proto method=POST [10:36:01]POST find Content-Length [10:36:01]Host: 172.17.50.196:8080 [10:36:01]Content-Length: 680 [10:36:01]Content-Type: application/json [10:36:01] [10:36:01]POST finish read [10:36:01]Found Content-Length = 680 [10:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095078", "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" : 14.780, "sum" : 988.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:01]execute_script... [10:36: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)1095078", "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" : 14.780, "sum" : 988.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:01]POST & json_proto [10:36:01]process_json_proto [10:36:01]json parsed OK: [10:36:01]protocol is kg_v1.0 [10:36:01]action value=close_receipt [10:36:01]process_action close_receipt [10:36:01]cmd_close_receipt [10:36:01]MH_GetDate [10:36:01]Write to MH i2c: F0 00 00 53 82 C4 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: F0 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: F0 09 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: F0 09 00 53 82 00 9B 5D 23 67 72 0D 1C 67 51 [10:36:01]GetLastDocTimeStamp 1730370605 [10:36:01]current date 1730370971 [10:36:01]FM_GetShiftState [10:36:01]SAM_PROTO_GetShiftState [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 13 01 00 [10:36:01]Write to MH i2c: E2 08 00 54 82 80 13 01 00 00 00 00 00 53 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0E 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0E 00 54 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7C [10:36:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:36:01]wFMCommunicate OK [10:36:01]SAM_PROTO_GetShiftState done [10:36:01]FM_GetShiftState done [10:36:01]opened in 1730332621 [10:36:01]opened+sec_in_day 1730419021 [10:36:01]quantity*price = 98878 [10:36:01]sum+1 = 98879 [10:36:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.78 ИТОГО: 988.00 Внесено: 1000.00 СДАЧА: 12.00 НСП 1% : 8.75 НДС 12% : 105.00 Наличными: 988.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 102 31.10.2024 10:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139625 ФПД: 128936290519420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T103611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139625&fm=128936290519420&tin=02508201610067®Number=0000000000091631&sum=98800 [10:36:02]StoreToDocumentArchive [10:36:02]shift 557 fd 139625 [10:36:02]save to /storage/0557/doc_00139625 [10:36:02]save last doc name /storage/0557/doc_00139625 to /storage/kkm_last_doc_name [10:36:02]save OK [10:36:02]Clear old archive folders... [10:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:02]tlvbuf is 0136C130 [10:36:02]SAM_PROTO_ClearQueue [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 09 00 00 [10:36:02]Write to MH i2c: E2 08 00 61 82 80 09 00 00 00 00 00 00 55 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 03 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 03 00 61 82 00 90 00 57 [10:36:02]RAPDU: 90 00 [10:36:02]wFMCommunicate OK [10:36:02]SAM_PROTO_ClearQueue done [10:36:02]KKMCreateOFDPacket [10:36:02]OFDProtocolAddRootSTLVToBuf [10:36:02]FM_MakeSignedData [10:36:02]FM_MakeSignedData [10:36:02]SAM_PROTO_SignData [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 0D 01 02 [10:36:02]Write to MH i2c: E2 08 00 62 82 80 0D 01 02 00 00 00 00 5D [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 62 82 00 90 00 58 [10:36:03]RAPDU: 90 00 [10:36:03]wFMCommunicate OK [10:36:03]wFMCommunicate request_size=255 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 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 9B 5D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 75 [10:36:03]Write to MH i2c: E2 02 01 63 82 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 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 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 9B 5D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 75 00 00 F0 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 63 82 00 90 00 59 [10:36:03]RAPDU: 90 00 [10:36:03]wFMCommunicate OK [10:36:03]wFMCommunicate request_size=10 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 0D 02 02 05 44 51 CB 89 7C [10:36:03]Write to MH i2c: E2 0D 00 64 82 80 0D 02 02 05 00 44 51 CB 89 7C 00 00 CF [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 64 82 00 90 00 5A [10:36:03]RAPDU: 90 00 [10:36:03]wFMCommunicate OK [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 0D 03 02 [10:36:03]Write to MH i2c: E2 08 00 65 82 80 0D 03 02 00 00 00 00 62 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0B 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0B 00 65 82 00 3E 35 DB F8 69 95 DA 76 90 00 F7 [10:36:03]RAPDU: 3E 35 DB F8 69 95 DA 76 90 00 [10:36:03]wFMCommunicate OK [10:36:03]SAM_PROTO_SignData done [10:36:03]FM_MakeSignedData done [10:36:03]CreateOFDProtocolMessage [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 11 00 00 [10:36:03]Write to MH i2c: E2 08 00 66 82 80 11 00 00 00 00 00 00 62 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 17 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 17 00 66 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [10:36: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:36:03]wFMCommunicate OK [10:36:03]CreateOFDProtocolMessage done [10:36:03]OFDSenderStorePacket 139625 [10:36:03]StoreOFDPacket docnum=139625 [10:36: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 F8 93 07 01 B0 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 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 9B 5D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 75 44 51 CB 89 7C 3E 35 DB F8 69 95 DA 76 [10:36:03]CheckFolder [10:36:03]dirname=/storage/ofd_packets [10:36:03]CheckFolder done [10:36:03]ProducePacketName [10:36:03]name=ofd_packets/00139625 [10:36:03]NVStorageSaveData ofd_packets/00139625 [10:36:03]File name is /storage/ofd_packets/00139625 [10:36:03]Write 301 bytes [10:36:03]NVStorageSaveData done [10:36:03]OFDSenderStorePacket done [10:36:03]KKMCreateOFDPacket done [10:36:03]NVStorageSaveData kkm_last_timestamp [10:36:03]File name is /storage/kkm_last_timestamp [10:36:03]Write 4 bytes [10:36:03]NVStorageSaveData done [10:36:03]ExternCall_PrintAddStr [10:36:03]wPrintStart [10:36:03]Write to MH i2c: 01 00 00 67 82 E9 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: 01 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: 01 07 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: 01 07 00 67 82 00 00 00 00 00 FF 0F FE [10:36:03]RasterBufferAndPrint [10:36:03]line Счет N : (1)1095078 [10:36:03]line ИНН: 02508201610067 [10:36:03]line Контрольно-Кассовый Чек [10:36:03]line ПРОДАЖА [10:36:03]line ТРК (МРК, ГНК) : 53 [10:36:03]line Товар: 2710124130 [10:36:03]line Аи-92-К-2 [10:36:03]line 14.780 * 66.90 [10:36:03]line = 988.78 [10:36:03]line НДС 12% НСП 1% [10:36:03]line > о реализуемом товаре [10:36:03]line ОКРУГЛЕНИЕ: -0.78 [10:36:03]line ИТОГО: 988.00 [10:36:03]line Внесено: 1000.00 [10:36:03]line СДАЧА: 12.00 [10:36:03]line НСП 1% : 8.75 [10:36:03]line НДС 12% : 105.00 [10:36:03]line Наличными: 988.00 [10:36:03]line Безнал.: 0.00 [10:36:03]line Место: АЗС № 101 "Партнер Нефть" [10:36:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:36:03]line СНО: Общий режим [10:36:03]line Чек 102 31.10.2024 10:36 [10:36:03]line Смена: 557 ФФД: 1.0 [10:36:03]line ЗНМ: 0300000081 [10:36:03]line РНМ: 0000000000091631 [10:36:03]line Версия ККМ: 001 [10:36:03]line ФМ: 0000000000874669 [10:36:03]line ФД: 139625 [10:36:03]line ФПД: 128936290519420 [10:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T103611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139625&fm=128936290519420&tin=02508201610067®Number=0000000000091631&sum=98800 [10:36:03]OFD Sender: Processing packet 139625 [packets to send 34, broken 33] [10:36:03]ProducePacketName [10:36:03]name=ofd_packets/00139625 [10:36:03]OFD Sender: To server: pG, [10:36:03]CommunicateWithHost lk.salyk.kg:30040 [10:36:03]ConnectInit lk.salyk.kg [10:36:03]written 0, free lines is 4095 [10:36:03]Connected sock=11 [10:36: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 F8 93 07 01 B0 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 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 9B 5D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 75 44 51 CB 89 7C 3E 35 DB F8 69 95 DA 76 [10:36: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 BF 6F 47 00 94 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 21 02 00 F4 03 04 00 49 09 23 67 B6 04 01 00 00 95 6A 8A F6 CA 60 BA EF [10:36:04]CommunicateWithHost err = 0 [10:36:04]CheckOFDResponse [10:36:04]1017 (14) - 77093643461234 [10:36:04]1041 (16) - 0000000000874669 [10:36:04]1040 (4) - 139625 [10:36:04]1012 (4) - 31.10.2024 04:36 [10:36:04]1206 (1) - 0 [10:36:04]OFD Sender: Remove packet 139625 [10:36:04]ProducePacketName [10:36:04]name=ofd_packets/00139625 [10:36:04]NVStorageDeleteData [10:36:04]Write to MH i2c: 01 00 00 92 82 14 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 92 82 00 00 00 00 00 F6 0C 1D [10:36:04]RasterBufferAndPrint [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]written 0, free lines is 3324 [10:36:04]MH_Cut [10:36:04]Write to MH i2c: D1 01 00 99 82 01 ED [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 01 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 01 00 99 82 00 EC [10:36:04]Write to MH i2c: 01 00 00 9A 82 1C [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]OFD Sender: No OFD packet to send [10:36:04]*** Cut start [10:36:04]*** Partial cut [10:36:04]*** CUTSNS_PIN = 1 [10:36:05]*** CUTSNS_PIN = 0 [10:36:05]*** Brake cut motor [10:36:05]Read from MH i2c: 01 [10:36:05]MH_I2C_Read... [10:36:05]*** Stop cut motor [10:36:05]*** Cut end [10:36:05]Read from MH i2c: 01 07 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 9A 82 00 00 00 00 00 FF 0F 31 [10:36:05]process_action close_receipt done [10:36:05]requested_data is exist [10:36:05]produce_requested_data [10:36:05]requested_item fm.sn is exist - process it [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 11 00 00 [10:36:05]Write to MH i2c: E2 08 00 9B 82 80 11 00 00 00 00 00 00 97 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 9B 82 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:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:36:05]wFMCommunicate OK [10:36:05]requested_item fd.num is exist - process it [10:36:05]SAM_PROTO_GetFieldsCounters [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 13 00 00 [10:36:05]Write to MH i2c: E2 08 00 9C 82 80 13 00 00 00 00 00 00 9A [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 9C 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 AB [10:36: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 69 21 02 00 0E 04 04 00 2D 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:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetFieldsCounters done [10:36:05]requested_item shift.num is exist - process it [10:36:05]requested_item shift.opened is exist - process it [10:36:05]req_shift_opened [10:36:05]FM_GetShiftState [10:36:05]SAM_PROTO_GetShiftState [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 13 01 00 [10:36:05]Write to MH i2c: E2 08 00 9D 82 80 13 01 00 00 00 00 00 9C [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 9D 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C5 [10:36:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetShiftState done [10:36:05]FM_GetShiftState done [10:36:05]req_shift_opened done [10:36:05]requested_item shift.open_date is exist - process it [10:36:05]req_shift_open_date [10:36:05]req_shift_open_date done [10:36:05]produce_requested_data done [10:36:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139625,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:36:05]process_action_free close_receipt [10:36:05]json_value_free [10:36:05]json_value_free done [10:36:05]process_json_proto returns [10:36:05]Send response to host [10:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139625,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:36:05]free response buf [10:36:05]execute_script done [10:36:05]execute_script returns [10:36:05]free content buf [10:36:05]Sock 9.Close socket [10:36:05]Sock 9.Thread stoped [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43: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:46:57]accept exits with 8 [10:46:57]New connection [10:46:57]New thread 3067141476 created [10:46:57]Thread 3067284836 joined [10:46:57]Waiting for new connection... [10:46:57] Sock 8.Parse request [10:46:57]Sock 8.Check first char [10:46:57]Sock 8.First char is OK [10:46:57]request: POST /json_proto HTTP/1.0 [10:46:57]Method: POST [10:46:57]URL: /json_proto [10:46:57]Method is POST - this is cgi request [10:46:57]url: /json_proto [10:46:57]query_string will be loaded in cgi processing [10:46:57]execute_cgi json_proto POST (null) [10:46:57]execute_cgi path=json_proto method=POST [10:46:57]POST find Content-Length [10:46:57]Host: 172.17.50.196:8080 [10:46:57]Content-Length: 1309 [10:46:57]Content-Type: application/json [10:46:57] [10:46:57]POST finish read [10:46:57]Found Content-Length = 1309 [10:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335498", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 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" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:57]execute_script... [10:46:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335498", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 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" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:57]POST & json_proto [10:46:57]process_json_proto [10:46:57]json parsed OK: [10:46:57]protocol is kg_v1.0 [10:46:57]action value=close_receipt [10:46:57]process_action close_receipt [10:46:57]cmd_close_receipt [10:46:57]MH_GetDate [10:46:57]Write to MH i2c: F0 00 00 9E 82 0F [10:46:57]Write i2c OK [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: F0 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: F0 09 00 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: F0 09 00 9E 82 00 2B 60 23 67 72 0D 1C 67 2F [10:46:57]GetLastDocTimeStamp 1730370971 [10:46:57]current date 1730371627 [10:46:57]FM_GetShiftState [10:46:57]SAM_PROTO_GetShiftState [10:46:57]wFMCommunicate request_size=4 [10:46:57]MH_SAM_APDU [10:46:57]CAPDU: 80 13 01 00 [10:46:57]Write to MH i2c: E2 08 00 9F 82 80 13 01 00 00 00 00 00 9E [10:46:57]Write i2c OK [10:46:57]MH_I2C_Read... [10:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:57]Read from MH i2c: E2 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: E2 0E 00 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: E2 0E 00 9F 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C7 [10:46:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:46:57]wFMCommunicate OK [10:46:57]SAM_PROTO_GetShiftState done [10:46:57]FM_GetShiftState done [10:46:57]opened in 1730332621 [10:46:57]opened+sec_in_day 1730419021 [10:46:57]quantity*price = 9900 [10:46:57]sum+1 = 9901 [10:46:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 359.00 НСП 1% : 3.18 НДС 12% : 38.11 Наличными: 0.00 Безнал.: 359.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 103 31.10.2024 10:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139626 ФПД: 86512722700022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T104707&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139626&fm=86512722700022&tin=02508201610067®Number=0000000000091631&sum=35900 0 [10:46:58]StoreToDocumentArchive [10:46:58]shift 557 fd 139626 [10:46:58]save to /storage/0557/doc_00139626 [10:46:58]save last doc name /storage/0557/doc_00139626 to /storage/kkm_last_doc_name [10:46:58]save OK [10:46:58]Clear old archive folders... [10:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=512 [10:46:58]tlvbuf is 01251700 [10:46:58]SAM_PROTO_ClearQueue [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 09 00 00 [10:46:58]Write to MH i2c: E2 08 00 AC 82 80 09 00 00 00 00 00 00 A0 [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 AC 82 00 90 00 A2 [10:46:58]RAPDU: 90 00 [10:46:58]wFMCommunicate OK [10:46:58]SAM_PROTO_ClearQueue done [10:46:58]KKMCreateOFDPacket [10:46:58]OFDProtocolAddRootSTLVToBuf [10:46:58]FM_MakeSignedData [10:46:58]FM_MakeSignedData [10:46:58]SAM_PROTO_SignData [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 0D 01 02 [10:46:58]Write to MH i2c: E2 08 00 AD 82 80 0D 01 02 00 00 00 00 A8 [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 AD 82 00 90 00 A3 [10:46:58]RAPDU: 90 00 [10:46:58]wFMCommunicate OK [10:46:58]wFMCommunicate request_size=255 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 0D 02 02 FA 03 00 00 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 [10:46:59]Write to MH i2c: E2 02 01 AE 82 80 0D 02 02 FA 00 03 00 00 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 00 00 10 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 AE 82 00 90 00 A4 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=255 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 02 02 FA 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2B 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 [10:46:59]Write to MH i2c: E2 02 01 AF 82 80 0D 02 02 FA 00 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2B 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 00 00 98 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 AF 82 00 90 00 A5 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=21 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 02 02 10 04 00 6A 21 02 00 35 04 06 00 4E AE D0 1A E6 F6 [10:46:59]Write to MH i2c: E2 18 00 B0 82 80 0D 02 02 10 00 04 00 6A 21 02 00 35 04 06 00 4E AE D0 1A E6 F6 00 00 5E [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 B0 82 00 90 00 A6 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 03 02 [10:46:59]Write to MH i2c: E2 08 00 B1 82 80 0D 03 02 00 00 00 00 AE [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 0B 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 0B 00 B1 82 00 09 C9 54 EE FD 7D 37 E1 90 00 55 [10:46:59]RAPDU: 09 C9 54 EE FD 7D 37 E1 90 00 [10:46:59]wFMCommunicate OK [10:46:59]SAM_PROTO_SignData done [10:46:59]FM_MakeSignedData done [10:46:59]CreateOFDProtocolMessage [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 11 00 00 [10:46:59]Write to MH i2c: E2 08 00 B2 82 80 11 00 00 00 00 00 00 AE [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:00]Read from MH i2c: E2 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: E2 17 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: E2 17 00 B2 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 09 [10:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:47:00]wFMCommunicate OK [10:47:00]CreateOFDProtocolMessage done [10:47:00]OFDSenderStorePacket 139626 [10:47:00]StoreOFDPacket docnum=139626 [10:47: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 14 02 00 00 D7 0D 0C 02 2E BE 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2B 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4E AE D0 1A E6 F6 09 C9 54 EE FD 7D 37 E1 [10:47:00]CheckFolder [10:47:00]dirname=/storage/ofd_packets [10:47:00]CheckFolder done [10:47:00]ProducePacketName [10:47:00]name=ofd_packets/00139626 [10:47:00]NVStorageSaveData ofd_packets/00139626 [10:47:00]File name is /storage/ofd_packets/00139626 [10:47:00]Write 562 bytes [10:47:00]NVStorageSaveData done [10:47:00]OFDSenderStorePacket done [10:47:00]KKMCreateOFDPacket done [10:47:00]NVStorageSaveData kkm_last_timestamp [10:47:00]File name is /storage/kkm_last_timestamp [10:47:00]Write 4 bytes [10:47:00]NVStorageSaveData done [10:47:00]ExternCall_PrintAddStr [10:47:00]wPrintStart [10:47:00]Write to MH i2c: 01 00 00 B3 82 35 [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 B3 82 00 00 00 00 00 FF 0F 4A [10:47:00]RasterBufferAndPrint [10:47:00]line Счет N : (3)335498 [10:47:00]line ИНН: 02508201610067 [10:47:00]line Контрольно-Кассовый Чек [10:47:00]line ПРОДАЖА [10:47:00]line Товар: 4870022003312 [10:47:00]line Gorilla эн нап манго-кокос 0,45 ж/б [10:47:00]line 1.000 * 99.00 [10:47:00]line = 99.00 [10:47:00]line НДС 12% НСП 1% [10:47:00]line > о реализуемом товаре [10:47:00]line Товар: 2000036230011 [10:47:00]line Кофе Латте XL(GABB TRADE) [10:47:00]line 1.000 * 130.00 [10:47:00]line = 130.00 [10:47:00]line НДС 12% НСП 1% [10:47:00]line > о реализуемом товаре [10:47:00]line Товар: 2000036220012 [10:47:00]line Кофе Капучино XL(GABB TRADE) [10:47:00]line 1.000 * 130.00 [10:47:00]line = 130.00 [10:47:00]line НДС 12% НСП 1% [10:47:00]line > о реализуемом товаре [10:47:00]line ИТОГО: 359.00 [10:47:00]line НСП 1% : 3.18 [10:47:00]line НДС 12% : 38.11 [10:47:00]line Наличными: 0.00 [10:47:00]line Безнал.: 359.00 [10:47:00]line Место: АЗС № 101 "Партнер Нефть" [10:47:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:47:00]line СНО: Общий режим [10:47:00]line Чек 103 31.10.2024 10:47 [10:47:00]line Смена: 557 ФФД: 1.0 [10:47:00]line ЗНМ: 0300000081 [10:47:00]line РНМ: 0000000000091631 [10:47:00]line Версия ККМ: 001 [10:47:00]line Платежная система: Mbank [10:47:00]line ФМ: 0000000000874669 [10:47:00]line ФД: 139626 [10:47:00]line ФПД: 86512722700022 [10:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T104707&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139626&fm=86512722700022&tin=02508201610067®Number=0000000000091631&sum=35900 [10:47:00]OFD Sender: Processing packet 139626 [packets to send 34, broken 33] [10:47:00]ProducePacketName [10:47:00]name=ofd_packets/00139626 [10:47:00]OFD Sender: To server: pG, [10:47:00]CommunicateWithHost lk.salyk.kg:30040 [10:47:00]ConnectInit lk.salyk.kg [10:47:00]line 0 [10:47:00]written 0, free lines is 4095 [10:47:00]Connected sock=10 [10:47: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 14 02 00 00 D7 0D 0C 02 2E BE 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2B 60 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4E AE D0 1A E6 F6 09 C9 54 EE FD 7D 37 E1 [10:47: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 3B 35 47 00 33 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 6A 21 02 00 F4 03 04 00 DA 0B 23 67 B6 04 01 00 00 26 3C FE 91 2D 8F A6 C6 [10:47:00]CommunicateWithHost err = 0 [10:47:00]CheckOFDResponse [10:47:00]1017 (14) - 77093643461234 [10:47:00]1041 (16) - 0000000000874669 [10:47:00]1040 (4) - 139626 [10:47:00]1012 (4) - 31.10.2024 04:47 [10:47:00]1206 (1) - 0 [10:47:00]OFD Sender: Remove packet 139626 [10:47:00]ProducePacketName [10:47:00]name=ofd_packets/00139626 [10:47:00]NVStorageDeleteData [10:47:00]Write to MH i2c: 01 00 00 EA 82 6C [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 EA 82 00 00 00 00 00 69 0C E8 [10:47:00]RasterBufferAndPrint [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]written 0, free lines is 3187 [10:47:00]MH_Cut [10:47:00]Write to MH i2c: D1 01 00 F1 82 01 45 [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 01 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 01 00 F1 82 00 44 [10:47:00]Write to MH i2c: 01 00 00 F2 82 74 [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:01]OFD Sender: No OFD packet to send [10:47:01]*** Cut start [10:47:01]*** Partial cut [10:47:01]*** CUTSNS_PIN = 1 [10:47:01]*** CUTSNS_PIN = 0 [10:47:01]*** Brake cut motor [10:47:02]Read from MH i2c: 01 [10:47:02]MH_I2C_Read... [10:47:02]*** Stop cut motor [10:47:02]*** Cut end [10:47:02]Read from MH i2c: 01 07 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: 01 07 00 F2 82 00 00 00 00 00 FF 0F 89 [10:47:02]process_action close_receipt done [10:47:02]requested_data is exist [10:47:02]produce_requested_data [10:47:02]requested_item fm.sn is exist - process it [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 11 00 00 [10:47:02]Write to MH i2c: E2 08 00 F3 82 80 11 00 00 00 00 00 00 EF [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:02]Read from MH i2c: E2 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 17 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 17 00 F3 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4A [10:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:47:02]wFMCommunicate OK [10:47:02]requested_item fd.num is exist - process it [10:47:02]SAM_PROTO_GetFieldsCounters [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 13 00 00 [10:47:02]Write to MH i2c: E2 08 00 F4 82 80 13 00 00 00 00 00 00 F2 [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:02]Read from MH i2c: E2 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 62 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 62 00 F4 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 07 [10:47: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 6A 21 02 00 0E 04 04 00 2D 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:47:02]wFMCommunicate OK [10:47:02]SAM_PROTO_GetFieldsCounters done [10:47:02]requested_item shift.num is exist - process it [10:47:02]requested_item shift.opened is exist - process it [10:47:02]req_shift_opened [10:47:02]FM_GetShiftState [10:47:02]SAM_PROTO_GetShiftState [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 13 01 00 [10:47:02]Write to MH i2c: E2 08 00 F5 82 80 13 01 00 00 00 00 00 F4 [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:02]Read from MH i2c: E2 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 0E 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 0E 00 F5 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1D [10:47:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:47:02]wFMCommunicate OK [10:47:02]SAM_PROTO_GetShiftState done [10:47:02]FM_GetShiftState done [10:47:02]req_shift_opened done [10:47:02]requested_item shift.open_date is exist - process it [10:47:02]req_shift_open_date [10:47:02]req_shift_open_date done [10:47:02]produce_requested_data done [10:47:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139626,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:47:02]process_action_free close_receipt [10:47:02]json_value_free [10:47:02]json_value_free done [10:47:02]process_json_proto returns [10:47:02]Send response to host [10:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139626,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:47:02]free response buf [10:47:02]execute_script done [10:47:02]execute_script returns [10:47:02]free content buf [10:47:02]Sock 8.Close socket [10:47:02]Sock 8.Thread stoped [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:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]accept exits with 9 [10:59:41]New connection [10:59:41]New thread 3067284836 created [10:59:41]Thread 3067141476 joined [10:59:41]Waiting for new connection... [10:59:41] Sock 9.Parse request [10:59:41]Sock 9.Check first char [10:59:41]Sock 9.First char is OK [10:59:41]request: POST /json_proto HTTP/1.0 [10:59:41]Method: POST [10:59:41]URL: /json_proto [10:59:41]Method is POST - this is cgi request [10:59:41]url: /json_proto [10:59:41]query_string will be loaded in cgi processing [10:59:41]execute_cgi json_proto POST (null) [10:59:41]execute_cgi path=json_proto method=POST [10:59:41]POST find Content-Length [10:59:41]Host: 172.17.50.196:8080 [10:59:41]Content-Length: 683 [10:59:41]Content-Type: application/json [10:59:41] [10:59:41]POST finish read [10:59:41]Found Content-Length = 683 [10:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095092", "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" : 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" ] } } [10:59:41]execute_script... [10:59: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)1095092", "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" : 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" ] } } [10:59:41]POST & json_proto [10:59:41]process_json_proto [10:59:41]json parsed OK: [10:59:41]protocol is kg_v1.0 [10:59:41]action value=close_receipt [10:59:41]process_action close_receipt [10:59:41]cmd_close_receipt [10:59:41]MH_GetDate [10:59:41]Write to MH i2c: F0 00 00 F6 82 67 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: F0 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: F0 09 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: F0 09 00 F6 82 00 27 63 23 67 72 0D 1C 67 86 [10:59:41]GetLastDocTimeStamp 1730371627 [10:59:41]current date 1730372391 [10:59:41]FM_GetShiftState [10:59:41]SAM_PROTO_GetShiftState [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 13 01 00 [10:59:41]Write to MH i2c: E2 08 00 F7 82 80 13 01 00 00 00 00 00 F6 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0E 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0E 00 F7 82 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1F [10:59:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_GetShiftState done [10:59:41]FM_GetShiftState done [10:59:41]opened in 1730332621 [10:59:41]opened+sec_in_day 1730419021 [10:59:41]quantity*price = 100021 [10:59:41]sum+1 = 100023 [10:59:41]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 СНО: Общий режим Чек 104 31.10.2024 10:59 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139627 ФПД: 221126434449100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105951&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139627&fm=221126434449100&tin=02508201610067®Number=0000000000091631&sum=100000 [10:59:42]StoreToDocumentArchive [10:59:42]shift 557 fd 139627 [10:59:42]save to /storage/0557/doc_00139627 [10:59:42]save last doc name /storage/0557/doc_00139627 to /storage/kkm_last_doc_name [10:59:42]save OK [10:59:42]Clear old archive folders... [10:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:42]tlvbuf is 0124F030 [10:59:42]SAM_PROTO_ClearQueue [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 09 00 00 [10:59:42]Write to MH i2c: E2 08 00 04 83 80 09 00 00 00 00 00 00 F9 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 04 83 00 90 00 FB [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_ClearQueue done [10:59:42]KKMCreateOFDPacket [10:59:42]OFDProtocolAddRootSTLVToBuf [10:59:42]FM_MakeSignedData [10:59:42]FM_MakeSignedData [10:59:42]SAM_PROTO_SignData [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 01 02 [10:59:42]Write to MH i2c: E2 08 00 05 83 80 0D 01 02 00 00 00 00 01 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 05 83 00 90 00 FC [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=255 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 27 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C9 [10:59:42]Write to MH i2c: E2 02 01 06 83 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 68 00 00 00 F4 03 04 00 27 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C9 00 00 B0 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 06 83 00 90 00 FD [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=10 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 02 02 05 1D 02 93 66 CC [10:59:42]Write to MH i2c: E2 0D 00 07 83 80 0D 02 02 05 00 1D 02 93 66 CC 00 00 F2 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 03 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 03 00 07 83 00 90 00 FE [10:59:43]RAPDU: 90 00 [10:59:43]wFMCommunicate OK [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 0D 03 02 [10:59:43]Write to MH i2c: E2 08 00 08 83 80 0D 03 02 00 00 00 00 06 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0B 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0B 00 08 83 00 29 ED 45 84 B6 26 EC C2 90 00 70 [10:59:43]RAPDU: 29 ED 45 84 B6 26 EC C2 90 00 [10:59:43]wFMCommunicate OK [10:59:43]SAM_PROTO_SignData done [10:59:43]FM_MakeSignedData done [10:59:43]CreateOFDProtocolMessage [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 11 00 00 [10:59:43]Write to MH i2c: E2 08 00 09 83 80 11 00 00 00 00 00 00 06 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 17 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 17 00 09 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 61 [10:59:43]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:43]wFMCommunicate OK [10:59:43]CreateOFDProtocolMessage done [10:59:43]OFDSenderStorePacket 139627 [10:59:43]StoreOFDPacket docnum=139627 [10:59: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 C8 35 07 01 30 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 27 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C9 1D 02 93 66 CC 29 ED 45 84 B6 26 EC C2 [10:59:43]CheckFolder [10:59:43]dirname=/storage/ofd_packets [10:59:43]CheckFolder done [10:59:43]ProducePacketName [10:59:43]name=ofd_packets/00139627 [10:59:43]NVStorageSaveData ofd_packets/00139627 [10:59:43]File name is /storage/ofd_packets/00139627 [10:59:43]Write 301 bytes [10:59:43]NVStorageSaveData done [10:59:43]OFDSenderStorePacket done [10:59:43]KKMCreateOFDPacket done [10:59:43]NVStorageSaveData kkm_last_timestamp [10:59:43]File name is /storage/kkm_last_timestamp [10:59:43]Write 4 bytes [10:59:43]NVStorageSaveData done [10:59:43]ExternCall_PrintAddStr [10:59:43]wPrintStart [10:59:43]Write to MH i2c: 01 00 00 0A 83 8D [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 0A 83 00 00 00 00 00 FF 0F A2 [10:59:43]RasterBufferAndPrint [10:59:43]line Счет N : (1)1095092 [10:59:43]line ИНН: 02508201610067 [10:59:43]line Контрольно-Кассовый Чек [10:59:43]line ПРОДАЖА [10:59:43]line ТРК (МРК, ГНК) : 54 [10:59:43]line Товар: 2710124500 [10:59:43]line Аи-95-К-3 [10:59:43]line 13.480 * 74.20 [10:59:43]line = 1000.22 [10:59:43]line НДС 12% НСП 1% [10:59:43]line > о реализуемом товаре [10:59:43]line ОКРУГЛЕНИЕ: -0.22 [10:59:43]line ИТОГО: 1000.00 [10:59:43]line Внесено: 1000.00 [10:59:43]line СДАЧА: 0.00 [10:59:43]line НСП 1% : 8.85 [10:59:43]line НДС 12% : 106.22 [10:59:43]line Наличными: 1000.00 [10:59:43]line Безнал.: 0.00 [10:59:43]line Место: АЗС № 101 "Партнер Нефть" [10:59:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:59:43]line СНО: Общий режим [10:59:43]line Чек 104 31.10.2024 10:59 [10:59:43]line Смена: 557 ФФД: 1.0 [10:59:43]line ЗНМ: 0300000081 [10:59:43]line РНМ: 0000000000091631 [10:59:43]line Версия ККМ: 001 [10:59:43]line ФМ: 0000000000874669 [10:59:43]line ФД: 139627 [10:59:43]line ФПД: 221126434449100 [10:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T105951&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139627&fm=221126434449100&tin=02508201610067®Number=0000000000091631&sum=100000 [10:59:43]OFD Sender: Processing packet 139627 [packets to send 34, broken 33] [10:59:43]ProducePacketName [10:59:43]name=ofd_packets/00139627 [10:59:43]OFD Sender: To server: pG, [10:59:43]CommunicateWithHost lk.salyk.kg:30040 [10:59:43]ConnectInit lk.salyk.kg [10:59:43]written 0, free lines is 4095 [10:59:43]Connected sock=11 [10:59: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 C8 35 07 01 30 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 27 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C9 1D 02 93 66 CC 29 ED 45 84 B6 26 EC C2 [10:59:43]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 F6 AB 47 00 67 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 6B 21 02 00 F4 03 04 00 D5 0E 23 67 B6 04 01 00 00 59 F0 02 1D 83 72 30 D9 [10:59:43]CommunicateWithHost err = 0 [10:59:43]CheckOFDResponse [10:59:43]1017 (14) - 77093643461234 [10:59:43]1041 (16) - 0000000000874669 [10:59:43]1040 (4) - 139627 [10:59:43]1012 (4) - 31.10.2024 05:00 [10:59:43]1206 (1) - 0 [10:59:43]OFD Sender: Remove packet 139627 [10:59:43]ProducePacketName [10:59:43]name=ofd_packets/00139627 [10:59:43]NVStorageDeleteData [10:59:43]Write to MH i2c: 01 00 00 35 83 B8 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 35 83 00 00 00 00 00 F3 0C BE [10:59:43]RasterBufferAndPrint [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]written 0, free lines is 3321 [10:59:43]MH_Cut [10:59:43]Write to MH i2c: D1 01 00 3C 83 01 91 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 3C 83 00 90 [10:59:43]Write to MH i2c: 01 00 00 3D 83 C0 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:44]OFD Sender: No OFD packet to send [10:59:44]*** Cut start [10:59:44]*** Partial cut [10:59:44]*** CUTSNS_PIN = 1 [10:59:44]*** CUTSNS_PIN = 0 [10:59:44]*** Brake cut motor [10:59:45]Read from MH i2c: 01 [10:59:45]MH_I2C_Read... [10:59:45]*** Stop cut motor [10:59:45]*** Cut end [10:59:45]Read from MH i2c: 01 07 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 3D 83 00 00 00 00 00 FF 0F D5 [10:59:45]process_action close_receipt done [10:59:45]requested_data is exist [10:59:45]produce_requested_data [10:59:45]requested_item fm.sn is exist - process it [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 11 00 00 [10:59:45]Write to MH i2c: E2 08 00 3E 83 80 11 00 00 00 00 00 00 3B [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 17 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 17 00 3E 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 96 [10:59:45]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:45]wFMCommunicate OK [10:59:45]requested_item fd.num is exist - process it [10:59:45]SAM_PROTO_GetFieldsCounters [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 13 00 00 [10:59:45]Write to MH i2c: E2 08 00 3F 83 80 13 00 00 00 00 00 00 3E [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 62 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 62 00 3F 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 57 [10:59: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 6B 21 02 00 0E 04 04 00 2D 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:59:45]wFMCommunicate OK [10:59:45]SAM_PROTO_GetFieldsCounters done [10:59:45]requested_item shift.num is exist - process it [10:59:45]requested_item shift.opened is exist - process it [10:59:45]req_shift_opened [10:59:45]FM_GetShiftState [10:59:45]SAM_PROTO_GetShiftState [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 13 01 00 [10:59:45]Write to MH i2c: E2 08 00 40 83 80 13 01 00 00 00 00 00 40 [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 40 83 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 69 [10:59:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [10:59:45]wFMCommunicate OK [10:59:45]SAM_PROTO_GetShiftState done [10:59:45]FM_GetShiftState done [10:59:45]req_shift_opened done [10:59:45]requested_item shift.open_date is exist - process it [10:59:45]req_shift_open_date [10:59:45]req_shift_open_date done [10:59:45]produce_requested_data done [10:59:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139627,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [10:59:45]process_action_free close_receipt [10:59:45]json_value_free [10:59:45]json_value_free done [10:59:45]process_json_proto returns [10:59:45]Send response to host [10:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139627,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [10:59:45]free response buf [10:59:45]execute_script done [10:59:45]execute_script returns [10:59:45]free content buf [10:59:45]Sock 9.Close socket [10:59:45]Sock 9.Thread stoped [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:14]accept exits with 8 [11:00:14]New connection [11:00:14]New thread 3067141476 created [11:00:14]Thread 3067284836 joined [11:00:14]Waiting for new connection... [11:00:14] Sock 8.Parse request [11:00:14]Sock 8.Check first char [11:00:14]Sock 8.First char is OK [11:00:14]request: POST /json_proto HTTP/1.0 [11:00:14]Method: POST [11:00:14]URL: /json_proto [11:00:14]Method is POST - this is cgi request [11:00:14]url: /json_proto [11:00:14]query_string will be loaded in cgi processing [11:00:14]execute_cgi json_proto POST (null) [11:00:14]execute_cgi path=json_proto method=POST [11:00:14]POST find Content-Length [11:00:14]Host: 172.17.50.196:8080 [11:00:14]Content-Length: 626 [11:00:14]Content-Type: application/json [11:00:14] [11:00:14]POST finish read [11:00:14]Found Content-Length = 626 [11:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335499", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "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" ] } } [11:00:14]execute_script... [11:00: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)335499", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "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" ] } } [11:00:14]POST & json_proto [11:00:14]process_json_proto [11:00:14]json parsed OK: [11:00:14]protocol is kg_v1.0 [11:00:14]action value=close_receipt [11:00:14]process_action close_receipt [11:00:14]cmd_close_receipt [11:00:14]MH_GetDate [11:00:14]Write to MH i2c: F0 00 00 41 83 B3 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: F0 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: F0 09 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: F0 09 00 41 83 00 48 63 23 67 72 0D 1C 67 F3 [11:00:14]GetLastDocTimeStamp 1730372391 [11:00:14]current date 1730372424 [11:00:14]FM_GetShiftState [11:00:14]SAM_PROTO_GetShiftState [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 13 01 00 [11:00:14]Write to MH i2c: E2 08 00 42 83 80 13 01 00 00 00 00 00 42 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0E 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0E 00 42 83 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6B [11:00:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:00:14]wFMCommunicate OK [11:00:14]SAM_PROTO_GetShiftState done [11:00:14]FM_GetShiftState done [11:00:14]opened in 1730332621 [11:00:14]opened+sec_in_day 1730419021 [11:00:14]quantity*price = 27800 [11:00:14]sum+1 = 27801 [11:00:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 105 31.10.2024 11:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139628 ФПД: 135702757453704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T110024&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139628&fm=135702757453704&tin=02508201610067®Number=0000000000091631&sum=27800 0 [11:00:15]StoreToDocumentArchive [11:00:15]shift 557 fd 139628 [11:00:15]save to /storage/0557/doc_00139628 [11:00:15]save last doc name /storage/0557/doc_00139628 to /storage/kkm_last_doc_name [11:00:15]save OK [11:00:15]Clear old archive folders... [11:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:00:15]tlvbuf is 011AB470 [11:00:15]SAM_PROTO_ClearQueue [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 09 00 00 [11:00:15]Write to MH i2c: E2 08 00 4F 83 80 09 00 00 00 00 00 00 44 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 4F 83 00 90 00 46 [11:00:15]RAPDU: 90 00 [11:00:15]wFMCommunicate OK [11:00:15]SAM_PROTO_ClearQueue done [11:00:15]KKMCreateOFDPacket [11:00:15]OFDProtocolAddRootSTLVToBuf [11:00:15]FM_MakeSignedData [11:00:15]FM_MakeSignedData [11:00:15]SAM_PROTO_SignData [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 0D 01 02 [11:00:15]Write to MH i2c: E2 08 00 50 83 80 0D 01 02 00 00 00 00 4C [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 50 83 00 90 00 47 [11:00:15]RAPDU: 90 00 [11:00:15]wFMCommunicate OK [11:00:15]wFMCommunicate request_size=255 [11:00:15]MH_SAM_APDU [11:00:15]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 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 69 00 00 00 F4 03 04 00 48 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [11:00:15]Write to MH i2c: E2 02 01 51 83 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 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 69 00 00 00 F4 03 04 00 48 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 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 0B [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 51 83 00 90 00 48 [11:00:15]RAPDU: 90 00 [11:00:15]wFMCommunicate OK [11:00:15]wFMCommunicate request_size=37 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 21 02 00 35 04 06 00 7B 6B C2 A7 2F 88 [11:00:15]Write to MH i2c: E2 28 00 52 83 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 21 02 00 35 04 06 00 7B 6B C2 A7 2F 88 00 00 43 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 03 00 52 83 00 90 00 49 [11:00:15]RAPDU: 90 00 [11:00:15]wFMCommunicate OK [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 0D 03 02 [11:00:15]Write to MH i2c: E2 08 00 53 83 80 0D 03 02 00 00 00 00 51 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 0B 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 0B 00 53 83 00 55 AB F6 5B 2F 8E 32 F5 90 00 87 [11:00:16]RAPDU: 55 AB F6 5B 2F 8E 32 F5 90 00 [11:00:16]wFMCommunicate OK [11:00:16]SAM_PROTO_SignData done [11:00:16]FM_MakeSignedData done [11:00:16]CreateOFDProtocolMessage [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 11 00 00 [11:00:16]Write to MH i2c: E2 08 00 54 83 80 11 00 00 00 00 00 00 51 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 54 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AC [11:00:16]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:16]wFMCommunicate OK [11:00:16]CreateOFDProtocolMessage done [11:00:16]OFDSenderStorePacket 139628 [11:00:16]StoreOFDPacket docnum=139628 [11:00: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 2A 01 00 00 0B 2A 22 01 9C 45 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 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 69 00 00 00 F4 03 04 00 48 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7B 6B C2 A7 2F 88 55 AB F6 5B 2F 8E 32 F5 [11:00:16]CheckFolder [11:00:16]dirname=/storage/ofd_packets [11:00:16]CheckFolder done [11:00:16]ProducePacketName [11:00:16]name=ofd_packets/00139628 [11:00:16]NVStorageSaveData ofd_packets/00139628 [11:00:16]File name is /storage/ofd_packets/00139628 [11:00:16]Write 328 bytes [11:00:16]NVStorageSaveData done [11:00:16]OFDSenderStorePacket done [11:00:16]KKMCreateOFDPacket done [11:00:16]NVStorageSaveData kkm_last_timestamp [11:00:16]File name is /storage/kkm_last_timestamp [11:00:16]Write 4 bytes [11:00:16]NVStorageSaveData done [11:00:16]ExternCall_PrintAddStr [11:00:16]wPrintStart [11:00:16]Write to MH i2c: 01 00 00 55 83 D8 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 55 83 00 00 00 00 00 FF 0F ED [11:00:16]RasterBufferAndPrint [11:00:16]line Счет N : (3)335499 [11:00:16]line ИНН: 02508201610067 [11:00:16]line Контрольно-Кассовый Чек [11:00:16]line ПРОДАЖА [11:00:16]line Товар: 48741224 [11:00:16]line Сигареты Winston Super Slims Blue [11:00:16]line 2.000 * 139.00 [11:00:16]line = 278.00 [11:00:16]line НДС 12% НСП 1% [11:00:16]line > о реализуемом товаре [11:00:16]line ИТОГО: 278.00 [11:00:16]line НСП 1% : 2.46 [11:00:16]line НДС 12% : 29.52 [11:00:16]line Наличными: 278.00 [11:00:16]line Безнал.: 0.00 [11:00:16]line Место: АЗС № 101 "Партнер Нефть" [11:00:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:00:16]line СНО: Общий режим [11:00:16]line Чек 105 31.10.2024 11:00 [11:00:16]line Смена: 557 ФФД: 1.0 [11:00:16]line ЗНМ: 0300000081 [11:00:16]line РНМ: 0000000000091631 [11:00:16]line Версия ККМ: 001 [11:00:16]line ФМ: 0000000000874669 [11:00:16]line ФД: 139628 [11:00:16]line ФПД: 135702757453704 [11:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T110024&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139628&fm=135702757453704&tin=02508201610067®Number=0000000000091631&sum=27800 [11:00:16]line 0 [11:00:16]OFD Sender: Processing packet 139628 [packets to send 34, broken 33] [11:00:16]ProducePacketName [11:00:16]name=ofd_packets/00139628 [11:00:16]OFD Sender: To server: pG, [11:00:16]CommunicateWithHost lk.salyk.kg:30040 [11:00:16]ConnectInit lk.salyk.kg [11:00:16]written 0, free lines is 4095 [11:00:16]Connected sock=10 [11:00: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 2A 01 00 00 0B 2A 22 01 9C 45 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 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 69 00 00 00 F4 03 04 00 48 63 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7B 6B C2 A7 2F 88 55 AB F6 5B 2F 8E 32 F5 [11:00: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 E0 BB 47 00 99 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 21 02 00 F4 03 04 00 F6 0E 23 67 B6 04 01 00 00 D3 B3 1C B9 1A 9C 93 88 [11:00:16]CommunicateWithHost err = 0 [11:00:16]CheckOFDResponse [11:00:16]1017 (14) - 77093643461234 [11:00:16]1041 (16) - 0000000000874669 [11:00:16]1040 (4) - 139628 [11:00:16]1012 (4) - 31.10.2024 05:00 [11:00:16]1206 (1) - 0 [11:00:16]OFD Sender: Remove packet 139628 [11:00:16]ProducePacketName [11:00:16]name=ofd_packets/00139628 [11:00:16]NVStorageDeleteData [11:00:16]Write to MH i2c: 01 00 00 7E 83 01 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 7E 83 00 00 00 00 00 F4 0C 08 [11:00:16]RasterBufferAndPrint [11:00:16]line [11:00:16]line [11:00:16]line [11:00:16]line [11:00:16]line [11:00:16]written 0, free lines is 3322 [11:00:16]MH_Cut [11:00:16]Write to MH i2c: D1 01 00 85 83 01 DA [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: D1 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: D1 01 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: D1 01 00 85 83 00 D9 [11:00:16]Write to MH i2c: 01 00 00 86 83 09 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:17]OFD Sender: No OFD packet to send [11:00:17]*** Cut start [11:00:17]*** Partial cut [11:00:17]*** CUTSNS_PIN = 1 [11:00:17]*** CUTSNS_PIN = 0 [11:00:17]*** Brake cut motor [11:00:18]Read from MH i2c: 01 [11:00:18]MH_I2C_Read... [11:00:18]*** Stop cut motor [11:00:18]*** Cut end [11:00:18]Read from MH i2c: 01 07 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: 01 07 00 86 83 00 00 00 00 00 FF 0F 1E [11:00:18]process_action close_receipt done [11:00:18]requested_data is exist [11:00:18]produce_requested_data [11:00:18]requested_item fm.sn is exist - process it [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 11 00 00 [11:00:18]Write to MH i2c: E2 08 00 87 83 80 11 00 00 00 00 00 00 84 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 17 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 17 00 87 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DF [11:00:18]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:18]wFMCommunicate OK [11:00:18]requested_item fd.num is exist - process it [11:00:18]SAM_PROTO_GetFieldsCounters [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 13 00 00 [11:00:18]Write to MH i2c: E2 08 00 88 83 80 13 00 00 00 00 00 00 87 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 62 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 62 00 88 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 A4 [11:00: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 6C 21 02 00 0E 04 04 00 2D 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 [11:00:18]wFMCommunicate OK [11:00:18]SAM_PROTO_GetFieldsCounters done [11:00:18]requested_item shift.num is exist - process it [11:00:18]requested_item shift.opened is exist - process it [11:00:18]req_shift_opened [11:00:18]FM_GetShiftState [11:00:18]SAM_PROTO_GetShiftState [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 13 01 00 [11:00:18]Write to MH i2c: E2 08 00 89 83 80 13 01 00 00 00 00 00 89 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 0E 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 0E 00 89 83 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B2 [11:00:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:00:18]wFMCommunicate OK [11:00:18]SAM_PROTO_GetShiftState done [11:00:18]FM_GetShiftState done [11:00:18]req_shift_opened done [11:00:18]requested_item shift.open_date is exist - process it [11:00:18]req_shift_open_date [11:00:18]req_shift_open_date done [11:00:18]produce_requested_data done [11:00:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139628,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:00:18]process_action_free close_receipt [11:00:18]json_value_free [11:00:18]json_value_free done [11:00:18]process_json_proto returns [11:00:18]Send response to host [11:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139628,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:00:18]free response buf [11:00:18]execute_script done [11:00:18]execute_script returns [11:00:18]free content buf [11:00:18]Sock 8.Close socket [11:00:18]Sock 8.Thread stoped [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:48]accept exits with 9 [11:07:48]New connection [11:07:48]New thread 3067284836 created [11:07:48]Thread 3067141476 joined [11:07:48]Waiting for new connection... [11:07:48] Sock 9.Parse request [11:07:48]Sock 9.Check first char [11:07:48]Sock 9.First char is OK [11:07:48]request: POST /json_proto HTTP/1.0 [11:07:48]Method: POST [11:07:48]URL: /json_proto [11:07:48]Method is POST - this is cgi request [11:07:48]url: /json_proto [11:07:48]query_string will be loaded in cgi processing [11:07:48]execute_cgi json_proto POST (null) [11:07:48]execute_cgi path=json_proto method=POST [11:07:48]POST find Content-Length [11:07:48]Host: 172.17.50.196:8080 [11:07:48]Content-Length: 620 [11:07:48]Content-Type: application/json [11:07:48] [11:07:48]POST finish read [11:07:48]Found Content-Length = 620 [11:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335500", "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" ] } } [11:07:48]execute_script... [11:07: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)335500", "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" ] } } [11:07:48]POST & json_proto [11:07:48]process_json_proto [11:07:48]json parsed OK: [11:07:48]protocol is kg_v1.0 [11:07:48]action value=close_receipt [11:07:48]process_action close_receipt [11:07:48]cmd_close_receipt [11:07:48]MH_GetDate [11:07:48]Write to MH i2c: F0 00 00 8A 83 FC [11:07:48]Write i2c OK [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: F0 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: F0 09 00 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: F0 09 00 8A 83 00 0E 65 23 67 72 0D 1C 67 04 [11:07:48]GetLastDocTimeStamp 1730372424 [11:07:48]current date 1730372878 [11:07:48]FM_GetShiftState [11:07:48]SAM_PROTO_GetShiftState [11:07:48]wFMCommunicate request_size=4 [11:07:48]MH_SAM_APDU [11:07:48]CAPDU: 80 13 01 00 [11:07:48]Write to MH i2c: E2 08 00 8B 83 80 13 01 00 00 00 00 00 8B [11:07:48]Write i2c OK [11:07:48]MH_I2C_Read... [11:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:48]Read from MH i2c: E2 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: E2 0E 00 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: E2 0E 00 8B 83 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B4 [11:07:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:07:48]wFMCommunicate OK [11:07:48]SAM_PROTO_GetShiftState done [11:07:48]FM_GetShiftState done [11:07:48]opened in 1730332621 [11:07:48]opened+sec_in_day 1730419021 [11:07:48]quantity*price = 15900 [11:07:48]sum+1 = 15901 [11:07:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 106 31.10.2024 11:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139629 ФПД: 20277945543843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T110758&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139629&fm=20277945543843&tin=02508201610067®Number=0000000000091631&sum=15900 0 [11:07:49]StoreToDocumentArchive [11:07:49]shift 557 fd 139629 [11:07:49]save to /storage/0557/doc_00139629 [11:07:49]save last doc name /storage/0557/doc_00139629 to /storage/kkm_last_doc_name [11:07:49]save OK [11:07:49]Clear old archive folders... [11:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:07:49]tlvbuf is 0124F170 [11:07:49]SAM_PROTO_ClearQueue [11:07:49]wFMCommunicate request_size=4 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 09 00 00 [11:07:49]Write to MH i2c: E2 08 00 98 83 80 09 00 00 00 00 00 00 8D [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:49]Read from MH i2c: E2 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 98 83 00 90 00 8F [11:07:49]RAPDU: 90 00 [11:07:49]wFMCommunicate OK [11:07:49]SAM_PROTO_ClearQueue done [11:07:49]KKMCreateOFDPacket [11:07:49]OFDProtocolAddRootSTLVToBuf [11:07:49]FM_MakeSignedData [11:07:49]FM_MakeSignedData [11:07:49]SAM_PROTO_SignData [11:07:49]wFMCommunicate request_size=4 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 0D 01 02 [11:07:49]Write to MH i2c: E2 08 00 99 83 80 0D 01 02 00 00 00 00 95 [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:49]Read from MH i2c: E2 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 99 83 00 90 00 90 [11:07:49]RAPDU: 90 00 [11:07:49]wFMCommunicate OK [11:07:49]wFMCommunicate request_size=255 [11:07:49]MH_SAM_APDU [11:07:49]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 6A 00 00 00 F4 03 04 00 0E 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [11:07:49]Write to MH i2c: E2 02 01 9A 83 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 6A 00 00 00 F4 03 04 00 0E 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 35 [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:49]Read from MH i2c: E2 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 9A 83 00 90 00 91 [11:07:49]RAPDU: 90 00 [11:07:49]wFMCommunicate OK [11:07:49]wFMCommunicate request_size=31 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 6D 21 02 00 35 04 06 00 12 71 53 BD AC A3 [11:07:49]Write to MH i2c: E2 22 00 9B 83 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 6D 21 02 00 35 04 06 00 12 71 53 BD AC A3 00 00 3D [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:49]Read from MH i2c: E2 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 03 00 9B 83 00 90 00 92 [11:07:49]RAPDU: 90 00 [11:07:49]wFMCommunicate OK [11:07:49]wFMCommunicate request_size=4 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 0D 03 02 [11:07:49]Write to MH i2c: E2 08 00 9C 83 80 0D 03 02 00 00 00 00 9A [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:49]Read from MH i2c: E2 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 0B 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 0B 00 9C 83 00 D4 DF 2C 3C 5A BB D8 F0 90 00 93 [11:07:49]RAPDU: D4 DF 2C 3C 5A BB D8 F0 90 00 [11:07:49]wFMCommunicate OK [11:07:49]SAM_PROTO_SignData done [11:07:49]FM_MakeSignedData done [11:07:49]CreateOFDProtocolMessage [11:07:49]wFMCommunicate request_size=4 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 11 00 00 [11:07:49]Write to MH i2c: E2 08 00 9D 83 80 11 00 00 00 00 00 00 9A [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 17 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 17 00 9D 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F5 [11:07: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:07:50]wFMCommunicate OK [11:07:50]CreateOFDProtocolMessage done [11:07:50]OFDSenderStorePacket 139629 [11:07:50]StoreOFDPacket docnum=139629 [11:07: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 24 01 00 00 DD EA 1C 01 04 A0 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 6A 00 00 00 F4 03 04 00 0E 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 71 53 BD AC A3 D4 DF 2C 3C 5A BB D8 F0 [11:07:50]CheckFolder [11:07:50]dirname=/storage/ofd_packets [11:07:50]CheckFolder done [11:07:50]ProducePacketName [11:07:50]name=ofd_packets/00139629 [11:07:50]NVStorageSaveData ofd_packets/00139629 [11:07:50]File name is /storage/ofd_packets/00139629 [11:07:50]Write 322 bytes [11:07:50]NVStorageSaveData done [11:07:50]OFDSenderStorePacket done [11:07:50]KKMCreateOFDPacket done [11:07:50]NVStorageSaveData kkm_last_timestamp [11:07:50]File name is /storage/kkm_last_timestamp [11:07:50]Write 4 bytes [11:07:50]NVStorageSaveData done [11:07:50]ExternCall_PrintAddStr [11:07:50]wPrintStart [11:07:50]Write to MH i2c: 01 00 00 9E 83 21 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 9E 83 00 00 00 00 00 FF 0F 36 [11:07:50]RasterBufferAndPrint [11:07:50]line Счет N : (3)335500 [11:07:50]line ИНН: 02508201610067 [11:07:50]line Контрольно-Кассовый Чек [11:07:50]line ПРОДАЖА [11:07:50]line Товар: 4640030091607 [11:07:50]line Сигареты ESSE Exchange [11:07:50]line 1.000 * 159.00 [11:07:50]line = 159.00 [11:07:50]line НДС 12% НСП 1% [11:07:50]line > о реализуемом товаре [11:07:50]line ИТОГО: 159.00 [11:07:50]line НСП 1% : 1.41 [11:07:50]line НДС 12% : 16.88 [11:07:50]line Наличными: 159.00 [11:07:50]line Безнал.: 0.00 [11:07:50]line Место: АЗС № 101 "Партнер Нефть" [11:07:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:07:50]line СНО: Общий режим [11:07:50]line Чек 106 31.10.2024 11:07 [11:07:50]line Смена: 557 ФФД: 1.0 [11:07:50]line ЗНМ: 0300000081 [11:07:50]line РНМ: 0000000000091631 [11:07:50]line Версия ККМ: 001 [11:07:50]line ФМ: 0000000000874669 [11:07:50]line ФД: 139629 [11:07:50]line ФПД: 20277945543843 [11:07:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T110758&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139629&fm=20277945543843&tin=02508201610067®Number=0000000000091631&sum=15900 [11:07:50]OFD Sender: Processing packet 139629 [packets to send 34, broken 33] [11:07:50]ProducePacketName [11:07:50]name=ofd_packets/00139629 [11:07:50]OFD Sender: To server: pG, [11:07:50]CommunicateWithHost lk.salyk.kg:30040 [11:07:50]ConnectInit lk.salyk.kg [11:07:50]line 0 [11:07:50]written 0, free lines is 4095 [11:07:50]Connected sock=10 [11:07: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 24 01 00 00 DD EA 1C 01 04 A0 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 6A 00 00 00 F4 03 04 00 0E 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 71 53 BD AC A3 D4 DF 2C 3C 5A BB D8 F0 [11:07: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 D4 AD 47 00 E1 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6D 21 02 00 F4 03 04 00 BC 10 23 67 B6 04 01 00 00 8E 0C BC 69 00 EA 6D 36 [11:07:50]CommunicateWithHost err = 0 [11:07:50]CheckOFDResponse [11:07:50]1017 (14) - 77093643461234 [11:07:50]1041 (16) - 0000000000874669 [11:07:50]1040 (4) - 139629 [11:07:50]1012 (4) - 31.10.2024 05:08 [11:07:50]1206 (1) - 0 [11:07:50]OFD Sender: Remove packet 139629 [11:07:50]ProducePacketName [11:07:50]name=ofd_packets/00139629 [11:07:50]NVStorageDeleteData [11:07:50]Write to MH i2c: 01 00 00 C6 83 49 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 C6 83 00 00 00 00 00 26 0D 83 [11:07:50]RasterBufferAndPrint [11:07:50]line [11:07:50]line [11:07:50]line [11:07:50]line [11:07:50]line [11:07:50]written 0, free lines is 3376 [11:07:50]MH_Cut [11:07:50]Write to MH i2c: D1 01 00 CD 83 01 22 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: D1 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: D1 01 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: D1 01 00 CD 83 00 21 [11:07:50]Write to MH i2c: 01 00 00 CE 83 51 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:51]OFD Sender: No OFD packet to send [11:07:51]*** Cut start [11:07:51]*** Partial cut [11:07:51]*** CUTSNS_PIN = 1 [11:07:51]*** CUTSNS_PIN = 0 [11:07:51]*** Brake cut motor [11:07:52]Read from MH i2c: 01 [11:07:52]MH_I2C_Read... [11:07:52]*** Stop cut motor [11:07:52]*** Cut end [11:07:52]Read from MH i2c: 01 07 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: 01 07 00 CE 83 00 00 00 00 00 FF 0F 66 [11:07:52]process_action close_receipt done [11:07:52]requested_data is exist [11:07:52]produce_requested_data [11:07:52]requested_item fm.sn is exist - process it [11:07:52]wFMCommunicate request_size=4 [11:07:52]MH_SAM_APDU [11:07:52]CAPDU: 80 11 00 00 [11:07:52]Write to MH i2c: E2 08 00 CF 83 80 11 00 00 00 00 00 00 CC [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:52]Read from MH i2c: E2 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 17 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 17 00 CF 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 27 [11:07: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:07:52]wFMCommunicate OK [11:07:52]requested_item fd.num is exist - process it [11:07:52]SAM_PROTO_GetFieldsCounters [11:07:52]wFMCommunicate request_size=4 [11:07:52]MH_SAM_APDU [11:07:52]CAPDU: 80 13 00 00 [11:07:52]Write to MH i2c: E2 08 00 D0 83 80 13 00 00 00 00 00 00 CF [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:52]Read from MH i2c: E2 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 62 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 62 00 D0 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 F0 [11:07: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 6D 21 02 00 0E 04 04 00 2D 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 [11:07:52]wFMCommunicate OK [11:07:52]SAM_PROTO_GetFieldsCounters done [11:07:52]requested_item shift.num is exist - process it [11:07:52]requested_item shift.opened is exist - process it [11:07:52]req_shift_opened [11:07:52]FM_GetShiftState [11:07:52]SAM_PROTO_GetShiftState [11:07:52]wFMCommunicate request_size=4 [11:07:52]MH_SAM_APDU [11:07:52]CAPDU: 80 13 01 00 [11:07:52]Write to MH i2c: E2 08 00 D1 83 80 13 01 00 00 00 00 00 D1 [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:52]Read from MH i2c: E2 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 0E 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: E2 0E 00 D1 83 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FA [11:07:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:07:52]wFMCommunicate OK [11:07:52]SAM_PROTO_GetShiftState done [11:07:52]FM_GetShiftState done [11:07:52]req_shift_opened done [11:07:52]requested_item shift.open_date is exist - process it [11:07:52]req_shift_open_date [11:07:52]req_shift_open_date done [11:07:52]produce_requested_data done [11:07:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139629,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:07:52]process_action_free close_receipt [11:07:52]json_value_free [11:07:52]json_value_free done [11:07:52]process_json_proto returns [11:07:52]Send response to host [11:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139629,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:07:52]free response buf [11:07:52]execute_script done [11:07:52]execute_script returns [11:07:52]free content buf [11:07:52]Sock 9.Close socket [11:07:52]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [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:30]accept exits with 8 [11:11:30]New connection [11:11:30]New thread 3067141476 created [11:11:30]Thread 3067284836 joined [11:11:30]Waiting for new connection... [11:11:30] Sock 8.Parse request [11:11:30]Sock 8.Check first char [11:11:30]Sock 8.First char is OK [11:11:30]request: POST /json_proto HTTP/1.0 [11:11:30]Method: POST [11:11:30]URL: /json_proto [11:11:30]Method is POST - this is cgi request [11:11:30]url: /json_proto [11:11:30]query_string will be loaded in cgi processing [11:11:30]execute_cgi json_proto POST (null) [11:11:30]execute_cgi path=json_proto method=POST [11:11:30]POST find Content-Length [11:11:30]Host: 172.17.50.196:8080 [11:11:30]Content-Length: 770 [11:11:30]Content-Type: application/json [11:11:30] [11:11:30]POST finish read [11:11:30]Found Content-Length = 770 [11:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095101", "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" : 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" ] } } [11:11:30]execute_script... [11:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095101", "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" : 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" ] } } [11:11:30]POST & json_proto [11:11:30]process_json_proto [11:11:30]json parsed OK: [11:11:30]protocol is kg_v1.0 [11:11:30]action value=close_receipt [11:11:30]process_action close_receipt [11:11:30]cmd_close_receipt [11:11:30]MH_GetDate [11:11:30]Write to MH i2c: F0 00 00 D2 83 44 [11:11:30]Write i2c OK [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: F0 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: F0 09 00 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: F0 09 00 D2 83 00 EB 65 23 67 72 0D 1C 67 29 [11:11:30]GetLastDocTimeStamp 1730372878 [11:11:30]current date 1730373099 [11:11:30]FM_GetShiftState [11:11:30]SAM_PROTO_GetShiftState [11:11:30]wFMCommunicate request_size=4 [11:11:30]MH_SAM_APDU [11:11:30]CAPDU: 80 13 01 00 [11:11:30]Write to MH i2c: E2 08 00 D3 83 80 13 01 00 00 00 00 00 D3 [11:11:30]Write i2c OK [11:11:30]MH_I2C_Read... [11:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:30]Read from MH i2c: E2 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: E2 0E 00 [11:11:30]MH_I2C_Read... [11:11:30]Read from MH i2c: E2 0E 00 D3 83 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FC [11:11:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:11:30]wFMCommunicate OK [11:11:30]SAM_PROTO_GetShiftState done [11:11:30]FM_GetShiftState done [11:11:30]opened in 1730332621 [11:11:30]opened+sec_in_day 1730419021 [11:11:30]quantity*price = 100015 [11:11:30]sum+1 = 100017 [11:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 107 31.10.2024 11:11 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139630 ФПД: 234375085626049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111140&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139630&fm=234375085626049&tin=02508201610067®Number=0000000000091631&sum=100016 [11:11:31]StoreToDocumentArchive [11:11:31]shift 557 fd 139630 [11:11:31]save to /storage/0557/doc_00139630 [11:11:31]save last doc name /storage/0557/doc_00139630 to /storage/kkm_last_doc_name [11:11:31]save OK [11:11:31]Clear old archive folders... [11:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:31]tlvbuf is 01336D80 [11:11:31]SAM_PROTO_ClearQueue [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 09 00 00 [11:11:31]Write to MH i2c: E2 08 00 E0 83 80 09 00 00 00 00 00 00 D5 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 E0 83 00 90 00 D7 [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]SAM_PROTO_ClearQueue done [11:11:31]KKMCreateOFDPacket [11:11:31]OFDProtocolAddRootSTLVToBuf [11:11:31]FM_MakeSignedData [11:11:31]FM_MakeSignedData [11:11:31]SAM_PROTO_SignData [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 01 02 [11:11:31]Write to MH i2c: E2 08 00 E1 83 80 0D 01 02 00 00 00 00 DD [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 E1 83 00 90 00 D8 [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]wFMCommunicate request_size=255 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6B 00 00 00 F4 03 04 00 EC 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D5 [11:11:31]Write to MH i2c: E2 02 01 E2 83 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 6B 00 00 00 F4 03 04 00 EC 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D5 00 00 61 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]OFD Sender: No OFD packet to send [11:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 E2 83 00 90 00 D9 [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]wFMCommunicate request_size=10 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 02 02 05 29 B3 B9 12 C1 [11:11:31]Write to MH i2c: E2 0D 00 E3 83 80 0D 02 02 05 00 29 B3 B9 12 C1 00 00 52 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 03 00 E3 83 00 90 00 DA [11:11:31]RAPDU: 90 00 [11:11:31]wFMCommunicate OK [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 0D 03 02 [11:11:31]Write to MH i2c: E2 08 00 E4 83 80 0D 03 02 00 00 00 00 E2 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 0B 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 0B 00 E4 83 00 21 BF F6 98 CF 9D 37 8F 90 00 83 [11:11:31]RAPDU: 21 BF F6 98 CF 9D 37 8F 90 00 [11:11:31]wFMCommunicate OK [11:11:31]SAM_PROTO_SignData done [11:11:31]FM_MakeSignedData done [11:11:31]CreateOFDProtocolMessage [11:11:31]wFMCommunicate request_size=4 [11:11:31]MH_SAM_APDU [11:11:31]CAPDU: 80 11 00 00 [11:11:31]Write to MH i2c: E2 08 00 E5 83 80 11 00 00 00 00 00 00 E2 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:31]Read from MH i2c: E2 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 17 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: E2 17 00 E5 83 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:11:31]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:31]wFMCommunicate OK [11:11:31]CreateOFDProtocolMessage done [11:11:31]OFDSenderStorePacket 139630 [11:11:31]StoreOFDPacket docnum=139630 [11:11: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 80 56 07 01 7C 0C 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 6B 00 00 00 F4 03 04 00 EC 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D5 29 B3 B9 12 C1 21 BF F6 98 CF 9D 37 8F [11:11:31]CheckFolder [11:11:31]dirname=/storage/ofd_packets [11:11:31]CheckFolder done [11:11:31]ProducePacketName [11:11:31]name=ofd_packets/00139630 [11:11:31]NVStorageSaveData ofd_packets/00139630 [11:11:31]File name is /storage/ofd_packets/00139630 [11:11:31]Write 301 bytes [11:11:31]NVStorageSaveData done [11:11:31]OFDSenderStorePacket done [11:11:31]KKMCreateOFDPacket done [11:11:31]NVStorageSaveData kkm_last_timestamp [11:11:31]File name is /storage/kkm_last_timestamp [11:11:31]Write 4 bytes [11:11:31]NVStorageSaveData done [11:11:31]ExternCall_PrintAddStr [11:11:31]wPrintStart [11:11:31]Write to MH i2c: 01 00 00 E6 83 69 [11:11:31]Write i2c OK [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 [11:11:31]MH_I2C_Read... [11:11:31]Read from MH i2c: 01 07 00 E6 83 00 00 00 00 00 FF 0F 7E [11:11:31]RasterBufferAndPrint [11:11:31]line Счет N : (1)1095101 [11:11:31]line ИНН: 02508201610067 [11:11:31]line Контрольно-Кассовый Чек [11:11:31]line ПРОДАЖА [11:11:31]line ТРК (МРК, ГНК) : 43 [11:11:31]line Товар: 2710124130 [11:11:31]line Аи-92-К-2 [11:11:31]line 14.950 * 66.90 [11:11:31]line = 1000.16 [11:11:31]line НДС 12% НСП 1% [11:11:31]line > о реализуемом товаре [11:11:31]line ИТОГО: 1000.16 [11:11:31]line НСП 1% : 8.85 [11:11:31]line НДС 12% : 106.21 [11:11:31]line Наличными: 0.00 [11:11:31]line Безнал.: 1000.16 [11:11:31]line Место: АЗС № 101 "Партнер Нефть" [11:11:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:11:31]line СНО: Общий режим [11:11:31]line Чек 107 31.10.2024 11:11 [11:11:31]line Смена: 557 ФФД: 1.0 [11:11:31]line ЗНМ: 0300000081 [11:11:31]line РНМ: 0000000000091631 [11:11:31]line Версия ККМ: 001 [11:11:31]line Платежная система: Mbank [11:11:31]line ФМ: 0000000000874669 [11:11:31]line ФД: 139630 [11:11:31]line ФПД: 234375085626049 [11:11:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111140&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139630&fm=234375085626049&tin=02508201610067®Number=0000000000091631&sum=100016 [11:11:32]written 0, free lines is 4095 [11:11:32]OFD Sender: Processing packet 139630 [packets to send 34, broken 33] [11:11:32]ProducePacketName [11:11:32]name=ofd_packets/00139630 [11:11:32]OFD Sender: To server: pG, [11:11:32]CommunicateWithHost lk.salyk.kg:30040 [11:11:32]ConnectInit lk.salyk.kg [11:11:32]Connected sock=10 [11:11: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 0F 01 00 00 80 56 07 01 7C 0C 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 6B 00 00 00 F4 03 04 00 EC 65 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D5 29 B3 B9 12 C1 21 BF F6 98 CF 9D 37 8F [11:11: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 BD D0 47 00 D3 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6E 21 02 00 F4 03 04 00 99 11 23 67 B6 04 01 00 00 37 A2 2B 1C 59 E7 18 45 [11:11:32]CommunicateWithHost err = 0 [11:11:32]CheckOFDResponse [11:11:32]1017 (14) - 77093643461234 [11:11:32]1041 (16) - 0000000000874669 [11:11:32]1040 (4) - 139630 [11:11:32]1012 (4) - 31.10.2024 05:11 [11:11:32]1206 (1) - 0 [11:11:32]OFD Sender: Remove packet 139630 [11:11:32]ProducePacketName [11:11:32]name=ofd_packets/00139630 [11:11:32]NVStorageDeleteData [11:11:32]Write to MH i2c: 01 00 00 0F 84 93 [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 07 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: 01 07 00 0F 84 00 00 00 00 00 13 0D BA [11:11:32]RasterBufferAndPrint [11:11:32]line [11:11:32]line [11:11:32]line [11:11:32]line [11:11:32]line [11:11:32]written 0, free lines is 3354 [11:11:32]MH_Cut [11:11:32]Write to MH i2c: D1 01 00 16 84 01 6C [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: D1 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: D1 01 00 [11:11:32]MH_I2C_Read... [11:11:32]Read from MH i2c: D1 01 00 16 84 00 6B [11:11:32]Write to MH i2c: 01 00 00 17 84 9B [11:11:32]Write i2c OK [11:11:32]MH_I2C_Read... [11:11:32]OFD Sender: No OFD packet to send [11:11:33]*** Cut start [11:11:33]*** Partial cut [11:11:33]*** CUTSNS_PIN = 1 [11:11:33]*** CUTSNS_PIN = 0 [11:11:33]*** Brake cut motor [11:11:33]Read from MH i2c: 01 [11:11:33]MH_I2C_Read... [11:11:33]*** Stop cut motor [11:11:33]*** Cut end [11:11:33]Read from MH i2c: 01 07 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: 01 07 00 17 84 00 00 00 00 00 FF 0F B0 [11:11:33]process_action close_receipt done [11:11:33]requested_data is exist [11:11:33]produce_requested_data [11:11:33]requested_item fm.sn is exist - process it [11:11:33]wFMCommunicate request_size=4 [11:11:33]MH_SAM_APDU [11:11:33]CAPDU: 80 11 00 00 [11:11:33]Write to MH i2c: E2 08 00 18 84 80 11 00 00 00 00 00 00 16 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:33]Read from MH i2c: E2 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 17 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 17 00 18 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [11: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 [11:11:33]wFMCommunicate OK [11:11:33]requested_item fd.num is exist - process it [11:11:33]SAM_PROTO_GetFieldsCounters [11:11:33]wFMCommunicate request_size=4 [11:11:33]MH_SAM_APDU [11:11:33]CAPDU: 80 13 00 00 [11:11:33]Write to MH i2c: E2 08 00 19 84 80 13 00 00 00 00 00 00 19 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:34]Read from MH i2c: E2 [11:11:34]MH_I2C_Read... [11:11:34]Read from MH i2c: E2 62 00 [11:11:34]MH_I2C_Read... [11:11:34]Read from MH i2c: E2 62 00 19 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 3E [11:11: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 6E 21 02 00 0E 04 04 00 2D 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 [11:11:34]wFMCommunicate OK [11:11:34]SAM_PROTO_GetFieldsCounters done [11:11:34]requested_item shift.num is exist - process it [11:11:34]requested_item shift.opened is exist - process it [11:11:34]req_shift_opened [11:11:34]FM_GetShiftState [11:11:34]SAM_PROTO_GetShiftState [11:11:34]wFMCommunicate request_size=4 [11:11:34]MH_SAM_APDU [11:11:34]CAPDU: 80 13 01 00 [11:11:34]Write to MH i2c: E2 08 00 1A 84 80 13 01 00 00 00 00 00 1B [11:11:34]Write i2c OK [11:11:34]MH_I2C_Read... [11:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:34]Read from MH i2c: E2 [11:11:34]MH_I2C_Read... [11:11:34]Read from MH i2c: E2 0E 00 [11:11:34]MH_I2C_Read... [11:11:34]Read from MH i2c: E2 0E 00 1A 84 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 44 [11:11:34]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:11:34]wFMCommunicate OK [11:11:34]SAM_PROTO_GetShiftState done [11:11:34]FM_GetShiftState done [11:11:34]req_shift_opened done [11:11:34]requested_item shift.open_date is exist - process it [11:11:34]req_shift_open_date [11:11:34]req_shift_open_date done [11:11:34]produce_requested_data done [11:11:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139630,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:11:34]process_action_free close_receipt [11:11:34]json_value_free [11:11:34]json_value_free done [11:11:34]process_json_proto returns [11:11:34]Send response to host [11:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139630,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:11:34]free response buf [11:11:34]execute_script done [11:11:34]execute_script returns [11:11:34]free content buf [11:11:34]Sock 8.Close socket [11:11:34]Sock 8.Thread stoped [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:55]accept exits with 9 [11:13:55]New connection [11:13:55]New thread 3067284836 created [11:13:55]Thread 3067141476 joined [11:13:55]Waiting for new connection... [11:13:55] Sock 9.Parse request [11:13:55]Sock 9.Check first char [11:13:55]Sock 9.First char is OK [11:13:55]request: POST /json_proto HTTP/1.0 [11:13:55]Method: POST [11:13:55]URL: /json_proto [11:13:55]Method is POST - this is cgi request [11:13:55]url: /json_proto [11:13:55]query_string will be loaded in cgi processing [11:13:55]execute_cgi json_proto POST (null) [11:13:55]execute_cgi path=json_proto method=POST [11:13:55]POST find Content-Length [11:13:55]Host: 172.17.50.196:8080 [11:13:55]Content-Length: 678 [11:13:55]Content-Type: application/json [11:13:55] [11:13:55]POST finish read [11:13:55]Found Content-Length = 678 [11:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095105", "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" ] } } [11:13:55]execute_script... [11: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 : (1)1095105", "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" ] } } [11:13:55]POST & json_proto [11:13:55]process_json_proto [11:13:55]json parsed OK: [11:13:55]protocol is kg_v1.0 [11:13:55]action value=close_receipt [11:13:55]process_action close_receipt [11:13:55]cmd_close_receipt [11:13:55]MH_GetDate [11:13:55]Write to MH i2c: F0 00 00 1B 84 8E [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: F0 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: F0 09 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: F0 09 00 1B 84 00 7D 66 23 67 72 0D 1C 67 06 [11:13:55]GetLastDocTimeStamp 1730373100 [11:13:55]current date 1730373245 [11:13:55]FM_GetShiftState [11:13:55]SAM_PROTO_GetShiftState [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 13 01 00 [11:13:55]Write to MH i2c: E2 08 00 1C 84 80 13 01 00 00 00 00 00 1D [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0E 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0E 00 1C 84 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 46 [11:13:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:13:55]wFMCommunicate OK [11:13:55]SAM_PROTO_GetShiftState done [11:13:55]FM_GetShiftState done [11:13:55]opened in 1730332621 [11:13:55]opened+sec_in_day 1730419021 [11:13:55]quantity*price = 50041 [11:13:55]sum+1 = 50042 [11:13: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 СНО: Общий режим Чек 108 31.10.2024 11:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139631 ФПД: 155276716321955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111405&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139631&fm=155276716321955&tin=02508201610067®Number=0000000000091631&sum=50000 [11:13:56]StoreToDocumentArchive [11:13:56]shift 557 fd 139631 [11:13:56]save to /storage/0557/doc_00139631 [11:13:56]save last doc name /storage/0557/doc_00139631 to /storage/kkm_last_doc_name [11:13:56]save OK [11:13:56]Clear old archive folders... [11:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:56]tlvbuf is 010FFA60 [11:13:56]SAM_PROTO_ClearQueue [11:13:56]wFMCommunicate request_size=4 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 09 00 00 [11:13:56]Write to MH i2c: E2 08 00 29 84 80 09 00 00 00 00 00 00 1F [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:56]Read from MH i2c: E2 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 03 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 03 00 29 84 00 90 00 21 [11:13:56]RAPDU: 90 00 [11:13:56]wFMCommunicate OK [11:13:56]SAM_PROTO_ClearQueue done [11:13:56]KKMCreateOFDPacket [11:13:56]OFDProtocolAddRootSTLVToBuf [11:13:56]FM_MakeSignedData [11:13:56]FM_MakeSignedData [11:13:56]SAM_PROTO_SignData [11:13:56]wFMCommunicate request_size=4 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 0D 01 02 [11:13:56]Write to MH i2c: E2 08 00 2A 84 80 0D 01 02 00 00 00 00 27 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:56]Read from MH i2c: E2 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 03 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 03 00 2A 84 00 90 00 22 [11:13:56]RAPDU: 90 00 [11:13:56]wFMCommunicate OK [11:13:56]wFMCommunicate request_size=255 [11:13:56]MH_SAM_APDU [11:13: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 6C 00 00 00 F4 03 04 00 7D 66 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8D [11:13:56]Write to MH i2c: E2 02 01 2B 84 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 6C 00 00 00 F4 03 04 00 7D 66 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8D 00 00 DD [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:56]Read from MH i2c: E2 03 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 03 00 2B 84 00 90 00 23 [11:13:56]RAPDU: 90 00 [11:13:56]wFMCommunicate OK [11:13:56]wFMCommunicate request_size=10 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 0D 02 02 05 39 2D 84 AC A3 [11:13:56]Write to MH i2c: E2 0D 00 2C 84 80 0D 02 02 05 00 39 2D 84 AC A3 00 00 6D [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:56]Read from MH i2c: E2 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 03 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 03 00 2C 84 00 90 00 24 [11:13:56]RAPDU: 90 00 [11:13:56]wFMCommunicate OK [11:13:56]wFMCommunicate request_size=4 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 0D 03 02 [11:13:56]Write to MH i2c: E2 08 00 2D 84 80 0D 03 02 00 00 00 00 2C [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:56]Read from MH i2c: E2 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 0B 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 0B 00 2D 84 00 B6 5C 5A 41 74 4F 58 C5 90 00 BA [11:13:56]RAPDU: B6 5C 5A 41 74 4F 58 C5 90 00 [11:13:56]wFMCommunicate OK [11:13:56]SAM_PROTO_SignData done [11:13:56]FM_MakeSignedData done [11:13:56]CreateOFDProtocolMessage [11:13:56]wFMCommunicate request_size=4 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 11 00 00 [11:13:56]Write to MH i2c: E2 08 00 2E 84 80 11 00 00 00 00 00 00 2C [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:56]Read from MH i2c: E2 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 17 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: E2 17 00 2E 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [11: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 [11:13:56]wFMCommunicate OK [11:13:56]CreateOFDProtocolMessage done [11:13:56]OFDSenderStorePacket 139631 [11:13:56]StoreOFDPacket docnum=139631 [11: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 0F 01 00 00 50 62 07 01 CC D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 7D 66 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8D 39 2D 84 AC A3 B6 5C 5A 41 74 4F 58 C5 [11:13:56]CheckFolder [11:13:56]dirname=/storage/ofd_packets [11:13:56]CheckFolder done [11:13:56]ProducePacketName [11:13:56]name=ofd_packets/00139631 [11:13:56]NVStorageSaveData ofd_packets/00139631 [11:13:56]File name is /storage/ofd_packets/00139631 [11:13:56]Write 301 bytes [11:13:56]NVStorageSaveData done [11:13:56]OFDSenderStorePacket done [11:13:56]KKMCreateOFDPacket done [11:13:56]NVStorageSaveData kkm_last_timestamp [11:13:56]File name is /storage/kkm_last_timestamp [11:13:56]Write 4 bytes [11:13:56]NVStorageSaveData done [11:13:56]ExternCall_PrintAddStr [11:13:56]wPrintStart [11:13:56]Write to MH i2c: 01 00 00 2F 84 B3 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 07 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: 01 07 00 2F 84 00 00 00 00 00 FF 0F C8 [11:13:56]RasterBufferAndPrint [11:13:56]line Счет N : (1)1095105 [11:13:56]line ИНН: 02508201610067 [11:13:56]line Контрольно-Кассовый Чек [11:13:56]line ПРОДАЖА [11:13:56]line ТРК (МРК, ГНК) : 43 [11:13:56]line Товар: 2710124130 [11:13:56]line Аи-92-К-2 [11:13:56]line 7.480 * 66.90 [11:13:56]line = 500.41 [11:13:56]line НДС 12% НСП 1% [11:13:56]line > о реализуемом товаре [11:13:56]line ОКРУГЛЕНИЕ: -0.41 [11:13:56]line ИТОГО: 500.00 [11:13:56]line Внесено: 500.00 [11:13:56]line СДАЧА: 0.00 [11:13:56]line НСП 1% : 4.43 [11:13:56]line НДС 12% : 53.14 [11:13:56]line Наличными: 500.00 [11:13:56]line Безнал.: 0.00 [11:13:56]line Место: АЗС № 101 "Партнер Нефть" [11:13:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:13:56]line СНО: Общий режим [11:13:56]line Чек 108 31.10.2024 11:14 [11:13:56]line Смена: 557 ФФД: 1.0 [11:13:56]line ЗНМ: 0300000081 [11:13:56]line РНМ: 0000000000091631 [11:13:56]line Версия ККМ: 001 [11:13:56]line ФМ: 0000000000874669 [11:13:56]line ФД: 139631 [11:13:56]line ФПД: 155276716321955 [11:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T111405&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139631&fm=155276716321955&tin=02508201610067®Number=0000000000091631&sum=50000 [11:13:57]OFD Sender: Processing packet 139631 [packets to send 34, broken 33] [11:13:57]ProducePacketName [11:13:57]name=ofd_packets/00139631 [11:13:57]OFD Sender: To server: pG, [11:13:57]CommunicateWithHost lk.salyk.kg:30040 [11:13:57]ConnectInit lk.salyk.kg [11:13:57]written 0, free lines is 4095 [11:13:57]Connected sock=10 [11: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 0F 01 00 00 50 62 07 01 CC D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 7D 66 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8D 39 2D 84 AC A3 B6 5C 5A 41 74 4F 58 C5 [11: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 0C 67 47 00 30 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 21 02 00 F4 03 04 00 2B 12 23 67 B6 04 01 00 00 CB F9 7B 95 3D 31 8C F9 [11:13:57]CommunicateWithHost err = 0 [11:13:57]CheckOFDResponse [11:13:57]1017 (14) - 77093643461234 [11:13:57]1041 (16) - 0000000000874669 [11:13:57]1040 (4) - 139631 [11:13:57]1012 (4) - 31.10.2024 05:14 [11:13:57]1206 (1) - 0 [11:13:57]OFD Sender: Remove packet 139631 [11:13:57]ProducePacketName [11:13:57]name=ofd_packets/00139631 [11:13:57]NVStorageDeleteData [11:13:57]Write to MH i2c: 01 00 00 5A 84 DE [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: 01 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: 01 07 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: 01 07 00 5A 84 00 00 00 00 00 EF 0C E0 [11:13:57]RasterBufferAndPrint [11:13:57]line [11:13:57]line [11:13:57]line [11:13:57]line [11:13:57]line [11:13:57]written 0, free lines is 3317 [11:13:57]MH_Cut [11:13:57]Write to MH i2c: D1 01 00 61 84 01 B7 [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: D1 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: D1 01 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: D1 01 00 61 84 00 B6 [11:13:57]Write to MH i2c: 01 00 00 62 84 E6 [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]OFD Sender: No OFD packet to send [11:13:58]*** Cut start [11:13:58]*** Partial cut [11:13:58]*** CUTSNS_PIN = 1 [11:13:58]*** CUTSNS_PIN = 0 [11:13:58]*** Brake cut motor [11:13:58]Read from MH i2c: 01 [11:13:58]MH_I2C_Read... [11:13:58]*** Stop cut motor [11:13:58]*** Cut end [11:13:58]Read from MH i2c: 01 07 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 62 84 00 00 00 00 00 FF 0F FB [11:13:58]process_action close_receipt done [11:13:58]requested_data is exist [11:13:58]produce_requested_data [11:13:58]requested_item fm.sn is exist - process it [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 11 00 00 [11:13:58]Write to MH i2c: E2 08 00 63 84 80 11 00 00 00 00 00 00 61 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 17 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 17 00 63 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BC [11: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 [11:13:58]wFMCommunicate OK [11:13:58]requested_item fd.num is exist - process it [11:13:58]SAM_PROTO_GetFieldsCounters [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 13 00 00 [11:13:58]Write to MH i2c: E2 08 00 64 84 80 13 00 00 00 00 00 00 64 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 62 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 62 00 64 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 8D [11: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 6F 21 02 00 0E 04 04 00 2D 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 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_GetFieldsCounters done [11:13:59]requested_item shift.num is exist - process it [11:13:59]requested_item shift.opened is exist - process it [11:13:59]req_shift_opened [11:13:59]FM_GetShiftState [11:13:59]SAM_PROTO_GetShiftState [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 13 01 00 [11:13:59]Write to MH i2c: E2 08 00 65 84 80 13 01 00 00 00 00 00 66 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 65 84 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8F [11:13:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_GetShiftState done [11:13:59]FM_GetShiftState done [11:13:59]req_shift_opened done [11:13:59]requested_item shift.open_date is exist - process it [11:13:59]req_shift_open_date [11:13:59]req_shift_open_date done [11:13:59]produce_requested_data done [11:13:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139631,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:13:59]process_action_free close_receipt [11:13:59]json_value_free [11:13:59]json_value_free done [11:13:59]process_json_proto returns [11:13:59]Send response to host [11:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139631,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:13:59]free response buf [11:13:59]execute_script done [11:13:59]execute_script returns [11:13:59]free content buf [11:13:59]Sock 9.Close socket [11:13:59]Sock 9.Thread stoped [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29: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:16]accept exits with 8 [11:30:16]New connection [11:30:16]New thread 3067141476 created [11:30:16]Thread 3067284836 joined [11:30:16]Waiting for new connection... [11:30:16] Sock 8.Parse request [11:30:16]Sock 8.Check first char [11:30:16]Sock 8.First char is OK [11:30:16]request: POST /json_proto HTTP/1.0 [11:30:16]Method: POST [11:30:16]URL: /json_proto [11:30:16]Method is POST - this is cgi request [11:30:16]url: /json_proto [11:30:16]query_string will be loaded in cgi processing [11:30:16]execute_cgi json_proto POST (null) [11:30:16]execute_cgi path=json_proto method=POST [11:30:16]POST find Content-Length [11:30:16]Host: 172.17.50.196:8080 [11:30:16]Content-Length: 1035 [11:30:16]Content-Type: application/json [11:30:16] [11:30:16]POST finish read [11:30:16]Found Content-Length = 1035 [11:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335501", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]execute_script... [11:30: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)335501", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]POST & json_proto [11:30:16]process_json_proto [11:30:16]json parsed OK: [11:30:16]protocol is kg_v1.0 [11:30:16]action value=close_receipt [11:30:16]process_action close_receipt [11:30:16]cmd_close_receipt [11:30:16]MH_GetDate [11:30:16]Write to MH i2c: F0 00 00 66 84 D9 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 09 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 09 00 66 84 00 52 6A 23 67 72 0D 1C 67 2A [11:30:16]GetLastDocTimeStamp 1730373245 [11:30:16]current date 1730374226 [11:30:16]FM_GetShiftState [11:30:16]SAM_PROTO_GetShiftState [11:30:16]wFMCommunicate request_size=4 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 13 01 00 [11:30:16]Write to MH i2c: E2 08 00 67 84 80 13 01 00 00 00 00 00 68 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0E 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0E 00 67 84 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 91 [11:30:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:30:16]wFMCommunicate OK [11:30:16]SAM_PROTO_GetShiftState done [11:30:16]FM_GetShiftState done [11:30:16]opened in 1730332621 [11:30:16]opened+sec_in_day 1730419021 [11:30:16]quantity*price = 7900 [11:30:16]sum+1 = 7901 [11:30:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.19 Наличными: 0.00 Безнал.: 209.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 109 31.10.2024 11:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139632 ФПД: 38133510772060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113026&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139632&fm=38133510772060&tin=02508201610067®Number=0000000000091631&sum=20900 0 [11:30:17]StoreToDocumentArchive [11:30:17]shift 557 fd 139632 [11:30:17]save to /storage/0557/doc_00139632 [11:30:17]save last doc name /storage/0557/doc_00139632 to /storage/kkm_last_doc_name [11:30:17]save OK [11:30:17]Clear old archive folders... [11:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=388 [11:30:17]tlvbuf is 0131E7E0 [11:30:17]SAM_PROTO_ClearQueue [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 09 00 00 [11:30:17]Write to MH i2c: E2 08 00 74 84 80 09 00 00 00 00 00 00 6A [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 74 84 00 90 00 6C [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]SAM_PROTO_ClearQueue done [11:30:17]KKMCreateOFDPacket [11:30:17]OFDProtocolAddRootSTLVToBuf [11:30:17]FM_MakeSignedData [11:30:17]FM_MakeSignedData [11:30:17]SAM_PROTO_SignData [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 01 02 [11:30:17]Write to MH i2c: E2 08 00 75 84 80 0D 01 02 00 00 00 00 72 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 75 84 00 90 00 6D [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]wFMCommunicate request_size=255 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [11:30:17]Write to MH i2c: E2 02 01 76 84 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 0B [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 76 84 00 90 00 6E [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]wFMCommunicate request_size=147 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 02 02 8E F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 22 AE A6 5D 15 5C [11:30:17]Write to MH i2c: E2 96 00 77 84 80 0D 02 02 8E 00 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 22 AE A6 5D 15 5C 00 00 DB [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 03 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 03 00 77 84 00 90 00 6F [11:30:18]RAPDU: 90 00 [11:30:18]wFMCommunicate OK [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 0D 03 02 [11:30:18]Write to MH i2c: E2 08 00 78 84 80 0D 03 02 00 00 00 00 77 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0B 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0B 00 78 84 00 B3 81 D2 86 90 6B 91 CF 90 00 5F [11:30:18]RAPDU: B3 81 D2 86 90 6B 91 CF 90 00 [11:30:18]wFMCommunicate OK [11:30:18]SAM_PROTO_SignData done [11:30:18]FM_MakeSignedData done [11:30:18]CreateOFDProtocolMessage [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 11 00 00 [11:30:18]Write to MH i2c: E2 08 00 79 84 80 11 00 00 00 00 00 00 77 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 17 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 17 00 79 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D2 [11:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:30:18]wFMCommunicate OK [11:30:18]CreateOFDProtocolMessage done [11:30:18]OFDSenderStorePacket 139632 [11:30:18]StoreOFDPacket docnum=139632 [11:30: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 98 01 00 00 56 B2 90 01 92 A3 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 22 AE A6 5D 15 5C B3 81 D2 86 90 6B 91 CF [11:30:18]CheckFolder [11:30:18]dirname=/storage/ofd_packets [11:30:18]CheckFolder done [11:30:18]ProducePacketName [11:30:18]name=ofd_packets/00139632 [11:30:18]NVStorageSaveData ofd_packets/00139632 [11:30:18]File name is /storage/ofd_packets/00139632 [11:30:18]Write 438 bytes [11:30:18]NVStorageSaveData done [11:30:18]OFDSenderStorePacket done [11:30:18]KKMCreateOFDPacket done [11:30:18]NVStorageSaveData kkm_last_timestamp [11:30:18]File name is /storage/kkm_last_timestamp [11:30:18]Write 4 bytes [11:30:18]NVStorageSaveData done [11:30:18]ExternCall_PrintAddStr [11:30:18]wPrintStart [11:30:18]Write to MH i2c: 01 00 00 7A 84 FE [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 [11:30:18]MH_I2C_Read... [11:30:18]OFD Sender: Processing packet 139632 [packets to send 34, broken 33] [11:30:18]ProducePacketName [11:30:18]name=ofd_packets/00139632 [11:30:18]OFD Sender: To server: pG, [11:30:18]CommunicateWithHost lk.salyk.kg:30040 [11:30:18]ConnectInit lk.salyk.kg [11:30:18]Read from MH i2c: 01 07 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 07 00 7A 84 00 00 00 00 00 FF 0F 13 [11:30:18]RasterBufferAndPrint [11:30:18]line Счет N : (3)335501 [11:30:18]line ИНН: 02508201610067 [11:30:18]line Контрольно-Кассовый Чек [11:30:18]line ПРОДАЖА [11:30:18]line Товар: 4700000310043 [11:30:18]line Вода Жалалабат 27 1л [11:30:18]line 1.000 * 79.00 [11:30:18]line = 79.00 [11:30:18]line НДС 12% НСП 1% [11:30:18]line > о реализуемом товаре [11:30:18]line Товар: 2000036220012 [11:30:18]line Кофе Капучино XL(GABB TRADE) [11:30:18]line 1.000 * 130.00 [11:30:18]line = 130.00 [11:30:18]line НДС 12% НСП 1% [11:30:18]line > о реализуемом товаре [11:30:18]line ИТОГО: 209.00 [11:30:18]line НСП 1% : 1.85 [11:30:18]line НДС 12% : 22.19 [11:30:18]line Наличными: 0.00 [11:30:18]line Безнал.: 209.00 [11:30:18]line Место: АЗС № 101 "Партнер Нефть" [11:30:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:30:18]line СНО: Общий режим [11:30:18]line Чек 109 31.10.2024 11:30 [11:30:18]line Смена: 557 ФФД: 1.0 [11:30:18]line ЗНМ: 0300000081 [11:30:18]line РНМ: 0000000000091631 [11:30:18]line Версия ККМ: 001 [11:30:18]line Платежная система: Mbank [11:30:18]line ФМ: 0000000000874669 [11:30:18]line ФД: 139632 [11:30:18]line ФПД: 38133510772060 [11:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113026&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139632&fm=38133510772060&tin=02508201610067®Number=0000000000091631&sum=20900 [11:30:18]line 0 [11:30:18]written 0, free lines is 4095 [11:30:18]Connected sock=10 [11:30: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 98 01 00 00 56 B2 90 01 92 A3 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 52 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 22 AE A6 5D 15 5C B3 81 D2 86 90 6B 91 CF [11:30: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 51 50 47 00 D5 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 70 21 02 00 F4 03 04 00 00 16 23 67 B6 04 01 00 00 2E 78 EC 70 C8 C0 C6 B9 [11:30:18]CommunicateWithHost err = 0 [11:30:18]CheckOFDResponse [11:30:18]1017 (14) - 77093643461234 [11:30:18]1041 (16) - 0000000000874669 [11:30:18]1040 (4) - 139632 [11:30:18]1012 (4) - 31.10.2024 05:30 [11:30:18]1206 (1) - 0 [11:30:18]OFD Sender: Remove packet 139632 [11:30:18]ProducePacketName [11:30:18]name=ofd_packets/00139632 [11:30:18]NVStorageDeleteData [11:30:19]Write to MH i2c: 01 00 00 AA 84 2E [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 07 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 07 00 AA 84 00 00 00 00 00 B7 0C F8 [11:30:19]RasterBufferAndPrint [11:30:19]line [11:30:19]line [11:30:19]line [11:30:19]line [11:30:19]line [11:30:19]written 0, free lines is 3264 [11:30:19]MH_Cut [11:30:19]Write to MH i2c: D1 01 00 B1 84 01 07 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: D1 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: D1 01 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: D1 01 00 B1 84 00 06 [11:30:19]Write to MH i2c: 01 00 00 B2 84 36 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]OFD Sender: No OFD packet to send [11:30:19]*** Cut start [11:30:19]*** Partial cut [11:30:19]*** CUTSNS_PIN = 1 [11:30:19]*** CUTSNS_PIN = 0 [11:30:20]*** Brake cut motor [11:30:20]Read from MH i2c: 01 [11:30:20]MH_I2C_Read... [11:30:20]*** Stop cut motor [11:30:20]*** Cut end [11:30:20]Read from MH i2c: 01 07 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: 01 07 00 B2 84 00 00 00 00 00 FF 0F 4B [11:30:20]process_action close_receipt done [11:30:20]requested_data is exist [11:30:20]produce_requested_data [11:30:20]requested_item fm.sn is exist - process it [11:30:20]wFMCommunicate request_size=4 [11:30:20]MH_SAM_APDU [11:30:20]CAPDU: 80 11 00 00 [11:30:20]Write to MH i2c: E2 08 00 B3 84 80 11 00 00 00 00 00 00 B1 [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:20]Read from MH i2c: E2 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 17 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 17 00 B3 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0C [11:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:30:20]wFMCommunicate OK [11:30:20]requested_item fd.num is exist - process it [11:30:20]SAM_PROTO_GetFieldsCounters [11:30:20]wFMCommunicate request_size=4 [11:30:20]MH_SAM_APDU [11:30:20]CAPDU: 80 13 00 00 [11:30:20]Write to MH i2c: E2 08 00 B4 84 80 13 00 00 00 00 00 00 B4 [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:20]Read from MH i2c: E2 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 62 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 62 00 B4 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 E1 [11:30: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 70 21 02 00 0E 04 04 00 2D 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:30:20]wFMCommunicate OK [11:30:20]SAM_PROTO_GetFieldsCounters done [11:30:20]requested_item shift.num is exist - process it [11:30:20]requested_item shift.opened is exist - process it [11:30:20]req_shift_opened [11:30:20]FM_GetShiftState [11:30:20]SAM_PROTO_GetShiftState [11:30:20]wFMCommunicate request_size=4 [11:30:20]MH_SAM_APDU [11:30:20]CAPDU: 80 13 01 00 [11:30:20]Write to MH i2c: E2 08 00 B5 84 80 13 01 00 00 00 00 00 B6 [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:20]Read from MH i2c: E2 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 0E 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 0E 00 B5 84 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DF [11:30:20]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:30:20]wFMCommunicate OK [11:30:20]SAM_PROTO_GetShiftState done [11:30:20]FM_GetShiftState done [11:30:20]req_shift_opened done [11:30:20]requested_item shift.open_date is exist - process it [11:30:20]req_shift_open_date [11:30:20]req_shift_open_date done [11:30:20]produce_requested_data done [11:30:20]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139632,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:30:20]process_action_free close_receipt [11:30:20]json_value_free [11:30:20]json_value_free done [11:30:20]process_json_proto returns [11:30:20]Send response to host [11:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139632,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:30:20]free response buf [11:30:20]execute_script done [11:30:20]execute_script returns [11:30:20]free content buf [11:30:20]Sock 8.Close socket [11:30:20]Sock 8.Thread stoped [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:07]accept exits with 9 [11:32:07]New connection [11:32:07]New thread 3067284836 created [11:32:07]Thread 3067141476 joined [11:32:07]Waiting for new connection... [11:32:07] Sock 9.Parse request [11:32:07]Sock 9.Check first char [11:32:07]Sock 9.First char is OK [11:32:07]request: POST /json_proto HTTP/1.0 [11:32:07]Method: POST [11:32:07]URL: /json_proto [11:32:07]Method is POST - this is cgi request [11:32:07]url: /json_proto [11:32:07]query_string will be loaded in cgi processing [11:32:07]execute_cgi json_proto POST (null) [11:32:07]execute_cgi path=json_proto method=POST [11:32:07]POST find Content-Length [11:32:07]Host: 172.17.50.196:8080 [11:32:07]Content-Length: 683 [11:32:07]Content-Type: application/json [11:32:07] [11:32:07]POST finish read [11:32:07]Found Content-Length = 683 [11:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [11:32:07]execute_script... [11:32: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)1095112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [11:32:07]POST & json_proto [11:32:07]process_json_proto [11:32:07]json parsed OK: [11:32:07]protocol is kg_v1.0 [11:32:07]action value=close_receipt [11:32:07]process_action close_receipt [11:32:07]cmd_close_receipt [11:32:07]MH_GetDate [11:32:07]Write to MH i2c: F0 00 00 B6 84 29 [11:32:07]Write i2c OK [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: F0 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: F0 09 00 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: F0 09 00 B6 84 00 C1 6A 23 67 72 0D 1C 67 E9 [11:32:07]GetLastDocTimeStamp 1730374226 [11:32:07]current date 1730374337 [11:32:07]FM_GetShiftState [11:32:07]SAM_PROTO_GetShiftState [11:32:07]wFMCommunicate request_size=4 [11:32:07]MH_SAM_APDU [11:32:07]CAPDU: 80 13 01 00 [11:32:07]Write to MH i2c: E2 08 00 B7 84 80 13 01 00 00 00 00 00 B8 [11:32:07]Write i2c OK [11:32:07]MH_I2C_Read... [11:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:07]Read from MH i2c: E2 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: E2 0E 00 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: E2 0E 00 B7 84 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E1 [11:32:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:32:07]wFMCommunicate OK [11:32:07]SAM_PROTO_GetShiftState done [11:32:07]FM_GetShiftState done [11:32:07]opened in 1730332621 [11:32:07]opened+sec_in_day 1730419021 [11:32:07]quantity*price = 200043 [11:32:07]sum+1 = 200044 [11:32:07]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 СНО: Общий режим Чек 110 31.10.2024 11:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139633 ФПД: 212678462905969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113217&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139633&fm=212678462905969&tin=02508201610067®Number=0000000000091631&sum=200000 [11:32:08]StoreToDocumentArchive [11:32:08]shift 557 fd 139633 [11:32:08]save to /storage/0557/doc_00139633 [11:32:08]save last doc name /storage/0557/doc_00139633 to /storage/kkm_last_doc_name [11:32:08]save OK [11:32:08]Clear old archive folders... [11:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:08]tlvbuf is 0139D090 [11:32:08]SAM_PROTO_ClearQueue [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 09 00 00 [11:32:08]Write to MH i2c: E2 08 00 C4 84 80 09 00 00 00 00 00 00 BA [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 C4 84 00 90 00 BC [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]SAM_PROTO_ClearQueue done [11:32:08]KKMCreateOFDPacket [11:32:08]OFDProtocolAddRootSTLVToBuf [11:32:08]FM_MakeSignedData [11:32:08]FM_MakeSignedData [11:32:08]SAM_PROTO_SignData [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 0D 01 02 [11:32:08]Write to MH i2c: E2 08 00 C5 84 80 0D 01 02 00 00 00 00 C2 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 C5 84 00 90 00 BD [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]wFMCommunicate request_size=255 [11:32:08]MH_SAM_APDU [11:32:08]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 6E 00 00 00 F4 03 04 00 C1 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C1 [11:32:08]Write to MH i2c: E2 02 01 C6 84 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 6E 00 00 00 F4 03 04 00 C1 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C1 00 00 A1 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 C6 84 00 90 00 BE [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]wFMCommunicate request_size=10 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 0D 02 02 05 6E 10 3B 9E 71 [11:32:08]Write to MH i2c: E2 0D 00 C7 84 80 0D 02 02 05 00 6E 10 3B 9E 71 00 00 97 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 C7 84 00 90 00 BF [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 0D 03 02 [11:32:08]Write to MH i2c: E2 08 00 C8 84 80 0D 03 02 00 00 00 00 C7 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 0B 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 0B 00 C8 84 00 EF 1F 71 52 85 2C AA FF 90 00 F3 [11:32:08]RAPDU: EF 1F 71 52 85 2C AA FF 90 00 [11:32:08]wFMCommunicate OK [11:32:08]SAM_PROTO_SignData done [11:32:08]FM_MakeSignedData done [11:32:08]CreateOFDProtocolMessage [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 11 00 00 [11:32:08]Write to MH i2c: E2 08 00 C9 84 80 11 00 00 00 00 00 00 C7 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 17 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 17 00 C9 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 22 [11:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:32:08]wFMCommunicate OK [11:32:08]CreateOFDProtocolMessage done [11:32:08]OFDSenderStorePacket 139633 [11:32:08]StoreOFDPacket docnum=139633 [11:32: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 0F 01 00 00 9E 78 07 01 90 0D 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 6E 00 00 00 F4 03 04 00 C1 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C1 6E 10 3B 9E 71 EF 1F 71 52 85 2C AA FF [11:32:08]CheckFolder [11:32:08]dirname=/storage/ofd_packets [11:32:08]CheckFolder done [11:32:08]ProducePacketName [11:32:08]name=ofd_packets/00139633 [11:32:08]NVStorageSaveData ofd_packets/00139633 [11:32:08]File name is /storage/ofd_packets/00139633 [11:32:08]Write 301 bytes [11:32:08]NVStorageSaveData done [11:32:08]OFDSenderStorePacket done [11:32:08]KKMCreateOFDPacket done [11:32:08]NVStorageSaveData kkm_last_timestamp [11:32:08]File name is /storage/kkm_last_timestamp [11:32:08]Write 4 bytes [11:32:08]NVStorageSaveData done [11:32:08]ExternCall_PrintAddStr [11:32:08]wPrintStart [11:32:08]Write to MH i2c: 01 00 00 CA 84 4E [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 07 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 07 00 CA 84 00 00 00 00 00 FF 0F 63 [11:32:08]RasterBufferAndPrint [11:32:08]line Счет N : (1)1095112 [11:32:08]line ИНН: 02508201610067 [11:32:08]line Контрольно-Кассовый Чек [11:32:08]line ПРОДАЖА [11:32:08]line ТРК (МРК, ГНК) : 34 [11:32:08]line Товар: 2710124500 [11:32:08]line Аи-95-К-3 [11:32:08]line 26.960 * 74.20 [11:32:08]line = 2000.43 [11:32:08]line НДС 12% НСП 1% [11:32:08]line > о реализуемом товаре [11:32:08]line ОКРУГЛЕНИЕ: -0.43 [11:32:08]line ИТОГО: 2000.00 [11:32:08]line Внесено: 2000.00 [11:32:08]line СДАЧА: 0.00 [11:32:08]line НСП 1% : 17.70 [11:32:08]line НДС 12% : 212.43 [11:32:08]line Наличными: 2000.00 [11:32:08]line Безнал.: 0.00 [11:32:08]line Место: АЗС № 101 "Партнер Нефть" [11:32:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:32:08]line СНО: Общий режим [11:32:08]line Чек 110 31.10.2024 11:32 [11:32:08]line Смена: 557 ФФД: 1.0 [11:32:08]line ЗНМ: 0300000081 [11:32:08]line РНМ: 0000000000091631 [11:32:08]line Версия ККМ: 001 [11:32:08]line ФМ: 0000000000874669 [11:32:08]line ФД: 139633 [11:32:08]line ФПД: 212678462905969 [11:32:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113217&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139633&fm=212678462905969&tin=02508201610067®Number=0000000000091631&sum=200000 [11:32:09]OFD Sender: Processing packet 139633 [packets to send 34, broken 33] [11:32:09]ProducePacketName [11:32:09]name=ofd_packets/00139633 [11:32:09]OFD Sender: To server: pG, [11:32:09]CommunicateWithHost lk.salyk.kg:30040 [11:32:09]ConnectInit lk.salyk.kg [11:32:09]written 0, free lines is 4095 [11:32:09]Connected sock=10 [11:32: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 0F 01 00 00 9E 78 07 01 90 0D 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 6E 00 00 00 F4 03 04 00 C1 6A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C1 6E 10 3B 9E 71 EF 1F 71 52 85 2C AA FF [11:32: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 C3 25 47 00 6A 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 71 21 02 00 F4 03 04 00 6F 16 23 67 B6 04 01 00 00 D1 C0 B3 B9 78 59 2D 14 [11:32:09]CommunicateWithHost err = 0 [11:32:09]CheckOFDResponse [11:32:09]1017 (14) - 77093643461234 [11:32:09]1041 (16) - 0000000000874669 [11:32:09]1040 (4) - 139633 [11:32:09]1012 (4) - 31.10.2024 05:32 [11:32:09]1206 (1) - 0 [11:32:09]OFD Sender: Remove packet 139633 [11:32:09]ProducePacketName [11:32:09]name=ofd_packets/00139633 [11:32:09]NVStorageDeleteData [11:32:09]Write to MH i2c: 01 00 00 F5 84 79 [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 07 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 07 00 F5 84 00 00 00 00 00 E8 0C 74 [11:32:09]RasterBufferAndPrint [11:32:09]line [11:32:09]line [11:32:09]line [11:32:09]line [11:32:09]line [11:32:09]written 0, free lines is 3313 [11:32:09]MH_Cut [11:32:09]Write to MH i2c: D1 01 00 FC 84 01 52 [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: D1 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: D1 01 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: D1 01 00 FC 84 00 51 [11:32:09]Write to MH i2c: 01 00 00 FD 84 81 [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]OFD Sender: No OFD packet to send [11:32:10]*** Cut start [11:32:10]*** Partial cut [11:32:10]*** CUTSNS_PIN = 1 [11:32:10]*** CUTSNS_PIN = 0 [11:32:10]*** Brake cut motor [11:32:10]Read from MH i2c: 01 [11:32:10]MH_I2C_Read... [11:32:10]*** Stop cut motor [11:32:10]*** Cut end [11:32:10]Read from MH i2c: 01 07 00 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: 01 07 00 FD 84 00 00 00 00 00 FF 0F 96 [11:32:10]process_action close_receipt done [11:32:10]requested_data is exist [11:32:10]produce_requested_data [11:32:10]requested_item fm.sn is exist - process it [11:32:10]wFMCommunicate request_size=4 [11:32:10]MH_SAM_APDU [11:32:10]CAPDU: 80 11 00 00 [11:32:10]Write to MH i2c: E2 08 00 FE 84 80 11 00 00 00 00 00 00 FC [11:32:10]Write i2c OK [11:32:10]MH_I2C_Read... [11:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:10]Read from MH i2c: E2 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: E2 17 00 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: E2 17 00 FE 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 57 [11:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:32:10]wFMCommunicate OK [11:32:10]requested_item fd.num is exist - process it [11:32:10]SAM_PROTO_GetFieldsCounters [11:32:10]wFMCommunicate request_size=4 [11:32:10]MH_SAM_APDU [11:32:10]CAPDU: 80 13 00 00 [11:32:10]Write to MH i2c: E2 08 00 FF 84 80 13 00 00 00 00 00 00 FF [11:32:10]Write i2c OK [11:32:10]MH_I2C_Read... [11:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:11]Read from MH i2c: E2 [11:32:11]MH_I2C_Read... [11:32:11]Read from MH i2c: E2 62 00 [11:32:11]MH_I2C_Read... [11:32:11]Read from MH i2c: E2 62 00 FF 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 30 [11:32: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 71 21 02 00 0E 04 04 00 2D 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:32:11]wFMCommunicate OK [11:32:11]SAM_PROTO_GetFieldsCounters done [11:32:11]requested_item shift.num is exist - process it [11:32:11]requested_item shift.opened is exist - process it [11:32:11]req_shift_opened [11:32:11]FM_GetShiftState [11:32:11]SAM_PROTO_GetShiftState [11:32:11]wFMCommunicate request_size=4 [11:32:11]MH_SAM_APDU [11:32:11]CAPDU: 80 13 01 00 [11:32:11]Write to MH i2c: E2 08 00 00 85 80 13 01 00 00 00 00 00 02 [11:32:11]Write i2c OK [11:32:11]MH_I2C_Read... [11:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:11]Read from MH i2c: E2 [11:32:11]MH_I2C_Read... [11:32:11]Read from MH i2c: E2 0E 00 [11:32:11]MH_I2C_Read... [11:32:11]Read from MH i2c: E2 0E 00 00 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2B [11:32:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:32:11]wFMCommunicate OK [11:32:11]SAM_PROTO_GetShiftState done [11:32:11]FM_GetShiftState done [11:32:11]req_shift_opened done [11:32:11]requested_item shift.open_date is exist - process it [11:32:11]req_shift_open_date [11:32:11]req_shift_open_date done [11:32:11]produce_requested_data done [11:32:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139633,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:32:11]process_action_free close_receipt [11:32:11]json_value_free [11:32:11]json_value_free done [11:32:11]process_json_proto returns [11:32:11]Send response to host [11:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139633,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:32:11]free response buf [11:32:11]execute_script done [11:32:11]execute_script returns [11:32:11]free content buf [11:32:11]Sock 9.Close socket [11:32:11]Sock 9.Thread stoped [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:39]accept exits with 8 [11:34:39]New connection [11:34:39]New thread 3067141476 created [11:34:39]Thread 3067284836 joined [11:34:39]Waiting for new connection... [11:34:39] Sock 8.Parse request [11:34:39]Sock 8.Check first char [11:34:39]Sock 8.First char is OK [11:34:39]request: POST /json_proto HTTP/1.0 [11:34:39]Method: POST [11:34:39]URL: /json_proto [11:34:39]Method is POST - this is cgi request [11:34:39]url: /json_proto [11:34:39]query_string will be loaded in cgi processing [11:34:39]execute_cgi json_proto POST (null) [11:34:39]execute_cgi path=json_proto method=POST [11:34:39]POST find Content-Length [11:34:39]Host: 172.17.50.196:8080 [11:34:39]Content-Length: 678 [11:34:39]Content-Type: application/json [11:34:39] [11:34:39]POST finish read [11:34:39]Found Content-Length = 678 [11:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095113", "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 }]} ], "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" ] } } [11:34:39]execute_script... [11:34:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095113", "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 }]} ], "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" ] } } [11:34:39]POST & json_proto [11:34:39]process_json_proto [11:34:39]json parsed OK: [11:34:39]protocol is kg_v1.0 [11:34:39]action value=close_receipt [11:34:39]process_action close_receipt [11:34:39]cmd_close_receipt [11:34:39]MH_GetDate [11:34:39]Write to MH i2c: F0 00 00 01 85 75 [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: F0 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: F0 09 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: F0 09 00 01 85 00 59 6B 23 67 72 0D 1C 67 CE [11:34:39]GetLastDocTimeStamp 1730374337 [11:34:39]current date 1730374489 [11:34:39]FM_GetShiftState [11:34:39]SAM_PROTO_GetShiftState [11:34:39]wFMCommunicate request_size=4 [11:34:39]MH_SAM_APDU [11:34:39]CAPDU: 80 13 01 00 [11:34:39]Write to MH i2c: E2 08 00 02 85 80 13 01 00 00 00 00 00 04 [11:34:39]Write i2c OK [11:34:39]MH_I2C_Read... [11:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:39]Read from MH i2c: E2 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 0E 00 [11:34:39]MH_I2C_Read... [11:34:39]Read from MH i2c: E2 0E 00 02 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2D [11:34:39]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:34:39]wFMCommunicate OK [11:34:39]SAM_PROTO_GetShiftState done [11:34:39]FM_GetShiftState done [11:34:39]opened in 1730332621 [11:34:39]opened+sec_in_day 1730419021 [11:34:39]quantity*price = 60009 [11:34:39]sum+1 = 60010 [11:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 111 31.10.2024 11:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139634 ФПД: 89313923579181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139634&fm=89313923579181&tin=02508201610067®Number=0000000000091631&sum=60000 [11:34:41]StoreToDocumentArchive [11:34:41]shift 557 fd 139634 [11:34:41]save to /storage/0557/doc_00139634 [11:34:41]save last doc name /storage/0557/doc_00139634 to /storage/kkm_last_doc_name [11:34:41]save OK [11:34:41]Clear old archive folders... [11:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:41]tlvbuf is 01163CB0 [11:34:41]SAM_PROTO_ClearQueue [11:34:41]wFMCommunicate request_size=4 [11:34:41]MH_SAM_APDU [11:34:41]CAPDU: 80 09 00 00 [11:34:41]Write to MH i2c: E2 08 00 0F 85 80 09 00 00 00 00 00 00 06 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:41]Read from MH i2c: E2 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 0F 85 00 90 00 08 [11:34:41]RAPDU: 90 00 [11:34:41]wFMCommunicate OK [11:34:41]SAM_PROTO_ClearQueue done [11:34:41]KKMCreateOFDPacket [11:34:41]OFDProtocolAddRootSTLVToBuf [11:34:41]FM_MakeSignedData [11:34:41]FM_MakeSignedData [11:34:41]SAM_PROTO_SignData [11:34:41]wFMCommunicate request_size=4 [11:34:41]MH_SAM_APDU [11:34:41]CAPDU: 80 0D 01 02 [11:34:41]Write to MH i2c: E2 08 00 10 85 80 0D 01 02 00 00 00 00 0E [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:41]Read from MH i2c: E2 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 10 85 00 90 00 09 [11:34:41]RAPDU: 90 00 [11:34:41]wFMCommunicate OK [11:34:41]wFMCommunicate request_size=255 [11:34:41]MH_SAM_APDU [11:34:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 51 [11:34:41]Write to MH i2c: E2 02 01 11 85 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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 51 00 00 4C [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:41]Read from MH i2c: E2 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 11 85 00 90 00 0A [11:34:41]RAPDU: 90 00 [11:34:41]wFMCommunicate OK [11:34:41]wFMCommunicate request_size=10 [11:34:41]MH_SAM_APDU [11:34:41]CAPDU: 80 0D 02 02 05 3B 04 B0 3D 2D [11:34:41]Write to MH i2c: E2 0D 00 12 85 80 0D 02 02 05 00 3B 04 B0 3D 2D 00 00 74 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:41]Read from MH i2c: E2 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 03 00 12 85 00 90 00 0B [11:34:41]RAPDU: 90 00 [11:34:41]wFMCommunicate OK [11:34:41]wFMCommunicate request_size=4 [11:34:41]MH_SAM_APDU [11:34:41]CAPDU: 80 0D 03 02 [11:34:41]Write to MH i2c: E2 08 00 13 85 80 0D 03 02 00 00 00 00 13 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:41]Read from MH i2c: E2 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 0B 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 0B 00 13 85 00 63 D4 97 E1 2B 19 23 7D 90 00 A7 [11:34:41]RAPDU: 63 D4 97 E1 2B 19 23 7D 90 00 [11:34:41]wFMCommunicate OK [11:34:41]SAM_PROTO_SignData done [11:34:41]FM_MakeSignedData done [11:34:41]CreateOFDProtocolMessage [11:34:41]wFMCommunicate request_size=4 [11:34:41]MH_SAM_APDU [11:34:41]CAPDU: 80 11 00 00 [11:34:41]Write to MH i2c: E2 08 00 14 85 80 11 00 00 00 00 00 00 13 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:41]Read from MH i2c: E2 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 17 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: E2 17 00 14 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6E [11:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:34:41]wFMCommunicate OK [11:34:41]CreateOFDProtocolMessage done [11:34:41]OFDSenderStorePacket 139634 [11:34:41]StoreOFDPacket docnum=139634 [11:34: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 0F 01 00 00 74 AB 07 01 C2 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 51 3B 04 B0 3D 2D 63 D4 97 E1 2B 19 23 7D [11:34:41]CheckFolder [11:34:41]dirname=/storage/ofd_packets [11:34:41]CheckFolder done [11:34:41]ProducePacketName [11:34:41]name=ofd_packets/00139634 [11:34:41]NVStorageSaveData ofd_packets/00139634 [11:34:41]File name is /storage/ofd_packets/00139634 [11:34:41]Write 301 bytes [11:34:41]NVStorageSaveData done [11:34:41]OFDSenderStorePacket done [11:34:41]KKMCreateOFDPacket done [11:34:41]NVStorageSaveData kkm_last_timestamp [11:34:41]File name is /storage/kkm_last_timestamp [11:34:41]Write 4 bytes [11:34:41]NVStorageSaveData done [11:34:41]ExternCall_PrintAddStr [11:34:41]wPrintStart [11:34:41]Write to MH i2c: 01 00 00 15 85 9A [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 15 85 00 00 00 00 00 FF 0F AF [11:34:41]RasterBufferAndPrint [11:34:41]line Счет N : (1)1095113 [11:34:41]line ИНН: 02508201610067 [11:34:41]line Контрольно-Кассовый Чек [11:34:41]line ПРОДАЖА [11:34:41]line ТРК (МРК, ГНК) : 63 [11:34:41]line Товар: 2710124130 [11:34:41]line Аи-92-К-2 [11:34:41]line 8.970 * 66.90 [11:34:41]line = 600.09 [11:34:41]line НДС 12% НСП 1% [11:34:41]line > о реализуемом товаре [11:34:41]line ОКРУГЛЕНИЕ: -0.09 [11:34:41]line ИТОГО: 600.00 [11:34:41]line Внесено: 600.00 [11:34:41]line СДАЧА: 0.00 [11:34:41]line НСП 1% : 5.31 [11:34:41]line НДС 12% : 63.73 [11:34:41]line Наличными: 600.00 [11:34:41]line Безнал.: 0.00 [11:34:41]line Место: АЗС № 101 "Партнер Нефть" [11:34:41]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:34:41]line СНО: Общий режим [11:34:41]line Чек 111 31.10.2024 11:34 [11:34:41]line Смена: 557 ФФД: 1.0 [11:34:41]line ЗНМ: 0300000081 [11:34:41]line РНМ: 0000000000091631 [11:34:41]line Версия ККМ: 001 [11:34:41]line ФМ: 0000000000874669 [11:34:41]line ФД: 139634 [11:34:41]line ФПД: 89313923579181 [11:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139634&fm=89313923579181&tin=02508201610067®Number=0000000000091631&sum=60000 [11:34:41]written 0, free lines is 4095 [11:34:41]OFD Sender: Processing packet 139634 [packets to send 34, broken 33] [11:34:41]ProducePacketName [11:34:41]name=ofd_packets/00139634 [11:34:41]OFD Sender: To server: pG, [11:34:41]CommunicateWithHost lk.salyk.kg:30040 [11:34:41]ConnectInit lk.salyk.kg [11:34:42]Connected sock=10 [11:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 74 AB 07 01 C2 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 59 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 51 3B 04 B0 3D 2D 63 D4 97 E1 2B 19 23 7D [11:34: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 4D 73 47 00 2C 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 21 02 00 F4 03 04 00 07 17 23 67 B6 04 01 00 00 AE 9C D9 F3 E7 2F 8D D9 [11:34:42]CommunicateWithHost err = 0 [11:34:42]CheckOFDResponse [11:34:42]1017 (14) - 77093643461234 [11:34:42]1041 (16) - 0000000000874669 [11:34:42]1040 (4) - 139634 [11:34:42]1012 (4) - 31.10.2024 05:35 [11:34:42]1206 (1) - 0 [11:34:42]OFD Sender: Remove packet 139634 [11:34:42]ProducePacketName [11:34:42]name=ofd_packets/00139634 [11:34:42]NVStorageDeleteData [11:34:42]Write to MH i2c: 01 00 00 40 85 C5 [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: 01 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: 01 07 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: 01 07 00 40 85 00 00 00 00 00 E9 0C C1 [11:34:42]RasterBufferAndPrint [11:34:42]line [11:34:42]line [11:34:42]line [11:34:42]line [11:34:42]line [11:34:42]written 0, free lines is 3314 [11:34:42]MH_Cut [11:34:42]Write to MH i2c: D1 01 00 47 85 01 9E [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: D1 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: D1 01 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: D1 01 00 47 85 00 9D [11:34:42]Write to MH i2c: 01 00 00 48 85 CD [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]OFD Sender: No OFD packet to send [11:34:43]*** Cut start [11:34:43]*** Partial cut [11:34:43]*** CUTSNS_PIN = 1 [11:34:43]*** CUTSNS_PIN = 0 [11:34:43]*** Brake cut motor [11:34:43]Read from MH i2c: 01 [11:34:43]MH_I2C_Read... [11:34:43]*** Stop cut motor [11:34:43]*** Cut end [11:34:43]Read from MH i2c: 01 07 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: 01 07 00 48 85 00 00 00 00 00 FF 0F E2 [11:34:43]process_action close_receipt done [11:34:43]requested_data is exist [11:34:43]produce_requested_data [11:34:43]requested_item fm.sn is exist - process it [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 11 00 00 [11:34:43]Write to MH i2c: E2 08 00 49 85 80 11 00 00 00 00 00 00 48 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 17 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 17 00 49 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A3 [11: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 [11:34:43]wFMCommunicate OK [11:34:43]requested_item fd.num is exist - process it [11:34:43]SAM_PROTO_GetFieldsCounters [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 13 00 00 [11:34:43]Write to MH i2c: E2 08 00 4A 85 80 13 00 00 00 00 00 00 4B [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 62 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 62 00 4A 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 80 [11:34: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 72 21 02 00 0E 04 04 00 2D 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:34:43]wFMCommunicate OK [11:34:43]SAM_PROTO_GetFieldsCounters done [11:34:43]requested_item shift.num is exist - process it [11:34:43]requested_item shift.opened is exist - process it [11:34:43]req_shift_opened [11:34:43]FM_GetShiftState [11:34:43]SAM_PROTO_GetShiftState [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 13 01 00 [11:34:43]Write to MH i2c: E2 08 00 4B 85 80 13 01 00 00 00 00 00 4D [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0E 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0E 00 4B 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 76 [11:34:43]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:34:43]wFMCommunicate OK [11:34:43]SAM_PROTO_GetShiftState done [11:34:43]FM_GetShiftState done [11:34:43]req_shift_opened done [11:34:43]requested_item shift.open_date is exist - process it [11:34:43]req_shift_open_date [11:34:43]req_shift_open_date done [11:34:43]produce_requested_data done [11:34:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139634,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:34:43]process_action_free close_receipt [11:34:43]json_value_free [11:34:43]json_value_free done [11:34:43]process_json_proto returns [11:34:43]Send response to host [11:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139634,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:34:43]free response buf [11:34:43]execute_script done [11:34:43]execute_script returns [11:34:43]free content buf [11:34:43]Sock 8.Close socket [11:34:43]Sock 8.Thread stoped [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:44]accept exits with 9 [11:36:44]New connection [11:36:44]New thread 3067284836 created [11:36:44]Thread 3067141476 joined [11:36:44]Waiting for new connection... [11:36:44] Sock 9.Parse request [11:36:44]Sock 9.Check first char [11:36:44]Sock 9.First char is OK [11:36:44]request: POST /json_proto HTTP/1.0 [11:36:44]Method: POST [11:36:44]URL: /json_proto [11:36:44]Method is POST - this is cgi request [11:36:44]url: /json_proto [11:36:44]query_string will be loaded in cgi processing [11:36:44]execute_cgi json_proto POST (null) [11:36:44]execute_cgi path=json_proto method=POST [11:36:44]POST find Content-Length [11:36:44]Host: 172.17.50.196:8080 [11:36:44]Content-Length: 641 [11:36:44]Content-Type: application/json [11:36:44] [11:36:44]POST finish read [11:36:44]Found Content-Length = 641 [11:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095115", "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" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:44]execute_script... [11:36:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095115", "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" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:44]POST & json_proto [11:36:44]process_json_proto [11:36:44]json parsed OK: [11:36:44]protocol is kg_v1.0 [11:36:44]action value=close_receipt [11:36:44]process_action close_receipt [11:36:44]cmd_close_receipt [11:36:44]MH_GetDate [11:36:44]Write to MH i2c: F0 00 00 4C 85 C0 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: F0 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: F0 09 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: F0 09 00 4C 85 00 D6 6B 23 67 72 0D 1C 67 96 [11:36:44]GetLastDocTimeStamp 1730374489 [11:36:44]current date 1730374614 [11:36:44]FM_GetShiftState [11:36:44]SAM_PROTO_GetShiftState [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 13 01 00 [11:36:44]Write to MH i2c: E2 08 00 4D 85 80 13 01 00 00 00 00 00 4F [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:44]Read from MH i2c: E2 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 0E 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 0E 00 4D 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 78 [11:36:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:36:44]wFMCommunicate OK [11:36:44]SAM_PROTO_GetShiftState done [11:36:44]FM_GetShiftState done [11:36:44]opened in 1730332621 [11:36:44]opened+sec_in_day 1730419021 [11:36:44]quantity*price = 66900 [11:36:44]sum+1 = 66901 [11:36:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 112 31.10.2024 11:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139635 ФПД: 87701537890505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113654&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139635&fm=87701537890505&tin=02508201610067®Number=0000000000091631&sum=66900 [11:36:45]StoreToDocumentArchive [11:36:45]shift 557 fd 139635 [11:36:45]save to /storage/0557/doc_00139635 [11:36:45]save last doc name /storage/0557/doc_00139635 to /storage/kkm_last_doc_name [11:36:45]save OK [11:36:45]Clear old archive folders... [11:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:45]tlvbuf is 01163980 [11:36:45]SAM_PROTO_ClearQueue [11:36:45]wFMCommunicate request_size=4 [11:36:45]MH_SAM_APDU [11:36:45]CAPDU: 80 09 00 00 [11:36:45]Write to MH i2c: E2 08 00 5A 85 80 09 00 00 00 00 00 00 51 [11:36:45]Write i2c OK [11:36:45]MH_I2C_Read... [11:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:45]Read from MH i2c: E2 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 03 00 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 03 00 5A 85 00 90 00 53 [11:36:45]RAPDU: 90 00 [11:36:45]wFMCommunicate OK [11:36:45]SAM_PROTO_ClearQueue done [11:36:45]KKMCreateOFDPacket [11:36:45]OFDProtocolAddRootSTLVToBuf [11:36:45]FM_MakeSignedData [11:36:45]FM_MakeSignedData [11:36:45]SAM_PROTO_SignData [11:36:45]wFMCommunicate request_size=4 [11:36:45]MH_SAM_APDU [11:36:45]CAPDU: 80 0D 01 02 [11:36:45]Write to MH i2c: E2 08 00 5B 85 80 0D 01 02 00 00 00 00 59 [11:36:45]Write i2c OK [11:36:45]MH_I2C_Read... [11:36:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:45]Read from MH i2c: E2 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 03 00 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 03 00 5B 85 00 90 00 54 [11:36:45]RAPDU: 90 00 [11:36:45]wFMCommunicate OK [11:36:45]wFMCommunicate request_size=255 [11:36:45]MH_SAM_APDU [11:36:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 D6 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4F [11:36:45]Write to MH i2c: E2 02 01 5C 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 D6 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4F 00 00 60 [11:36:45]Write i2c OK [11:36:45]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 5C 85 00 90 00 55 [11:36:46]RAPDU: 90 00 [11:36:46]wFMCommunicate OK [11:36:46]wFMCommunicate request_size=10 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 0D 02 02 05 C3 9B 03 20 C9 [11:36:46]Write to MH i2c: E2 0D 00 5D 85 80 0D 02 02 05 00 C3 9B 03 20 C9 00 00 B0 [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 5D 85 00 90 00 56 [11:36:46]RAPDU: 90 00 [11:36:46]wFMCommunicate OK [11:36:46]wFMCommunicate request_size=4 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 0D 03 02 [11:36:46]Write to MH i2c: E2 08 00 5E 85 80 0D 03 02 00 00 00 00 5E [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 0B 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 0B 00 5E 85 00 69 2D E9 91 EA 1C 92 99 90 00 A0 [11:36:46]RAPDU: 69 2D E9 91 EA 1C 92 99 90 00 [11:36:46]wFMCommunicate OK [11:36:46]SAM_PROTO_SignData done [11:36:46]FM_MakeSignedData done [11:36:46]CreateOFDProtocolMessage [11:36:46]wFMCommunicate request_size=4 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 11 00 00 [11:36:46]Write to MH i2c: E2 08 00 5F 85 80 11 00 00 00 00 00 00 5E [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 17 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 17 00 5F 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B9 [11:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:36:46]wFMCommunicate OK [11:36:46]CreateOFDProtocolMessage done [11:36:46]OFDSenderStorePacket 139635 [11:36:46]StoreOFDPacket docnum=139635 [11:36: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 0F 01 00 00 F4 47 07 01 00 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 D6 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4F C3 9B 03 20 C9 69 2D E9 91 EA 1C 92 99 [11:36:46]CheckFolder [11:36:46]dirname=/storage/ofd_packets [11:36:46]CheckFolder done [11:36:46]ProducePacketName [11:36:46]name=ofd_packets/00139635 [11:36:46]NVStorageSaveData ofd_packets/00139635 [11:36:46]File name is /storage/ofd_packets/00139635 [11:36:46]Write 301 bytes [11:36:46]NVStorageSaveData done [11:36:46]OFDSenderStorePacket done [11:36:46]KKMCreateOFDPacket done [11:36:46]NVStorageSaveData kkm_last_timestamp [11:36:46]File name is /storage/kkm_last_timestamp [11:36:46]Write 4 bytes [11:36:46]NVStorageSaveData done [11:36:46]ExternCall_PrintAddStr [11:36:46]wPrintStart [11:36:46]Write to MH i2c: 01 00 00 60 85 E5 [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: 01 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: 01 07 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: 01 07 00 60 85 00 00 00 00 00 FF 0F FA [11:36:46]RasterBufferAndPrint [11:36:46]line Счет N : (1)1095115 [11:36:46]line ИНН: 02508201610067 [11:36:46]line Контрольно-Кассовый Чек [11:36:46]line ПРОДАЖА [11:36:46]line ТРК (МРК, ГНК) : 63 [11:36:46]line Товар: 2710124130 [11:36:46]line Аи-92-К-2 [11:36:46]line 10.000 * 66.90 [11:36:46]line = 669.00 [11:36:46]line НДС 12% НСП 1% [11:36:46]line > о реализуемом товаре [11:36:46]line ИТОГО: 669.00 [11:36:46]line НСП 1% : 5.92 [11:36:46]line НДС 12% : 71.04 [11:36:46]line Наличными: 669.00 [11:36:46]line Безнал.: 0.00 [11:36:46]line Место: АЗС № 101 "Партнер Нефть" [11:36:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:36:46]line СНО: Общий режим [11:36:46]line Чек 112 31.10.2024 11:36 [11:36:46]line Смена: 557 ФФД: 1.0 [11:36:46]line ЗНМ: 0300000081 [11:36:46]line РНМ: 0000000000091631 [11:36:46]line Версия ККМ: 001 [11:36:46]line ФМ: 0000000000874669 [11:36:46]line ФД: 139635 [11:36:46]line ФПД: 87701537890505 [11:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113654&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139635&fm=87701537890505&tin=02508201610067®Number=0000000000091631&sum=66900 [11:36:46]written 0, free lines is 4095 [11:36:46]OFD Sender: Processing packet 139635 [packets to send 34, broken 33] [11:36:46]ProducePacketName [11:36:46]name=ofd_packets/00139635 [11:36:46]OFD Sender: To server: pG, [11:36:46]CommunicateWithHost lk.salyk.kg:30040 [11:36:46]ConnectInit lk.salyk.kg [11:36:46]Connected sock=10 [11:36: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 0F 01 00 00 F4 47 07 01 00 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 D6 6B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4F C3 9B 03 20 C9 69 2D E9 91 EA 1C 92 99 [11:36: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 04 35 47 00 1E 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 21 02 00 F4 03 04 00 84 17 23 67 B6 04 01 00 00 B1 9E F8 78 0B 0E DE A6 [11:36:46]CommunicateWithHost err = 0 [11:36:46]CheckOFDResponse [11:36:46]1017 (14) - 77093643461234 [11:36:46]1041 (16) - 0000000000874669 [11:36:46]1040 (4) - 139635 [11:36:46]1012 (4) - 31.10.2024 05:37 [11:36:46]1206 (1) - 0 [11:36:46]OFD Sender: Remove packet 139635 [11:36:46]ProducePacketName [11:36:46]name=ofd_packets/00139635 [11:36:46]NVStorageDeleteData [11:36:47]Write to MH i2c: 01 00 00 88 85 0D [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: 01 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: 01 07 00 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: 01 07 00 88 85 00 00 00 00 00 1B 0D 3C [11:36:47]RasterBufferAndPrint [11:36:47]line [11:36:47]line [11:36:47]line [11:36:47]line [11:36:47]line [11:36:47]written 0, free lines is 3361 [11:36:47]MH_Cut [11:36:47]Write to MH i2c: D1 01 00 8F 85 01 E6 [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: D1 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: D1 01 00 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: D1 01 00 8F 85 00 E5 [11:36:47]Write to MH i2c: 01 00 00 90 85 15 [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]OFD Sender: No OFD packet to send [11:36:47]*** Cut start [11:36:47]*** Partial cut [11:36:47]*** CUTSNS_PIN = 1 [11:36:47]*** CUTSNS_PIN = 0 [11:36:48]*** Brake cut motor [11:36:48]Read from MH i2c: 01 [11:36:48]MH_I2C_Read... [11:36:48]*** Stop cut motor [11:36:48]*** Cut end [11:36:48]Read from MH i2c: 01 07 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: 01 07 00 90 85 00 00 00 00 00 FF 0F 2A [11:36:48]process_action close_receipt done [11:36:48]requested_data is exist [11:36:48]produce_requested_data [11:36:48]requested_item fm.sn is exist - process it [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 11 00 00 [11:36:48]Write to MH i2c: E2 08 00 91 85 80 11 00 00 00 00 00 00 90 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 17 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 17 00 91 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EB [11:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:36:48]wFMCommunicate OK [11:36:48]requested_item fd.num is exist - process it [11:36:48]SAM_PROTO_GetFieldsCounters [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 13 00 00 [11:36:48]Write to MH i2c: E2 08 00 92 85 80 13 00 00 00 00 00 00 93 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 62 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 62 00 92 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 CC [11:36: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 73 21 02 00 0E 04 04 00 2D 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:36:48]wFMCommunicate OK [11:36:48]SAM_PROTO_GetFieldsCounters done [11:36:48]requested_item shift.num is exist - process it [11:36:48]requested_item shift.opened is exist - process it [11:36:48]req_shift_opened [11:36:48]FM_GetShiftState [11:36:48]SAM_PROTO_GetShiftState [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 13 01 00 [11:36:48]Write to MH i2c: E2 08 00 93 85 80 13 01 00 00 00 00 00 95 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 0E 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 0E 00 93 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BE [11:36:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:36:48]wFMCommunicate OK [11:36:48]SAM_PROTO_GetShiftState done [11:36:48]FM_GetShiftState done [11:36:48]req_shift_opened done [11:36:48]requested_item shift.open_date is exist - process it [11:36:48]req_shift_open_date [11:36:48]req_shift_open_date done [11:36:48]produce_requested_data done [11:36:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139635,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:36:48]process_action_free close_receipt [11:36:48]json_value_free [11:36:48]json_value_free done [11:36:48]process_json_proto returns [11:36:48]Send response to host [11:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139635,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:36:48]free response buf [11:36:48]execute_script done [11:36:48]execute_script returns [11:36:48]free content buf [11:36:48]Sock 9.Close socket [11:36:48]Sock 9.Thread stoped [11:36:50]accept exits with 8 [11:36:50]New connection [11:36:50]New thread 3067141476 created [11:36:50]Thread 3067284836 joined [11:36:50]Waiting for new connection... [11:36:50] Sock 8.Parse request [11:36:50]Sock 8.Check first char [11:36:50]Sock 8.First char is OK [11:36:50]request: POST /json_proto HTTP/1.0 [11:36:50]Method: POST [11:36:50]URL: /json_proto [11:36:50]Method is POST - this is cgi request [11:36:50]url: /json_proto [11:36:50]query_string will be loaded in cgi processing [11:36:50]execute_cgi json_proto POST (null) [11:36:50]execute_cgi path=json_proto method=POST [11:36:50]POST find Content-Length [11:36:50]Host: 172.17.50.196:8080 [11:36:50]Content-Length: 698 [11:36:50]Content-Type: application/json [11:36:50] [11:36:50]POST finish read [11:36:50]Found Content-Length = 698 [11:36:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139635, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095115", "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" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:50]execute_script... [11:36:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139635, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095115", "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" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:50]POST & json_proto [11:36:50]process_json_proto [11:36:50]json parsed OK: [11:36:50]protocol is kg_v1.0 [11:36:50]action value=close_receipt [11:36:50]process_action close_receipt [11:36:50]cmd_close_receipt [11:36:50]MH_GetDate [11:36:50]Write to MH i2c: F0 00 00 94 85 08 [11:36:50]Write i2c OK [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: F0 [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: F0 09 00 [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: F0 09 00 94 85 00 DC 6B 23 67 72 0D 1C 67 E4 [11:36:50]GetLastDocTimeStamp 1730374614 [11:36:50]current date 1730374620 [11:36:50]FM_GetShiftState [11:36:50]SAM_PROTO_GetShiftState [11:36:50]wFMCommunicate request_size=4 [11:36:50]MH_SAM_APDU [11:36:50]CAPDU: 80 13 01 00 [11:36:50]Write to MH i2c: E2 08 00 95 85 80 13 01 00 00 00 00 00 97 [11:36:50]Write i2c OK [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: E2 [11:36:50]MH_I2C_Read... [11:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:50]Read from MH i2c: E2 0E 00 [11:36:50]MH_I2C_Read... [11:36:50]Read from MH i2c: E2 0E 00 95 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C0 [11:36:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:36:50]wFMCommunicate OK [11:36:50]SAM_PROTO_GetShiftState done [11:36:50]FM_GetShiftState done [11:36:50]opened in 1730332621 [11:36:50]opened+sec_in_day 1730419021 [11:36:50]quantity*price = 66900 [11:36:50]sum+1 = 66901 [11:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 113 31.10.2024 11:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФД осн.: 139635 ФМ осн.: 0000000000874669 ФМ: 0000000000874669 ФД: 139636 ФПД: 222711941809745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113700&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139636&fm=222711941809745&tin=02508201610067®Number=0000000000091631&sum=66900 [11:36:52]StoreToDocumentArchive [11:36:52]shift 557 fd 139636 [11:36:52]save to /storage/0557/doc_00139636 [11:36:52]save last doc name /storage/0557/doc_00139636 to /storage/kkm_last_doc_name [11:36:52]save OK [11:36:52]Clear old archive folders... [11:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=279 [11:36:52]tlvbuf is 01336B90 [11:36:52]SAM_PROTO_ClearQueue [11:36:52]wFMCommunicate request_size=4 [11:36:52]MH_SAM_APDU [11:36:52]CAPDU: 80 09 00 00 [11:36:52]Write to MH i2c: E2 08 00 A4 85 80 09 00 00 00 00 00 00 9B [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 A4 85 00 90 00 9D [11:36:52]RAPDU: 90 00 [11:36:52]wFMCommunicate OK [11:36:52]SAM_PROTO_ClearQueue done [11:36:52]KKMCreateOFDPacket [11:36:52]OFDProtocolAddRootSTLVToBuf [11:36:52]FM_MakeSignedData [11:36:52]FM_MakeSignedData [11:36:52]SAM_PROTO_SignData [11:36:52]wFMCommunicate request_size=4 [11:36:52]MH_SAM_APDU [11:36:52]CAPDU: 80 0D 01 02 [11:36:52]Write to MH i2c: E2 08 00 A5 85 80 0D 01 02 00 00 00 00 A3 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 A5 85 00 90 00 9E [11:36:52]RAPDU: 90 00 [11:36:52]wFMCommunicate OK [11:36:52]wFMCommunicate request_size=255 [11:36:52]MH_SAM_APDU [11:36:52]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 DC 6B 23 67 0E 04 04 00 2D 02 00 00 B9 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 73 21 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 [11:36:52]Write to MH i2c: E2 02 01 A6 85 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 DC 6B 23 67 0E 04 04 00 2D 02 00 00 B9 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 73 21 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 00 00 C4 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 A6 85 00 90 00 9F [11:36:52]RAPDU: 90 00 [11:36:52]wFMCommunicate OK [11:36:52]wFMCommunicate request_size=38 [11:36:52]MH_SAM_APDU [11:36:52]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 74 21 02 00 35 04 06 00 CA 8E 2A 2D C6 51 [11:36:52]Write to MH i2c: E2 29 00 A7 85 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 74 21 02 00 35 04 06 00 CA 8E 2A 2D C6 51 00 00 94 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]OFD Sender: No OFD packet to send [11:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 03 00 A7 85 00 90 00 A0 [11:36:52]RAPDU: 90 00 [11:36:52]wFMCommunicate OK [11:36:52]wFMCommunicate request_size=4 [11:36:52]MH_SAM_APDU [11:36:52]CAPDU: 80 0D 03 02 [11:36:52]Write to MH i2c: E2 08 00 A8 85 80 0D 03 02 00 00 00 00 A8 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 0B 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 0B 00 A8 85 00 CF A9 9A 29 F7 43 CD 67 90 00 52 [11:36:52]RAPDU: CF A9 9A 29 F7 43 CD 67 90 00 [11:36:52]wFMCommunicate OK [11:36:52]SAM_PROTO_SignData done [11:36:52]FM_MakeSignedData done [11:36:52]CreateOFDProtocolMessage [11:36:52]wFMCommunicate request_size=4 [11:36:52]MH_SAM_APDU [11:36:52]CAPDU: 80 11 00 00 [11:36:52]Write to MH i2c: E2 08 00 A9 85 80 11 00 00 00 00 00 00 A8 [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 [11:36:52]MH_I2C_Read... [11:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:52]Read from MH i2c: E2 17 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: E2 17 00 A9 85 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:36: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:36:52]wFMCommunicate OK [11:36:52]CreateOFDProtocolMessage done [11:36:52]OFDSenderStorePacket 139636 [11:36:52]StoreOFDPacket docnum=139636 [11:36: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 2B 01 00 00 53 DC 23 01 75 E4 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 DC 6B 23 67 0E 04 04 00 2D 02 00 00 B9 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 73 21 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 74 21 02 00 35 04 06 00 CA 8E 2A 2D C6 51 CF A9 9A 29 F7 43 CD 67 [11:36:52]CheckFolder [11:36:52]dirname=/storage/ofd_packets [11:36:52]CheckFolder done [11:36:52]ProducePacketName [11:36:52]name=ofd_packets/00139636 [11:36:52]NVStorageSaveData ofd_packets/00139636 [11:36:52]File name is /storage/ofd_packets/00139636 [11:36:52]Write 329 bytes [11:36:52]NVStorageSaveData done [11:36:52]OFDSenderStorePacket done [11:36:52]KKMCreateOFDPacket done [11:36:52]NVStorageSaveData kkm_last_timestamp [11:36:52]File name is /storage/kkm_last_timestamp [11:36:52]Write 4 bytes [11:36:52]NVStorageSaveData done [11:36:52]ExternCall_PrintAddStr [11:36:52]wPrintStart [11:36:52]Write to MH i2c: 01 00 00 AA 85 2F [11:36:52]Write i2c OK [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 07 00 [11:36:52]MH_I2C_Read... [11:36:52]Read from MH i2c: 01 07 00 AA 85 00 00 00 00 00 FF 0F 44 [11:36:52]RasterBufferAndPrint [11:36:52]line Счет N : (1)1095115 [11:36:52]line ИНН: 02508201610067 [11:36:52]line Контрольно-Кассовый Чек [11:36:52]line ВОЗВРАТ ПРОДАЖИ [11:36:52]line ТРК (МРК, ГНК) : 63 [11:36:52]line Товар: 2710124130 [11:36:52]line Аи-92-К-2 [11:36:52]line 10.000 * 66.90 [11:36:52]line = 669.00 [11:36:52]line НДС 12% НСП 1% [11:36:52]line > о реализуемом товаре [11:36:52]line ИТОГО: 669.00 [11:36:52]line НСП 1% : 5.92 [11:36:52]line НДС 12% : 71.04 [11:36:52]line Наличными: 669.00 [11:36:52]line Безнал.: 0.00 [11:36:52]line Место: АЗС № 101 "Партнер Нефть" [11:36:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:36:52]line СНО: Общий режим [11:36:52]line Чек 113 31.10.2024 11:37 [11:36:52]line Смена: 557 ФФД: 1.0 [11:36:52]line ЗНМ: 0300000081 [11:36:52]line РНМ: 0000000000091631 [11:36:52]line Версия ККМ: 001 [11:36:52]line ФД осн.: 139635 [11:36:52]line ФМ осн.: 0000000000874669 [11:36:52]line ФМ: 0000000000874669 [11:36:52]line ФД: 139636 [11:36:52]line ФПД: 222711941809745 [11:36:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113700&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139636&fm=222711941809745&tin=02508201610067®Number=0000000000091631&sum=66900 [11:36:52]written 0, free lines is 4095 [11:36:52]OFD Sender: Processing packet 139636 [packets to send 34, broken 33] [11:36:52]ProducePacketName [11:36:52]name=ofd_packets/00139636 [11:36:52]OFD Sender: To server: pG, [11:36:52]CommunicateWithHost lk.salyk.kg:30040 [11:36:52]ConnectInit lk.salyk.kg [11:36:52]Connected sock=10 [11:36: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 2B 01 00 00 53 DC 23 01 75 E4 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 DC 6B 23 67 0E 04 04 00 2D 02 00 00 B9 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 73 21 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 74 21 02 00 35 04 06 00 CA 8E 2A 2D C6 51 CF A9 9A 29 F7 43 CD 67 [11:36: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 B0 06 47 00 5D 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 74 21 02 00 F4 03 04 00 8A 17 23 67 B6 04 01 00 00 9B C5 93 A1 7F 0A 77 BF [11:36:52]CommunicateWithHost err = 0 [11:36:52]CheckOFDResponse [11:36:52]1017 (14) - 77093643461234 [11:36:52]1041 (16) - 0000000000874669 [11:36:52]1040 (4) - 139636 [11:36:52]1012 (4) - 31.10.2024 05:37 [11:36:52]1206 (1) - 0 [11:36:52]OFD Sender: Remove packet 139636 [11:36:52]ProducePacketName [11:36:52]name=ofd_packets/00139636 [11:36:52]NVStorageDeleteData [11:36:53]Write to MH i2c: 01 00 00 D4 85 59 [11:36:53]Write i2c OK [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: 01 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: 01 07 00 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: 01 07 00 D4 85 00 00 00 00 00 1E 0D 8B [11:36:53]RasterBufferAndPrint [11:36:53]line [11:36:53]line [11:36:53]line [11:36:53]line [11:36:53]line [11:36:53]written 0, free lines is 3370 [11:36:53]MH_Cut [11:36:53]Write to MH i2c: D1 01 00 DB 85 01 32 [11:36:53]Write i2c OK [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: D1 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: D1 01 00 [11:36:53]MH_I2C_Read... [11:36:53]Read from MH i2c: D1 01 00 DB 85 00 31 [11:36:53]Write to MH i2c: 01 00 00 DC 85 61 [11:36:53]Write i2c OK [11:36:53]MH_I2C_Read... [11:36:53]OFD Sender: No OFD packet to send [11:36:53]*** Cut start [11:36:53]*** Partial cut [11:36:53]*** CUTSNS_PIN = 1 [11:36:53]*** CUTSNS_PIN = 0 [11:36:54]*** Brake cut motor [11:36:54]Read from MH i2c: 01 [11:36:54]MH_I2C_Read... [11:36:54]*** Stop cut motor [11:36:54]*** Cut end [11:36:54]Read from MH i2c: 01 07 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: 01 07 00 DC 85 00 00 00 00 00 FF 0F 76 [11:36:54]process_action close_receipt done [11:36:54]requested_data is exist [11:36:54]produce_requested_data [11:36:54]requested_item fm.sn is exist - process it [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 11 00 00 [11:36:54]Write to MH i2c: E2 08 00 DD 85 80 11 00 00 00 00 00 00 DC [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 17 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 17 00 DD 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 37 [11:36: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:36:54]wFMCommunicate OK [11:36:54]requested_item fd.num is exist - process it [11:36:54]SAM_PROTO_GetFieldsCounters [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 13 00 00 [11:36:54]Write to MH i2c: E2 08 00 DE 85 80 13 00 00 00 00 00 00 DF [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 62 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 62 00 DE 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 1C [11:36: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 74 21 02 00 0E 04 04 00 2D 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:36:54]wFMCommunicate OK [11:36:54]SAM_PROTO_GetFieldsCounters done [11:36:54]requested_item shift.num is exist - process it [11:36:54]requested_item shift.opened is exist - process it [11:36:54]req_shift_opened [11:36:54]FM_GetShiftState [11:36:54]SAM_PROTO_GetShiftState [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 13 01 00 [11:36:54]Write to MH i2c: E2 08 00 DF 85 80 13 01 00 00 00 00 00 E1 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0E 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0E 00 DF 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0A [11:36:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:36:54]wFMCommunicate OK [11:36:54]SAM_PROTO_GetShiftState done [11:36:54]FM_GetShiftState done [11:36:54]req_shift_opened done [11:36:54]requested_item shift.open_date is exist - process it [11:36:54]req_shift_open_date [11:36:54]req_shift_open_date done [11:36:54]produce_requested_data done [11:36:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139636,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:36:54]process_action_free close_receipt [11:36:54]json_value_free [11:36:54]json_value_free done [11:36:54]process_json_proto returns [11:36:54]Send response to host [11:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139636,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:36:54]free response buf [11:36:54]execute_script done [11:36:54]execute_script returns [11:36:54]free content buf [11:36:54]Sock 8.Close socket [11:36:54]Sock 8.Thread stoped [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:04]accept exits with 9 [11:38:04]New connection [11:38:04]New thread 3067284836 created [11:38:04]Thread 3067141476 joined [11:38:04]Waiting for new connection... [11:38:04] Sock 9.Parse request [11:38:04]Sock 9.Check first char [11:38:04]Sock 9.First char is OK [11:38:04]request: POST /json_proto HTTP/1.0 [11:38:04]Method: POST [11:38:04]URL: /json_proto [11:38:04]Method is POST - this is cgi request [11:38:04]url: /json_proto [11:38:04]query_string will be loaded in cgi processing [11:38:04]execute_cgi json_proto POST (null) [11:38:04]execute_cgi path=json_proto method=POST [11:38:04]POST find Content-Length [11:38:04]Host: 172.17.50.196:8080 [11:38:04]Content-Length: 683 [11:38:04]Content-Type: application/json [11:38:04] [11:38:04]POST finish read [11:38:04]Found Content-Length = 683 [11:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095114", "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" : 37.370, "sum" : 2500.05, "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" ] } } [11:38:04]execute_script... [11:38: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 : (1)1095114", "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" : 37.370, "sum" : 2500.05, "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" ] } } [11:38:04]POST & json_proto [11:38:04]process_json_proto [11:38:04]json parsed OK: [11:38:04]protocol is kg_v1.0 [11:38:04]action value=close_receipt [11:38:04]process_action close_receipt [11:38:04]cmd_close_receipt [11:38:04]MH_GetDate [11:38:04]Write to MH i2c: F0 00 00 E0 85 54 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: F0 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: F0 09 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: F0 09 00 E0 85 00 26 6C 23 67 72 0D 1C 67 7B [11:38:04]GetLastDocTimeStamp 1730374620 [11:38:04]current date 1730374694 [11:38:04]FM_GetShiftState [11:38:04]SAM_PROTO_GetShiftState [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 13 01 00 [11:38:04]Write to MH i2c: E2 08 00 E1 85 80 13 01 00 00 00 00 00 E3 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0E 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0E 00 E1 85 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0C [11:38:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_GetShiftState done [11:38:04]FM_GetShiftState done [11:38:04]opened in 1730332621 [11:38:04]opened+sec_in_day 1730419021 [11:38:04]quantity*price = 250005 [11:38:04]sum+1 = 250006 [11:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 114 31.10.2024 11:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139637 ФПД: 90560127050967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113814&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139637&fm=90560127050967&tin=02508201610067®Number=0000000000091631&sum=250000 [11:38:05]StoreToDocumentArchive [11:38:05]shift 557 fd 139637 [11:38:05]save to /storage/0557/doc_00139637 [11:38:05]save last doc name /storage/0557/doc_00139637 to /storage/kkm_last_doc_name [11:38:05]save OK [11:38:05]Clear old archive folders... [11:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:05]tlvbuf is 011638F0 [11:38:05]SAM_PROTO_ClearQueue [11:38:05]wFMCommunicate request_size=4 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 09 00 00 [11:38:05]Write to MH i2c: E2 08 00 EE 85 80 09 00 00 00 00 00 00 E5 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 EE 85 00 90 00 E7 [11:38:05]RAPDU: 90 00 [11:38:05]wFMCommunicate OK [11:38:05]SAM_PROTO_ClearQueue done [11:38:05]KKMCreateOFDPacket [11:38:05]OFDProtocolAddRootSTLVToBuf [11:38:05]FM_MakeSignedData [11:38:05]FM_MakeSignedData [11:38:05]SAM_PROTO_SignData [11:38:05]wFMCommunicate request_size=4 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 0D 01 02 [11:38:05]Write to MH i2c: E2 08 00 EF 85 80 0D 01 02 00 00 00 00 ED [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 EF 85 00 90 00 E8 [11:38:05]RAPDU: 90 00 [11:38:05]wFMCommunicate OK [11:38:05]wFMCommunicate request_size=255 [11:38:05]MH_SAM_APDU [11:38:05]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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 72 00 00 00 F4 03 04 00 26 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 52 [11:38:05]Write to MH i2c: E2 02 01 F0 85 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 72 00 00 00 F4 03 04 00 26 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 52 00 00 5B [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 F0 85 00 90 00 E9 [11:38:05]RAPDU: 90 00 [11:38:05]wFMCommunicate OK [11:38:05]wFMCommunicate request_size=10 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 0D 02 02 05 5D 2C 34 24 D7 [11:38:05]Write to MH i2c: E2 0D 00 F1 85 80 0D 02 02 05 00 5D 2C 34 24 D7 00 00 B2 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 F1 85 00 90 00 EA [11:38:05]RAPDU: 90 00 [11:38:05]wFMCommunicate OK [11:38:05]wFMCommunicate request_size=4 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 0D 03 02 [11:38:05]Write to MH i2c: E2 08 00 F2 85 80 0D 03 02 00 00 00 00 F2 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 0B 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 0B 00 F2 85 00 3A 78 A8 2F D8 83 D8 E7 90 00 96 [11:38:05]RAPDU: 3A 78 A8 2F D8 83 D8 E7 90 00 [11:38:05]wFMCommunicate OK [11:38:05]SAM_PROTO_SignData done [11:38:05]FM_MakeSignedData done [11:38:05]CreateOFDProtocolMessage [11:38:05]wFMCommunicate request_size=4 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 11 00 00 [11:38:05]Write to MH i2c: E2 08 00 F3 85 80 11 00 00 00 00 00 00 F2 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 17 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 17 00 F3 85 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:38: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:38:05]wFMCommunicate OK [11:38:05]CreateOFDProtocolMessage done [11:38:05]OFDSenderStorePacket 139637 [11:38:05]StoreOFDPacket docnum=139637 [11:38: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 0F 01 00 00 86 B2 07 01 3F 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 72 00 00 00 F4 03 04 00 26 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 52 5D 2C 34 24 D7 3A 78 A8 2F D8 83 D8 E7 [11:38:05]CheckFolder [11:38:05]dirname=/storage/ofd_packets [11:38:05]CheckFolder done [11:38:05]ProducePacketName [11:38:05]name=ofd_packets/00139637 [11:38:05]NVStorageSaveData ofd_packets/00139637 [11:38:05]File name is /storage/ofd_packets/00139637 [11:38:05]Write 301 bytes [11:38:05]NVStorageSaveData done [11:38:05]OFDSenderStorePacket done [11:38:05]KKMCreateOFDPacket done [11:38:05]NVStorageSaveData kkm_last_timestamp [11:38:05]File name is /storage/kkm_last_timestamp [11:38:05]Write 4 bytes [11:38:05]NVStorageSaveData done [11:38:05]ExternCall_PrintAddStr [11:38:05]wPrintStart [11:38:05]Write to MH i2c: 01 00 00 F4 85 79 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 F4 85 00 00 00 00 00 FF 0F 8E [11:38:05]RasterBufferAndPrint [11:38:05]line Счет N : (1)1095114 [11:38:05]line ИНН: 02508201610067 [11:38:05]line Контрольно-Кассовый Чек [11:38:05]line ПРОДАЖА [11:38:05]line ТРК (МРК, ГНК) : 43 [11:38:05]line Товар: 2710124130 [11:38:05]line Аи-92-К-2 [11:38:05]line 37.370 * 66.90 [11:38:05]line = 2500.05 [11:38:05]line НДС 12% НСП 1% [11:38:05]line > о реализуемом товаре [11:38:05]line ОКРУГЛЕНИЕ: -0.05 [11:38:05]line ИТОГО: 2500.00 [11:38:05]line Внесено: 2500.00 [11:38:05]line СДАЧА: 0.00 [11:38:05]line НСП 1% : 22.12 [11:38:05]line НДС 12% : 265.49 [11:38:05]line Наличными: 2500.00 [11:38:05]line Безнал.: 0.00 [11:38:05]line Место: АЗС № 101 "Партнер Нефть" [11:38:05]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:38:05]line СНО: Общий режим [11:38:05]line Чек 114 31.10.2024 11:38 [11:38:05]line Смена: 557 ФФД: 1.0 [11:38:05]line ЗНМ: 0300000081 [11:38:05]line РНМ: 0000000000091631 [11:38:05]line Версия ККМ: 001 [11:38:05]line ФМ: 0000000000874669 [11:38:05]line ФД: 139637 [11:38:05]line ФПД: 90560127050967 [11:38:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113814&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139637&fm=90560127050967&tin=02508201610067®Number=0000000000091631&sum=250000 [11:38:06]OFD Sender: Processing packet 139637 [packets to send 34, broken 33] [11:38:06]ProducePacketName [11:38:06]name=ofd_packets/00139637 [11:38:06]OFD Sender: To server: pG, [11:38:06]CommunicateWithHost lk.salyk.kg:30040 [11:38:06]ConnectInit lk.salyk.kg [11:38:06]written 0, free lines is 4095 [11:38:06]Connected sock=10 [11:38: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 0F 01 00 00 86 B2 07 01 3F 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 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 72 00 00 00 F4 03 04 00 26 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 52 5D 2C 34 24 D7 3A 78 A8 2F D8 83 D8 E7 [11:38: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 43 A6 47 00 B4 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 75 21 02 00 F4 03 04 00 D4 17 23 67 B6 04 01 00 00 AE 5C 41 10 25 68 B7 4C [11:38:06]CommunicateWithHost err = 0 [11:38:06]CheckOFDResponse [11:38:06]1017 (14) - 77093643461234 [11:38:06]1041 (16) - 0000000000874669 [11:38:06]1040 (4) - 139637 [11:38:06]1012 (4) - 31.10.2024 05:38 [11:38:06]1206 (1) - 0 [11:38:06]OFD Sender: Remove packet 139637 [11:38:06]ProducePacketName [11:38:06]name=ofd_packets/00139637 [11:38:06]NVStorageDeleteData [11:38:06]Write to MH i2c: 01 00 00 1F 86 A5 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 07 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 07 00 1F 86 00 00 00 00 00 01 0D BA [11:38:06]RasterBufferAndPrint [11:38:06]line [11:38:06]line [11:38:06]line [11:38:06]line [11:38:06]line [11:38:06]written 0, free lines is 3335 [11:38:06]MH_Cut [11:38:06]Write to MH i2c: D1 01 00 26 86 01 7E [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: D1 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: D1 01 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: D1 01 00 26 86 00 7D [11:38:06]Write to MH i2c: 01 00 00 27 86 AD [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:07]OFD Sender: No OFD packet to send [11:38:07]*** Cut start [11:38:07]*** Partial cut [11:38:07]*** CUTSNS_PIN = 1 [11:38:07]*** CUTSNS_PIN = 0 [11:38:07]*** Brake cut motor [11:38:07]Read from MH i2c: 01 [11:38:07]MH_I2C_Read... [11:38:07]*** Stop cut motor [11:38:07]*** Cut end [11:38:07]Read from MH i2c: 01 07 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: 01 07 00 27 86 00 00 00 00 00 FF 0F C2 [11:38:07]process_action close_receipt done [11:38:07]requested_data is exist [11:38:07]produce_requested_data [11:38:07]requested_item fm.sn is exist - process it [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 11 00 00 [11:38:07]Write to MH i2c: E2 08 00 28 86 80 11 00 00 00 00 00 00 28 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 17 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 17 00 28 86 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:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:38:08]wFMCommunicate OK [11:38:08]requested_item fd.num is exist - process it [11:38:08]SAM_PROTO_GetFieldsCounters [11:38:08]wFMCommunicate request_size=4 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 13 00 00 [11:38:08]Write to MH i2c: E2 08 00 29 86 80 13 00 00 00 00 00 00 2B [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 62 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 62 00 29 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 6C [11:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:38:08]wFMCommunicate OK [11:38:08]SAM_PROTO_GetFieldsCounters done [11:38:08]requested_item shift.num is exist - process it [11:38:08]requested_item shift.opened is exist - process it [11:38:08]req_shift_opened [11:38:08]FM_GetShiftState [11:38:08]SAM_PROTO_GetShiftState [11:38:08]wFMCommunicate request_size=4 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 13 01 00 [11:38:08]Write to MH i2c: E2 08 00 2A 86 80 13 01 00 00 00 00 00 2D [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 0E 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 0E 00 2A 86 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 56 [11:38:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:08]wFMCommunicate OK [11:38:08]SAM_PROTO_GetShiftState done [11:38:08]FM_GetShiftState done [11:38:08]req_shift_opened done [11:38:08]requested_item shift.open_date is exist - process it [11:38:08]req_shift_open_date [11:38:08]req_shift_open_date done [11:38:08]produce_requested_data done [11:38:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139637,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:38:08]process_action_free close_receipt [11:38:08]json_value_free [11:38:08]json_value_free done [11:38:08]process_json_proto returns [11:38:08]Send response to host [11:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139637,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:38:08]free response buf [11:38:08]execute_script done [11:38:08]execute_script returns [11:38:08]free content buf [11:38:08]Sock 9.Close socket [11:38:08]Sock 9.Thread stoped [11:38:08]accept exits with 8 [11:38:08]New connection [11:38:08]New thread 3067141476 created [11:38:08]Thread 3067284836 joined [11:38:08]Waiting for new connection... [11:38:08] Sock 8.Parse request [11:38:08]Sock 8.Check first char [11:38:08]Sock 8.First char is OK [11:38:08]request: POST /json_proto HTTP/1.0 [11:38:08]Method: POST [11:38:08]URL: /json_proto [11:38:08]Method is POST - this is cgi request [11:38:08]url: /json_proto [11:38:08]query_string will be loaded in cgi processing [11:38:08]execute_cgi json_proto POST (null) [11:38:08]execute_cgi path=json_proto method=POST [11:38:08]POST find Content-Length [11:38:08]Host: 172.17.50.196:8080 [11:38:08]Content-Length: 688 [11:38:08]Content-Type: application/json [11:38:08] [11:38:08]POST finish read [11:38:08]Found Content-Length = 688 [11:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:08]execute_script... [11:38:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:08]POST & json_proto [11:38:08]process_json_proto [11:38:08]json parsed OK: [11:38:08]protocol is kg_v1.0 [11:38:08]action value=close_receipt [11:38:08]process_action close_receipt [11:38:08]cmd_close_receipt [11:38:08]MH_GetDate [11:38:08]Write to MH i2c: F0 00 00 2B 86 A0 [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: F0 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: F0 09 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: F0 09 00 2B 86 00 2A 6C 23 67 72 0D 1C 67 CB [11:38:08]GetLastDocTimeStamp 1730374694 [11:38:08]current date 1730374698 [11:38:08]FM_GetShiftState [11:38:08]SAM_PROTO_GetShiftState [11:38:08]wFMCommunicate request_size=4 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 13 01 00 [11:38:08]Write to MH i2c: E2 08 00 2C 86 80 13 01 00 00 00 00 00 2F [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 0E 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 0E 00 2C 86 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 58 [11:38:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:08]wFMCommunicate OK [11:38:08]SAM_PROTO_GetShiftState done [11:38:08]FM_GetShiftState done [11:38:08]opened in 1730332621 [11:38:08]opened+sec_in_day 1730419021 [11:38:08]quantity*price = 270052 [11:38:08]sum+1 = 270054 [11:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.90 НДС 12% : 286.78 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 115 31.10.2024 11:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139638 ФПД: 118556551256399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113818&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139638&fm=118556551256399&tin=02508201610067®Number=0000000000091631&sum=270000 [11:38:09]StoreToDocumentArchive [11:38:09]shift 557 fd 139638 [11:38:09]save to /storage/0557/doc_00139638 [11:38:09]save last doc name /storage/0557/doc_00139638 to /storage/kkm_last_doc_name [11:38:09]save OK [11:38:09]Clear old archive folders... [11:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:38:09]tlvbuf is 011E0F60 [11:38:09]SAM_PROTO_ClearQueue [11:38:09]wFMCommunicate request_size=4 [11:38:09]MH_SAM_APDU [11:38:09]CAPDU: 80 09 00 00 [11:38:09]Write to MH i2c: E2 08 00 39 86 80 09 00 00 00 00 00 00 31 [11:38:09]Write i2c OK [11:38:09]MH_I2C_Read... [11:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:09]Read from MH i2c: E2 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: E2 03 00 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: E2 03 00 39 86 00 90 00 33 [11:38:09]RAPDU: 90 00 [11:38:09]wFMCommunicate OK [11:38:09]SAM_PROTO_ClearQueue done [11:38:09]KKMCreateOFDPacket [11:38:09]OFDProtocolAddRootSTLVToBuf [11:38:09]FM_MakeSignedData [11:38:09]FM_MakeSignedData [11:38:09]SAM_PROTO_SignData [11:38:09]wFMCommunicate request_size=4 [11:38:09]MH_SAM_APDU [11:38:09]CAPDU: 80 0D 01 02 [11:38:09]Write to MH i2c: E2 08 00 3A 86 80 0D 01 02 00 00 00 00 39 [11:38:09]Write i2c OK [11:38:09]MH_I2C_Read... [11:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:09]Read from MH i2c: E2 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: E2 03 00 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: E2 03 00 3A 86 00 90 00 34 [11:38:09]RAPDU: 90 00 [11:38:09]wFMCommunicate OK [11:38:09]wFMCommunicate request_size=255 [11:38:09]MH_SAM_APDU [11:38:09]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 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2A 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [11:38:09]Write to MH i2c: E2 02 01 3B 86 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 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2A 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 34 [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 03 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 03 00 3B 86 00 90 00 35 [11:38:10]RAPDU: 90 00 [11:38:10]wFMCommunicate OK [11:38:10]wFMCommunicate request_size=11 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 0D 02 02 06 6B D3 99 1F 99 4F [11:38:10]Write to MH i2c: E2 0E 00 3C 86 80 0D 02 02 06 00 6B D3 99 1F 99 4F 00 00 26 [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 03 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 03 00 3C 86 00 90 00 36 [11:38:10]RAPDU: 90 00 [11:38:10]wFMCommunicate OK [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 0D 03 02 [11:38:10]Write to MH i2c: E2 08 00 3D 86 80 0D 03 02 00 00 00 00 3E [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 0B 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 0B 00 3D 86 00 C7 3B D7 F6 31 0F 6B 6D 90 00 26 [11:38:10]RAPDU: C7 3B D7 F6 31 0F 6B 6D 90 00 [11:38:10]wFMCommunicate OK [11:38:10]SAM_PROTO_SignData done [11:38:10]FM_MakeSignedData done [11:38:10]CreateOFDProtocolMessage [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 11 00 00 [11:38:10]Write to MH i2c: E2 08 00 3E 86 80 11 00 00 00 00 00 00 3E [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 17 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 17 00 3E 86 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:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:38:10]wFMCommunicate OK [11:38:10]CreateOFDProtocolMessage done [11:38:10]OFDSenderStorePacket 139638 [11:38:10]StoreOFDPacket docnum=139638 [11:38: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 10 01 00 00 AA 17 08 01 95 5B 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 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2A 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6B D3 99 1F 99 4F C7 3B D7 F6 31 0F 6B 6D [11:38:10]CheckFolder [11:38:10]dirname=/storage/ofd_packets [11:38:10]CheckFolder done [11:38:10]ProducePacketName [11:38:10]name=ofd_packets/00139638 [11:38:10]NVStorageSaveData ofd_packets/00139638 [11:38:10]File name is /storage/ofd_packets/00139638 [11:38:10]Write 302 bytes [11:38:10]NVStorageSaveData done [11:38:10]OFDSenderStorePacket done [11:38:10]KKMCreateOFDPacket done [11:38:10]NVStorageSaveData kkm_last_timestamp [11:38:10]File name is /storage/kkm_last_timestamp [11:38:10]Write 4 bytes [11:38:10]NVStorageSaveData done [11:38:10]ExternCall_PrintAddStr [11:38:10]wPrintStart [11:38:10]Write to MH i2c: 01 00 00 3F 86 C5 [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: 01 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: 01 07 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: 01 07 00 3F 86 00 00 00 00 00 FF 0F DA [11:38:10]RasterBufferAndPrint [11:38:10]line Счет N : (1)1095116 [11:38:10]line ИНН: 02508201610067 [11:38:10]line Контрольно-Кассовый Чек [11:38:10]line ПРОДАЖА [11:38:10]line ТРК (МРК, ГНК) : 61 [11:38:10]line Товар: 2710194210 [11:38:10]line ДТ(л)-К-2 [11:38:10]line 35.440 * 76.20 [11:38:10]line = 2700.53 [11:38:10]line НДС 12% НСП 1% [11:38:10]line > о реализуемом товаре [11:38:10]line ОКРУГЛЕНИЕ: -0.53 [11:38:10]line ИТОГО: 2700.00 [11:38:10]line Внесено: 2700.00 [11:38:10]line СДАЧА: 0.00 [11:38:10]line НСП 1% : 23.90 [11:38:10]line НДС 12% : 286.78 [11:38:10]line Наличными: 2700.00 [11:38:10]line Безнал.: 0.00 [11:38:10]line Место: АЗС № 101 "Партнер Нефть" [11:38:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:38:10]line СНО: Общий режим [11:38:10]line Чек 115 31.10.2024 11:38 [11:38:10]line Смена: 557 ФФД: 1.0 [11:38:10]line ЗНМ: 0300000081 [11:38:10]line РНМ: 0000000000091631 [11:38:10]line Версия ККМ: 001 [11:38:10]line ФМ: 0000000000874669 [11:38:10]line ФД: 139638 [11:38:10]line ФПД: 118556551256399 [11:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113818&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139638&fm=118556551256399&tin=02508201610067®Number=0000000000091631&sum=270000 [11:38:10]written 0, free lines is 4095 [11:38:10]OFD Sender: Processing packet 139638 [packets to send 34, broken 33] [11:38:10]ProducePacketName [11:38:10]name=ofd_packets/00139638 [11:38:10]OFD Sender: To server: pG, [11:38:10]CommunicateWithHost lk.salyk.kg:30040 [11:38:10]ConnectInit lk.salyk.kg [11:38:11]Connected sock=10 [11:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 AA 17 08 01 95 5B 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 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 2A 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6B D3 99 1F 99 4F C7 3B D7 F6 31 0F 6B 6D [11:38:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0D C0 47 00 A3 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 21 02 00 F4 03 04 00 D8 17 23 67 B6 04 01 00 00 22 B1 01 B0 85 B3 6F 85 [11:38:11]CommunicateWithHost err = 0 [11:38:11]CheckOFDResponse [11:38:11]1017 (14) - 77093643461234 [11:38:11]1041 (16) - 0000000000874669 [11:38:11]1040 (4) - 139638 [11:38:11]1012 (4) - 31.10.2024 05:38 [11:38:11]1206 (1) - 0 [11:38:11]OFD Sender: Remove packet 139638 [11:38:11]ProducePacketName [11:38:11]name=ofd_packets/00139638 [11:38:11]NVStorageDeleteData [11:38:11]Write to MH i2c: 01 00 00 6A 86 F0 [11:38:11]Write i2c OK [11:38:11]MH_I2C_Read... [11:38:11]Read from MH i2c: 01 [11:38:11]MH_I2C_Read... [11:38:11]Read from MH i2c: 01 07 00 [11:38:11]MH_I2C_Read... [11:38:11]Read from MH i2c: 01 07 00 6A 86 00 00 00 00 00 03 0D 07 [11:38:11]RasterBufferAndPrint [11:38:11]line [11:38:11]line [11:38:11]line [11:38:11]line [11:38:11]line [11:38:11]written 0, free lines is 3343 [11:38:11]MH_Cut [11:38:11]Write to MH i2c: D1 01 00 71 86 01 C9 [11:38:11]Write i2c OK [11:38:11]MH_I2C_Read... [11:38:11]Read from MH i2c: D1 [11:38:11]MH_I2C_Read... [11:38:11]Read from MH i2c: D1 01 00 [11:38:11]MH_I2C_Read... [11:38:11]Read from MH i2c: D1 01 00 71 86 00 C8 [11:38:11]Write to MH i2c: 01 00 00 72 86 F8 [11:38:11]Write i2c OK [11:38:11]MH_I2C_Read... [11:38:11]OFD Sender: No OFD packet to send [11:38:12]*** Cut start [11:38:12]*** Partial cut [11:38:12]*** CUTSNS_PIN = 1 [11:38:12]*** CUTSNS_PIN = 0 [11:38:12]*** Brake cut motor [11:38:12]Read from MH i2c: 01 [11:38:12]MH_I2C_Read... [11:38:12]*** Stop cut motor [11:38:12]*** Cut end [11:38:12]Read from MH i2c: 01 07 00 [11:38:12]MH_I2C_Read... [11:38:12]Read from MH i2c: 01 07 00 72 86 00 00 00 00 00 FF 0F 0D [11:38:12]process_action close_receipt done [11:38:12]requested_data is exist [11:38:12]produce_requested_data [11:38:12]requested_item fm.sn is exist - process it [11:38:12]wFMCommunicate request_size=4 [11:38:12]MH_SAM_APDU [11:38:12]CAPDU: 80 11 00 00 [11:38:12]Write to MH i2c: E2 08 00 73 86 80 11 00 00 00 00 00 00 73 [11:38:12]Write i2c OK [11:38:12]MH_I2C_Read... [11:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:12]Read from MH i2c: E2 [11:38:12]MH_I2C_Read... [11:38:12]Read from MH i2c: E2 17 00 [11:38:12]MH_I2C_Read... [11:38:12]Read from MH i2c: E2 17 00 73 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [11:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:38:12]wFMCommunicate OK [11:38:12]requested_item fd.num is exist - process it [11:38:12]SAM_PROTO_GetFieldsCounters [11:38:12]wFMCommunicate request_size=4 [11:38:12]MH_SAM_APDU [11:38:12]CAPDU: 80 13 00 00 [11:38:12]Write to MH i2c: E2 08 00 74 86 80 13 00 00 00 00 00 00 76 [11:38:12]Write i2c OK [11:38:12]MH_I2C_Read... [11:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:12]Read from MH i2c: E2 [11:38:12]MH_I2C_Read... [11:38:12]Read from MH i2c: E2 62 00 [11:38:12]MH_I2C_Read... [11:38:12]Read from MH i2c: E2 62 00 74 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 BB [11:38: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 76 21 02 00 0E 04 04 00 2D 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:38:12]wFMCommunicate OK [11:38:12]SAM_PROTO_GetFieldsCounters done [11:38:12]requested_item shift.num is exist - process it [11:38:12]requested_item shift.opened is exist - process it [11:38:12]req_shift_opened [11:38:12]FM_GetShiftState [11:38:12]SAM_PROTO_GetShiftState [11:38:12]wFMCommunicate request_size=4 [11:38:12]MH_SAM_APDU [11:38:12]CAPDU: 80 13 01 00 [11:38:12]Write to MH i2c: E2 08 00 75 86 80 13 01 00 00 00 00 00 78 [11:38:12]Write i2c OK [11:38:12]MH_I2C_Read... [11:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:13]Read from MH i2c: E2 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: E2 0E 00 [11:38:13]MH_I2C_Read... [11:38:13]Read from MH i2c: E2 0E 00 75 86 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [11:38:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:13]wFMCommunicate OK [11:38:13]SAM_PROTO_GetShiftState done [11:38:13]FM_GetShiftState done [11:38:13]req_shift_opened done [11:38:13]requested_item shift.open_date is exist - process it [11:38:13]req_shift_open_date [11:38:13]req_shift_open_date done [11:38:13]produce_requested_data done [11:38:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139638,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:38:13]process_action_free close_receipt [11:38:13]json_value_free [11:38:13]json_value_free done [11:38:13]process_json_proto returns [11:38:13]Send response to host [11:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139638,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:38:13]free response buf [11:38:13]execute_script done [11:38:13]execute_script returns [11:38:13]free content buf [11:38:13]Sock 8.Close socket [11:38:13]Sock 8.Thread stoped [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:29]accept exits with 9 [11:38:29]New connection [11:38:29]New thread 3067284836 created [11:38:29]Thread 3067141476 joined [11:38:29]Waiting for new connection... [11:38:29] Sock 9.Parse request [11:38:29]Sock 9.Check first char [11:38:29]Sock 9.First char is OK [11:38:29]request: POST /json_proto HTTP/1.0 [11:38:29]Method: POST [11:38:29]URL: /json_proto [11:38:29]Method is POST - this is cgi request [11:38:29]url: /json_proto [11:38:29]query_string will be loaded in cgi processing [11:38:29]execute_cgi json_proto POST (null) [11:38:29]execute_cgi path=json_proto method=POST [11:38:29]POST find Content-Length [11:38:29]Host: 172.17.50.196:8080 [11:38:29]Content-Length: 648 [11:38:29]Content-Type: application/json [11:38:29] [11:38:29]POST finish read [11:38:29]Found Content-Length = 648 [11:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095117", "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" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]execute_script... [11:38: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)1095117", "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" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]POST & json_proto [11:38:29]process_json_proto [11:38:29]json parsed OK: [11:38:29]protocol is kg_v1.0 [11:38:29]action value=close_receipt [11:38:29]process_action close_receipt [11:38:29]cmd_close_receipt [11:38:29]MH_GetDate [11:38:29]Write to MH i2c: F0 00 00 76 86 EB [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 76 86 00 3F 6C 23 67 72 0D 1C 67 2B [11:38:29]GetLastDocTimeStamp 1730374698 [11:38:29]current date 1730374719 [11:38:29]FM_GetShiftState [11:38:29]SAM_PROTO_GetShiftState [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 13 01 00 [11:38:29]Write to MH i2c: E2 08 00 77 86 80 13 01 00 00 00 00 00 7A [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 77 86 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A3 [11:38:29]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_GetShiftState done [11:38:29]FM_GetShiftState done [11:38:29]opened in 1730332621 [11:38:29]opened+sec_in_day 1730419021 [11:38:29]quantity*price = 304800 [11:38:29]sum+1 = 304801 [11:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3048.00 НСП 1% : 26.97 НДС 12% : 323.68 Наличными: 3048.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 116 31.10.2024 11:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139639 ФПД: 59958718923302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113839&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139639&fm=59958718923302&tin=02508201610067®Number=0000000000091631&sum=304800 [11:38:31]StoreToDocumentArchive [11:38:31]shift 557 fd 139639 [11:38:31]save to /storage/0557/doc_00139639 [11:38:31]save last doc name /storage/0557/doc_00139639 to /storage/kkm_last_doc_name [11:38:31]save OK [11:38:31]Clear old archive folders... [11:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:38:31]tlvbuf is 01173EE0 [11:38:31]SAM_PROTO_ClearQueue [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 09 00 00 [11:38:31]Write to MH i2c: E2 08 00 84 86 80 09 00 00 00 00 00 00 7C [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 84 86 00 90 00 7E [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]SAM_PROTO_ClearQueue done [11:38:31]KKMCreateOFDPacket [11:38:31]OFDProtocolAddRootSTLVToBuf [11:38:31]FM_MakeSignedData [11:38:31]FM_MakeSignedData [11:38:31]SAM_PROTO_SignData [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 01 02 [11:38:31]Write to MH i2c: E2 08 00 85 86 80 0D 01 02 00 00 00 00 84 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 85 86 00 90 00 7F [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=255 [11:38:31]MH_SAM_APDU [11:38:31]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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 3F 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [11:38:31]Write to MH i2c: E2 02 01 86 86 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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 3F 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 57 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 86 86 00 90 00 80 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=11 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 02 02 06 36 88 3A 24 82 26 [11:38:31]Write to MH i2c: E2 0E 00 87 86 80 0D 02 02 06 00 36 88 3A 24 82 26 00 00 57 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 87 86 00 90 00 81 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 03 02 [11:38:31]Write to MH i2c: E2 08 00 88 86 80 0D 03 02 00 00 00 00 89 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 0B 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 0B 00 88 86 00 B7 81 DD D6 EC DF A3 3D 90 00 20 [11:38:31]RAPDU: B7 81 DD D6 EC DF A3 3D 90 00 [11:38:31]wFMCommunicate OK [11:38:31]SAM_PROTO_SignData done [11:38:31]FM_MakeSignedData done [11:38:31]CreateOFDProtocolMessage [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 11 00 00 [11:38:31]Write to MH i2c: E2 08 00 89 86 80 11 00 00 00 00 00 00 89 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 17 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 17 00 89 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E4 [11:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:38:31]wFMCommunicate OK [11:38:31]CreateOFDProtocolMessage done [11:38:31]OFDSenderStorePacket 139639 [11:38:31]StoreOFDPacket docnum=139639 [11:38: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 10 01 00 00 65 06 08 01 38 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 3F 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 36 88 3A 24 82 26 B7 81 DD D6 EC DF A3 3D [11:38:31]CheckFolder [11:38:31]dirname=/storage/ofd_packets [11:38:31]CheckFolder done [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00139639 [11:38:31]NVStorageSaveData ofd_packets/00139639 [11:38:31]File name is /storage/ofd_packets/00139639 [11:38:31]Write 302 bytes [11:38:31]NVStorageSaveData done [11:38:31]OFDSenderStorePacket done [11:38:31]KKMCreateOFDPacket done [11:38:31]NVStorageSaveData kkm_last_timestamp [11:38:31]File name is /storage/kkm_last_timestamp [11:38:31]Write 4 bytes [11:38:31]NVStorageSaveData done [11:38:31]ExternCall_PrintAddStr [11:38:31]wPrintStart [11:38:31]Write to MH i2c: 01 00 00 8A 86 10 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 8A 86 00 00 00 00 00 FF 0F 25 [11:38:31]RasterBufferAndPrint [11:38:31]line Счет N : (1)1095117 [11:38:31]line ИНН: 02508201610067 [11:38:31]line Контрольно-Кассовый Чек [11:38:31]line ПРОДАЖА [11:38:31]line ТРК (МРК, ГНК) : 41 [11:38:31]line Товар: 2710194210 [11:38:31]line ДТ(л)-К-2 [11:38:31]line 40.000 * 76.20 [11:38:31]line = 3048.00 [11:38:31]line НДС 12% НСП 1% [11:38:31]line > о реализуемом товаре [11:38:31]line ИТОГО: 3048.00 [11:38:31]line НСП 1% : 26.97 [11:38:31]line НДС 12% : 323.68 [11:38:31]line Наличными: 3048.00 [11:38:31]line Безнал.: 0.00 [11:38:31]line Место: АЗС № 101 "Партнер Нефть" [11:38:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:38:31]line СНО: Общий режим [11:38:31]line Чек 116 31.10.2024 11:38 [11:38:31]line Смена: 557 ФФД: 1.0 [11:38:31]line ЗНМ: 0300000081 [11:38:31]line РНМ: 0000000000091631 [11:38:31]line Версия ККМ: 001 [11:38:31]line ФМ: 0000000000874669 [11:38:31]line ФД: 139639 [11:38:31]line ФПД: 59958718923302 [11:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113839&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139639&fm=59958718923302&tin=02508201610067®Number=0000000000091631&sum=304800 [11:38:31]written 0, free lines is 4095 [11:38:31]OFD Sender: Processing packet 139639 [packets to send 34, broken 33] [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00139639 [11:38:31]OFD Sender: To server: pG, [11:38:31]CommunicateWithHost lk.salyk.kg:30040 [11:38:31]ConnectInit lk.salyk.kg [11:38:31]Connected sock=11 [11:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 65 06 08 01 38 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 3F 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 36 88 3A 24 82 26 B7 81 DD D6 EC DF A3 3D [11:38: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 E5 2B 47 00 71 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 21 02 00 F4 03 04 00 ED 17 23 67 B6 04 01 00 00 A5 3D 64 EE 2C 9F F7 86 [11:38:31]CommunicateWithHost err = 0 [11:38:31]CheckOFDResponse [11:38:31]1017 (14) - 77093643461234 [11:38:31]1041 (16) - 0000000000874669 [11:38:31]1040 (4) - 139639 [11:38:31]1012 (4) - 31.10.2024 05:38 [11:38:31]1206 (1) - 0 [11:38:31]OFD Sender: Remove packet 139639 [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00139639 [11:38:31]NVStorageDeleteData [11:38:31]Write to MH i2c: 01 00 00 B2 86 38 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 B2 86 00 00 00 00 00 22 0D 6E [11:38:31]RasterBufferAndPrint [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]written 0, free lines is 3371 [11:38:32]MH_Cut [11:38:32]Write to MH i2c: D1 01 00 B9 86 01 11 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 01 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 01 00 B9 86 00 10 [11:38:32]Write to MH i2c: 01 00 00 BA 86 40 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]OFD Sender: No OFD packet to send [11:38:32]*** Cut start [11:38:32]*** Partial cut [11:38:32]*** CUTSNS_PIN = 1 [11:38:32]*** CUTSNS_PIN = 0 [11:38:32]*** Brake cut motor [11:38:33]Read from MH i2c: 01 [11:38:33]MH_I2C_Read... [11:38:33]*** Stop cut motor [11:38:33]*** Cut end [11:38:33]Read from MH i2c: 01 07 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: 01 07 00 BA 86 00 00 00 00 00 FF 0F 55 [11:38:33]process_action close_receipt done [11:38:33]requested_data is exist [11:38:33]produce_requested_data [11:38:33]requested_item fm.sn is exist - process it [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 11 00 00 [11:38:33]Write to MH i2c: E2 08 00 BB 86 80 11 00 00 00 00 00 00 BB [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 BB 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 16 [11:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:38:33]wFMCommunicate OK [11:38:33]requested_item fd.num is exist - process it [11:38:33]SAM_PROTO_GetFieldsCounters [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 00 00 [11:38:33]Write to MH i2c: E2 08 00 BC 86 80 13 00 00 00 00 00 00 BE [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 BC 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 07 [11:38: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 77 21 02 00 0E 04 04 00 2D 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:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetFieldsCounters done [11:38:33]requested_item shift.num is exist - process it [11:38:33]requested_item shift.opened is exist - process it [11:38:33]req_shift_opened [11:38:33]FM_GetShiftState [11:38:33]SAM_PROTO_GetShiftState [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 01 00 [11:38:33]Write to MH i2c: E2 08 00 BD 86 80 13 01 00 00 00 00 00 C0 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 BD 86 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E9 [11:38:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetShiftState done [11:38:33]FM_GetShiftState done [11:38:33]req_shift_opened done [11:38:33]requested_item shift.open_date is exist - process it [11:38:33]req_shift_open_date [11:38:33]req_shift_open_date done [11:38:33]produce_requested_data done [11:38:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139639,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:38:33]process_action_free close_receipt [11:38:33]json_value_free [11:38:33]json_value_free done [11:38:33]process_json_proto returns [11:38:33]Send response to host [11:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139639,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:38:33]free response buf [11:38:33]execute_script done [11:38:33]execute_script returns [11:38:33]free content buf [11:38:33]Sock 9.Close socket [11:38:33]Sock 9.Thread stoped [11:38:35]accept exits with 8 [11:38:35]New connection [11:38:35]New thread 3067141476 created [11:38:35]Thread 3067284836 joined [11:38:35]Waiting for new connection... [11:38:35] Sock 8.Parse request [11:38:35]Sock 8.Check first char [11:38:35]Sock 8.First char is OK [11:38:35]request: POST /json_proto HTTP/1.0 [11:38:35]Method: POST [11:38:35]URL: /json_proto [11:38:35]Method is POST - this is cgi request [11:38:35]url: /json_proto [11:38:35]query_string will be loaded in cgi processing [11:38:35]execute_cgi json_proto POST (null) [11:38:35]execute_cgi path=json_proto method=POST [11:38:35]POST find Content-Length [11:38:35]Host: 172.17.50.196:8080 [11:38:35]Content-Length: 705 [11:38:35]Content-Type: application/json [11:38:35] [11:38:35]POST finish read [11:38:35]Found Content-Length = 705 [11:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139639, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095117", "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" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:35]execute_script... [11:38:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139639, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095117", "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" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:35]POST & json_proto [11:38:35]process_json_proto [11:38:35]json parsed OK: [11:38:35]protocol is kg_v1.0 [11:38:35]action value=close_receipt [11:38:35]process_action close_receipt [11:38:35]cmd_close_receipt [11:38:35]MH_GetDate [11:38:35]Write to MH i2c: F0 00 00 BE 86 33 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: F0 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: F0 09 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: F0 09 00 BE 86 00 45 6C 23 67 72 0D 1C 67 79 [11:38:35]GetLastDocTimeStamp 1730374719 [11:38:35]current date 1730374725 [11:38:35]FM_GetShiftState [11:38:35]SAM_PROTO_GetShiftState [11:38:35]wFMCommunicate request_size=4 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 13 01 00 [11:38:35]Write to MH i2c: E2 08 00 BF 86 80 13 01 00 00 00 00 00 C2 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 0E 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 0E 00 BF 86 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EB [11:38:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:35]wFMCommunicate OK [11:38:35]SAM_PROTO_GetShiftState done [11:38:35]FM_GetShiftState done [11:38:35]opened in 1730332621 [11:38:35]opened+sec_in_day 1730419021 [11:38:35]quantity*price = 304800 [11:38:35]sum+1 = 304801 [11:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3048.00 НСП 1% : 26.97 НДС 12% : 323.68 Наличными: 3048.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 117 31.10.2024 11:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФД осн.: 139639 ФМ осн.: 0000000000874669 ФМ: 0000000000874669 ФД: 139640 ФПД: 24198171391727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113845&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139640&fm=24198171391727&tin=02508201610067®Number=0000000000091631&sum=304800 [11:38:36]StoreToDocumentArchive [11:38:36]shift 557 fd 139640 [11:38:36]save to /storage/0557/doc_00139640 [11:38:36]save last doc name /storage/0557/doc_00139640 to /storage/kkm_last_doc_name [11:38:36]save OK [11:38:36]Clear old archive folders... [11:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:38:36]tlvbuf is 012A07A0 [11:38:36]SAM_PROTO_ClearQueue [11:38:36]wFMCommunicate request_size=4 [11:38:36]MH_SAM_APDU [11:38:36]CAPDU: 80 09 00 00 [11:38:36]Write to MH i2c: E2 08 00 CE 86 80 09 00 00 00 00 00 00 C6 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:36]Read from MH i2c: E2 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 03 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 03 00 CE 86 00 90 00 C8 [11:38:36]RAPDU: 90 00 [11:38:36]wFMCommunicate OK [11:38:36]SAM_PROTO_ClearQueue done [11:38:36]KKMCreateOFDPacket [11:38:36]OFDProtocolAddRootSTLVToBuf [11:38:36]FM_MakeSignedData [11:38:36]FM_MakeSignedData [11:38:36]SAM_PROTO_SignData [11:38:36]wFMCommunicate request_size=4 [11:38:36]MH_SAM_APDU [11:38:36]CAPDU: 80 0D 01 02 [11:38:36]Write to MH i2c: E2 08 00 CF 86 80 0D 01 02 00 00 00 00 CE [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:36]Read from MH i2c: E2 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 03 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 03 00 CF 86 00 90 00 C9 [11:38:36]RAPDU: 90 00 [11:38:36]wFMCommunicate OK [11:38:36]wFMCommunicate request_size=255 [11:38:36]MH_SAM_APDU [11:38:36]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 45 6C 23 67 0E 04 04 00 2D 02 00 00 B9 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 77 21 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 [11:38:36]Write to MH i2c: E2 02 01 D0 86 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 45 6C 23 67 0E 04 04 00 2D 02 00 00 B9 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 77 21 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 00 00 DA [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:37]Read from MH i2c: E2 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 03 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 03 00 D0 86 00 90 00 CA [11:38:37]RAPDU: 90 00 [11:38:37]wFMCommunicate OK [11:38:37]wFMCommunicate request_size=39 [11:38:37]MH_SAM_APDU [11:38:37]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 78 21 02 00 35 04 06 00 16 02 13 68 F6 EF [11:38:37]Write to MH i2c: E2 2A 00 D1 86 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 78 21 02 00 35 04 06 00 16 02 13 68 F6 EF 00 00 A7 [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:37]Read from MH i2c: E2 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 03 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 03 00 D1 86 00 90 00 CB [11:38:37]RAPDU: 90 00 [11:38:37]wFMCommunicate OK [11:38:37]wFMCommunicate request_size=4 [11:38:37]MH_SAM_APDU [11:38:37]CAPDU: 80 0D 03 02 [11:38:37]Write to MH i2c: E2 08 00 D2 86 80 0D 03 02 00 00 00 00 D3 [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:37]Read from MH i2c: E2 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 0B 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 0B 00 D2 86 00 45 CB 98 6E CC 6F 56 0A 90 00 85 [11:38:37]RAPDU: 45 CB 98 6E CC 6F 56 0A 90 00 [11:38:37]wFMCommunicate OK [11:38:37]SAM_PROTO_SignData done [11:38:37]FM_MakeSignedData done [11:38:37]CreateOFDProtocolMessage [11:38:37]wFMCommunicate request_size=4 [11:38:37]MH_SAM_APDU [11:38:37]CAPDU: 80 11 00 00 [11:38:37]Write to MH i2c: E2 08 00 D3 86 80 11 00 00 00 00 00 00 D3 [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]OFD Sender: No OFD packet to send [11:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:37]Read from MH i2c: E2 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 17 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 17 00 D3 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [11: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 [11:38:37]wFMCommunicate OK [11:38:37]CreateOFDProtocolMessage done [11:38:37]OFDSenderStorePacket 139640 [11:38:37]StoreOFDPacket docnum=139640 [11:38: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 2C 01 00 00 B6 52 24 01 F4 36 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 45 6C 23 67 0E 04 04 00 2D 02 00 00 B9 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 77 21 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 78 21 02 00 35 04 06 00 16 02 13 68 F6 EF 45 CB 98 6E CC 6F 56 0A [11:38:37]CheckFolder [11:38:37]dirname=/storage/ofd_packets [11:38:37]CheckFolder done [11:38:37]ProducePacketName [11:38:37]name=ofd_packets/00139640 [11:38:37]NVStorageSaveData ofd_packets/00139640 [11:38:37]File name is /storage/ofd_packets/00139640 [11:38:37]Write 330 bytes [11:38:37]NVStorageSaveData done [11:38:37]OFDSenderStorePacket done [11:38:37]KKMCreateOFDPacket done [11:38:37]NVStorageSaveData kkm_last_timestamp [11:38:37]File name is /storage/kkm_last_timestamp [11:38:37]Write 4 bytes [11:38:37]NVStorageSaveData done [11:38:37]ExternCall_PrintAddStr [11:38:37]wPrintStart [11:38:37]Write to MH i2c: 01 00 00 D4 86 5A [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: 01 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: 01 07 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: 01 07 00 D4 86 00 00 00 00 00 FF 0F 6F [11:38:37]RasterBufferAndPrint [11:38:37]line Счет N : (1)1095117 [11:38:37]line ИНН: 02508201610067 [11:38:37]line Контрольно-Кассовый Чек [11:38:37]line ВОЗВРАТ ПРОДАЖИ [11:38:37]line ТРК (МРК, ГНК) : 41 [11:38:37]line Товар: 2710194210 [11:38:37]line ДТ(л)-К-2 [11:38:37]line 40.000 * 76.20 [11:38:37]line = 3048.00 [11:38:37]line НДС 12% НСП 1% [11:38:37]line > о реализуемом товаре [11:38:37]line ИТОГО: 3048.00 [11:38:37]line НСП 1% : 26.97 [11:38:37]line НДС 12% : 323.68 [11:38:37]line Наличными: 3048.00 [11:38:37]line Безнал.: 0.00 [11:38:37]line Место: АЗС № 101 "Партнер Нефть" [11:38:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:38:37]line СНО: Общий режим [11:38:37]line Чек 117 31.10.2024 11:38 [11:38:37]line Смена: 557 ФФД: 1.0 [11:38:37]line ЗНМ: 0300000081 [11:38:37]line РНМ: 0000000000091631 [11:38:37]line Версия ККМ: 001 [11:38:37]line ФД осн.: 139639 [11:38:37]line ФМ осн.: 0000000000874669 [11:38:37]line ФМ: 0000000000874669 [11:38:37]line ФД: 139640 [11:38:37]line ФПД: 24198171391727 [11:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113845&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139640&fm=24198171391727&tin=02508201610067®Number=0000000000091631&sum=304800 [11:38:37]written 0, free lines is 4095 [11:38:37]OFD Sender: Processing packet 139640 [packets to send 34, broken 33] [11:38:37]ProducePacketName [11:38:37]name=ofd_packets/00139640 [11:38:37]OFD Sender: To server: pG, [11:38:37]CommunicateWithHost lk.salyk.kg:30040 [11:38:37]ConnectInit lk.salyk.kg [11:38:37]Connected sock=10 [11:38: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 2C 01 00 00 B6 52 24 01 F4 36 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 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 45 6C 23 67 0E 04 04 00 2D 02 00 00 B9 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 77 21 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 78 21 02 00 35 04 06 00 16 02 13 68 F6 EF 45 CB 98 6E CC 6F 56 0A [11:38: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 85 F0 47 00 9D 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 78 21 02 00 F4 03 04 00 F3 17 23 67 B6 04 01 00 00 D9 E8 7A 5B F6 65 6A 88 [11:38:37]CommunicateWithHost err = 0 [11:38:37]CheckOFDResponse [11:38:37]1017 (14) - 77093643461234 [11:38:37]1041 (16) - 0000000000874669 [11:38:37]1040 (4) - 139640 [11:38:37]1012 (4) - 31.10.2024 05:38 [11:38:37]1206 (1) - 0 [11:38:37]OFD Sender: Remove packet 139640 [11:38:37]ProducePacketName [11:38:37]name=ofd_packets/00139640 [11:38:37]NVStorageDeleteData [11:38:38]Write to MH i2c: 01 00 00 FE 86 84 [11:38:38]Write i2c OK [11:38:38]MH_I2C_Read... [11:38:38]Read from MH i2c: 01 [11:38:38]MH_I2C_Read... [11:38:38]Read from MH i2c: 01 07 00 [11:38:38]MH_I2C_Read... [11:38:38]Read from MH i2c: 01 07 00 FE 86 00 00 00 00 00 1C 0D B4 [11:38:38]RasterBufferAndPrint [11:38:38]line [11:38:38]line [11:38:38]line [11:38:38]line [11:38:38]line [11:38:38]written 0, free lines is 3374 [11:38:38]MH_Cut [11:38:38]Write to MH i2c: D1 01 00 05 87 01 5E [11:38:38]Write i2c OK [11:38:38]MH_I2C_Read... [11:38:38]Read from MH i2c: D1 [11:38:38]MH_I2C_Read... [11:38:38]Read from MH i2c: D1 01 00 [11:38:38]MH_I2C_Read... [11:38:38]Read from MH i2c: D1 01 00 05 87 00 5D [11:38:38]Write to MH i2c: 01 00 00 06 87 8D [11:38:38]Write i2c OK [11:38:38]MH_I2C_Read... [11:38:38]OFD Sender: No OFD packet to send [11:38:38]*** Cut start [11:38:38]*** Partial cut [11:38:38]*** CUTSNS_PIN = 1 [11:38:38]*** CUTSNS_PIN = 0 [11:38:38]*** Brake cut motor [11:38:39]Read from MH i2c: 01 [11:38:39]MH_I2C_Read... [11:38:39]*** Stop cut motor [11:38:39]*** Cut end [11:38:39]Read from MH i2c: 01 07 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: 01 07 00 06 87 00 00 00 00 00 FF 0F A2 [11:38:39]process_action close_receipt done [11:38:39]requested_data is exist [11:38:39]produce_requested_data [11:38:39]requested_item fm.sn is exist - process it [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 11 00 00 [11:38:39]Write to MH i2c: E2 08 00 07 87 80 11 00 00 00 00 00 00 08 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 17 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 17 00 07 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [11:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:38:39]wFMCommunicate OK [11:38:39]requested_item fd.num is exist - process it [11:38:39]SAM_PROTO_GetFieldsCounters [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 13 00 00 [11:38:39]Write to MH i2c: E2 08 00 08 87 80 13 00 00 00 00 00 00 0B [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 62 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 62 00 08 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 58 [11:38: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 78 21 02 00 0E 04 04 00 2D 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:38:39]wFMCommunicate OK [11:38:39]SAM_PROTO_GetFieldsCounters done [11:38:39]requested_item shift.num is exist - process it [11:38:39]requested_item shift.opened is exist - process it [11:38:39]req_shift_opened [11:38:39]FM_GetShiftState [11:38:39]SAM_PROTO_GetShiftState [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 13 01 00 [11:38:39]Write to MH i2c: E2 08 00 09 87 80 13 01 00 00 00 00 00 0D [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:39]Read from MH i2c: E2 0E 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 0E 00 09 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 36 [11:38:39]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:38:39]wFMCommunicate OK [11:38:39]SAM_PROTO_GetShiftState done [11:38:39]FM_GetShiftState done [11:38:39]req_shift_opened done [11:38:39]requested_item shift.open_date is exist - process it [11:38:39]req_shift_open_date [11:38:39]req_shift_open_date done [11:38:39]produce_requested_data done [11:38:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139640,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:38:39]process_action_free close_receipt [11:38:39]json_value_free [11:38:39]json_value_free done [11:38:39]process_json_proto returns [11:38:39]Send response to host [11:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139640,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:38:39]free response buf [11:38:39]execute_script done [11:38:39]execute_script returns [11:38:39]free content buf [11:38:39]Sock 8.Close socket [11:38:39]Sock 8.Thread stoped [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:40]accept exits with 9 [11:39:40]New connection [11:39:40]New thread 3067284836 created [11:39:40]Thread 3067141476 joined [11:39:40]Waiting for new connection... [11:39:40] Sock 9.Parse request [11:39:40]Sock 9.Check first char [11:39:40]Sock 9.First char is OK [11:39:40]request: POST /json_proto HTTP/1.0 [11:39:40]Method: POST [11:39:40]URL: /json_proto [11:39:40]Method is POST - this is cgi request [11:39:40]url: /json_proto [11:39:40]query_string will be loaded in cgi processing [11:39:40]execute_cgi json_proto POST (null) [11:39:40]execute_cgi path=json_proto method=POST [11:39:40]POST find Content-Length [11:39:40]Host: 172.17.50.196:8080 [11:39:40]Content-Length: 784 [11:39:40]Content-Type: application/json [11:39:40] [11:39:40]POST finish read [11:39:40]Found Content-Length = 784 [11:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335502", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:40]execute_script... [11:39:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335502", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:40]POST & json_proto [11:39:40]process_json_proto [11:39:40]json parsed OK: [11:39:40]protocol is kg_v1.0 [11:39:40]action value=close_receipt [11:39:40]process_action close_receipt [11:39:40]cmd_close_receipt [11:39:40]MH_GetDate [11:39:40]Write to MH i2c: F0 00 00 0A 87 80 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: F0 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: F0 09 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: F0 09 00 0A 87 00 86 6C 23 67 72 0D 1C 67 07 [11:39:40]GetLastDocTimeStamp 1730374725 [11:39:40]current date 1730374790 [11:39:40]FM_GetShiftState [11:39:40]SAM_PROTO_GetShiftState [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 13 01 00 [11:39:40]Write to MH i2c: E2 08 00 0B 87 80 13 01 00 00 00 00 00 0F [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 0B 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 38 [11:39:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_GetShiftState done [11:39:40]FM_GetShiftState done [11:39:40]opened in 1730332621 [11:39:40]opened+sec_in_day 1730419021 [11:39:40]quantity*price = 9500 [11:39:40]sum+1 = 9501 [11:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 118 31.10.2024 11:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139641 ФПД: 31348124901326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113950&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139641&fm=31348124901326&tin=02508201610067®Number=0000000000091631&sum=9500 0 [11:39:41]StoreToDocumentArchive [11:39:41]shift 557 fd 139641 [11:39:41]save to /storage/0557/doc_00139641 [11:39:41]save last doc name /storage/0557/doc_00139641 to /storage/kkm_last_doc_name [11:39:41]save OK [11:39:41]Clear old archive folders... [11:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=288 [11:39:41]tlvbuf is 011DB6E0 [11:39:41]SAM_PROTO_ClearQueue [11:39:41]wFMCommunicate request_size=4 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 09 00 00 [11:39:41]Write to MH i2c: E2 08 00 18 87 80 09 00 00 00 00 00 00 11 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 18 87 00 90 00 13 [11:39:41]RAPDU: 90 00 [11:39:41]wFMCommunicate OK [11:39:41]SAM_PROTO_ClearQueue done [11:39:41]KKMCreateOFDPacket [11:39:41]OFDProtocolAddRootSTLVToBuf [11:39:41]FM_MakeSignedData [11:39:41]FM_MakeSignedData [11:39:41]SAM_PROTO_SignData [11:39:41]wFMCommunicate request_size=4 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 0D 01 02 [11:39:41]Write to MH i2c: E2 08 00 19 87 80 0D 01 02 00 00 00 00 19 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 19 87 00 90 00 14 [11:39:41]RAPDU: 90 00 [11:39:41]wFMCommunicate OK [11:39:41]wFMCommunicate request_size=255 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 86 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [11:39:41]Write to MH i2c: E2 02 01 1A 87 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 86 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 25 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 1A 87 00 90 00 15 [11:39:41]RAPDU: 90 00 [11:39:41]wFMCommunicate OK [11:39:41]wFMCommunicate request_size=47 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 0D 02 02 2A 31 36 33 31 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 21 02 00 35 04 06 00 1C 82 CD D9 5F CE [11:39:41]Write to MH i2c: E2 32 00 1B 87 80 0D 02 02 2A 00 31 36 33 31 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 21 02 00 35 04 06 00 1C 82 CD D9 5F CE 00 00 EC [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:41]Read from MH i2c: E2 03 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 03 00 1B 87 00 90 00 16 [11:39:41]RAPDU: 90 00 [11:39:41]wFMCommunicate OK [11:39:41]wFMCommunicate request_size=4 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 0D 03 02 [11:39:41]Write to MH i2c: E2 08 00 1C 87 80 0D 03 02 00 00 00 00 1E [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 0B 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 0B 00 1C 87 00 7B D9 48 E0 88 B5 2F C4 90 00 CB [11:39:41]RAPDU: 7B D9 48 E0 88 B5 2F C4 90 00 [11:39:41]wFMCommunicate OK [11:39:41]SAM_PROTO_SignData done [11:39:41]FM_MakeSignedData done [11:39:41]CreateOFDProtocolMessage [11:39:41]wFMCommunicate request_size=4 [11:39:41]MH_SAM_APDU [11:39:41]CAPDU: 80 11 00 00 [11:39:41]Write to MH i2c: E2 08 00 1D 87 80 11 00 00 00 00 00 00 1E [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:41]Read from MH i2c: E2 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 17 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: E2 17 00 1D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [11: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 [11:39:41]wFMCommunicate OK [11:39:41]CreateOFDProtocolMessage done [11:39:41]OFDSenderStorePacket 139641 [11:39:41]StoreOFDPacket docnum=139641 [11: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 34 01 00 00 C9 8D 2C 01 0B 62 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 86 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1C 82 CD D9 5F CE 7B D9 48 E0 88 B5 2F C4 [11:39:41]CheckFolder [11:39:41]dirname=/storage/ofd_packets [11:39:41]CheckFolder done [11:39:41]ProducePacketName [11:39:41]name=ofd_packets/00139641 [11:39:41]NVStorageSaveData ofd_packets/00139641 [11:39:41]File name is /storage/ofd_packets/00139641 [11:39:41]Write 338 bytes [11:39:41]NVStorageSaveData done [11:39:41]OFDSenderStorePacket done [11:39:41]KKMCreateOFDPacket done [11:39:41]NVStorageSaveData kkm_last_timestamp [11:39:41]File name is /storage/kkm_last_timestamp [11:39:41]Write 4 bytes [11:39:41]NVStorageSaveData done [11:39:41]ExternCall_PrintAddStr [11:39:41]wPrintStart [11:39:41]Write to MH i2c: 01 00 00 1E 87 A5 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 1E 87 00 00 00 00 00 FF 0F BA [11:39:41]RasterBufferAndPrint [11:39:41]line Счет N : (3)335502 [11:39:41]line ИНН: 02508201610067 [11:39:41]line Контрольно-Кассовый Чек [11:39:41]line ПРОДАЖА [11:39:41]line Товар: 4700000481453 [11:39:41]line Напиток энерг Nitro Max 0,45 ж/б [11:39:41]line 1.000 * 95.00 [11:39:41]line = 95.00 [11:39:41]line НДС 12% НСП 1% [11:39:41]line > о реализуемом товаре [11:39:41]line ИТОГО: 95.00 [11:39:41]line НСП 1% : 0.84 [11:39:41]line НДС 12% : 10.09 [11:39:41]line Наличными: 0.00 [11:39:41]line Безнал.: 95.00 [11:39:41]line Место: АЗС № 101 "Партнер Нефть" [11:39:41]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:39:41]line СНО: Общий режим [11:39:41]line Чек 118 31.10.2024 11:39 [11:39:41]line Смена: 557 ФФД: 1.0 [11:39:41]line ЗНМ: 0300000081 [11:39:41]line РНМ: 0000000000091631 [11:39:41]line Версия ККМ: 001 [11:39:41]line Платежная система: Mbank [11:39:41]line ФМ: 0000000000874669 [11:39:41]line ФД: 139641 [11:39:41]line ФПД: 31348124901326 [11:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T113950&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139641&fm=31348124901326&tin=02508201610067®Number=0000000000091631&sum=9500 [11:39:41]line 0 [11:39:41]written 0, free lines is 4095 [11:39:42]OFD Sender: Processing packet 139641 [packets to send 34, broken 33] [11:39:42]ProducePacketName [11:39:42]name=ofd_packets/00139641 [11:39:42]OFD Sender: To server: pG, [11:39:42]CommunicateWithHost lk.salyk.kg:30040 [11:39:42]ConnectInit lk.salyk.kg [11:39:42]Connected sock=10 [11:39: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 34 01 00 00 C9 8D 2C 01 0B 62 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 86 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1C 82 CD D9 5F CE 7B D9 48 E0 88 B5 2F C4 [11:39: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 22 9E 47 00 37 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 21 02 00 F4 03 04 00 33 18 23 67 B6 04 01 00 00 90 73 53 2F F1 CD FD B1 [11:39:42]CommunicateWithHost err = 0 [11:39:42]CheckOFDResponse [11:39:42]1017 (14) - 77093643461234 [11:39:42]1041 (16) - 0000000000874669 [11:39:42]1040 (4) - 139641 [11:39:42]1012 (4) - 31.10.2024 05:40 [11:39:42]1206 (1) - 0 [11:39:42]OFD Sender: Remove packet 139641 [11:39:42]ProducePacketName [11:39:42]name=ofd_packets/00139641 [11:39:42]NVStorageDeleteData [11:39:42]Write to MH i2c: 01 00 00 48 87 CF [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 07 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 07 00 48 87 00 00 00 00 00 06 0D E9 [11:39:42]RasterBufferAndPrint [11:39:42]line [11:39:42]line [11:39:42]line [11:39:42]line [11:39:42]line [11:39:42]written 0, free lines is 3343 [11:39:42]MH_Cut [11:39:42]Write to MH i2c: D1 01 00 4F 87 01 A8 [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: D1 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: D1 01 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: D1 01 00 4F 87 00 A7 [11:39:42]Write to MH i2c: 01 00 00 50 87 D7 [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]OFD Sender: No OFD packet to send [11:39:43]*** Cut start [11:39:43]*** Partial cut [11:39:43]*** CUTSNS_PIN = 1 [11:39:43]*** CUTSNS_PIN = 0 [11:39:43]*** Brake cut motor [11:39:43]Read from MH i2c: 01 [11:39:43]MH_I2C_Read... [11:39:43]*** Stop cut motor [11:39:43]*** Cut end [11:39:43]Read from MH i2c: 01 07 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: 01 07 00 50 87 00 00 00 00 00 FF 0F EC [11:39:43]process_action close_receipt done [11:39:43]requested_data is exist [11:39:43]produce_requested_data [11:39:43]requested_item fm.sn is exist - process it [11:39:43]wFMCommunicate request_size=4 [11:39:43]MH_SAM_APDU [11:39:43]CAPDU: 80 11 00 00 [11:39:43]Write to MH i2c: E2 08 00 51 87 80 11 00 00 00 00 00 00 52 [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:43]Read from MH i2c: E2 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 17 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 17 00 51 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AD [11: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 [11:39:43]wFMCommunicate OK [11:39:43]requested_item fd.num is exist - process it [11:39:43]SAM_PROTO_GetFieldsCounters [11:39:43]wFMCommunicate request_size=4 [11:39:43]MH_SAM_APDU [11:39:43]CAPDU: 80 13 00 00 [11:39:43]Write to MH i2c: E2 08 00 52 87 80 13 00 00 00 00 00 00 55 [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:43]Read from MH i2c: E2 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 62 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 62 00 52 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 A6 [11: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 79 21 02 00 0E 04 04 00 2D 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:39:43]wFMCommunicate OK [11:39:43]SAM_PROTO_GetFieldsCounters done [11:39:43]requested_item shift.num is exist - process it [11:39:43]requested_item shift.opened is exist - process it [11:39:43]req_shift_opened [11:39:43]FM_GetShiftState [11:39:43]SAM_PROTO_GetShiftState [11:39:43]wFMCommunicate request_size=4 [11:39:43]MH_SAM_APDU [11:39:43]CAPDU: 80 13 01 00 [11:39:43]Write to MH i2c: E2 08 00 53 87 80 13 01 00 00 00 00 00 57 [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:43]Read from MH i2c: E2 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 0E 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 0E 00 53 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 80 [11:39:43]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:39:43]wFMCommunicate OK [11:39:43]SAM_PROTO_GetShiftState done [11:39:43]FM_GetShiftState done [11:39:43]req_shift_opened done [11:39:43]requested_item shift.open_date is exist - process it [11:39:43]req_shift_open_date [11:39:43]req_shift_open_date done [11:39:43]produce_requested_data done [11:39:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139641,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:39:43]process_action_free close_receipt [11:39:43]json_value_free [11:39:43]json_value_free done [11:39:43]process_json_proto returns [11:39:43]Send response to host [11:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139641,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:39:43]free response buf [11:39:43]execute_script done [11:39:43]execute_script returns [11:39:43]free content buf [11:39:43]Sock 9.Close socket [11:39:43]Sock 9.Thread stoped [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:18]accept exits with 8 [11:41:18]New connection [11:41:18]New thread 3067141476 created [11:41:18]Thread 3067284836 joined [11:41:18]Waiting for new connection... [11:41:18] Sock 8.Parse request [11:41:18]Sock 8.Check first char [11:41:18]Sock 8.First char is OK [11:41:18]request: POST /json_proto HTTP/1.0 [11:41:18]Method: POST [11:41:18]URL: /json_proto [11:41:18]Method is POST - this is cgi request [11:41:18]url: /json_proto [11:41:18]query_string will be loaded in cgi processing [11:41:18]execute_cgi json_proto POST (null) [11:41:18]execute_cgi path=json_proto method=POST [11:41:18]POST find Content-Length [11:41:18]Host: 172.17.50.196:8080 [11:41:18]Content-Length: 1029 [11:41:18]Content-Type: application/json [11:41:18] [11:41:18]POST finish read [11:41:18]Found Content-Length = 1029 [11:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335503", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:18]execute_script... [11:41:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335503", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:18]POST & json_proto [11:41:18]process_json_proto [11:41:18]json parsed OK: [11:41:18]protocol is kg_v1.0 [11:41:18]action value=close_receipt [11:41:18]process_action close_receipt [11:41:18]cmd_close_receipt [11:41:18]MH_GetDate [11:41:18]Write to MH i2c: F0 00 00 54 87 CA [11:41:18]Write i2c OK [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: F0 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: F0 09 00 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: F0 09 00 54 87 00 E8 6C 23 67 72 0D 1C 67 B3 [11:41:18]GetLastDocTimeStamp 1730374790 [11:41:18]current date 1730374888 [11:41:18]FM_GetShiftState [11:41:18]SAM_PROTO_GetShiftState [11:41:18]wFMCommunicate request_size=4 [11:41:18]MH_SAM_APDU [11:41:18]CAPDU: 80 13 01 00 [11:41:18]Write to MH i2c: E2 08 00 55 87 80 13 01 00 00 00 00 00 59 [11:41:18]Write i2c OK [11:41:18]MH_I2C_Read... [11:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:18]Read from MH i2c: E2 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: E2 0E 00 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: E2 0E 00 55 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 82 [11:41:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:41:18]wFMCommunicate OK [11:41:18]SAM_PROTO_GetShiftState done [11:41:18]FM_GetShiftState done [11:41:18]opened in 1730332621 [11:41:18]opened+sec_in_day 1730419021 [11:41:18]quantity*price = 12500 [11:41:18]sum+1 = 12501 [11:41:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.64 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 119 31.10.2024 11:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139642 ФПД: 181892584655532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T114128&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139642&fm=181892584655532&tin=02508201610067®Number=0000000000091631&sum=18500 0 [11:41:19]StoreToDocumentArchive [11:41:19]shift 557 fd 139642 [11:41:19]save to /storage/0557/doc_00139642 [11:41:19]save last doc name /storage/0557/doc_00139642 to /storage/kkm_last_doc_name [11:41:19]save OK [11:41:19]Clear old archive folders... [11:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=425 [11:41:19]tlvbuf is 0124EE40 [11:41:19]SAM_PROTO_ClearQueue [11:41:19]wFMCommunicate request_size=4 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 09 00 00 [11:41:19]Write to MH i2c: E2 08 00 62 87 80 09 00 00 00 00 00 00 5B [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 62 87 00 90 00 5D [11:41:19]RAPDU: 90 00 [11:41:19]wFMCommunicate OK [11:41:19]SAM_PROTO_ClearQueue done [11:41:19]KKMCreateOFDPacket [11:41:19]OFDProtocolAddRootSTLVToBuf [11:41:19]FM_MakeSignedData [11:41:19]FM_MakeSignedData [11:41:19]SAM_PROTO_SignData [11:41:19]wFMCommunicate request_size=4 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 0D 01 02 [11:41:19]Write to MH i2c: E2 08 00 63 87 80 0D 01 02 00 00 00 00 63 [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 63 87 00 90 00 5E [11:41:19]RAPDU: 90 00 [11:41:19]wFMCommunicate OK [11:41:19]wFMCommunicate request_size=255 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 0D 02 02 FA 03 00 A9 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [11:41:19]Write to MH i2c: E2 02 01 64 87 80 0D 02 02 FA 00 03 00 A9 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 8B [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 64 87 00 90 00 5F [11:41:19]RAPDU: 90 00 [11:41:19]wFMCommunicate OK [11:41:19]wFMCommunicate request_size=184 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E8 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 6E 2A E5 4A AC [11:41:19]Write to MH i2c: E2 BB 00 65 87 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E8 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 6E 2A E5 4A AC 00 00 7B [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:20]Read from MH i2c: E2 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: E2 03 00 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: E2 03 00 65 87 00 90 00 60 [11:41:20]RAPDU: 90 00 [11:41:20]wFMCommunicate OK [11:41:20]wFMCommunicate request_size=4 [11:41:20]MH_SAM_APDU [11:41:20]CAPDU: 80 0D 03 02 [11:41:20]Write to MH i2c: E2 08 00 66 87 80 0D 03 02 00 00 00 00 68 [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:20]Read from MH i2c: E2 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: E2 0B 00 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: E2 0B 00 66 87 00 70 72 00 7A B5 10 DE 4C 90 00 B4 [11:41:20]RAPDU: 70 72 00 7A B5 10 DE 4C 90 00 [11:41:20]wFMCommunicate OK [11:41:20]SAM_PROTO_SignData done [11:41:20]FM_MakeSignedData done [11:41:20]CreateOFDProtocolMessage [11:41:20]wFMCommunicate request_size=4 [11:41:20]MH_SAM_APDU [11:41:20]CAPDU: 80 11 00 00 [11:41:20]Write to MH i2c: E2 08 00 67 87 80 11 00 00 00 00 00 00 68 [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:20]Read from MH i2c: E2 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: E2 17 00 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: E2 17 00 67 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C3 [11:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:41:20]wFMCommunicate OK [11:41:20]CreateOFDProtocolMessage done [11:41:20]OFDSenderStorePacket 139642 [11:41:20]StoreOFDPacket docnum=139642 [11:41: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 BD 01 00 00 3A 31 B5 01 1C AF 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E8 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 6E 2A E5 4A AC 70 72 00 7A B5 10 DE 4C [11:41:20]CheckFolder [11:41:20]dirname=/storage/ofd_packets [11:41:20]CheckFolder done [11:41:20]ProducePacketName [11:41:20]name=ofd_packets/00139642 [11:41:20]NVStorageSaveData ofd_packets/00139642 [11:41:20]File name is /storage/ofd_packets/00139642 [11:41:20]Write 475 bytes [11:41:20]NVStorageSaveData done [11:41:20]OFDSenderStorePacket done [11:41:20]KKMCreateOFDPacket done [11:41:20]NVStorageSaveData kkm_last_timestamp [11:41:20]File name is /storage/kkm_last_timestamp [11:41:20]Write 4 bytes [11:41:20]NVStorageSaveData done [11:41:20]ExternCall_PrintAddStr [11:41:20]wPrintStart [11:41:20]Write to MH i2c: 01 00 00 68 87 EF [11:41:20]OFD Sender: Processing packet 139642 [packets to send 34, broken 33] [11:41:20]ProducePacketName [11:41:20]name=ofd_packets/00139642 [11:41:20]OFD Sender: To server: pG, [11:41:20]CommunicateWithHost lk.salyk.kg:30040 [11:41:20]ConnectInit lk.salyk.kg [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: 01 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: 01 07 00 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: 01 07 00 68 87 00 00 00 00 00 FF 0F 04 [11:41:20]RasterBufferAndPrint [11:41:20]line Счет N : (3)335503 [11:41:20]line ИНН: 02508201610067 [11:41:20]line Контрольно-Кассовый Чек [11:41:20]line ПРОДАЖА [11:41:20]line Товар: 4870202521230 [11:41:20]line Напиток MAXI чай 1,2 черн.лимон [11:41:20]line 1.000 * 125.00 [11:41:20]line = 125.00 [11:41:20]line НДС 12% НСП 1% [11:41:20]line > о реализуемом товаре [11:41:20]line Товар: 4700000160792 [11:41:20]line Снек Курут классический (круглый) [11:41:20]line 1.000 * 60.00 [11:41:20]line = 60.00 [11:41:20]line НДС 12% НСП 1% [11:41:20]line > о реализуемом товаре [11:41:20]line ИТОГО: 185.00 [11:41:20]line НСП 1% : 1.64 [11:41:20]line НДС 12% : 19.64 [11:41:20]line Наличными: 185.00 [11:41:20]line Безнал.: 0.00 [11:41:20]line Место: АЗС № 101 "Партнер Нефть" [11:41:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:41:20]line СНО: Общий режим [11:41:20]line Чек 119 31.10.2024 11:41 [11:41:20]line Смена: 557 ФФД: 1.0 [11:41:20]line ЗНМ: 0300000081 [11:41:20]line РНМ: 0000000000091631 [11:41:20]line Версия ККМ: 001 [11:41:20]line ФМ: 0000000000874669 [11:41:20]line ФД: 139642 [11:41:20]line ФПД: 181892584655532 [11:41:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T114128&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139642&fm=181892584655532&tin=02508201610067®Number=0000000000091631&sum=18500 [11:41:20]line 0 [11:41:20]written 0, free lines is 4095 [11:41:20]Connected sock=10 [11:41:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BD 01 00 00 3A 31 B5 01 1C AF 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E8 6C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 6E 2A E5 4A AC 70 72 00 7A B5 10 DE 4C [11:41:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E7 3E 47 00 AD 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 7A 21 02 00 F4 03 04 00 96 18 23 67 B6 04 01 00 00 E8 26 30 2C 09 01 06 56 [11:41:20]CommunicateWithHost err = 0 [11:41:20]CheckOFDResponse [11:41:20]1017 (14) - 77093643461234 [11:41:20]1041 (16) - 0000000000874669 [11:41:20]1040 (4) - 139642 [11:41:20]1012 (4) - 31.10.2024 05:41 [11:41:20]1206 (1) - 0 [11:41:20]OFD Sender: Remove packet 139642 [11:41:20]ProducePacketName [11:41:20]name=ofd_packets/00139642 [11:41:20]NVStorageDeleteData [11:41:21]Write to MH i2c: 01 00 00 98 87 1F [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: 01 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: 01 07 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: 01 07 00 98 87 00 00 00 00 00 AC 0C DE [11:41:21]RasterBufferAndPrint [11:41:21]line [11:41:21]line [11:41:21]line [11:41:21]line [11:41:21]line [11:41:21]written 0, free lines is 3250 [11:41:21]MH_Cut [11:41:21]Write to MH i2c: D1 01 00 9F 87 01 F8 [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: D1 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: D1 01 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: D1 01 00 9F 87 00 F7 [11:41:21]Write to MH i2c: 01 00 00 A0 87 27 [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]OFD Sender: No OFD packet to send [11:41:21]*** Cut start [11:41:21]*** Partial cut [11:41:21]*** CUTSNS_PIN = 1 [11:41:21]*** CUTSNS_PIN = 0 [11:41:22]*** Brake cut motor [11:41:22]Read from MH i2c: 01 [11:41:22]MH_I2C_Read... [11:41:22]*** Stop cut motor [11:41:22]*** Cut end [11:41:22]Read from MH i2c: 01 07 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: 01 07 00 A0 87 00 00 00 00 00 FF 0F 3C [11:41:22]process_action close_receipt done [11:41:22]requested_data is exist [11:41:22]produce_requested_data [11:41:22]requested_item fm.sn is exist - process it [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 11 00 00 [11:41:22]Write to MH i2c: E2 08 00 A1 87 80 11 00 00 00 00 00 00 A2 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 17 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 17 00 A1 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FD [11:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:41:22]wFMCommunicate OK [11:41:22]requested_item fd.num is exist - process it [11:41:22]SAM_PROTO_GetFieldsCounters [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 13 00 00 [11:41:22]Write to MH i2c: E2 08 00 A2 87 80 13 00 00 00 00 00 00 A5 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 62 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 62 00 A2 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 FA [11:41: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 7A 21 02 00 0E 04 04 00 2D 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:41:22]wFMCommunicate OK [11:41:22]SAM_PROTO_GetFieldsCounters done [11:41:22]requested_item shift.num is exist - process it [11:41:22]requested_item shift.opened is exist - process it [11:41:22]req_shift_opened [11:41:22]FM_GetShiftState [11:41:22]SAM_PROTO_GetShiftState [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 13 01 00 [11:41:22]Write to MH i2c: E2 08 00 A3 87 80 13 01 00 00 00 00 00 A7 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 0E 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 0E 00 A3 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D0 [11:41:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:41:22]wFMCommunicate OK [11:41:22]SAM_PROTO_GetShiftState done [11:41:22]FM_GetShiftState done [11:41:22]req_shift_opened done [11:41:22]requested_item shift.open_date is exist - process it [11:41:22]req_shift_open_date [11:41:22]req_shift_open_date done [11:41:22]produce_requested_data done [11:41:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139642,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:41:22]process_action_free close_receipt [11:41:22]json_value_free [11:41:22]json_value_free done [11:41:22]process_json_proto returns [11:41:22]Send response to host [11:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139642,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:41:22]free response buf [11:41:22]execute_script done [11:41:22]execute_script returns [11:41:22]free content buf [11:41:22]Sock 8.Close socket [11:41:22]Sock 8.Thread stoped [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:30]accept exits with 9 [11:42:30]New connection [11:42:30]New thread 3067284836 created [11:42:30]Thread 3067141476 joined [11:42:30]Waiting for new connection... [11:42:30] Sock 9.Parse request [11:42:30]Sock 9.Check first char [11:42:30]Sock 9.First char is OK [11:42:30]request: POST /json_proto HTTP/1.0 [11:42:30]Method: POST [11:42:30]URL: /json_proto [11:42:30]Method is POST - this is cgi request [11:42:30]url: /json_proto [11:42:30]query_string will be loaded in cgi processing [11:42:30]execute_cgi json_proto POST (null) [11:42:30]execute_cgi path=json_proto method=POST [11:42:30]POST find Content-Length [11:42:30]Host: 172.17.50.196:8080 [11:42:30]Content-Length: 644 [11:42:30]Content-Type: application/json [11:42:30] [11:42:30]POST finish read [11:42:30]Found Content-Length = 644 [11:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335504", "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" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:30]execute_script... [11:42:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335504", "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" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:30]POST & json_proto [11:42:30]process_json_proto [11:42:30]json parsed OK: [11:42:30]protocol is kg_v1.0 [11:42:30]action value=close_receipt [11:42:30]process_action close_receipt [11:42:30]cmd_close_receipt [11:42:30]MH_GetDate [11:42:30]Write to MH i2c: F0 00 00 A4 87 1A [11:42:30]Write i2c OK [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: F0 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: F0 09 00 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: F0 09 00 A4 87 00 30 6D 23 67 72 0D 1C 67 4C [11:42:30]GetLastDocTimeStamp 1730374888 [11:42:30]current date 1730374960 [11:42:30]FM_GetShiftState [11:42:30]SAM_PROTO_GetShiftState [11:42:30]wFMCommunicate request_size=4 [11:42:30]MH_SAM_APDU [11:42:30]CAPDU: 80 13 01 00 [11:42:30]Write to MH i2c: E2 08 00 A5 87 80 13 01 00 00 00 00 00 A9 [11:42:30]Write i2c OK [11:42:30]MH_I2C_Read... [11:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:30]Read from MH i2c: E2 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: E2 0E 00 [11:42:30]MH_I2C_Read... [11:42:30]Read from MH i2c: E2 0E 00 A5 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D2 [11:42:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:42:30]wFMCommunicate OK [11:42:30]SAM_PROTO_GetShiftState done [11:42:30]FM_GetShiftState done [11:42:30]opened in 1730332621 [11:42:30]opened+sec_in_day 1730419021 [11:42:30]quantity*price = 46000 [11:42:30]sum+1 = 46001 [11:42:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 120 31.10.2024 11:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139643 ФПД: 40766305563528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T114240&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139643&fm=40766305563528&tin=02508201610067®Number=0000000000091631&sum=46000 0 [11:42:31]StoreToDocumentArchive [11:42:31]shift 557 fd 139643 [11:42:31]save to /storage/0557/doc_00139643 [11:42:31]save last doc name /storage/0557/doc_00139643 to /storage/kkm_last_doc_name [11:42:31]save OK [11:42:31]Clear old archive folders... [11:42:31]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:42:31]tlvbuf is 0139D140 [11:42:31]SAM_PROTO_ClearQueue [11:42:31]wFMCommunicate request_size=4 [11:42:31]MH_SAM_APDU [11:42:31]CAPDU: 80 09 00 00 [11:42:31]Write to MH i2c: E2 08 00 B2 87 80 09 00 00 00 00 00 00 AB [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:31]Read from MH i2c: E2 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 B2 87 00 90 00 AD [11:42:31]RAPDU: 90 00 [11:42:31]wFMCommunicate OK [11:42:31]SAM_PROTO_ClearQueue done [11:42:31]KKMCreateOFDPacket [11:42:31]OFDProtocolAddRootSTLVToBuf [11:42:31]FM_MakeSignedData [11:42:31]FM_MakeSignedData [11:42:31]SAM_PROTO_SignData [11:42:31]wFMCommunicate request_size=4 [11:42:31]MH_SAM_APDU [11:42:31]CAPDU: 80 0D 01 02 [11:42:31]Write to MH i2c: E2 08 00 B3 87 80 0D 01 02 00 00 00 00 B3 [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:31]OFD Sender: No OFD packet to send [11:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:31]Read from MH i2c: E2 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 B3 87 00 90 00 AE [11:42:31]RAPDU: 90 00 [11:42:31]wFMCommunicate OK [11:42:31]wFMCommunicate request_size=255 [11:42:31]MH_SAM_APDU [11:42:31]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [11:42:31]Write to MH i2c: E2 02 01 B4 87 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 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 F2 [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:31]Read from MH i2c: E2 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 B4 87 00 90 00 AF [11:42:31]RAPDU: 90 00 [11:42:31]wFMCommunicate OK [11:42:31]wFMCommunicate request_size=39 [11:42:31]MH_SAM_APDU [11:42:31]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 7B 21 02 00 35 04 06 00 25 13 A5 29 73 88 [11:42:31]Write to MH i2c: E2 2A 00 B5 87 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 7B 21 02 00 35 04 06 00 25 13 A5 29 73 88 00 00 18 [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:31]Read from MH i2c: E2 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 03 00 B5 87 00 90 00 B0 [11:42:31]RAPDU: 90 00 [11:42:31]wFMCommunicate OK [11:42:31]wFMCommunicate request_size=4 [11:42:31]MH_SAM_APDU [11:42:31]CAPDU: 80 0D 03 02 [11:42:31]Write to MH i2c: E2 08 00 B6 87 80 0D 03 02 00 00 00 00 B8 [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:31]Read from MH i2c: E2 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 0B 00 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 0B 00 B6 87 00 F2 37 E8 62 26 A3 24 FC 90 00 15 [11:42:31]RAPDU: F2 37 E8 62 26 A3 24 FC 90 00 [11:42:31]wFMCommunicate OK [11:42:31]SAM_PROTO_SignData done [11:42:31]FM_MakeSignedData done [11:42:31]CreateOFDProtocolMessage [11:42:31]wFMCommunicate request_size=4 [11:42:31]MH_SAM_APDU [11:42:31]CAPDU: 80 11 00 00 [11:42:31]Write to MH i2c: E2 08 00 B7 87 80 11 00 00 00 00 00 00 B8 [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 17 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 17 00 B7 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 13 [11:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:42:32]wFMCommunicate OK [11:42:32]CreateOFDProtocolMessage done [11:42:32]OFDSenderStorePacket 139643 [11:42:32]StoreOFDPacket docnum=139643 [11:42: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 2C 01 00 00 AD 92 24 01 63 A5 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 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 25 13 A5 29 73 88 F2 37 E8 62 26 A3 24 FC [11:42:32]CheckFolder [11:42:32]dirname=/storage/ofd_packets [11:42:32]CheckFolder done [11:42:32]ProducePacketName [11:42:32]name=ofd_packets/00139643 [11:42:32]NVStorageSaveData ofd_packets/00139643 [11:42:32]File name is /storage/ofd_packets/00139643 [11:42:32]Write 330 bytes [11:42:32]NVStorageSaveData done [11:42:32]OFDSenderStorePacket done [11:42:32]KKMCreateOFDPacket done [11:42:32]NVStorageSaveData kkm_last_timestamp [11:42:32]File name is /storage/kkm_last_timestamp [11:42:32]Write 4 bytes [11:42:32]NVStorageSaveData done [11:42:32]ExternCall_PrintAddStr [11:42:32]wPrintStart [11:42:32]Write to MH i2c: 01 00 00 B8 87 3F [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 B8 87 00 00 00 00 00 FF 0F 54 [11:42:32]RasterBufferAndPrint [11:42:32]line Счет N : (3)335504 [11:42:32]line ИНН: 02508201610067 [11:42:32]line Контрольно-Кассовый Чек [11:42:32]line ПРОДАЖА [11:42:32]line Товар: 2000036210013 [11:42:32]line Кофе Капучино (GABB TRADE) [11:42:32]line 4.000 * 115.00 [11:42:32]line = 460.00 [11:42:32]line НДС 12% НСП 1% [11:42:32]line > о реализуемом товаре [11:42:32]line ИТОГО: 460.00 [11:42:32]line НСП 1% : 4.07 [11:42:32]line НДС 12% : 48.85 [11:42:32]line Наличными: 460.00 [11:42:32]line Безнал.: 0.00 [11:42:32]line Место: АЗС № 101 "Партнер Нефть" [11:42:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:42:32]line СНО: Общий режим [11:42:32]line Чек 120 31.10.2024 11:42 [11:42:32]line Смена: 557 ФФД: 1.0 [11:42:32]line ЗНМ: 0300000081 [11:42:32]line РНМ: 0000000000091631 [11:42:32]line Версия ККМ: 001 [11:42:32]line ФМ: 0000000000874669 [11:42:32]line ФД: 139643 [11:42:32]line ФПД: 40766305563528 [11:42:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T114240&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139643&fm=40766305563528&tin=02508201610067®Number=0000000000091631&sum=46000 [11:42:32]OFD Sender: Processing packet 139643 [packets to send 34, broken 33] [11:42:32]ProducePacketName [11:42:32]name=ofd_packets/00139643 [11:42:32]OFD Sender: To server: pG, [11:42:32]CommunicateWithHost lk.salyk.kg:30040 [11:42:32]ConnectInit lk.salyk.kg [11:42:32]line 0 [11:42:32]written 0, free lines is 4095 [11:42:32]Connected sock=10 [11:42:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 AD 92 24 01 63 A5 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 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 25 13 A5 29 73 88 F2 37 E8 62 26 A3 24 FC [11:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 31 5A 47 00 B8 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 21 02 00 F4 03 04 00 DE 18 23 67 B6 04 01 00 00 8A 40 EA E3 02 F2 52 F9 [11:42:32]CommunicateWithHost err = 0 [11:42:32]CheckOFDResponse [11:42:32]1017 (14) - 77093643461234 [11:42:32]1041 (16) - 0000000000874669 [11:42:32]1040 (4) - 139643 [11:42:32]1012 (4) - 31.10.2024 05:42 [11:42:32]1206 (1) - 0 [11:42:32]OFD Sender: Remove packet 139643 [11:42:32]ProducePacketName [11:42:32]name=ofd_packets/00139643 [11:42:32]NVStorageDeleteData [11:42:32]Write to MH i2c: 01 00 00 E0 87 67 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 E0 87 00 00 00 00 00 1F 0D 9A [11:42:32]RasterBufferAndPrint [11:42:32]line [11:42:32]line [11:42:32]line [11:42:32]line [11:42:32]line [11:42:32]written 0, free lines is 3368 [11:42:32]MH_Cut [11:42:32]Write to MH i2c: D1 01 00 E7 87 01 40 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: D1 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: D1 01 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: D1 01 00 E7 87 00 3F [11:42:32]Write to MH i2c: 01 00 00 E8 87 6F [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:33]OFD Sender: No OFD packet to send [11:42:33]*** Cut start [11:42:33]*** Partial cut [11:42:33]*** CUTSNS_PIN = 1 [11:42:33]*** CUTSNS_PIN = 0 [11:42:33]*** Brake cut motor [11:42:34]Read from MH i2c: 01 [11:42:34]MH_I2C_Read... [11:42:34]*** Stop cut motor [11:42:34]*** Cut end [11:42:34]Read from MH i2c: 01 07 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: 01 07 00 E8 87 00 00 00 00 00 FF 0F 84 [11:42:34]process_action close_receipt done [11:42:34]requested_data is exist [11:42:34]produce_requested_data [11:42:34]requested_item fm.sn is exist - process it [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 11 00 00 [11:42:34]Write to MH i2c: E2 08 00 E9 87 80 11 00 00 00 00 00 00 EA [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 17 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 17 00 E9 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 45 [11:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:42:34]wFMCommunicate OK [11:42:34]requested_item fd.num is exist - process it [11:42:34]SAM_PROTO_GetFieldsCounters [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 13 00 00 [11:42:34]Write to MH i2c: E2 08 00 EA 87 80 13 00 00 00 00 00 00 ED [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 62 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 62 00 EA 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 46 [11:42: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 7B 21 02 00 0E 04 04 00 2D 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:42:34]wFMCommunicate OK [11:42:34]SAM_PROTO_GetFieldsCounters done [11:42:34]requested_item shift.num is exist - process it [11:42:34]requested_item shift.opened is exist - process it [11:42:34]req_shift_opened [11:42:34]FM_GetShiftState [11:42:34]SAM_PROTO_GetShiftState [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 13 01 00 [11:42:34]Write to MH i2c: E2 08 00 EB 87 80 13 01 00 00 00 00 00 EF [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0E 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0E 00 EB 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 18 [11:42:34]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:42:34]wFMCommunicate OK [11:42:34]SAM_PROTO_GetShiftState done [11:42:34]FM_GetShiftState done [11:42:34]req_shift_opened done [11:42:34]requested_item shift.open_date is exist - process it [11:42:34]req_shift_open_date [11:42:34]req_shift_open_date done [11:42:34]produce_requested_data done [11:42:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139643,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:42:34]process_action_free close_receipt [11:42:34]json_value_free [11:42:34]json_value_free done [11:42:34]process_json_proto returns [11:42:34]Send response to host [11:42:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139643,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:42:34]free response buf [11:42:34]execute_script done [11:42:34]execute_script returns [11:42:34]free content buf [11:42:34]Sock 9.Close socket [11:42:34]Sock 9.Thread stoped [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:39]accept exits with 8 [11:44:39]New connection [11:44:39]New thread 3067141476 created [11:44:39]Thread 3067284836 joined [11:44:39]Waiting for new connection... [11:44:39] Sock 8.Parse request [11:44:39]Sock 8.Check first char [11:44:39]Sock 8.First char is OK [11:44:39]request: POST /json_proto HTTP/1.0 [11:44:39]Method: POST [11:44:39]URL: /json_proto [11:44:39]Method is POST - this is cgi request [11:44:39]url: /json_proto [11:44:39]query_string will be loaded in cgi processing [11:44:39]execute_cgi json_proto POST (null) [11:44:39]execute_cgi path=json_proto method=POST [11:44:39]POST find Content-Length [11:44:39]Host: 172.17.50.196:8080 [11:44:39]Content-Length: 683 [11:44:39]Content-Type: application/json [11:44:39] [11:44:39]POST finish read [11:44:39]Found Content-Length = 683 [11:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095123", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:39]execute_script... [11:44:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095123", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:39]POST & json_proto [11:44:39]process_json_proto [11:44:39]json parsed OK: [11:44:39]protocol is kg_v1.0 [11:44:39]action value=close_receipt [11:44:39]process_action close_receipt [11:44:39]cmd_close_receipt [11:44:39]MH_GetDate [11:44:39]Write to MH i2c: F0 00 00 EC 87 62 [11:44:39]Write i2c OK [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: F0 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: F0 09 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: F0 09 00 EC 87 00 B1 6D 23 67 72 0D 1C 67 15 [11:44:39]GetLastDocTimeStamp 1730374960 [11:44:39]current date 1730375089 [11:44:39]FM_GetShiftState [11:44:39]SAM_PROTO_GetShiftState [11:44:39]wFMCommunicate request_size=4 [11:44:39]MH_SAM_APDU [11:44:39]CAPDU: 80 13 01 00 [11:44:39]Write to MH i2c: E2 08 00 ED 87 80 13 01 00 00 00 00 00 F1 [11:44:39]Write i2c OK [11:44:39]MH_I2C_Read... [11:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:39]Read from MH i2c: E2 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 0E 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 0E 00 ED 87 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1A [11:44:39]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:44:39]wFMCommunicate OK [11:44:39]SAM_PROTO_GetShiftState done [11:44:39]FM_GetShiftState done [11:44:39]opened in 1730332621 [11:44:39]opened+sec_in_day 1730419021 [11:44:39]quantity*price = 100015 [11:44:39]sum+1 = 100017 [11:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 121 31.10.2024 11:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139644 ФПД: 21552566013843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T114449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139644&fm=21552566013843&tin=02508201610067®Number=0000000000091631&sum=100000 [11:44:40]StoreToDocumentArchive [11:44:40]shift 557 fd 139644 [11:44:40]save to /storage/0557/doc_00139644 [11:44:40]save last doc name /storage/0557/doc_00139644 to /storage/kkm_last_doc_name [11:44:40]save OK [11:44:40]Clear old archive folders... [11:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:40]tlvbuf is 0124F6B0 [11:44:40]SAM_PROTO_ClearQueue [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 09 00 00 [11:44:40]Write to MH i2c: E2 08 00 FA 87 80 09 00 00 00 00 00 00 F3 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 FA 87 00 90 00 F5 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]SAM_PROTO_ClearQueue done [11:44:40]KKMCreateOFDPacket [11:44:40]OFDProtocolAddRootSTLVToBuf [11:44:40]FM_MakeSignedData [11:44:40]FM_MakeSignedData [11:44:40]SAM_PROTO_SignData [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 01 02 [11:44:40]Write to MH i2c: E2 08 00 FB 87 80 0D 01 02 00 00 00 00 FB [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 FB 87 00 90 00 F6 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]wFMCommunicate request_size=255 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 [11:44:40]Write to MH i2c: E2 02 01 FC 87 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 00 00 86 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 FC 87 00 90 00 F7 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]wFMCommunicate request_size=10 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 02 02 05 9A 19 0A 8F 93 [11:44:40]Write to MH i2c: E2 0D 00 FD 87 80 0D 02 02 05 00 9A 19 0A 8F 93 00 00 E7 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 03 00 FD 87 00 90 00 F8 [11:44:40]RAPDU: 90 00 [11:44:40]wFMCommunicate OK [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 0D 03 02 [11:44:40]Write to MH i2c: E2 08 00 FE 87 80 0D 03 02 00 00 00 00 00 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 0B 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 0B 00 FE 87 00 93 85 11 43 FD 00 3D 32 90 00 D9 [11:44:40]RAPDU: 93 85 11 43 FD 00 3D 32 90 00 [11:44:40]wFMCommunicate OK [11:44:40]SAM_PROTO_SignData done [11:44:40]FM_MakeSignedData done [11:44:40]CreateOFDProtocolMessage [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 11 00 00 [11:44:40]Write to MH i2c: E2 08 00 FF 87 80 11 00 00 00 00 00 00 00 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 17 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 17 00 FF 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5B [11: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 [11:44:40]wFMCommunicate OK [11:44:40]CreateOFDProtocolMessage done [11:44:40]OFDSenderStorePacket 139644 [11:44:40]StoreOFDPacket docnum=139644 [11: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 0F 01 00 00 43 09 07 01 25 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 9A 19 0A 8F 93 93 85 11 43 FD 00 3D 32 [11:44:40]CheckFolder [11:44:40]dirname=/storage/ofd_packets [11:44:40]CheckFolder done [11:44:40]ProducePacketName [11:44:40]name=ofd_packets/00139644 [11:44:40]NVStorageSaveData ofd_packets/00139644 [11:44:40]File name is /storage/ofd_packets/00139644 [11:44:40]Write 301 bytes [11:44:40]NVStorageSaveData done [11:44:40]OFDSenderStorePacket done [11:44:40]KKMCreateOFDPacket done [11:44:40]NVStorageSaveData kkm_last_timestamp [11:44:40]File name is /storage/kkm_last_timestamp [11:44:40]Write 4 bytes [11:44:40]NVStorageSaveData done [11:44:40]ExternCall_PrintAddStr [11:44:40]wPrintStart [11:44:40]Write to MH i2c: 01 00 00 00 88 88 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: 01 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: 01 07 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: 01 07 00 00 88 00 00 00 00 00 FF 0F 9D [11:44:40]RasterBufferAndPrint [11:44:40]line Счет N : (1)1095123 [11:44:40]line ИНН: 02508201610067 [11:44:40]line Контрольно-Кассовый Чек [11:44:40]line ПРОДАЖА [11:44:40]line ТРК (МРК, ГНК) : 43 [11:44:40]line Товар: 2710124130 [11:44:40]line Аи-92-К-2 [11:44:40]line 14.950 * 66.90 [11:44:40]line = 1000.16 [11:44:40]line НДС 12% НСП 1% [11:44:40]line > о реализуемом товаре [11:44:40]line ОКРУГЛЕНИЕ: -0.16 [11:44:40]line ИТОГО: 1000.00 [11:44:40]line Внесено: 1000.00 [11:44:40]line СДАЧА: 0.00 [11:44:40]line НСП 1% : 8.85 [11:44:40]line НДС 12% : 106.21 [11:44:40]line Наличными: 1000.00 [11:44:40]line Безнал.: 0.00 [11:44:40]line Место: АЗС № 101 "Партнер Нефть" [11:44:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:44:40]line СНО: Общий режим [11:44:40]line Чек 121 31.10.2024 11:44 [11:44:40]line Смена: 557 ФФД: 1.0 [11:44:40]line ЗНМ: 0300000081 [11:44:40]line РНМ: 0000000000091631 [11:44:40]line Версия ККМ: 001 [11:44:40]line ФМ: 0000000000874669 [11:44:40]line ФД: 139644 [11:44:40]line ФПД: 21552566013843 [11:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T114449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139644&fm=21552566013843&tin=02508201610067®Number=0000000000091631&sum=100000 [11:44:40]written 0, free lines is 4095 [11:44:40]OFD Sender: Processing packet 139644 [packets to send 34, broken 33] [11:44:40]ProducePacketName [11:44:40]name=ofd_packets/00139644 [11:44:40]OFD Sender: To server: pG, [11:44:40]CommunicateWithHost lk.salyk.kg:30040 [11:44:40]ConnectInit lk.salyk.kg [11:44:41]Connected sock=10 [11:44: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 0F 01 00 00 43 09 07 01 25 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B1 6D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 9A 19 0A 8F 93 93 85 11 43 FD 00 3D 32 [11:44: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 DA ED 47 00 27 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 7C 21 02 00 F4 03 04 00 5E 19 23 67 B6 04 01 00 00 92 F6 FA 9C C2 FB 57 2E [11:44:41]CommunicateWithHost err = 0 [11:44:41]CheckOFDResponse [11:44:41]1017 (14) - 77093643461234 [11:44:41]1041 (16) - 0000000000874669 [11:44:41]1040 (4) - 139644 [11:44:41]1012 (4) - 31.10.2024 05:45 [11:44:41]1206 (1) - 0 [11:44:41]OFD Sender: Remove packet 139644 [11:44:41]ProducePacketName [11:44:41]name=ofd_packets/00139644 [11:44:41]NVStorageDeleteData [11:44:41]Write to MH i2c: 01 00 00 2B 88 B3 [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: 01 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: 01 07 00 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: 01 07 00 2B 88 00 00 00 00 00 F8 0C BE [11:44:41]RasterBufferAndPrint [11:44:41]line [11:44:41]line [11:44:41]line [11:44:41]line [11:44:41]line [11:44:41]written 0, free lines is 3326 [11:44:41]MH_Cut [11:44:41]Write to MH i2c: D1 01 00 32 88 01 8C [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: D1 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: D1 01 00 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: D1 01 00 32 88 00 8B [11:44:41]Write to MH i2c: 01 00 00 33 88 BB [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]OFD Sender: No OFD packet to send [11:44:42]*** Cut start [11:44:42]*** Partial cut [11:44:42]*** CUTSNS_PIN = 1 [11:44:42]*** CUTSNS_PIN = 0 [11:44:42]*** Brake cut motor [11:44:42]Read from MH i2c: 01 [11:44:42]MH_I2C_Read... [11:44:42]*** Stop cut motor [11:44:42]*** Cut end [11:44:42]Read from MH i2c: 01 07 00 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: 01 07 00 33 88 00 00 00 00 00 FF 0F D0 [11:44:42]process_action close_receipt done [11:44:42]requested_data is exist [11:44:42]produce_requested_data [11:44:42]requested_item fm.sn is exist - process it [11:44:42]wFMCommunicate request_size=4 [11:44:42]MH_SAM_APDU [11:44:42]CAPDU: 80 11 00 00 [11:44:42]Write to MH i2c: E2 08 00 34 88 80 11 00 00 00 00 00 00 36 [11:44:42]Write i2c OK [11:44:42]MH_I2C_Read... [11:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:42]Read from MH i2c: E2 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 17 00 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 17 00 34 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 91 [11: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 [11:44:42]wFMCommunicate OK [11:44:42]requested_item fd.num is exist - process it [11:44:42]SAM_PROTO_GetFieldsCounters [11:44:42]wFMCommunicate request_size=4 [11:44:42]MH_SAM_APDU [11:44:42]CAPDU: 80 13 00 00 [11:44:42]Write to MH i2c: E2 08 00 35 88 80 13 00 00 00 00 00 00 39 [11:44:42]Write i2c OK [11:44:42]MH_I2C_Read... [11:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:42]Read from MH i2c: E2 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 62 00 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 62 00 35 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 96 [11: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 7C 21 02 00 0E 04 04 00 2D 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:44:42]wFMCommunicate OK [11:44:42]SAM_PROTO_GetFieldsCounters done [11:44:42]requested_item shift.num is exist - process it [11:44:42]requested_item shift.opened is exist - process it [11:44:42]req_shift_opened [11:44:42]FM_GetShiftState [11:44:42]SAM_PROTO_GetShiftState [11:44:42]wFMCommunicate request_size=4 [11:44:42]MH_SAM_APDU [11:44:42]CAPDU: 80 13 01 00 [11:44:42]Write to MH i2c: E2 08 00 36 88 80 13 01 00 00 00 00 00 3B [11:44:42]Write i2c OK [11:44:42]MH_I2C_Read... [11:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:42]Read from MH i2c: E2 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 0E 00 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 0E 00 36 88 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 64 [11:44:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:44:42]wFMCommunicate OK [11:44:42]SAM_PROTO_GetShiftState done [11:44:42]FM_GetShiftState done [11:44:42]req_shift_opened done [11:44:42]requested_item shift.open_date is exist - process it [11:44:42]req_shift_open_date [11:44:42]req_shift_open_date done [11:44:42]produce_requested_data done [11:44:42]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139644,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:44:42]process_action_free close_receipt [11:44:42]json_value_free [11:44:42]json_value_free done [11:44:42]process_json_proto returns [11:44:42]Send response to host [11:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139644,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:44:42]free response buf [11:44:42]execute_script done [11:44:42]execute_script returns [11:44:42]free content buf [11:44:42]Sock 8.Close socket [11:44:42]Sock 8.Thread stoped [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: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:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:28]ConnectInit Can't connect to host [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:15]accept exits with 9 [11:53:15]New connection [11:53:15]New thread 3067284836 created [11:53:15]Thread 3067141476 joined [11:53:15]Waiting for new connection... [11:53:15] Sock 9.Parse request [11:53:15]Sock 9.Check first char [11:53:15]Sock 9.First char is OK [11:53:15]request: POST /json_proto HTTP/1.0 [11:53:15]Method: POST [11:53:15]URL: /json_proto [11:53:15]Method is POST - this is cgi request [11:53:15]url: /json_proto [11:53:15]query_string will be loaded in cgi processing [11:53:15]execute_cgi json_proto POST (null) [11:53:15]execute_cgi path=json_proto method=POST [11:53:15]POST find Content-Length [11:53:15]Host: 172.17.50.196:8080 [11:53:15]Content-Length: 1914 [11:53:15]Content-Type: application/json [11:53:15] [11:53:15]POST finish read [11:53:15]Found Content-Length = 1914 [11:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335505", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 593.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:15]execute_script... [11:53: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)335505", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 593.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:16]POST & json_proto [11:53:16]process_json_proto [11:53:16]json parsed OK: [11:53:16]protocol is kg_v1.0 [11:53:16]action value=close_receipt [11:53:16]process_action close_receipt [11:53:16]cmd_close_receipt [11:53:16]MH_GetDate [11:53:16]Write to MH i2c: F0 00 00 37 88 AE [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: F0 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: F0 09 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: F0 09 00 37 88 00 B6 6F 23 67 72 0D 1C 67 68 [11:53:16]GetLastDocTimeStamp 1730375089 [11:53:16]current date 1730375606 [11:53:16]FM_GetShiftState [11:53:16]SAM_PROTO_GetShiftState [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 13 01 00 [11:53:16]Write to MH i2c: E2 08 00 38 88 80 13 01 00 00 00 00 00 3D [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0E 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0E 00 38 88 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 66 [11:53:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_GetShiftState done [11:53:16]FM_GetShiftState done [11:53:16]opened in 1730332621 [11:53:16]opened+sec_in_day 1730419021 [11:53:16]quantity*price = 25000 [11:53:16]sum+1 = 25001 [11:53:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235333 Пряники Яшкино с вареной сгущенкой 350г 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 593.00 НСП 1% : 5.24 НДС 12% : 62.96 Наличными: 0.00 Безнал.: 593.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 122 31.10.2024 11:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139645 ФПД: 74277072027459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T115326&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139645&fm=74277072027459&tin=02508201610067®Number=0000000000091631&sum=59300 0 [11:53:17]StoreToDocumentArchive [11:53:17]shift 557 fd 139645 [11:53:17]save to /storage/0557/doc_00139645 [11:53:17]save last doc name /storage/0557/doc_00139645 to /storage/kkm_last_doc_name [11:53:17]save OK [11:53:17]Clear old archive folders... [11:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=741 [11:53:17]tlvbuf is 0124F170 [11:53:17]SAM_PROTO_ClearQueue [11:53:17]wFMCommunicate request_size=4 [11:53:17]MH_SAM_APDU [11:53:17]CAPDU: 80 09 00 00 [11:53:17]Write to MH i2c: E2 08 00 45 88 80 09 00 00 00 00 00 00 3F [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:17]Read from MH i2c: E2 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 45 88 00 90 00 41 [11:53:17]RAPDU: 90 00 [11:53:17]wFMCommunicate OK [11:53:17]SAM_PROTO_ClearQueue done [11:53:17]KKMCreateOFDPacket [11:53:17]OFDProtocolAddRootSTLVToBuf [11:53:17]FM_MakeSignedData [11:53:17]FM_MakeSignedData [11:53:17]SAM_PROTO_SignData [11:53:17]wFMCommunicate request_size=4 [11:53:17]MH_SAM_APDU [11:53:17]CAPDU: 80 0D 01 02 [11:53:17]Write to MH i2c: E2 08 00 46 88 80 0D 01 02 00 00 00 00 47 [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:17]Read from MH i2c: E2 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 46 88 00 90 00 42 [11:53:17]RAPDU: 90 00 [11:53:17]wFMCommunicate OK [11:53:17]wFMCommunicate request_size=255 [11:53:17]MH_SAM_APDU [11:53:17]CAPDU: 80 0D 02 02 FA 03 00 E5 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 [11:53:17]Write to MH i2c: E2 02 01 47 88 80 0D 02 02 FA 00 03 00 E5 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 00 00 C6 [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 47 88 00 90 00 43 [11:53:18]RAPDU: 90 00 [11:53:18]wFMCommunicate OK [11:53:18]wFMCommunicate request_size=255 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 0D 02 02 FA 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 [11:53:18]Write to MH i2c: E2 02 01 48 88 80 0D 02 02 FA 00 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 00 00 B9 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 48 88 00 90 00 44 [11:53:18]RAPDU: 90 00 [11:53:18]wFMCommunicate OK [11:53:18]wFMCommunicate request_size=250 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 0D 02 02 F5 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 E7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B6 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 43 8D FA 7E 3F 43 [11:53:18]Write to MH i2c: E2 FD 00 49 88 80 0D 02 02 F5 00 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 E7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B6 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 43 8D FA 7E 3F 43 00 00 29 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 49 88 00 90 00 45 [11:53:18]RAPDU: 90 00 [11:53:18]wFMCommunicate OK [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 0D 03 02 [11:53:18]Write to MH i2c: E2 08 00 4A 88 80 0D 03 02 00 00 00 00 4D [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 0B 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 0B 00 4A 88 00 E3 83 FE 00 45 C2 F4 3E 90 00 EB [11:53:18]RAPDU: E3 83 FE 00 45 C2 F4 3E 90 00 [11:53:18]wFMCommunicate OK [11:53:18]SAM_PROTO_SignData done [11:53:18]FM_MakeSignedData done [11:53:18]CreateOFDProtocolMessage [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 11 00 00 [11:53:18]Write to MH i2c: E2 08 00 4B 88 80 11 00 00 00 00 00 00 4D [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 17 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 17 00 4B 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A8 [11:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:53:18]wFMCommunicate OK [11:53:18]CreateOFDProtocolMessage done [11:53:18]OFDSenderStorePacket 139645 [11:53:18]StoreOFDPacket docnum=139645 [11:53: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 F9 02 00 00 67 2E F1 02 26 42 5A 03 01 00 03 00 E5 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 E7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B6 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 43 8D FA 7E 3F 43 E3 83 FE 00 45 C2 F4 3E [11:53:18]CheckFolder [11:53:18]dirname=/storage/ofd_packets [11:53:18]CheckFolder done [11:53:18]ProducePacketName [11:53:18]name=ofd_packets/00139645 [11:53:18]NVStorageSaveData ofd_packets/00139645 [11:53:18]File name is /storage/ofd_packets/00139645 [11:53:18]Write 791 bytes [11:53:18]NVStorageSaveData done [11:53:18]OFDSenderStorePacket done [11:53:18]KKMCreateOFDPacket done [11:53:18]NVStorageSaveData kkm_last_timestamp [11:53:18]File name is /storage/kkm_last_timestamp [11:53:18]Write 4 bytes [11:53:18]NVStorageSaveData done [11:53:18]ExternCall_PrintAddStr [11:53:18]wPrintStart [11:53:18]Write to MH i2c: 01 00 00 4C 88 D4 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: 01 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: 01 07 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: 01 07 00 4C 88 00 00 00 00 00 FF 0F E9 [11:53:18]RasterBufferAndPrint [11:53:18]line Счет N : (3)335505 [11:53:18]line ИНН: 02508201610067 [11:53:18]line Контрольно-Кассовый Чек [11:53:18]line ПРОДАЖА [11:53:18]line Товар: 2000036190018 [11:53:18]line Кофе Американо XL(GABB TRADE) [11:53:18]line 2.000 * 125.00 [11:53:18]line = 250.00 [11:53:18]line НДС 12% НСП 1% [11:53:18]line > о реализуемом товаре [11:53:18]line Товар: 2000036230011 [11:53:18]line Кофе Латте XL(GABB TRADE) [11:53:18]line 1.000 * 130.00 [11:53:18]line = 130.00 [11:53:18]line НДС 12% НСП 1% [11:53:18]line > о реализуемом товаре [11:53:18]line Товар: 4607015235333 [11:53:18]line Пряники Яшкино с вареной сгущенкой 350г [11:53:18]line 1.000 * 149.00 [11:53:18]line = 149.00 [11:53:18]line НДС 12% НСП 1% [11:53:18]line > о реализуемом товаре [11:53:18]line Товар: 2000031750019 [11:53:18]line Пакет Партнер Нефть [11:53:18]line 1.000 * 4.00 [11:53:18]line = 4.00 [11:53:18]line НДС 12% НСП 1% [11:53:18]line > о реализуемом товаре [11:53:18]line Товар: 4700000160204 [11:53:18]line Вода Легенда 1,5л [11:53:18]line 1.000 * 60.00 [11:53:18]line = 60.00 [11:53:18]line НДС 12% НСП 1% [11:53:19]line > о реализуемом товаре [11:53:19]line ИТОГО: 593.00 [11:53:19]line НСП 1% : 5.24 [11:53:19]line НДС 12% : 62.96 [11:53:19]line Наличными: 0.00 [11:53:19]line Безнал.: 593.00 [11:53:19]line Место: АЗС № 101 "Партнер Нефть" [11:53:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:53:19]line СНО: Общий режим [11:53:19]line Чек 122 31.10.2024 11:53 [11:53:19]line Смена: 557 ФФД: 1.0 [11:53:19]line ЗНМ: 0300000081 [11:53:19]line РНМ: 0000000000091631 [11:53:19]line Версия ККМ: 001 [11:53:19]line Платежная система: Mbank [11:53:19]line ФМ: 0000000000874669 [11:53:19]line ФД: 139645 [11:53:19]line ФПД: 74277072027459 [11:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T115326&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139645&fm=74277072027459&tin=02508201610067®Number=0000000000091631&sum=59300 [11:53:19]OFD Sender: Processing packet 139645 [packets to send 34, broken 33] [11:53:19]ProducePacketName [11:53:19]name=ofd_packets/00139645 [11:53:19]OFD Sender: To server: pG, [11:53:19]CommunicateWithHost lk.salyk.kg:30040 [11:53:19]ConnectInit lk.salyk.kg [11:53:19]line 0 [11:53:19]written 0, free lines is 4095 [11:53:19]Connected sock=11 [11:53: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 F9 02 00 00 67 2E F1 02 26 42 5A 03 01 00 03 00 E5 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 E7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B6 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 43 8D FA 7E 3F 43 E3 83 FE 00 45 C2 F4 3E [11:53: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 50 32 47 00 C9 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 7D 21 02 00 F4 03 04 00 65 1B 23 67 B6 04 01 00 00 D8 71 BB 0F 71 B7 AF B1 [11:53:19]CommunicateWithHost err = 0 [11:53:19]CheckOFDResponse [11:53:19]1017 (14) - 77093643461234 [11:53:19]1041 (16) - 0000000000874669 [11:53:19]1040 (4) - 139645 [11:53:19]1012 (4) - 31.10.2024 05:53 [11:53:19]1206 (1) - 0 [11:53:19]OFD Sender: Remove packet 139645 [11:53:19]ProducePacketName [11:53:19]name=ofd_packets/00139645 [11:53:19]NVStorageDeleteData [11:53:19]Write to MH i2c: 01 00 00 8F 88 17 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 07 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 07 00 8F 88 00 00 00 00 00 DC 0B 05 [11:53:19]RasterBufferAndPrint [11:53:19]line [11:53:19]line [11:53:19]line [11:53:19]line [11:53:19]line [11:53:19]written 0, free lines is 3048 [11:53:19]MH_Cut [11:53:19]Write to MH i2c: D1 01 00 96 88 01 F0 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: D1 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: D1 01 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: D1 01 00 96 88 00 EF [11:53:19]Write to MH i2c: 01 00 00 97 88 1F [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:20]OFD Sender: No OFD packet to send [11:53:20]*** Cut start [11:53:20]*** Partial cut [11:53:20]*** CUTSNS_PIN = 1 [11:53:20]*** CUTSNS_PIN = 0 [11:53:21]*** Brake cut motor [11:53:21]Read from MH i2c: 01 [11:53:21]MH_I2C_Read... [11:53:21]*** Stop cut motor [11:53:21]*** Cut end [11:53:21]Read from MH i2c: 01 07 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: 01 07 00 97 88 00 00 00 00 00 FF 0F 34 [11:53:21]process_action close_receipt done [11:53:21]requested_data is exist [11:53:21]produce_requested_data [11:53:21]requested_item fm.sn is exist - process it [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 11 00 00 [11:53:21]Write to MH i2c: E2 08 00 98 88 80 11 00 00 00 00 00 00 9A [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 17 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 17 00 98 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F5 [11:53: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:53:21]wFMCommunicate OK [11:53:21]requested_item fd.num is exist - process it [11:53:21]SAM_PROTO_GetFieldsCounters [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 13 00 00 [11:53:21]Write to MH i2c: E2 08 00 99 88 80 13 00 00 00 00 00 00 9D [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 62 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 62 00 99 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 FE [11:53: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 7D 21 02 00 0E 04 04 00 2D 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 [11:53:21]wFMCommunicate OK [11:53:21]SAM_PROTO_GetFieldsCounters done [11:53:21]requested_item shift.num is exist - process it [11:53:21]requested_item shift.opened is exist - process it [11:53:21]req_shift_opened [11:53:21]FM_GetShiftState [11:53:21]SAM_PROTO_GetShiftState [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 13 01 00 [11:53:21]Write to MH i2c: E2 08 00 9A 88 80 13 01 00 00 00 00 00 9F [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 0E 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 0E 00 9A 88 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C8 [11:53:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:53:21]wFMCommunicate OK [11:53:21]SAM_PROTO_GetShiftState done [11:53:21]FM_GetShiftState done [11:53:21]req_shift_opened done [11:53:21]requested_item shift.open_date is exist - process it [11:53:21]req_shift_open_date [11:53:21]req_shift_open_date done [11:53:21]produce_requested_data done [11:53:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139645,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:53:21]process_action_free close_receipt [11:53:21]json_value_free [11:53:21]json_value_free done [11:53:21]process_json_proto returns [11:53:21]Send response to host [11:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139645,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:53:21]free response buf [11:53:21]execute_script done [11:53:21]execute_script returns [11:53:21]free content buf [11:53:21]Sock 9.Close socket [11:53:21]Sock 9.Thread stoped [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:53]accept exits with 10 [11:53:53]New connection [11:53:53]New thread 3067141476 created [11:53:53]Thread 3067284836 joined [11:53:53]Waiting for new connection... [11:53:54] Sock 10.Parse request [11:53:54]Sock 10.Check first char [11:53:54]Sock 10.First char is OK [11:53:54]request: POST /json_proto HTTP/1.0 [11:53:54]Method: POST [11:53:54]URL: /json_proto [11:53:54]Method is POST - this is cgi request [11:53:54]url: /json_proto [11:53:54]query_string will be loaded in cgi processing [11:53:54]execute_cgi json_proto POST (null) [11:53:54]execute_cgi path=json_proto method=POST [11:53:54]POST find Content-Length [11:53:54]Host: 172.17.50.196:8080 [11:53:54]Content-Length: 677 [11:53:54]Content-Type: application/json [11:53:54] [11:53:54]POST finish read [11:53:54]Found Content-Length = 677 [11:53:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335507", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:54]execute_script... [11:53: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)335507", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:54]POST & json_proto [11:53:54]process_json_proto [11:53:54]json parsed OK: [11:53:54]protocol is kg_v1.0 [11:53:54]action value=close_receipt [11:53:54]process_action close_receipt [11:53:54]cmd_close_receipt [11:53:54]MH_GetDate [11:53:54]Write to MH i2c: F0 00 00 9B 88 12 [11:53:54]Write i2c OK [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: F0 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: F0 09 00 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: F0 09 00 9B 88 00 DC 6F 23 67 72 0D 1C 67 F2 [11:53:54]GetLastDocTimeStamp 1730375606 [11:53:54]current date 1730375644 [11:53:54]FM_GetShiftState [11:53:54]SAM_PROTO_GetShiftState [11:53:54]wFMCommunicate request_size=4 [11:53:54]MH_SAM_APDU [11:53:54]CAPDU: 80 13 01 00 [11:53:54]Write to MH i2c: E2 08 00 9C 88 80 13 01 00 00 00 00 00 A1 [11:53:54]Write i2c OK [11:53:54]MH_I2C_Read... [11:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:54]Read from MH i2c: E2 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: E2 0E 00 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: E2 0E 00 9C 88 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CA [11:53:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:53:54]wFMCommunicate OK [11:53:54]SAM_PROTO_GetShiftState done [11:53:54]FM_GetShiftState done [11:53:54]opened in 1730332621 [11:53:54]opened+sec_in_day 1730419021 [11:53:54]quantity*price = 19800 [11:53:54]sum+1 = 19801 [11:53:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 198.00 НСП 1% : 1.75 НДС 12% : 21.03 Наличными: 198.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 123 31.10.2024 11:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139646 ФПД: 188329566301583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T115404&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139646&fm=188329566301583&tin=02508201610067®Number=0000000000091631&sum=19800 0 [11:53:55]StoreToDocumentArchive [11:53:55]shift 557 fd 139646 [11:53:55]save to /storage/0557/doc_00139646 [11:53:55]save last doc name /storage/0557/doc_00139646 to /storage/kkm_last_doc_name [11:53:55]save OK [11:53:55]Clear old archive folders... [11:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:53:55]tlvbuf is 01401060 [11:53:55]SAM_PROTO_ClearQueue [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 09 00 00 [11:53:55]Write to MH i2c: E2 08 00 A9 88 80 09 00 00 00 00 00 00 A3 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]OFD Sender: No OFD packet to send [11:53:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 A9 88 00 90 00 A5 [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]SAM_PROTO_ClearQueue done [11:53:55]KKMCreateOFDPacket [11:53:55]OFDProtocolAddRootSTLVToBuf [11:53:55]FM_MakeSignedData [11:53:55]FM_MakeSignedData [11:53:55]SAM_PROTO_SignData [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 0D 01 02 [11:53:55]Write to MH i2c: E2 08 00 AA 88 80 0D 01 02 00 00 00 00 AB [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 AA 88 00 90 00 A6 [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]wFMCommunicate request_size=255 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 DC 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:53:55]Write to MH i2c: E2 02 01 AB 88 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 DC 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 0E [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 AB 88 00 90 00 A7 [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]wFMCommunicate request_size=53 [11:53:55]MH_SAM_APDU [11:53:55]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 7E 21 02 00 35 04 06 00 AB 48 E4 E6 6D 8F [11:53:55]Write to MH i2c: E2 38 00 AC 88 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 7E 21 02 00 35 04 06 00 AB 48 E4 E6 6D 8F 00 00 00 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 AC 88 00 90 00 A8 [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 0D 03 02 [11:53:55]Write to MH i2c: E2 08 00 AD 88 80 0D 03 02 00 00 00 00 B0 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0B 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0B 00 AD 88 00 D8 9A 0C 7B 29 95 54 00 90 00 BC [11:53:55]RAPDU: D8 9A 0C 7B 29 95 54 00 90 00 [11:53:55]wFMCommunicate OK [11:53:55]SAM_PROTO_SignData done [11:53:55]FM_MakeSignedData done [11:53:55]CreateOFDProtocolMessage [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 11 00 00 [11:53:55]Write to MH i2c: E2 08 00 AE 88 80 11 00 00 00 00 00 00 B0 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 17 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 17 00 AE 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [11:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:53:55]wFMCommunicate OK [11:53:55]CreateOFDProtocolMessage done [11:53:55]OFDSenderStorePacket 139646 [11:53:55]StoreOFDPacket docnum=139646 [11:53: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 3A 01 00 00 B8 9B 32 01 26 E2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 DC 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AB 48 E4 E6 6D 8F D8 9A 0C 7B 29 95 54 00 [11:53:55]CheckFolder [11:53:55]dirname=/storage/ofd_packets [11:53:55]CheckFolder done [11:53:55]ProducePacketName [11:53:55]name=ofd_packets/00139646 [11:53:55]NVStorageSaveData ofd_packets/00139646 [11:53:55]File name is /storage/ofd_packets/00139646 [11:53:55]Write 344 bytes [11:53:55]NVStorageSaveData done [11:53:55]OFDSenderStorePacket done [11:53:55]KKMCreateOFDPacket done [11:53:55]NVStorageSaveData kkm_last_timestamp [11:53:55]File name is /storage/kkm_last_timestamp [11:53:55]Write 4 bytes [11:53:55]NVStorageSaveData done [11:53:55]ExternCall_PrintAddStr [11:53:55]wPrintStart [11:53:55]Write to MH i2c: 01 00 00 AF 88 37 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: 01 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: 01 07 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: 01 07 00 AF 88 00 00 00 00 00 FF 0F 4C [11:53:55]RasterBufferAndPrint [11:53:55]line Счет N : (3)335507 [11:53:55]line ИНН: 02508201610067 [11:53:55]line Контрольно-Кассовый Чек [11:53:55]line ПРОДАЖА [11:53:55]line Товар: 4870022003312 [11:53:55]line Gorilla эн нап манго-кокос 0,45 ж/б [11:53:55]line 2.000 * 99.00 [11:53:55]line = 198.00 [11:53:55]line НДС 12% НСП 1% [11:53:55]line > о реализуемом товаре [11:53:55]line ИТОГО: 198.00 [11:53:55]line НСП 1% : 1.75 [11:53:55]line НДС 12% : 21.03 [11:53:55]line Наличными: 198.00 [11:53:55]line Безнал.: 0.00 [11:53:55]line Место: АЗС № 101 "Партнер Нефть" [11:53:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:53:55]line СНО: Общий режим [11:53:55]line Чек 123 31.10.2024 11:54 [11:53:55]line Смена: 557 ФФД: 1.0 [11:53:55]line ЗНМ: 0300000081 [11:53:55]line РНМ: 0000000000091631 [11:53:55]line Версия ККМ: 001 [11:53:55]line ФМ: 0000000000874669 [11:53:55]line ФД: 139646 [11:53:55]line ФПД: 188329566301583 [11:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T115404&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139646&fm=188329566301583&tin=02508201610067®Number=0000000000091631&sum=19800 [11:53:55]line 0 [11:53:55]OFD Sender: Processing packet 139646 [packets to send 34, broken 33] [11:53:55]ProducePacketName [11:53:55]name=ofd_packets/00139646 [11:53:55]OFD Sender: To server: pG, [11:53:55]CommunicateWithHost lk.salyk.kg:30040 [11:53:55]ConnectInit lk.salyk.kg [11:53:55]written 0, free lines is 4095 [11:53:56]Connected sock=11 [11:53: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 3A 01 00 00 B8 9B 32 01 26 E2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 DC 6F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AB 48 E4 E6 6D 8F D8 9A 0C 7B 29 95 54 00 [11:53: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 BA D8 47 00 AC 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 7E 21 02 00 F4 03 04 00 8A 1B 23 67 B6 04 01 00 00 8C DA 45 FF 83 60 44 B1 [11:53:56]CommunicateWithHost err = 0 [11:53:56]CheckOFDResponse [11:53:56]1017 (14) - 77093643461234 [11:53:56]1041 (16) - 0000000000874669 [11:53:56]1040 (4) - 139646 [11:53:56]1012 (4) - 31.10.2024 05:54 [11:53:56]1206 (1) - 0 [11:53:56]OFD Sender: Remove packet 139646 [11:53:56]ProducePacketName [11:53:56]name=ofd_packets/00139646 [11:53:56]NVStorageDeleteData [11:53:56]Write to MH i2c: 01 00 00 D8 88 60 [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: 01 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: 01 07 00 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: 01 07 00 D8 88 00 00 00 00 00 36 0D AA [11:53:56]RasterBufferAndPrint [11:53:56]line [11:53:56]line [11:53:56]line [11:53:56]line [11:53:56]line [11:53:56]written 0, free lines is 3406 [11:53:56]MH_Cut [11:53:56]Write to MH i2c: D1 01 00 DF 88 01 39 [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: D1 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: D1 01 00 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: D1 01 00 DF 88 00 38 [11:53:56]Write to MH i2c: 01 00 00 E0 88 68 [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]OFD Sender: No OFD packet to send [11:53:57]*** Cut start [11:53:57]*** Partial cut [11:53:57]*** CUTSNS_PIN = 1 [11:53:57]*** CUTSNS_PIN = 0 [11:53:57]*** Brake cut motor [11:53:57]Read from MH i2c: 01 [11:53:57]MH_I2C_Read... [11:53:57]*** Stop cut motor [11:53:57]*** Cut end [11:53:57]Read from MH i2c: 01 07 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 07 00 E0 88 00 00 00 00 00 FF 0F 7D [11:53:57]process_action close_receipt done [11:53:57]requested_data is exist [11:53:57]produce_requested_data [11:53:57]requested_item fm.sn is exist - process it [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 11 00 00 [11:53:57]Write to MH i2c: E2 08 00 E1 88 80 11 00 00 00 00 00 00 E3 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 E1 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3E [11:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:53:57]wFMCommunicate OK [11:53:57]requested_item fd.num is exist - process it [11:53:57]SAM_PROTO_GetFieldsCounters [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 13 00 00 [11:53:57]Write to MH i2c: E2 08 00 E2 88 80 13 00 00 00 00 00 00 E6 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 62 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 62 00 E2 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 4B [11:53: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 7E 21 02 00 0E 04 04 00 2D 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 [11:53:58]wFMCommunicate OK [11:53:58]SAM_PROTO_GetFieldsCounters done [11:53:58]requested_item shift.num is exist - process it [11:53:58]requested_item shift.opened is exist - process it [11:53:58]req_shift_opened [11:53:58]FM_GetShiftState [11:53:58]SAM_PROTO_GetShiftState [11:53:58]wFMCommunicate request_size=4 [11:53:58]MH_SAM_APDU [11:53:58]CAPDU: 80 13 01 00 [11:53:58]Write to MH i2c: E2 08 00 E3 88 80 13 01 00 00 00 00 00 E8 [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:58]Read from MH i2c: E2 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 0E 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 0E 00 E3 88 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 11 [11:53:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [11:53:58]wFMCommunicate OK [11:53:58]SAM_PROTO_GetShiftState done [11:53:58]FM_GetShiftState done [11:53:58]req_shift_opened done [11:53:58]requested_item shift.open_date is exist - process it [11:53:58]req_shift_open_date [11:53:58]req_shift_open_date done [11:53:58]produce_requested_data done [11:53:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139646,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [11:53:58]process_action_free close_receipt [11:53:58]json_value_free [11:53:58]json_value_free done [11:53:58]process_json_proto returns [11:53:58]Send response to host [11:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139646,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [11:53:58]free response buf [11:53:58]execute_script done [11:53:58]execute_script returns [11:53:58]free content buf [11:53:58]Sock 10.Close socket [11:53:58]Sock 10.Thread stoped [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:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]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:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]accept exits with 9 [12:03:42]New connection [12:03:42]New thread 3067284836 created [12:03:42]Thread 3067141476 joined [12:03:42]Waiting for new connection... [12:03:42] Sock 9.Parse request [12:03:42]Sock 9.Check first char [12:03:42]Sock 9.First char is OK [12:03:42]request: POST /json_proto HTTP/1.0 [12:03:42]Method: POST [12:03:42]URL: /json_proto [12:03:42]Method is POST - this is cgi request [12:03:42]url: /json_proto [12:03:42]query_string will be loaded in cgi processing [12:03:42]execute_cgi json_proto POST (null) [12:03:42]execute_cgi path=json_proto method=POST [12:03:42]POST find Content-Length [12:03:42]Host: 172.17.50.196:8080 [12:03:42]Content-Length: 621 [12:03:42]Content-Type: application/json [12:03:42] [12:03:42]POST finish read [12:03:42]Found Content-Length = 621 [12:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335508", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:42]execute_script... [12:03: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)335508", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:42]POST & json_proto [12:03:42]process_json_proto [12:03:42]json parsed OK: [12:03:42]protocol is kg_v1.0 [12:03:42]action value=close_receipt [12:03:42]process_action close_receipt [12:03:42]cmd_close_receipt [12:03:42]MH_GetDate [12:03:42]Write to MH i2c: F0 00 00 E4 88 5B [12:03:42]Write i2c OK [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: F0 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: F0 09 00 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: F0 09 00 E4 88 00 28 72 23 67 72 0D 1C 67 8A [12:03:42]GetLastDocTimeStamp 1730375644 [12:03:42]current date 1730376232 [12:03:42]FM_GetShiftState [12:03:42]SAM_PROTO_GetShiftState [12:03:42]wFMCommunicate request_size=4 [12:03:42]MH_SAM_APDU [12:03:42]CAPDU: 80 13 01 00 [12:03:42]Write to MH i2c: E2 08 00 E5 88 80 13 01 00 00 00 00 00 EA [12:03:42]Write i2c OK [12:03:42]MH_I2C_Read... [12:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:42]Read from MH i2c: E2 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: E2 0E 00 [12:03:42]MH_I2C_Read... [12:03:42]Read from MH i2c: E2 0E 00 E5 88 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 13 [12:03:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:03:42]wFMCommunicate OK [12:03:42]SAM_PROTO_GetShiftState done [12:03:42]FM_GetShiftState done [12:03:42]opened in 1730332621 [12:03:42]opened+sec_in_day 1730419021 [12:03:42]quantity*price = 14900 [12:03:42]sum+1 = 14901 [12:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 124 31.10.2024 12:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139647 ФПД: 127397832934445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139647&fm=127397832934445&tin=02508201610067®Number=0000000000091631&sum=14900 0 [12:03:43]StoreToDocumentArchive [12:03:43]shift 557 fd 139647 [12:03:43]save to /storage/0557/doc_00139647 [12:03:43]save last doc name /storage/0557/doc_00139647 to /storage/kkm_last_doc_name [12:03:43]save OK [12:03:43]Clear old archive folders... [12:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:03:43]tlvbuf is 011583B0 [12:03:43]SAM_PROTO_ClearQueue [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 09 00 00 [12:03:43]Write to MH i2c: E2 08 00 F2 88 80 09 00 00 00 00 00 00 EC [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 F2 88 00 90 00 EE [12:03:43]RAPDU: 90 00 [12:03:43]wFMCommunicate OK [12:03:43]SAM_PROTO_ClearQueue done [12:03:43]KKMCreateOFDPacket [12:03:43]OFDProtocolAddRootSTLVToBuf [12:03:43]FM_MakeSignedData [12:03:43]FM_MakeSignedData [12:03:43]SAM_PROTO_SignData [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 0D 01 02 [12:03:43]Write to MH i2c: E2 08 00 F3 88 80 0D 01 02 00 00 00 00 F4 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 F3 88 00 90 00 EF [12:03:43]RAPDU: 90 00 [12:03:43]wFMCommunicate OK [12:03:43]wFMCommunicate request_size=255 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 28 72 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [12:03:43]Write to MH i2c: E2 02 01 F4 88 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 28 72 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 59 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 F4 88 00 90 00 F0 [12:03:43]RAPDU: 90 00 [12:03:43]wFMCommunicate OK [12:03:43]wFMCommunicate request_size=32 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 21 02 00 35 04 06 00 73 DE 1E 93 C4 2D [12:03:43]Write to MH i2c: E2 23 00 F5 88 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 21 02 00 35 04 06 00 73 DE 1E 93 C4 2D 00 00 F1 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 F5 88 00 90 00 F1 [12:03:43]RAPDU: 90 00 [12:03:43]wFMCommunicate OK [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 0D 03 02 [12:03:43]Write to MH i2c: E2 08 00 F6 88 80 0D 03 02 00 00 00 00 F9 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 0B 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 0B 00 F6 88 00 A5 E1 CA 20 E9 58 19 B2 90 00 76 [12:03:43]RAPDU: A5 E1 CA 20 E9 58 19 B2 90 00 [12:03:43]wFMCommunicate OK [12:03:43]SAM_PROTO_SignData done [12:03:43]FM_MakeSignedData done [12:03:43]CreateOFDProtocolMessage [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 11 00 00 [12:03:43]Write to MH i2c: E2 08 00 F7 88 80 11 00 00 00 00 00 00 F9 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 17 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 17 00 F7 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [12:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:03:43]wFMCommunicate OK [12:03:43]CreateOFDProtocolMessage done [12:03:43]OFDSenderStorePacket 139647 [12:03:43]StoreOFDPacket docnum=139647 [12:03: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 25 01 00 00 7E AF 1D 01 79 F9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 28 72 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 73 DE 1E 93 C4 2D A5 E1 CA 20 E9 58 19 B2 [12:03:43]CheckFolder [12:03:43]dirname=/storage/ofd_packets [12:03:43]CheckFolder done [12:03:43]ProducePacketName [12:03:43]name=ofd_packets/00139647 [12:03:43]NVStorageSaveData ofd_packets/00139647 [12:03:43]File name is /storage/ofd_packets/00139647 [12:03:43]Write 323 bytes [12:03:43]NVStorageSaveData done [12:03:43]OFDSenderStorePacket done [12:03:43]KKMCreateOFDPacket done [12:03:43]NVStorageSaveData kkm_last_timestamp [12:03:43]File name is /storage/kkm_last_timestamp [12:03:43]Write 4 bytes [12:03:43]NVStorageSaveData done [12:03:43]ExternCall_PrintAddStr [12:03:43]wPrintStart [12:03:43]Write to MH i2c: 01 00 00 F8 88 80 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: 01 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: 01 07 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: 01 07 00 F8 88 00 00 00 00 00 FF 0F 95 [12:03:43]RasterBufferAndPrint [12:03:43]line Счет N : (3)335508 [12:03:43]line ИНН: 02508201610067 [12:03:43]line Контрольно-Кассовый Чек [12:03:43]line ПРОДАЖА [12:03:43]line Товар: 48744119 [12:03:43]line Сигареты Winston Xstyle Dual [12:03:43]line 1.000 * 149.00 [12:03:43]line = 149.00 [12:03:43]line НДС 12% НСП 1% [12:03:43]line > о реализуемом товаре [12:03:43]line ИТОГО: 149.00 [12:03:43]line НСП 1% : 1.32 [12:03:43]line НДС 12% : 15.82 [12:03:43]line Наличными: 149.00 [12:03:43]line Безнал.: 0.00 [12:03:43]line Место: АЗС № 101 "Партнер Нефть" [12:03:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:03:43]line СНО: Общий режим [12:03:43]line Чек 124 31.10.2024 12:03 [12:03:43]line Смена: 557 ФФД: 1.0 [12:03:43]line ЗНМ: 0300000081 [12:03:43]line РНМ: 0000000000091631 [12:03:43]line Версия ККМ: 001 [12:03:43]line ФМ: 0000000000874669 [12:03:43]line ФД: 139647 [12:03:43]line ФПД: 127397832934445 [12:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139647&fm=127397832934445&tin=02508201610067®Number=0000000000091631&sum=14900 [12:03:44]line 0 [12:03:44]OFD Sender: Processing packet 139647 [packets to send 34, broken 33] [12:03:44]ProducePacketName [12:03:44]name=ofd_packets/00139647 [12:03:44]OFD Sender: To server: pG, [12:03:44]CommunicateWithHost lk.salyk.kg:30040 [12:03:44]ConnectInit lk.salyk.kg [12:03:44]written 0, free lines is 4095 [12:03:44]Connected sock=10 [12:03: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 25 01 00 00 7E AF 1D 01 79 F9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 28 72 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 73 DE 1E 93 C4 2D A5 E1 CA 20 E9 58 19 B2 [12:03: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 8C 2E 47 00 8E 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 7F 21 02 00 F4 03 04 00 D6 1D 23 67 B6 04 01 00 00 E8 46 14 E0 3B CF 37 D9 [12:03:44]CommunicateWithHost err = 0 [12:03:44]CheckOFDResponse [12:03:44]1017 (14) - 77093643461234 [12:03:44]1041 (16) - 0000000000874669 [12:03:44]1040 (4) - 139647 [12:03:44]1012 (4) - 31.10.2024 06:04 [12:03:44]1206 (1) - 0 [12:03:44]OFD Sender: Remove packet 139647 [12:03:44]ProducePacketName [12:03:44]name=ofd_packets/00139647 [12:03:44]NVStorageDeleteData [12:03:44]Write to MH i2c: 01 00 00 20 89 A9 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 07 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 07 00 20 89 00 00 00 00 00 10 0D CD [12:03:44]RasterBufferAndPrint [12:03:44]line [12:03:44]line [12:03:44]line [12:03:44]line [12:03:44]line [12:03:44]written 0, free lines is 3350 [12:03:44]MH_Cut [12:03:44]Write to MH i2c: D1 01 00 27 89 01 82 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: D1 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: D1 01 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: D1 01 00 27 89 00 81 [12:03:44]Write to MH i2c: 01 00 00 28 89 B1 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]OFD Sender: No OFD packet to send [12:03:45]*** Cut start [12:03:45]*** Partial cut [12:03:45]*** CUTSNS_PIN = 1 [12:03:45]*** CUTSNS_PIN = 0 [12:03:45]*** Brake cut motor [12:03:45]Read from MH i2c: 01 [12:03:45]MH_I2C_Read... [12:03:45]*** Stop cut motor [12:03:45]*** Cut end [12:03:45]Read from MH i2c: 01 07 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: 01 07 00 28 89 00 00 00 00 00 FF 0F C6 [12:03:45]process_action close_receipt done [12:03:45]requested_data is exist [12:03:45]produce_requested_data [12:03:45]requested_item fm.sn is exist - process it [12:03:45]wFMCommunicate request_size=4 [12:03:45]MH_SAM_APDU [12:03:45]CAPDU: 80 11 00 00 [12:03:45]Write to MH i2c: E2 08 00 29 89 80 11 00 00 00 00 00 00 2C [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:45]Read from MH i2c: E2 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 17 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 17 00 29 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [12:03: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:03:45]wFMCommunicate OK [12:03:45]requested_item fd.num is exist - process it [12:03:45]SAM_PROTO_GetFieldsCounters [12:03:45]wFMCommunicate request_size=4 [12:03:45]MH_SAM_APDU [12:03:45]CAPDU: 80 13 00 00 [12:03:45]Write to MH i2c: E2 08 00 2A 89 80 13 00 00 00 00 00 00 2F [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 62 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 62 00 2A 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 98 [12:03: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 7F 21 02 00 0E 04 04 00 2D 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:03:46]wFMCommunicate OK [12:03:46]SAM_PROTO_GetFieldsCounters done [12:03:46]requested_item shift.num is exist - process it [12:03:46]requested_item shift.opened is exist - process it [12:03:46]req_shift_opened [12:03:46]FM_GetShiftState [12:03:46]SAM_PROTO_GetShiftState [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 13 01 00 [12:03:46]Write to MH i2c: E2 08 00 2B 89 80 13 01 00 00 00 00 00 31 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0E 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0E 00 2B 89 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5A [12:03:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:03:46]wFMCommunicate OK [12:03:46]SAM_PROTO_GetShiftState done [12:03:46]FM_GetShiftState done [12:03:46]req_shift_opened done [12:03:46]requested_item shift.open_date is exist - process it [12:03:46]req_shift_open_date [12:03:46]req_shift_open_date done [12:03:46]produce_requested_data done [12:03:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139647,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:03:46]process_action_free close_receipt [12:03:46]json_value_free [12:03:46]json_value_free done [12:03:46]process_json_proto returns [12:03:46]Send response to host [12:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139647,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:03:46]free response buf [12:03:46]execute_script done [12:03:46]execute_script returns [12:03:46]free content buf [12:03:46]Sock 9.Close socket [12:03:46]Sock 9.Thread stoped [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:33]accept exits with 8 [12:07:33]New connection [12:07:33]New thread 3067141476 created [12:07:33]Thread 3067284836 joined [12:07:33]Waiting for new connection... [12:07:33] Sock 8.Parse request [12:07:33]Sock 8.Check first char [12:07:33]Sock 8.First char is OK [12:07:33]request: POST /json_proto HTTP/1.0 [12:07:33]Method: POST [12:07:33]URL: /json_proto [12:07:33]Method is POST - this is cgi request [12:07:33]url: /json_proto [12:07:33]query_string will be loaded in cgi processing [12:07:33]execute_cgi json_proto POST (null) [12:07:33]execute_cgi path=json_proto method=POST [12:07:33]POST find Content-Length [12:07:33]Host: 172.17.50.196:8080 [12:07:33]Content-Length: 215 [12:07:33]Content-Type: application/json [12:07:33] [12:07:33]POST finish read [12:07:33]Found Content-Length = 215 [12:07:33]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:07:33]execute_script... [12:07:33]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:07:33]POST & json_proto [12:07:33]process_json_proto [12:07:33]json parsed OK: [12:07:33]protocol is kg_v1.0 [12:07:33]action value=get_value [12:07:33]process_action get_value [12:07:33]cmd_get_value [12:07:33]process_action get_value done [12:07:33]requested_data is exist [12:07:33]produce_requested_data [12:07:33]requested_item kkm.sn is exist - process it [12:07:33]requested_item kkm.ver is exist - process it [12:07:33]requested_item fm.sn is exist - process it [12:07:33]wFMCommunicate request_size=4 [12:07:33]MH_SAM_APDU [12:07:33]CAPDU: 80 11 00 00 [12:07:33]Write to MH i2c: E2 08 00 2C 89 80 11 00 00 00 00 00 00 2F [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:33]Read from MH i2c: E2 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 17 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 17 00 2C 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8A [12: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 [12:07:33]wFMCommunicate OK [12:07:33]requested_item fd.num is exist - process it [12:07:33]SAM_PROTO_GetFieldsCounters [12:07:33]wFMCommunicate request_size=4 [12:07:33]MH_SAM_APDU [12:07:33]CAPDU: 80 13 00 00 [12:07:33]Write to MH i2c: E2 08 00 2D 89 80 13 00 00 00 00 00 00 32 [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:33]Read from MH i2c: E2 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 62 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 62 00 2D 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 9B [12:07: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 7F 21 02 00 0E 04 04 00 2D 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:07:33]wFMCommunicate OK [12:07:33]SAM_PROTO_GetFieldsCounters done [12:07:33]requested_item shift.num is exist - process it [12:07:33]requested_item shift.opened is exist - process it [12:07:33]req_shift_opened [12:07:33]FM_GetShiftState [12:07:33]SAM_PROTO_GetShiftState [12:07:33]wFMCommunicate request_size=4 [12:07:33]MH_SAM_APDU [12:07:33]CAPDU: 80 13 01 00 [12:07:33]Write to MH i2c: E2 08 00 2E 89 80 13 01 00 00 00 00 00 34 [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:33]Read from MH i2c: E2 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 0E 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 0E 00 2E 89 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5D [12:07:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:07:33]wFMCommunicate OK [12:07:33]SAM_PROTO_GetShiftState done [12:07:33]FM_GetShiftState done [12:07:33]req_shift_opened done [12:07:33]requested_item shift.open_date is exist - process it [12:07:33]req_shift_open_date [12:07:33]req_shift_open_date done [12:07:33]produce_requested_data done [12:07:33]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139647,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:07:33]process_action_free get_value [12:07:33]json_value_free [12:07:33]json_value_free done [12:07:33]process_json_proto returns [12:07:33]Send response to host [12:07:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139647,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:07:33]free response buf [12:07:33]execute_script done [12:07:33]execute_script returns [12:07:33]free content buf [12:07:33]Sock 8.Close socket [12:07:33]Sock 8.Thread stoped [12:07:33]accept exits with 9 [12:07:33]New connection [12:07:33]New thread 3067284836 created [12:07:33]Thread 3067141476 joined [12:07:33]Waiting for new connection... [12:07:33] Sock 9.Parse request [12:07:33]Sock 9.Check first char [12:07:33]Sock 9.First char is OK [12:07:33]request: POST /json_proto HTTP/1.0 [12:07:33]Method: POST [12:07:33]URL: /json_proto [12:07:33]Method is POST - this is cgi request [12:07:33]url: /json_proto [12:07:33]query_string will be loaded in cgi processing [12:07:33]execute_cgi json_proto POST (null) [12:07:33]execute_cgi path=json_proto method=POST [12:07:33]POST find Content-Length [12:07:33]Host: 172.17.50.196:8080 [12:07:33]Content-Length: 331 [12:07:33]Content-Type: application/json [12:07:33] [12:07:33]POST finish read [12:07:33]Found Content-Length = 331 [12:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:07:33]execute_script... [12:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:07:33]POST & json_proto [12:07:33]process_json_proto [12:07:33]json parsed OK: [12:07:33]protocol is kg_v1.0 [12:07:33]action value=get_value [12:07:33]process_action get_value [12:07:33]cmd_get_value [12:07:33]process_action get_value done [12:07:33]requested_data is exist [12:07:33]produce_requested_data [12:07:33]requested_item fm.sale.total is exist - process it [12:07:33]SAM_PROTO_GetFMData [12:07:33]wFMCommunicate request_size=4 [12:07:33]MH_SAM_APDU [12:07:33]CAPDU: 80 13 03 00 [12:07:33]Write to MH i2c: E2 08 00 2F 89 80 13 03 00 00 00 00 00 37 [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:07:34]Read from MH i2c: E2 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 FD 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 FD 00 2F 89 00 C7 04 85 04 C3 04 6E 04 04 00 25 1D 02 00 69 04 A3 00 6F 04 04 00 D6 1A 02 00 B1 04 05 00 A2 63 D5 52 01 70 04 05 00 78 ED 6D 03 01 72 04 04 00 2A 76 67 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 3E 33 FC 23 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 32 6C FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 1E [12:07:34]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 25 1D 02 00 69 04 A3 00 6F 04 04 00 D6 1A 02 00 B1 04 05 00 A2 63 D5 52 01 70 04 05 00 78 ED 6D 03 01 72 04 04 00 2A 76 67 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 3E 33 FC 23 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 32 6C FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [12:07:34]wFMCommunicate OK [12:07:34]wFMCommunicate request_size=4 [12:07:34]MH_SAM_APDU [12:07:34]CAPDU: 80 17 00 00 [12:07:34]Write to MH i2c: E2 08 00 30 89 80 17 00 00 00 00 00 00 39 [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:34]Read from MH i2c: E2 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 FD 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 FD 00 30 89 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 1A 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 F1 [12:07:34]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 1A 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:07:34]wFMCommunicate OK [12:07:34]wFMCommunicate request_size=4 [12:07:34]MH_SAM_APDU [12:07:34]CAPDU: 80 17 00 00 [12:07:34]Write to MH i2c: E2 08 00 31 89 80 17 00 00 00 00 00 00 3A [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:34]Read from MH i2c: E2 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 FD 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: E2 FD 00 31 89 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 [12:07:34]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:07:34]wFMCommunicate OK [12:07:34]wFMCommunicate request_size=4 [12:07:34]MH_SAM_APDU [12:07:34]CAPDU: 80 17 00 00 [12:07:34]Write to MH i2c: E2 08 00 32 89 80 17 00 00 00 00 00 00 3B [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:35]Read from MH i2c: E2 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 FD 00 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 FD 00 32 89 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 [12:07: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 [12:07:35]wFMCommunicate OK [12:07:35]wFMCommunicate request_size=4 [12:07:35]MH_SAM_APDU [12:07:35]CAPDU: 80 17 00 00 [12:07:35]Write to MH i2c: E2 08 00 33 89 80 17 00 00 00 00 00 00 3C [12:07:35]Write i2c OK [12:07:35]MH_I2C_Read... [12:07:35]OFD Sender: No OFD packet to send [12:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:07:35]Read from MH i2c: E2 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 E4 00 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 E4 00 33 89 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 1C [12:07:35]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:07:35]wFMCommunicate OK [12:07:35]SAM_PROTO_GetFMData done [12:07:35]requested_item fm.sale_refund.total is exist - process it [12:07:35]requested_item fm.buy.total is exist - process it [12:07:35]requested_item shift.sale.total is exist - process it [12:07:35]SAM_PROTO_GetShiftData [12:07:35]wFMCommunicate request_size=4 [12:07:35]MH_SAM_APDU [12:07:35]CAPDU: 80 13 02 00 [12:07:35]Write to MH i2c: E2 08 00 34 89 80 13 02 00 00 00 00 00 3B [12:07:35]Write i2c OK [12:07:35]MH_I2C_Read... [12:07:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:07:35]Read from MH i2c: E2 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 FD 00 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 FD 00 34 89 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 09 02 47 70 04 03 00 78 D6 3D 72 04 03 00 91 2B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7B 8A 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D5 A0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 CC [12:07:35]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 09 02 47 70 04 03 00 78 D6 3D 72 04 03 00 91 2B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7B 8A 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D5 A0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [12:07:35]wFMCommunicate OK [12:07:35]wFMCommunicate request_size=4 [12:07:35]MH_SAM_APDU [12:07:35]CAPDU: 80 17 00 00 [12:07:35]Write to MH i2c: E2 08 00 35 89 80 17 00 00 00 00 00 00 3E [12:07:35]Write i2c OK [12:07:35]MH_I2C_Read... [12:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:36]Read from MH i2c: E2 [12:07:36]MH_I2C_Read... [12:07:36]Read from MH i2c: E2 FD 00 [12:07:36]MH_I2C_Read... [12:07:36]Read from MH i2c: E2 FD 00 35 89 00 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 0F [12:07:36]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [12:07:36]wFMCommunicate OK [12:07:36]wFMCommunicate request_size=4 [12:07:36]MH_SAM_APDU [12:07:36]CAPDU: 80 17 00 00 [12:07:36]Write to MH i2c: E2 08 00 36 89 80 17 00 00 00 00 00 00 3F [12:07:36]Write i2c OK [12:07:36]MH_I2C_Read... [12:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:36]Read from MH i2c: E2 [12:07:36]MH_I2C_Read... [12:07:36]Read from MH i2c: E2 FD 00 [12:07:36]MH_I2C_Read... [12:07:36]Read from MH i2c: E2 FD 00 36 89 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 E1 [12:07:36]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [12:07:36]wFMCommunicate OK [12:07:36]wFMCommunicate request_size=4 [12:07:36]MH_SAM_APDU [12:07:36]CAPDU: 80 17 00 00 [12:07:36]Write to MH i2c: E2 08 00 37 89 80 17 00 00 00 00 00 00 40 [12:07:36]Write i2c OK [12:07:36]MH_I2C_Read... [12:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:07:36]Read from MH i2c: E2 [12:07:36]MH_I2C_Read... [12:07:36]Read from MH i2c: E2 FD 00 [12:07:36]MH_I2C_Read... [12:07:36]Read from MH i2c: E2 FD 00 37 89 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 C9 [12:07:36]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [12:07:36]wFMCommunicate OK [12:07:36]wFMCommunicate request_size=4 [12:07:36]MH_SAM_APDU [12:07:36]CAPDU: 80 17 00 00 [12:07:36]Write to MH i2c: E2 08 00 38 89 80 17 00 00 00 00 00 00 41 [12:07:36]Write i2c OK [12:07:36]MH_I2C_Read... [12:07:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [12:07:37]Read from MH i2c: E2 [12:07:37]MH_I2C_Read... [12:07:37]Read from MH i2c: E2 D5 00 [12:07:37]MH_I2C_Read... [12:07:37]Read from MH i2c: E2 D5 00 38 89 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 22 [12:07:37]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:07:37]wFMCommunicate OK [12:07:37]SAM_PROTO_GetShiftData done [12:07:37]requested_item shift.sale.total_cash is exist - process it [12:07:37]requested_item shift.sale_refund.total is exist - process it [12:07:37]requested_item shift.sale_refund.total_cash is exist - process it [12:07:37]requested_item shift.buy.total is exist - process it [12:07:37]requested_item shift.buy.total_cash is exist - process it [12:07:37]produce_requested_data done [12:07:37]produce_requested_data return {"fm.sale.total":56846836.82,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":46535.77,"shift.sale.total_cash":40526.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:07:37]process_action_free get_value [12:07:37]json_value_free [12:07:37]json_value_free done [12:07:37]process_json_proto returns [12:07:37]Send response to host [12:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56846836.82,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":46535.77,"shift.sale.total_cash":40526.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:07:37]free response buf [12:07:37]execute_script done [12:07:37]execute_script returns [12:07:37]free content buf [12:07:37]Sock 9.Close socket [12:07:37]Sock 9.Thread stoped [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 56 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 FB [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572556 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 484825+1729891698=1730376523 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 56 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 FC [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 4C 73 23 67 72 0D 1C 67 4A [12:08:44]Current date/time: 31.10.2024 12:08 [12:08:44]FM_Init [12:08:44]wFMConnect [12:08:44]MH_SAM_On [12:08:44]Write to MH i2c: E0 00 00 08 00 E7 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_init finished! [12:08:44]*** atr: [12:08:44]*** 0F 3B D5 18 FF 81 91 FE [12:08:44]*** 1F C3 80 73 C8 21 10 0A [12:08:44]*** 00 00 00 00 00 00 00 00 [12:08:44]*** 00 00 00 00 00 00 00 00 [12:08:44]*** 00 00 00 00 00 00 00 00 [12:08:44]*** 00 00 00 00 00 00 00 00 [12:08:44]*** 00 00 00 00 00 00 00 00 [12:08:44]*** 00 00 00 00 00 00 00 00 [12:08:44]Read from MH i2c: E0 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E0 10 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:08:44]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:08:44]wFMCommunicate request_size=10 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:08:44]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 11 00 00 [12:08:44]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 17 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DF [12:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:08:44]wFMCommunicate OK [12:08:44]Detected FM SN is 0000000000874669 [12:08:44]Stored FM SN is 0000000000874669 [12:08:44]wFMCommunicate request_size=9 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 16 00 00 04 DF FF 00 00 [12:08:44]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 DF FF 00 00 00 00 70 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]FM PIN OK [12:08:44]wFMCommunicate request_size=8 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 14 04 00 03 02 00 01 [12:08:44]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=13 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:08:44]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:08:44]RAPDU: 90 00 [12:08:44]wFMCommunicate OK [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 11 00 00 [12:08:44]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 17 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [12:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:08:44]wFMCommunicate OK [12:08:44]DocumentArchiveInit [12:08:44]Start Httpd... [12:08:44]Httpd thread 3066940772 created [12:08:44]Write to MH i2c: 01 00 00 0F 00 0F [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: 01 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: 01 07 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:08:44]MH Int Process started [12:08:44]Allocated Socket 8 [12:08:44]Bind OK [12:08:44]Listen OK [12:08:44]httpd running on port 8080 [12:08:44]Waiting for new connection... [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:00]accept exits with 9 [12:09:00]New connection [12:09:00]New thread 3066654052 created [12:09:00]Waiting for new connection... [12:09:00] Sock 9.Parse request [12:09:00]Sock 9.Check first char [12:09:00]Sock 9.First char is OK [12:09:00]request: POST /json_proto HTTP/1.0 [12:09:00]Method: POST [12:09:00]URL: /json_proto [12:09:00]Method is POST - this is cgi request [12:09:00]url: /json_proto [12:09:00]query_string will be loaded in cgi processing [12:09:00]execute_cgi json_proto POST (null) [12:09:00]execute_cgi path=json_proto method=POST [12:09:00]POST find Content-Length [12:09:00]Host: 172.17.50.196:8080 [12:09:00]Content-Length: 215 [12:09:00]Content-Type: application/json [12:09:00] [12:09:00]POST finish read [12:09:00]Found Content-Length = 215 [12:09:00]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:09:00]execute_script... [12:09:00]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:09:00]POST & json_proto [12:09:00]process_json_proto [12:09:00]json parsed OK: [12:09:00]protocol is kg_v1.0 [12:09:00]action value=get_value [12:09:00]process_action get_value [12:09:00]cmd_get_value [12:09:00]process_action get_value done [12:09:00]requested_data is exist [12:09:00]produce_requested_data [12:09:00]requested_item kkm.sn is exist - process it [12:09:00]requested_item kkm.ver is exist - process it [12:09:00]requested_item fm.sn is exist - process it [12:09:00]wFMCommunicate request_size=4 [12:09:00]MH_SAM_APDU [12:09:00]CAPDU: 80 11 00 00 [12:09:00]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:09:00]Write i2c OK [12:09:00]MH_I2C_Read... [12:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:00]Read from MH i2c: E2 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 17 00 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E5 [12:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:09:00]wFMCommunicate OK [12:09:00]requested_item fd.num is exist - process it [12:09:00]SAM_PROTO_GetFieldsCounters [12:09:00]wFMCommunicate request_size=4 [12:09:00]MH_SAM_APDU [12:09:00]CAPDU: 80 13 00 00 [12:09:00]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:09:00]Write i2c OK [12:09:00]MH_I2C_Read... [12:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:00]Read from MH i2c: E2 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 62 00 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 F6 [12:09: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 7F 21 02 00 0E 04 04 00 2D 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:09:00]wFMCommunicate OK [12:09:00]SAM_PROTO_GetFieldsCounters done [12:09:00]requested_item shift.num is exist - process it [12:09:00]requested_item shift.opened is exist - process it [12:09:00]req_shift_opened [12:09:00]FM_GetShiftState [12:09:00]SAM_PROTO_GetShiftState [12:09:00]wFMCommunicate request_size=4 [12:09:00]MH_SAM_APDU [12:09:00]CAPDU: 80 13 01 00 [12:09:00]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:09:00]Write i2c OK [12:09:00]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0E 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B8 [12:09:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_GetShiftState done [12:09:01]FM_GetShiftState done [12:09:01]req_shift_opened done [12:09:01]requested_item shift.open_date is exist - process it [12:09:01]req_shift_open_date [12:09:01]req_shift_open_date done [12:09:01]produce_requested_data done [12:09:01]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139647,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:09:01]process_action_free get_value [12:09:01]json_value_free [12:09:01]json_value_free done [12:09:01]process_json_proto returns [12:09:01]Send response to host [12:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139647,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:09:01]free response buf [12:09:01]execute_script done [12:09:01]execute_script returns [12:09:01]free content buf [12:09:01]Sock 9.Close socket [12:09:01]Sock 9.Thread stoped [12:09:01]accept exits with 7 [12:09:01]New connection [12:09:01]New thread 3066510692 created [12:09:01]Thread 3066654052 joined [12:09:01]Waiting for new connection... [12:09:01] Sock 7.Parse request [12:09:01]Sock 7.Check first char [12:09:01]Sock 7.First char is OK [12:09:01]request: POST /json_proto HTTP/1.0 [12:09:01]Method: POST [12:09:01]URL: /json_proto [12:09:01]Method is POST - this is cgi request [12:09:01]url: /json_proto [12:09:01]query_string will be loaded in cgi processing [12:09:01]execute_cgi json_proto POST (null) [12:09:01]execute_cgi path=json_proto method=POST [12:09:01]POST find Content-Length [12:09:01]Host: 172.17.50.196:8080 [12:09:01]Content-Length: 331 [12:09:01]Content-Type: application/json [12:09:01] [12:09:01]POST finish read [12:09:01]Found Content-Length = 331 [12:09:01]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:09:01]execute_script... [12:09:01]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:09:01]POST & json_proto [12:09:01]process_json_proto [12:09:01]json parsed OK: [12:09:01]protocol is kg_v1.0 [12:09:01]action value=get_value [12:09:01]process_action get_value [12:09:01]cmd_get_value [12:09:01]process_action get_value done [12:09:01]requested_data is exist [12:09:01]produce_requested_data [12:09:01]requested_item fm.sale.total is exist - process it [12:09:01]SAM_PROTO_GetFMData [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 13 03 00 [12:09:01]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 FD 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 25 1D 02 00 69 04 A3 00 6F 04 04 00 D6 1A 02 00 B1 04 05 00 A2 63 D5 52 01 70 04 05 00 78 ED 6D 03 01 72 04 04 00 2A 76 67 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 3E 33 FC 23 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 32 6C FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 79 [12:09:01]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 25 1D 02 00 69 04 A3 00 6F 04 04 00 D6 1A 02 00 B1 04 05 00 A2 63 D5 52 01 70 04 05 00 78 ED 6D 03 01 72 04 04 00 2A 76 67 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 3E 33 FC 23 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 32 6C FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 17 00 00 [12:09:01]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:02]Read from MH i2c: E2 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 FD 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 FD 00 14 00 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 1A 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 4C [12:09:02]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 1A 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:09:02]wFMCommunicate OK [12:09:02]wFMCommunicate request_size=4 [12:09:02]MH_SAM_APDU [12:09:02]CAPDU: 80 17 00 00 [12:09:02]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:02]Read from MH i2c: E2 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 FD 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 6D [12:09:02]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:09:02]wFMCommunicate OK [12:09:02]wFMCommunicate request_size=4 [12:09:02]MH_SAM_APDU [12:09:02]CAPDU: 80 17 00 00 [12:09:02]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:02]Read from MH i2c: E2 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 FD 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 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 11 [12:09:02]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:09:02]wFMCommunicate OK [12:09:02]wFMCommunicate request_size=4 [12:09:02]MH_SAM_APDU [12:09:02]CAPDU: 80 17 00 00 [12:09:02]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:09:02]Read from MH i2c: E2 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 E4 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 E4 00 17 00 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 77 [12:09:02]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:09:02]wFMCommunicate OK [12:09:02]SAM_PROTO_GetFMData done [12:09:02]requested_item fm.sale_refund.total is exist - process it [12:09:02]requested_item fm.buy.total is exist - process it [12:09:02]requested_item shift.sale.total is exist - process it [12:09:02]SAM_PROTO_GetShiftData [12:09:02]wFMCommunicate request_size=4 [12:09:02]MH_SAM_APDU [12:09:02]CAPDU: 80 13 02 00 [12:09:02]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 FD 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 09 02 47 70 04 03 00 78 D6 3D 72 04 03 00 91 2B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7B 8A 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D5 A0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 27 [12:09:03]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7C 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 09 02 47 70 04 03 00 78 D6 3D 72 04 03 00 91 2B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7B 8A 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D5 A0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [12:09:03]wFMCommunicate OK [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 17 00 00 [12:09:03]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 FD 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 6A [12:09:03]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [12:09:03]wFMCommunicate OK [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 17 00 00 [12:09:03]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 FD 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [12:09:03]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [12:09:03]wFMCommunicate OK [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 17 00 00 [12:09:03]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 FD 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 24 [12:09:04]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 17 00 00 [12:09:04]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 D5 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [12:09:04]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetShiftData done [12:09:04]requested_item shift.sale.total_cash is exist - process it [12:09:04]requested_item shift.sale_refund.total is exist - process it [12:09:04]requested_item shift.sale_refund.total_cash is exist - process it [12:09:04]requested_item shift.buy.total is exist - process it [12:09:04]requested_item shift.buy.total_cash is exist - process it [12:09:04]produce_requested_data done [12:09:04]produce_requested_data return {"fm.sale.total":56846836.82,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":46535.77,"shift.sale.total_cash":40526.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:09:04]process_action_free get_value [12:09:04]json_value_free [12:09:04]json_value_free done [12:09:04]process_json_proto returns [12:09:04]Send response to host [12:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56846836.82,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":46535.77,"shift.sale.total_cash":40526.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:09:04]free response buf [12:09:04]execute_script done [12:09:04]execute_script returns [12:09:04]free content buf [12:09:04]Sock 7.Close socket [12:09:04]Sock 7.Thread stoped [12:09:04]OFD Sender: No OFD packet to send [12:09:04]accept exits with 9 [12:09:04]New connection [12:09:04]New thread 3066654052 created [12:09:04]Thread 3066510692 joined [12:09:04]Waiting for new connection... [12:09:04] Sock 9.Parse request [12:09:04]Sock 9.Check first char [12:09:04]Sock 9.First char is OK [12:09:04]request: POST /json_proto HTTP/1.0 [12:09:04]Method: POST [12:09:04]URL: /json_proto [12:09:04]Method is POST - this is cgi request [12:09:04]url: /json_proto [12:09:04]query_string will be loaded in cgi processing [12:09:04]execute_cgi json_proto POST (null) [12:09:04]execute_cgi path=json_proto method=POST [12:09:04]POST find Content-Length [12:09:04]Host: 172.17.50.196:8080 [12:09:04]Content-Length: 801 [12:09:04]Content-Type: application/json [12:09:04] [12:09:04]POST finish read [12:09:04]Found Content-Length = 801 [12:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095142", "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" : 0.00, "quantity" : 10.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\u000A4220388", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:04]execute_script... [12:09: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 : (1)1095142", "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" : 0.00, "quantity" : 10.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\u000A4220388", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:04]POST & json_proto [12:09:04]process_json_proto [12:09:04]json parsed OK: [12:09:04]protocol is kg_v1.0 [12:09:04]action value=close_receipt [12:09:04]process_action close_receipt [12:09:04]cmd_close_receipt [12:09:04]MH_GetDate [12:09:04]Write to MH i2c: F0 00 00 1D 00 0C [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 09 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 09 00 1D 00 00 61 73 23 67 72 0D 1C 67 75 [12:09:04]GetLastDocTimeStamp 1730376232 [12:09:04]current date 1730376545 [12:09:04]FM_GetShiftState [12:09:04]SAM_PROTO_GetShiftState [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 13 01 00 [12:09:04]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C4 [12:09:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetShiftState done [12:09:04]FM_GetShiftState done [12:09:04]opened in 1730332621 [12:09:04]opened+sec_in_day 1730419021 [12:09:04]quantity*price = 0 [12:09:04]sum+1 = 1 [12:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 125 31.10.2024 12:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: Топливные Талоны 4220388 ФМ: 0000000000874669 ФД: 139648 ФПД: 64635432951773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120905&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139648&fm=64635432951773&tin=02508201610067®Number=0000000000091631&sum=0 [12:09:05]StoreToDocumentArchive [12:09:05]shift 557 fd 139648 [12:09:05]save to /storage/0557/doc_00139648 [12:09:05]save last doc name /storage/0557/doc_00139648 to /storage/kkm_last_doc_name [12:09:05]save OK [12:09:05]Clear old archive folders... [12:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:05]tlvbuf is 00A65350 [12:09:05]SAM_PROTO_ClearQueue [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 09 00 00 [12:09:05]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:09:05]RAPDU: 90 00 [12:09:05]wFMCommunicate OK [12:09:05]SAM_PROTO_ClearQueue done [12:09:05]KKMCreateOFDPacket [12:09:05]OFDProtocolAddRootSTLVToBuf [12:09:05]FM_MakeSignedData [12:09:05]FM_MakeSignedData [12:09:05]SAM_PROTO_SignData [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 0D 01 02 [12:09:05]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=255 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 7D 00 00 00 F4 03 04 00 61 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3A [12:09:06]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 7D 00 00 00 F4 03 04 00 61 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3A 00 00 CD [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=10 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 02 02 05 C9 1C 05 5F DD [12:09:06]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 C9 1C 05 5F DD 00 00 D8 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 03 02 [12:09:06]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0B 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0B 00 2F 00 00 D1 36 F9 D0 D4 FD 8D 46 90 00 1F [12:09:06]RAPDU: D1 36 F9 D0 D4 FD 8D 46 90 00 [12:09:06]wFMCommunicate OK [12:09:06]SAM_PROTO_SignData done [12:09:06]FM_MakeSignedData done [12:09:06]CreateOFDProtocolMessage [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 11 00 00 [12:09:06]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 30 00 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:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:09:06]wFMCommunicate OK [12:09:06]CreateOFDProtocolMessage done [12:09:06]OFDSenderStorePacket 139648 [12:09:06]StoreOFDPacket docnum=139648 [12:09: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 0F 01 00 00 24 25 07 01 B1 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 7D 00 00 00 F4 03 04 00 61 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3A C9 1C 05 5F DD D1 36 F9 D0 D4 FD 8D 46 [12:09:06]CheckFolder [12:09:06]dirname=/storage/ofd_packets [12:09:06]CheckFolder done [12:09:06]ProducePacketName [12:09:06]name=ofd_packets/00139648 [12:09:06]NVStorageSaveData ofd_packets/00139648 [12:09:06]File name is /storage/ofd_packets/00139648 [12:09:06]Write 301 bytes [12:09:06]NVStorageSaveData done [12:09:06]OFDSenderStorePacket done [12:09:06]KKMCreateOFDPacket done [12:09:06]NVStorageSaveData kkm_last_timestamp [12:09:06]File name is /storage/kkm_last_timestamp [12:09:06]Write 4 bytes [12:09:06]NVStorageSaveData done [12:09:06]ExternCall_PrintAddStr [12:09:06]wPrintStart [12:09:06]Write to MH i2c: 01 00 00 31 00 31 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:09:06]RasterBufferAndPrint [12:09:06]line Счет N : (1)1095142 [12:09:06]line ИНН: 02508201610067 [12:09:06]line Контрольно-Кассовый Чек [12:09:06]line ПРОДАЖА [12:09:06]line ТРК (МРК, ГНК) : 43 [12:09:06]line Товар: 2710124130 [12:09:06]line Аи-92-К-2 [12:09:06]line 10.000 * 0.00 [12:09:06]line = 0.00 [12:09:06]line НДС 12% НСП 1% [12:09:06]line > о реализуемом товаре [12:09:06]line ИТОГО: 0.00 [12:09:06]line НСП 1% : 0.00 [12:09:06]line НДС 12% : 0.00 [12:09:06]line Наличными: 0.00 [12:09:06]line Безнал.: 0.00 [12:09:06]line Место: АЗС № 101 "Партнер Нефть" [12:09:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:09:06]line СНО: Общий режим [12:09:07]line Чек 125 31.10.2024 12:09 [12:09:07]line Смена: 557 ФФД: 1.0 [12:09:07]line ЗНМ: 0300000081 [12:09:07]line РНМ: 0000000000091631 [12:09:07]line Версия ККМ: 001 [12:09:07]line Талоны: Топливные Талоны [12:09:07]line 4220388 [12:09:07]line ФМ: 0000000000874669 [12:09:07]line ФД: 139648 [12:09:07]line ФПД: 64635432951773 [12:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120905&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139648&fm=64635432951773&tin=02508201610067®Number=0000000000091631&sum=0 [12:09:07]OFD Sender: Processing packet 139648 [packets to send 34, broken 33] [12:09:07]ProducePacketName [12:09:07]name=ofd_packets/00139648 [12:09:07]OFD Sender: To server: pG, [12:09:07]CommunicateWithHost lk.salyk.kg:30040 [12:09:07]ConnectInit lk.salyk.kg [12:09:07]written 0, free lines is 4095 [12:09:07]Connected sock=10 [12:09:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 24 25 07 01 B1 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 7D 00 00 00 F4 03 04 00 61 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3A C9 1C 05 5F DD D1 36 F9 D0 D4 FD 8D 46 [12:09: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 34 B2 47 00 9D CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 21 02 00 F4 03 04 00 0F 1F 23 67 B6 04 01 00 00 A9 10 59 AA 52 49 8F 1C [12:09:07]CommunicateWithHost err = 0 [12:09:07]CheckOFDResponse [12:09:07]1017 (14) - 77093643461234 [12:09:07]1041 (16) - 0000000000874669 [12:09:07]1040 (4) - 139648 [12:09:07]1012 (4) - 31.10.2024 06:09 [12:09:07]1206 (1) - 0 [12:09:07]OFD Sender: Remove packet 139648 [12:09:07]ProducePacketName [12:09:07]name=ofd_packets/00139648 [12:09:07]NVStorageDeleteData [12:09:07]Write to MH i2c: 01 00 00 5B 00 5B [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 1F 0D 8E [12:09:07]RasterBufferAndPrint [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]written 0, free lines is 3378 [12:09:07]MH_Cut [12:09:07]Write to MH i2c: D1 01 00 62 00 01 34 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 01 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 01 00 62 00 00 33 [12:09:07]Write to MH i2c: 01 00 00 63 00 63 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:08]OFD Sender: No OFD packet to send [12:09:08]*** Cut start [12:09:08]*** Partial cut [12:09:08]*** CUTSNS_PIN = 1 [12:09:08]*** CUTSNS_PIN = 0 [12:09:08]*** Brake cut motor [12:09:08]Read from MH i2c: 01 *** Stop cut motor [12:09:08] [12:09:08]*** Cut end [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: 01 07 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [12:09:08]process_action close_receipt done [12:09:08]requested_data is exist [12:09:08]produce_requested_data [12:09:08]requested_item fm.sn is exist - process it [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 11 00 00 [12:09:09]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [12:09:09]Write i2c OK [12:09:09]MH_I2C_Read... [12:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:09]Read from MH i2c: E2 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: E2 17 00 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: E2 17 00 64 00 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:09: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:09:09]wFMCommunicate OK [12:09:09]requested_item fd.num is exist - process it [12:09:09]SAM_PROTO_GetFieldsCounters [12:09:09]wFMCommunicate request_size=4 [12:09:09]MH_SAM_APDU [12:09:09]CAPDU: 80 13 00 00 [12:09:09]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [12:09:09]Write i2c OK [12:09:09]MH_I2C_Read... [12:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:09]Read from MH i2c: E2 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: E2 62 00 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 4E [12:09: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 80 21 02 00 0E 04 04 00 2D 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:09:09]wFMCommunicate OK [12:09:09]SAM_PROTO_GetFieldsCounters done [12:09:09]requested_item shift.num is exist - process it [12:09:09]requested_item shift.opened is exist - process it [12:09:09]req_shift_opened [12:09:09]FM_GetShiftState [12:09:09]SAM_PROTO_GetShiftState [12:09:09]wFMCommunicate request_size=4 [12:09:09]MH_SAM_APDU [12:09:09]CAPDU: 80 13 01 00 [12:09:09]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [12:09:09]Write i2c OK [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: E2 [12:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: E2 0E 00 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0C [12:09:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:09]wFMCommunicate OK [12:09:09]SAM_PROTO_GetShiftState done [12:09:09]FM_GetShiftState done [12:09:09]req_shift_opened done [12:09:09]requested_item shift.open_date is exist - process it [12:09:09]req_shift_open_date [12:09:09]req_shift_open_date done [12:09:09]produce_requested_data done [12:09:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139648,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:09:09]process_action_free close_receipt [12:09:09]json_value_free [12:09:09]json_value_free done [12:09:09]process_json_proto returns [12:09:09]Send response to host [12:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139648,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:09:09]free response buf [12:09:09]execute_script done [12:09:09]execute_script returns [12:09:09]free content buf [12:09:09]Sock 9.Close socket [12:09:09]Sock 9.Thread stoped [12:09:10]accept exits with 7 [12:09:10]New connection [12:09:10]New thread 3066510692 created [12:09:10]Thread 3066654052 joined [12:09:10]Waiting for new connection... [12:09:10] Sock 7.Parse request [12:09:10]Sock 7.Check first char [12:09:10]Sock 7.First char is OK [12:09:10]request: POST /json_proto HTTP/1.0 [12:09:10]Method: POST [12:09:10]URL: /json_proto [12:09:10]Method is POST - this is cgi request [12:09:10]url: /json_proto [12:09:10]query_string will be loaded in cgi processing [12:09:10]execute_cgi json_proto POST (null) [12:09:10]execute_cgi path=json_proto method=POST [12:09:10]POST find Content-Length [12:09:10]Host: 172.17.50.196:8080 [12:09:10]Content-Length: 900 [12:09:10]Content-Type: application/json [12:09:10] [12:09:10]POST finish read [12:09:10]Found Content-Length = 900 [12:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335509", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:10]execute_script... [12:09:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335509", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:10]POST & json_proto [12:09:10]process_json_proto [12:09:10]json parsed OK: [12:09:10]protocol is kg_v1.0 [12:09:10]action value=close_receipt [12:09:10]process_action close_receipt [12:09:10]cmd_close_receipt [12:09:10]MH_GetDate [12:09:10]Write to MH i2c: F0 00 00 67 00 56 [12:09:10]Write i2c OK [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: F0 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: F0 09 00 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: F0 09 00 67 00 00 66 73 23 67 72 0D 1C 67 C4 [12:09:10]GetLastDocTimeStamp 1730376545 [12:09:10]current date 1730376550 [12:09:10]FM_GetShiftState [12:09:10]SAM_PROTO_GetShiftState [12:09:10]wFMCommunicate request_size=4 [12:09:10]MH_SAM_APDU [12:09:10]CAPDU: 80 13 01 00 [12:09:10]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [12:09:10]Write i2c OK [12:09:10]MH_I2C_Read... [12:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:10]Read from MH i2c: E2 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 0E 00 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0E [12:09:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:10]wFMCommunicate OK [12:09:10]SAM_PROTO_GetShiftState done [12:09:10]FM_GetShiftState done [12:09:10]opened in 1730332621 [12:09:10]opened+sec_in_day 1730419021 [12:09:10]quantity*price = 5000 [12:09:10]sum+1 = 5001 [12:09:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 79.00 = 79.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 129.00 НСП 1% : 1.14 НДС 12% : 13.70 Наличными: 129.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 126 31.10.2024 12:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139649 ФПД: 111753104850776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120910&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139649&fm=111753104850776&tin=02508201610067®Number=0000000000091631&sum=12900 0 [12:09:12]StoreToDocumentArchive [12:09:12]shift 557 fd 139649 [12:09:12]save to /storage/0557/doc_00139649 [12:09:12]save last doc name /storage/0557/doc_00139649 to /storage/kkm_last_doc_name [12:09:12]save OK [12:09:12]Clear old archive folders... [12:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=378 [12:09:12]tlvbuf is 00A64F30 [12:09:12]SAM_PROTO_ClearQueue [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 09 00 00 [12:09:12]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]SAM_PROTO_ClearQueue done [12:09:12]KKMCreateOFDPacket [12:09:12]OFDProtocolAddRootSTLVToBuf [12:09:12]FM_MakeSignedData [12:09:12]FM_MakeSignedData [12:09:12]SAM_PROTO_SignData [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 01 02 [12:09:12]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]wFMCommunicate request_size=255 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 [12:09:12]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 00 00 A2 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]wFMCommunicate request_size=137 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 7E 00 00 00 F4 03 04 00 66 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 A3 8C 1D FF 58 [12:09:12]Write to MH i2c: E2 8C 00 78 00 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 7E 00 00 00 F4 03 04 00 66 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 A3 8C 1D FF 58 00 00 DB [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 03 02 [12:09:12]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 0B 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 0B 00 79 00 00 05 9B FD D3 79 5F FC 03 90 00 3C [12:09:12]RAPDU: 05 9B FD D3 79 5F FC 03 90 00 [12:09:12]wFMCommunicate OK [12:09:12]SAM_PROTO_SignData done [12:09:12]FM_MakeSignedData done [12:09:12]CreateOFDProtocolMessage [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 11 00 00 [12:09:12]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 17 00 [12:09:12]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 17 00 7A 00 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:09: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:09:13]wFMCommunicate OK [12:09:13]CreateOFDProtocolMessage done [12:09:13]OFDSenderStorePacket 139649 [12:09:13]StoreOFDPacket docnum=139649 [12:09: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 8E 01 00 00 B7 46 86 01 6D B2 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 64 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 7E 00 00 00 F4 03 04 00 66 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 A3 8C 1D FF 58 05 9B FD D3 79 5F FC 03 [12:09:13]CheckFolder [12:09:13]dirname=/storage/ofd_packets [12:09:13]CheckFolder done [12:09:13]ProducePacketName [12:09:13]name=ofd_packets/00139649 [12:09:13]NVStorageSaveData ofd_packets/00139649 [12:09:13]File name is /storage/ofd_packets/00139649 [12:09:13]Write 428 bytes [12:09:13]NVStorageSaveData done [12:09:13]OFDSenderStorePacket done [12:09:13]KKMCreateOFDPacket done [12:09:13]NVStorageSaveData kkm_last_timestamp [12:09:13]File name is /storage/kkm_last_timestamp [12:09:13]Write 4 bytes [12:09:13]NVStorageSaveData done [12:09:13]ExternCall_PrintAddStr [12:09:13]wPrintStart [12:09:13]Write to MH i2c: 01 00 00 7B 00 7B [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [12:09:13]RasterBufferAndPrint [12:09:13]line Счет N : (3)335509 [12:09:13]line ИНН: 02508201610067 [12:09:13]line Контрольно-Кассовый Чек [12:09:13]line ПРОДАЖА [12:09:13]line Товар: 4700000160051 [12:09:13]line Вода Ыссык Ата 1л [12:09:13]line 1.000 * 50.00 [12:09:13]line = 50.00 [12:09:13]line НДС 12% НСП 1% [12:09:13]line > о реализуемом товаре [12:09:13]line Товар: 4700000310043 [12:09:13]line Вода Жалалабат 27 1л [12:09:13]line 1.000 * 79.00 [12:09:13]line = 79.00 [12:09:13]line НДС 12% НСП 1% [12:09:13]line > о реализуемом товаре [12:09:13]line ИТОГО: 129.00 [12:09:13]line НСП 1% : 1.14 [12:09:13]line НДС 12% : 13.70 [12:09:13]line Наличными: 129.00 [12:09:13]line Безнал.: 0.00 [12:09:13]line Место: АЗС № 101 "Партнер Нефть" [12:09:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:09:13]line СНО: Общий режим [12:09:13]line Чек 126 31.10.2024 12:09 [12:09:13]line Смена: 557 ФФД: 1.0 [12:09:13]line ЗНМ: 0300000081 [12:09:13]line РНМ: 0000000000091631 [12:09:13]line Версия ККМ: 001 [12:09:13]line ФМ: 0000000000874669 [12:09:13]line ФД: 139649 [12:09:13]line ФПД: 111753104850776 [12:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120910&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139649&fm=111753104850776&tin=02508201610067®Number=0000000000091631&sum=12900 [12:09:13]line 0 [12:09:13]written 0, free lines is 4095 [12:09:13]OFD Sender: Processing packet 139649 [packets to send 34, broken 33] [12:09:13]ProducePacketName [12:09:13]name=ofd_packets/00139649 [12:09:13]OFD Sender: To server: pG, [12:09:13]CommunicateWithHost lk.salyk.kg:30040 [12:09:13]ConnectInit lk.salyk.kg [12:09:13]Connected sock=10 [12:09: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 8E 01 00 00 B7 46 86 01 6D B2 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 64 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 7E 00 00 00 F4 03 04 00 66 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 A3 8C 1D FF 58 05 9B FD D3 79 5F FC 03 [12:09: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 F3 4F 47 00 7A 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 81 21 02 00 F4 03 04 00 15 1F 23 67 B6 04 01 00 00 F5 5B DA 1F D0 EB 0C 41 [12:09:13]CommunicateWithHost err = 0 [12:09:13]CheckOFDResponse [12:09:13]1017 (14) - 77093643461234 [12:09:13]1041 (16) - 0000000000874669 [12:09:13]1040 (4) - 139649 [12:09:13]1012 (4) - 31.10.2024 06:09 [12:09:13]1206 (1) - 0 [12:09:13]OFD Sender: Remove packet 139649 [12:09:13]ProducePacketName [12:09:13]name=ofd_packets/00139649 [12:09:13]NVStorageDeleteData [12:09:13]Write to MH i2c: 01 00 00 A9 00 A9 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 D7 0C 93 [12:09:13]RasterBufferAndPrint [12:09:13]line [12:09:13]line [12:09:13]line [12:09:13]line [12:09:13]line [12:09:13]written 0, free lines is 3311 [12:09:13]MH_Cut [12:09:13]Write to MH i2c: D1 01 00 B0 00 01 82 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: D1 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: D1 01 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: D1 01 00 B0 00 00 81 [12:09:13]Write to MH i2c: 01 00 00 B1 00 B1 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:14]OFD Sender: No OFD packet to send [12:09:14]*** Cut start [12:09:14]*** Partial cut [12:09:14]*** CUTSNS_PIN = 1 [12:09:14]*** CUTSNS_PIN = 0 [12:09:14]*** Brake cut motor [12:09:14]Read from MH i2c: 01 [12:09:14]MH_I2C_Read... [12:09:14]*** Stop cut motor [12:09:14]*** Cut end [12:09:14]Read from MH i2c: 01 07 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [12:09:14]process_action close_receipt done [12:09:14]requested_data is exist [12:09:14]produce_requested_data [12:09:14]requested_item fm.sn is exist - process it [12:09:14]wFMCommunicate request_size=4 [12:09:14]MH_SAM_APDU [12:09:14]CAPDU: 80 11 00 00 [12:09:14]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:14]Read from MH i2c: E2 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: E2 17 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [12:09: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:09:14]wFMCommunicate OK [12:09:14]requested_item fd.num is exist - process it [12:09:14]SAM_PROTO_GetFieldsCounters [12:09:14]wFMCommunicate request_size=4 [12:09:14]MH_SAM_APDU [12:09:14]CAPDU: 80 13 00 00 [12:09:14]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 B3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 A0 [12:09: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 81 21 02 00 0E 04 04 00 2D 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:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_GetFieldsCounters done [12:09:15]requested_item shift.num is exist - process it [12:09:15]requested_item shift.opened is exist - process it [12:09:15]req_shift_opened [12:09:15]FM_GetShiftState [12:09:15]SAM_PROTO_GetShiftState [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 13 01 00 [12:09:15]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5A [12:09:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_GetShiftState done [12:09:15]FM_GetShiftState done [12:09:15]req_shift_opened done [12:09:15]requested_item shift.open_date is exist - process it [12:09:15]req_shift_open_date [12:09:15]req_shift_open_date done [12:09:15]produce_requested_data done [12:09:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139649,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:09:15]process_action_free close_receipt [12:09:15]json_value_free [12:09:15]json_value_free done [12:09:15]process_json_proto returns [12:09:15]Send response to host [12:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139649,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:09:15]free response buf [12:09:15]execute_script done [12:09:15]execute_script returns [12:09:15]free content buf [12:09:15]Sock 7.Close socket [12:09:15]Sock 7.Thread stoped [12:09:15]accept exits with 9 [12:09:15]New connection [12:09:15]New thread 3066654052 created [12:09:15]Thread 3066510692 joined [12:09:15]Waiting for new connection... [12:09:15] Sock 9.Parse request [12:09:15]Sock 9.Check first char [12:09:15]Sock 9.First char is OK [12:09:15]request: POST /json_proto HTTP/1.0 [12:09:15]Method: POST [12:09:15]URL: /json_proto [12:09:15]Method is POST - this is cgi request [12:09:15]url: /json_proto [12:09:15]query_string will be loaded in cgi processing [12:09:15]execute_cgi json_proto POST (null) [12:09:15]execute_cgi path=json_proto method=POST [12:09:15]POST find Content-Length [12:09:15]Host: 172.17.50.196:8080 [12:09:15]Content-Length: 215 [12:09:15]Content-Type: application/json [12:09:15] [12:09:15]POST finish read [12:09:15]Found Content-Length = 215 [12:09:15]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:09:15]execute_script... [12:09:15]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:09:15]POST & json_proto [12:09:15]process_json_proto [12:09:15]json parsed OK: [12:09:15]protocol is kg_v1.0 [12:09:15]action value=get_value [12:09:15]process_action get_value [12:09:15]cmd_get_value [12:09:15]process_action get_value done [12:09:15]requested_data is exist [12:09:15]produce_requested_data [12:09:15]requested_item kkm.sn is exist - process it [12:09:15]requested_item kkm.ver is exist - process it [12:09:15]requested_item fm.sn is exist - process it [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 11 00 00 [12:09:15]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8A [12:09: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:09:15]wFMCommunicate OK [12:09:15]requested_item fd.num is exist - process it [12:09:15]SAM_PROTO_GetFieldsCounters [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 13 00 00 [12:09:15]Write to MH i2c: E2 08 00 B6 00 80 13 00 00 00 00 00 00 32 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 B6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 A3 [12:09: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 81 21 02 00 0E 04 04 00 2D 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:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_GetFieldsCounters done [12:09:15]requested_item shift.num is exist - process it [12:09:15]requested_item shift.opened is exist - process it [12:09:15]req_shift_opened [12:09:15]FM_GetShiftState [12:09:15]SAM_PROTO_GetShiftState [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 13 01 00 [12:09:15]Write to MH i2c: E2 08 00 B7 00 80 13 01 00 00 00 00 00 34 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 B7 00 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5D [12:09:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:16]wFMCommunicate OK [12:09:16]SAM_PROTO_GetShiftState done [12:09:16]FM_GetShiftState done [12:09:16]req_shift_opened done [12:09:16]requested_item shift.open_date is exist - process it [12:09:16]req_shift_open_date [12:09:16]req_shift_open_date done [12:09:16]produce_requested_data done [12:09:16]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139649,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:09:16]process_action_free get_value [12:09:16]json_value_free [12:09:16]json_value_free done [12:09:16]process_json_proto returns [12:09:16]Send response to host [12:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139649,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:09:16]free response buf [12:09:16]execute_script done [12:09:16]execute_script returns [12:09:16]free content buf [12:09:16]Sock 9.Close socket [12:09:16]Sock 9.Thread stoped [12:09:16]accept exits with 7 [12:09:16]New connection [12:09:16]New thread 3066510692 created [12:09:16]Thread 3066654052 joined [12:09:16]Waiting for new connection... [12:09:16] Sock 7.Parse request [12:09:16]Sock 7.Check first char [12:09:16]Sock 7.First char is OK [12:09:16]request: POST /json_proto HTTP/1.0 [12:09:16]Method: POST [12:09:16]URL: /json_proto [12:09:16]Method is POST - this is cgi request [12:09:16]url: /json_proto [12:09:16]query_string will be loaded in cgi processing [12:09:16]execute_cgi json_proto POST (null) [12:09:16]execute_cgi path=json_proto method=POST [12:09:16]POST find Content-Length [12:09:16]Host: 172.17.50.196:8080 [12:09:16]Content-Length: 331 [12:09:16]Content-Type: application/json [12:09:16] [12:09:16]POST finish read [12:09:16]Found Content-Length = 331 [12:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:09:16]execute_script... [12:09:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:09:16]POST & json_proto [12:09:16]process_json_proto [12:09:16]json parsed OK: [12:09:16]protocol is kg_v1.0 [12:09:16]action value=get_value [12:09:16]process_action get_value [12:09:16]cmd_get_value [12:09:16]process_action get_value done [12:09:16]requested_data is exist [12:09:16]produce_requested_data [12:09:16]requested_item fm.sale.total is exist - process it [12:09:16]SAM_PROTO_GetFMData [12:09:16]wFMCommunicate request_size=4 [12:09:16]MH_SAM_APDU [12:09:16]CAPDU: 80 13 03 00 [12:09:16]Write to MH i2c: E2 08 00 B8 00 80 13 03 00 00 00 00 00 37 [12:09:16]Write i2c OK [12:09:16]MH_I2C_Read... [12:09:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:09:16]Read from MH i2c: E2 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 FD 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 FD 00 B8 00 00 C7 04 85 04 C3 04 6E 04 04 00 27 1D 02 00 69 04 A3 00 6F 04 04 00 D8 1A 02 00 B1 04 05 00 06 96 D5 52 01 70 04 05 00 DC 1F 6E 03 01 72 04 04 00 2A 76 67 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 98 38 FC 23 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 A4 6C FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 21 [12:09:16]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 27 1D 02 00 69 04 A3 00 6F 04 04 00 D8 1A 02 00 B1 04 05 00 06 96 D5 52 01 70 04 05 00 DC 1F 6E 03 01 72 04 04 00 2A 76 67 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 98 38 FC 23 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 A4 6C FF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [12:09:16]wFMCommunicate OK [12:09:16]wFMCommunicate request_size=4 [12:09:16]MH_SAM_APDU [12:09:16]CAPDU: 80 17 00 00 [12:09:16]Write to MH i2c: E2 08 00 B9 00 80 17 00 00 00 00 00 00 39 [12:09:16]Write i2c OK [12:09:16]MH_I2C_Read... [12:09:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:16]Read from MH i2c: E2 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 FD 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 FD 00 B9 00 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 1A 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 F1 [12:09:17]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 1A 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:09:17]wFMCommunicate OK [12:09:17]wFMCommunicate request_size=4 [12:09:17]MH_SAM_APDU [12:09:17]CAPDU: 80 17 00 00 [12:09:17]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [12:09:17]Write i2c OK [12:09:17]MH_I2C_Read... [12:09:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:17]Read from MH i2c: E2 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 FD 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 FD 00 BA 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 [12:09:17]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:09:17]wFMCommunicate OK [12:09:17]wFMCommunicate request_size=4 [12:09:17]MH_SAM_APDU [12:09:17]CAPDU: 80 17 00 00 [12:09:17]Write to MH i2c: E2 08 00 BB 00 80 17 00 00 00 00 00 00 3B [12:09:17]Write i2c OK [12:09:17]MH_I2C_Read... [12:09:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:17]Read from MH i2c: E2 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 FD 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 FD 00 BB 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 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 B6 [12:09:17]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:09:18]wFMCommunicate OK [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 17 00 00 [12:09:18]Write to MH i2c: E2 08 00 BC 00 80 17 00 00 00 00 00 00 3C [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 E4 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 E4 00 BC 00 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 1C [12:09:18]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:09:18]wFMCommunicate OK [12:09:18]SAM_PROTO_GetFMData done [12:09:18]requested_item fm.sale_refund.total is exist - process it [12:09:18]requested_item fm.buy.total is exist - process it [12:09:18]requested_item shift.sale.total is exist - process it [12:09:18]SAM_PROTO_GetShiftData [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 13 02 00 [12:09:18]Write to MH i2c: E2 08 00 BD 00 80 13 02 00 00 00 00 00 3B [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 FD 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 FD 00 BD 00 00 B8 04 AA 04 B4 04 6E 04 04 00 7E 00 00 00 69 04 9B 00 6F 04 04 00 7A 00 00 00 B1 04 03 00 6D 34 47 70 04 03 00 DC 08 3E 72 04 03 00 91 2B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D5 8F 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 CF [12:09:19]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7E 00 00 00 69 04 9B 00 6F 04 04 00 7A 00 00 00 B1 04 03 00 6D 34 47 70 04 03 00 DC 08 3E 72 04 03 00 91 2B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D5 8F 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [12:09:19]wFMCommunicate OK [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 17 00 00 [12:09:19]Write to MH i2c: E2 08 00 BE 00 80 17 00 00 00 00 00 00 3E [12:09:19]OFD Sender: No OFD packet to send [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 FD 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 FD 00 BE 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 0F [12:09:19]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [12:09:19]wFMCommunicate OK [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 17 00 00 [12:09:19]Write to MH i2c: E2 08 00 BF 00 80 17 00 00 00 00 00 00 3F [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 FD 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 FD 00 BF 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 E1 [12:09:20]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [12:09:20]wFMCommunicate OK [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 17 00 00 [12:09:20]Write to MH i2c: E2 08 00 C0 00 80 17 00 00 00 00 00 00 40 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 FD 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 FD 00 C0 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 C9 [12:09:20]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [12:09:20]wFMCommunicate OK [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 17 00 00 [12:09:20]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 D5 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 D5 00 C1 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 22 [12:09:21]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:09:21]wFMCommunicate OK [12:09:21]SAM_PROTO_GetShiftData done [12:09:21]requested_item shift.sale.total_cash is exist - process it [12:09:21]requested_item shift.sale_refund.total is exist - process it [12:09:21]requested_item shift.sale_refund.total_cash is exist - process it [12:09:21]requested_item shift.buy.total is exist - process it [12:09:21]requested_item shift.buy.total_cash is exist - process it [12:09:21]produce_requested_data done [12:09:21]produce_requested_data return {"fm.sale.total":56846965.82,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":46664.77,"shift.sale.total_cash":40655.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:09:21]process_action_free get_value [12:09:21]json_value_free [12:09:21]json_value_free done [12:09:21]process_json_proto returns [12:09:21]Send response to host [12:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56846965.82,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":46664.77,"shift.sale.total_cash":40655.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:09:21]free response buf [12:09:21]execute_script done [12:09:21]execute_script returns [12:09:21]free content buf [12:09:21]Sock 7.Close socket [12:09:21]Sock 7.Thread stoped [12:09:22]accept exits with 9 [12:09:22]New connection [12:09:22]New thread 3066654052 created [12:09:22]Thread 3066510692 joined [12:09:22]Waiting for new connection... [12:09:22] Sock 9.Parse request [12:09:22]Sock 9.Check first char [12:09:22]Sock 9.First char is OK [12:09:22]request: POST /json_proto HTTP/1.0 [12:09:22]Method: POST [12:09:22]URL: /json_proto [12:09:22]Method is POST - this is cgi request [12:09:22]url: /json_proto [12:09:22]query_string will be loaded in cgi processing [12:09:22]execute_cgi json_proto POST (null) [12:09:22]execute_cgi path=json_proto method=POST [12:09:22]POST find Content-Length [12:09:22]Host: 172.17.50.196:8080 [12:09:22]Content-Length: 657 [12:09:22]Content-Type: application/json [12:09:22] [12:09:22]POST finish read [12:09:22]Found Content-Length = 657 [12:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335510", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:22]execute_script... [12:09: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)335510", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:22]POST & json_proto [12:09:22]process_json_proto [12:09:22]json parsed OK: [12:09:22]protocol is kg_v1.0 [12:09:22]action value=close_receipt [12:09:22]process_action close_receipt [12:09:22]cmd_close_receipt [12:09:22]MH_GetDate [12:09:22]Write to MH i2c: F0 00 00 C2 00 B1 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: F0 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: F0 09 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: F0 09 00 C2 00 00 72 73 23 67 72 0D 1C 67 2B [12:09:22]GetLastDocTimeStamp 1730376550 [12:09:22]current date 1730376562 [12:09:22]FM_GetShiftState [12:09:22]SAM_PROTO_GetShiftState [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 13 01 00 [12:09:22]Write to MH i2c: E2 08 00 C3 00 80 13 01 00 00 00 00 00 40 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 C3 00 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 69 [12:09:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetShiftState done [12:09:22]FM_GetShiftState done [12:09:22]opened in 1730332621 [12:09:22]opened+sec_in_day 1730419021 [12:09:22]quantity*price = 9500 [12:09:22]sum+1 = 9501 [12:09:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 127 31.10.2024 12:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139650 ФПД: 70558699237796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120922&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139650&fm=70558699237796&tin=02508201610067®Number=0000000000091631&sum=9500 0 [12:09:23]StoreToDocumentArchive [12:09:23]shift 557 fd 139650 [12:09:23]save to /storage/0557/doc_00139650 [12:09:23]save last doc name /storage/0557/doc_00139650 to /storage/kkm_last_doc_name [12:09:23]save OK [12:09:23]Clear old archive folders... [12:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=288 [12:09:23]tlvbuf is 00AC29E0 [12:09:23]SAM_PROTO_ClearQueue [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 09 00 00 [12:09:23]Write to MH i2c: E2 08 00 D0 00 80 09 00 00 00 00 00 00 42 [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 03 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [12:09:23]RAPDU: 90 00 [12:09:23]wFMCommunicate OK [12:09:23]SAM_PROTO_ClearQueue done [12:09:23]KKMCreateOFDPacket [12:09:23]OFDProtocolAddRootSTLVToBuf [12:09:23]FM_MakeSignedData [12:09:23]FM_MakeSignedData [12:09:23]SAM_PROTO_SignData [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 0D 01 02 [12:09:23]Write to MH i2c: E2 08 00 D1 00 80 0D 01 02 00 00 00 00 4A [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [12:09:24]RAPDU: 90 00 [12:09:24]wFMCommunicate OK [12:09:24]wFMCommunicate request_size=255 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 03 04 00 72 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [12:09:24]Write to MH i2c: E2 02 01 D2 00 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 OFD Sender: No OFD packet to send [12:09:24]03 04 00 72 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 52 [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [12:09:24]RAPDU: 90 00 [12:09:24]wFMCommunicate OK [12:09:24]wFMCommunicate request_size=47 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 0D 02 02 2A 31 36 33 31 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 21 02 00 35 04 06 00 40 2C 3A 34 31 A4 [12:09:24]Write to MH i2c: E2 32 00 D3 00 80 0D 02 02 2A 00 31 36 33 31 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 21 02 00 35 04 06 00 40 2C 3A 34 31 A4 00 00 64 [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [12:09:24]RAPDU: 90 00 [12:09:24]wFMCommunicate OK [12:09:24]wFMCommunicate request_size=4 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 0D 03 02 [12:09:24]Write to MH i2c: E2 08 00 D4 00 80 0D 03 02 00 00 00 00 4F [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 0B 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 0B 00 D4 00 00 1E E3 26 FF 99 83 3D 2C 90 00 FB [12:09:24]RAPDU: 1E E3 26 FF 99 83 3D 2C 90 00 [12:09:24]wFMCommunicate OK [12:09:24]SAM_PROTO_SignData done [12:09:24]FM_MakeSignedData done [12:09:24]CreateOFDProtocolMessage [12:09:24]wFMCommunicate request_size=4 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 11 00 00 [12:09:24]Write to MH i2c: E2 08 00 D5 00 80 11 00 00 00 00 00 00 4F [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:24]Read from MH i2c: E2 17 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 17 00 D5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [12:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:09:25]wFMCommunicate OK [12:09:25]CreateOFDProtocolMessage done [12:09:25]OFDSenderStorePacket 139650 [12:09:25]StoreOFDPacket docnum=139650 [12:09: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 34 01 00 00 ED 50 2C 01 42 30 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 03 04 00 72 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 40 2C 3A 34 31 A4 1E E3 26 FF 99 83 3D 2C [12:09:25]CheckFolder [12:09:25]dirname=/storage/ofd_packets [12:09:25]CheckFolder done [12:09:25]ProducePacketName [12:09:25]name=ofd_packets/00139650 [12:09:25]NVStorageSaveData ofd_packets/00139650 [12:09:25]File name is /storage/ofd_packets/00139650 [12:09:25]Write 338 bytes [12:09:25]NVStorageSaveData done [12:09:25]OFDSenderStorePacket done [12:09:25]KKMCreateOFDPacket done [12:09:25]NVStorageSaveData kkm_last_timestamp [12:09:25]File name is /storage/kkm_last_timestamp [12:09:25]Write 4 bytes [12:09:25]NVStorageSaveData done [12:09:25]ExternCall_PrintAddStr [12:09:25]wPrintStart [12:09:25]Write to MH i2c: 01 00 00 D6 00 D6 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 D6 00 00 00 00 00 00 FF 0F EB [12:09:25]RasterBufferAndPrint [12:09:25]line Счет N : (3)335510 [12:09:25]line ИНН: 02508201610067 [12:09:25]line Контрольно-Кассовый Чек [12:09:25]line ПРОДАЖА [12:09:25]line Товар: 4700000481453 [12:09:25]line Напиток энерг Nitro Max 0,45 ж/б [12:09:25]line 1.000 * 95.00 [12:09:25]line = 95.00 [12:09:25]line НДС 12% НСП 1% [12:09:25]line > о реализуемом товаре [12:09:25]line ИТОГО: 95.00 [12:09:25]line НСП 1% : 0.84 [12:09:25]line НДС 12% : 10.09 [12:09:25]line Наличными: 95.00 [12:09:25]line Безнал.: 0.00 [12:09:25]line Место: АЗС № 101 "Партнер Нефть" [12:09:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:09:25]line СНО: Общий режим [12:09:25]line Чек 127 31.10.2024 12:09 [12:09:25]line Смена: 557 ФФД: 1.0 [12:09:25]line ЗНМ: 0300000081 [12:09:25]line РНМ: 0000000000091631 [12:09:25]line Версия ККМ: 001 [12:09:25]line ФМ: 0000000000874669 [12:09:25]line ФД: 139650 [12:09:25]line ФПД: 70558699237796 [12:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120922&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139650&fm=70558699237796&tin=02508201610067®Number=0000000000091631&sum=9500 [12:09:25]line 0 [12:09:25]OFD Sender: Processing packet 139650 [packets to send 34, broken 33] [12:09:25]ProducePacketName [12:09:25]name=ofd_packets/00139650 [12:09:25]OFD Sender: To server: pG, [12:09:25]CommunicateWithHost lk.salyk.kg:30040 [12:09:25]ConnectInit lk.salyk.kg [12:09:25]written 0, free lines is 4095 [12:09:25]Connected sock=10 [12:09: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 34 01 00 00 ED 50 2C 01 42 30 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 03 04 00 72 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 40 2C 3A 34 31 A4 1E E3 26 FF 99 83 3D 2C [12:09:25]Write to MH i2c: 01 00 00 FF 00 FF [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FD 0C 0F [12:09:25]RasterBufferAndPrint [12:09:25]line [12:09:25]line [12:09:25]line [12:09:25]line [12:09:25]line [12:09: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 6A 6B 47 00 DE EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 21 02 00 F4 03 04 00 21 1F 23 67 B6 04 01 00 00 0F CE 44 8B 67 54 63 87 [12:09:25]CommunicateWithHost err = 0 [12:09:25]CheckOFDResponse [12:09:25]1017 (14) - 77093643461234 [12:09:25]1041 (16) - 0000000000874669 [12:09:25]1040 (4) - 139650 [12:09:25]1012 (4) - 31.10.2024 06:09 [12:09:25]1206 (1) - 0 [12:09:25]OFD Sender: Remove packet 139650 [12:09:25]ProducePacketName [12:09:25]name=ofd_packets/00139650 [12:09:25]NVStorageDeleteData [12:09:25]written 0, free lines is 3377 [12:09:25]MH_Cut [12:09:25]Write to MH i2c: D1 01 00 06 01 01 D9 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: D1 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: D1 01 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: D1 01 00 06 01 00 D8 [12:09:25]Write to MH i2c: 01 00 00 07 01 08 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:26]*** Cut start [12:09:26]*** Partial cut [12:09:26]*** CUTSNS_PIN = 1 [12:09:26]OFD Sender: No OFD packet to send [12:09:26]*** CUTSNS_PIN = 0 [12:09:26]*** Brake cut motor [12:09:26]Read from MH i2c: 01 [12:09:26]MH_I2C_Read... [12:09:26]*** Stop cut motor [12:09:26]*** Cut end [12:09:26]Read from MH i2c: 01 07 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: 01 07 00 07 01 00 00 00 00 00 FF 0F 1D [12:09:26]process_action close_receipt done [12:09:26]requested_data is exist [12:09:26]produce_requested_data [12:09:26]requested_item fm.sn is exist - process it [12:09:26]wFMCommunicate request_size=4 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 11 00 00 [12:09:26]Write to MH i2c: E2 08 00 08 01 80 11 00 00 00 00 00 00 83 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:26]Read from MH i2c: E2 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 17 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 17 00 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [12:09: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:09:26]wFMCommunicate OK [12:09:26]requested_item fd.num is exist - process it [12:09:26]SAM_PROTO_GetFieldsCounters [12:09:26]wFMCommunicate request_size=4 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 13 00 00 [12:09:26]Write to MH i2c: E2 08 00 09 01 80 13 00 00 00 00 00 00 86 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 62 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 62 00 09 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 FB [12:09: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 82 21 02 00 0E 04 04 00 2D 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:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_GetFieldsCounters done [12:09:27]requested_item shift.num is exist - process it [12:09:27]requested_item shift.opened is exist - process it [12:09:27]req_shift_opened [12:09:27]FM_GetShiftState [12:09:27]SAM_PROTO_GetShiftState [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 13 01 00 [12:09:27]Write to MH i2c: E2 08 00 0A 01 80 13 01 00 00 00 00 00 88 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 0A 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B1 [12:09:27]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_GetShiftState done [12:09:27]FM_GetShiftState done [12:09:27]req_shift_opened done [12:09:27]requested_item shift.open_date is exist - process it [12:09:27]req_shift_open_date [12:09:27]req_shift_open_date done [12:09:27]produce_requested_data done [12:09:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139650,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:09:27]process_action_free close_receipt [12:09:27]json_value_free [12:09:27]json_value_free done [12:09:27]process_json_proto returns [12:09:27]Send response to host [12:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139650,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:09:27]free response buf [12:09:27]execute_script done [12:09:27]execute_script returns [12:09:27]free content buf [12:09:27]Sock 9.Close socket [12:09:27]Sock 9.Thread stoped [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:46]accept exits with 7 [12:09:46]New connection [12:09:46]New thread 3066510692 created [12:09:46]Thread 3066654052 joined [12:09:46]Waiting for new connection... [12:09:46] Sock 7.Parse request [12:09:46]Sock 7.Check first char [12:09:46]Sock 7.First char is OK [12:09:46]request: POST /json_proto HTTP/1.0 [12:09:46]Method: POST [12:09:46]URL: /json_proto [12:09:46]Method is POST - this is cgi request [12:09:46]url: /json_proto [12:09:46]query_string will be loaded in cgi processing [12:09:46]execute_cgi json_proto POST (null) [12:09:46]execute_cgi path=json_proto method=POST [12:09:46]POST find Content-Length [12:09:46]Host: 172.17.50.196:8080 [12:09:46]Content-Length: 1012 [12:09:46]Content-Type: application/json [12:09:46] [12:09:46]POST finish read [12:09:46]Found Content-Length = 1012 [12:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335511", "tax_sys" : 0, "items" : [ { "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:46]execute_script... [12:09: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)335511", "tax_sys" : 0, "items" : [ { "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:46]POST & json_proto [12:09:46]process_json_proto [12:09:46]json parsed OK: [12:09:46]protocol is kg_v1.0 [12:09:46]action value=close_receipt [12:09:46]process_action close_receipt [12:09:46]cmd_close_receipt [12:09:46]MH_GetDate [12:09:46]Write to MH i2c: F0 00 00 0B 01 FB [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: F0 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: F0 09 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: F0 09 00 0B 01 00 8B 73 23 67 72 0D 1C 67 8E [12:09:46]GetLastDocTimeStamp 1730376562 [12:09:46]current date 1730376587 [12:09:46]FM_GetShiftState [12:09:46]SAM_PROTO_GetShiftState [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 01 00 [12:09:46]Write to MH i2c: E2 08 00 0C 01 80 13 01 00 00 00 00 00 8A [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:47]Read from MH i2c: E2 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 0E 00 [12:09:47]MH_I2C_Read... [12:09:47]Read from MH i2c: E2 0E 00 0C 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B3 [12:09:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:47]wFMCommunicate OK [12:09:47]SAM_PROTO_GetShiftState done [12:09:47]FM_GetShiftState done [12:09:47]opened in 1730332621 [12:09:47]opened+sec_in_day 1730419021 [12:09:47]quantity*price = 6000 [12:09:47]sum+1 = 6001 [12:09:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521186 Чай холодный MAXI черный со вкусом клубн 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 128 31.10.2024 12:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139651 ФПД: 177217944313377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120947&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139651&fm=177217944313377&tin=02508201610067®Number=0000000000091631&sum=13000 0 [12:09:48]StoreToDocumentArchive [12:09:48]shift 557 fd 139651 [12:09:48]save to /storage/0557/doc_00139651 [12:09:48]save last doc name /storage/0557/doc_00139651 to /storage/kkm_last_doc_name [12:09:48]save OK [12:09:48]Clear old archive folders... [12:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=422 [12:09:48]tlvbuf is 00A888C0 [12:09:48]SAM_PROTO_ClearQueue [12:09:48]wFMCommunicate request_size=4 [12:09:48]MH_SAM_APDU [12:09:48]CAPDU: 80 09 00 00 [12:09:48]Write to MH i2c: E2 08 00 19 01 80 09 00 00 00 00 00 00 8C [12:09:48]Write i2c OK [12:09:48]MH_I2C_Read... [12:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:48]Read from MH i2c: E2 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 03 00 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [12:09:48]RAPDU: 90 00 [12:09:48]wFMCommunicate OK [12:09:48]SAM_PROTO_ClearQueue done [12:09:48]KKMCreateOFDPacket [12:09:48]OFDProtocolAddRootSTLVToBuf [12:09:48]FM_MakeSignedData [12:09:48]FM_MakeSignedData [12:09:48]SAM_PROTO_SignData [12:09:48]wFMCommunicate request_size=4 [12:09:48]MH_SAM_APDU [12:09:48]CAPDU: 80 0D 01 02 [12:09:48]Write to MH i2c: E2 08 00 1A 01 80 0D 01 02 00 00 00 00 94 [12:09:48]Write i2c OK [12:09:48]MH_I2C_Read... [12:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:48]Read from MH i2c: E2 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 03 00 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [12:09:48]RAPDU: 90 00 [12:09:48]wFMCommunicate OK [12:09:48]wFMCommunicate request_size=255 [12:09:48]MH_SAM_APDU [12:09:48]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 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 [12:09:48]Write to MH i2c: E2 02 01 1B 01 80 0D 02 02 FA 00 03 00 A6 01 1E 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 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 00 00 1C [12:09:49]Write i2c OK [12:09:49]MH_I2C_Read... [12:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:49]Read from MH i2c: E2 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 03 00 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [12:09:49]RAPDU: 90 00 [12:09:49]wFMCommunicate OK [12:09:49]wFMCommunicate request_size=181 [12:09:49]MH_SAM_APDU [12:09:49]CAPDU: 80 0D 02 02 B0 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 80 00 00 00 F4 03 04 00 8B 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A1 2D C4 9E 5E 21 [12:09:49]Write to MH i2c: E2 B8 00 1C 01 80 0D 02 02 B0 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 80 00 00 00 F4 03 04 00 8B 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A1 2D C4 9E 5E 21 00 00 56 [12:09:49]Write i2c OK [12:09:49]MH_I2C_Read... [12:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:49]Read from MH i2c: E2 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 03 00 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [12:09:49]RAPDU: 90 00 [12:09:49]wFMCommunicate OK [12:09:49]wFMCommunicate request_size=4 [12:09:49]MH_SAM_APDU [12:09:49]CAPDU: 80 0D 03 02 [12:09:49]Write to MH i2c: E2 08 00 1D 01 80 0D 03 02 00 00 00 00 99 [12:09:49]Write i2c OK [12:09:49]MH_I2C_Read... [12:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:49]Read from MH i2c: E2 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 0B 00 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 0B 00 1D 01 00 E7 FA 1D 4B FE A5 51 BC 90 00 93 [12:09:49]RAPDU: E7 FA 1D 4B FE A5 51 BC 90 00 [12:09:49]wFMCommunicate OK [12:09:49]SAM_PROTO_SignData done [12:09:49]FM_MakeSignedData done [12:09:49]CreateOFDProtocolMessage [12:09:49]wFMCommunicate request_size=4 [12:09:49]MH_SAM_APDU [12:09:49]CAPDU: 80 11 00 00 [12:09:49]Write to MH i2c: E2 08 00 1E 01 80 11 00 00 00 00 00 00 99 [12:09:49]Write i2c OK [12:09:49]MH_I2C_Read... [12:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:49]Read from MH i2c: E2 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 17 00 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: E2 17 00 1E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F4 [12:09: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:09:49]wFMCommunicate OK [12:09:49]CreateOFDProtocolMessage done [12:09:49]OFDSenderStorePacket 139651 [12:09:49]StoreOFDPacket docnum=139651 [12:09: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 BA 01 00 00 BE A5 B2 01 7F 0F 5A 03 01 00 03 00 A6 01 1E 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 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 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 80 00 00 00 F4 03 04 00 8B 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A1 2D C4 9E 5E 21 E7 FA 1D 4B FE A5 51 BC [12:09:49]CheckFolder [12:09:49]dirname=/storage/ofd_packets [12:09:49]CheckFolder done [12:09:49]ProducePacketName [12:09:49]name=ofd_packets/00139651 [12:09:49]NVStorageSaveData ofd_packets/00139651 [12:09:49]File name is /storage/ofd_packets/00139651 [12:09:49]Write 472 bytes [12:09:49]NVStorageSaveData done [12:09:49]OFDSenderStorePacket done [12:09:49]KKMCreateOFDPacket done [12:09:49]NVStorageSaveData kkm_last_timestamp [12:09:49]File name is /storage/kkm_last_timestamp [12:09:49]Write 4 bytes [12:09:49]NVStorageSaveData done [12:09:49]ExternCall_PrintAddStr [12:09:49]wPrintStart [12:09:49]Write to MH i2c: 01 00 00 1F 01 20 [12:09:49]Write i2c OK [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: 01 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: 01 07 00 [12:09:49]MH_I2C_Read... [12:09:49]Read from MH i2c: 01 07 00 1F 01 00 00 00 00 00 FF 0F 35 [12:09:49]RasterBufferAndPrint [12:09:49]line Счет N : (3)335511 [12:09:49]line ИНН: 02508201610067 [12:09:49]line Контрольно-Кассовый Чек [12:09:49]line ПРОДАЖА [12:09:49]line Товар: 5000159438056 [12:09:49]line Драже Skittles Кисломикс [12:09:49]line 1.000 * 60.00 [12:09:49]line = 60.00 [12:09:49]line НДС 12% НСП 1% [12:09:49]line > о реализуемом товаре [12:09:49]line Товар: 4870202521186 [12:09:49]line Чай холодный MAXI черный со вкусом клубн [12:09:49]line 1.000 * 70.00 [12:09:49]line = 70.00 [12:09:49]line НДС 12% НСП 1% [12:09:49]line > о реализуемом товаре [12:09:49]line ИТОГО: 130.00 [12:09:49]line НСП 1% : 1.15 [12:09:49]line НДС 12% : 13.80 [12:09:49]line Наличными: 130.00 [12:09:49]line Безнал.: 0.00 [12:09:49]line Место: АЗС № 101 "Партнер Нефть" [12:09:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:09:49]line СНО: Общий режим [12:09:49]line Чек 128 31.10.2024 12:09 [12:09:49]line Смена: 557 ФФД: 1.0 [12:09:49]line ЗНМ: 0300000081 [12:09:49]line РНМ: 0000000000091631 [12:09:49]line Версия ККМ: 001 [12:09:49]line ФМ: 0000000000874669 [12:09:49]line ФД: 139651 [12:09:49]line ФПД: 177217944313377 [12:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120947&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139651&fm=177217944313377&tin=02508201610067®Number=0000000000091631&sum=13000 [12:09:49]line 0 [12:09:49]OFD Sender: Processing packet 139651 [packets to send 34, broken 33] [12:09:49]ProducePacketName [12:09:49]written 0, free lines is 4095 [12:09:49]name=ofd_packets/00139651 [12:09:49]OFD Sender: To server: pG, [12:09:49]CommunicateWithHost lk.salyk.kg:30040 [12:09:49]ConnectInit lk.salyk.kg [12:09:50]Connected sock=10 [12:09: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 BA 01 00 00 BE A5 B2 01 7F 0F 5A 03 01 00 03 00 A6 01 1E 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 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 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 80 00 00 00 F4 03 04 00 8B 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A1 2D C4 9E 5E 21 E7 FA 1D 4B FE A5 51 BC [12:09:50]Write to MH i2c: 01 00 00 4E 01 4F [12:09:50]Write i2c OK [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: 01 [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: 01 07 00 [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 D9 0C 3B [12:09:50]RasterBufferAndPrint [12:09:50]line [12:09:50]line [12:09:50]line [12:09:50]line [12:09:50]line [12:09:50]written 0, free lines is 3326 [12:09:50]MH_Cut [12:09:50]Write to MH i2c: D1 01 00 55 01 01 28 [12:09:50]Write i2c OK [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: D1 [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: D1 01 00 [12:09:50]MH_I2C_Read... [12:09:50]Read from MH i2c: D1 01 00 55 01 00 27 [12:09:50]Write to MH i2c: 01 00 00 56 01 57 [12:09: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 D6 A3 47 00 FF 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 83 21 02 00 F4 03 04 00 3A 1F 23 67 B6 04 01 00 00 45 B1 A2 AB C7 C2 0C 96 [12:09:50]CommunicateWithHost err = 0 [12:09:50]CheckOFDResponse [12:09:50]1017 (14) - 77093643461234 [12:09:50]1041 (16) - 0000000000874669 [12:09:50]1040 (4) - 139651 [12:09:50]1012 (4) - 31.10.2024 06:10 [12:09:50]1206 (1) - 0 [12:09:50]OFD Sender: Remove packet 139651 [12:09:50]ProducePacketName [12:09:50]name=ofd_packets/00139651 [12:09:50]NVStorageDeleteData [12:09:50]Write i2c OK [12:09:50]MH_I2C_Read... [12:09:51]*** Cut start [12:09:51]*** Partial cut [12:09:51]*** CUTSNS_PIN = 1 [12:09:51]OFD Sender: No OFD packet to send [12:09:51]*** CUTSNS_PIN = 0 [12:09:51]*** Brake cut motor [12:09:51]Read from MH i2c: *** Stop cut motor [12:09:51]01 *** Cut end [12:09:51] [12:09:51]MH_I2C_Read... [12:09:51]Read from MH i2c: 01 07 00 [12:09:51]MH_I2C_Read... [12:09:51]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [12:09:51]process_action close_receipt done [12:09:51]requested_data is exist [12:09:51]produce_requested_data [12:09:51]requested_item fm.sn is exist - process it [12:09:51]wFMCommunicate request_size=4 [12:09:51]MH_SAM_APDU [12:09:51]CAPDU: 80 11 00 00 [12:09:51]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [12:09:51]Write i2c OK [12:09:51]MH_I2C_Read... [12:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:51]Read from MH i2c: E2 [12:09:51]MH_I2C_Read... [12:09:51]Read from MH i2c: E2 17 00 [12:09:51]MH_I2C_Read... [12:09:51]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2D [12:09: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:09:51]wFMCommunicate OK [12:09:51]requested_item fd.num is exist - process it [12:09:51]SAM_PROTO_GetFieldsCounters [12:09:51]wFMCommunicate request_size=4 [12:09:51]MH_SAM_APDU [12:09:51]CAPDU: 80 13 00 00 [12:09:51]Write to MH i2c: E2 08 00 58 01 80 13 00 00 00 00 00 00 D5 [12:09:51]Write i2c OK [12:09:51]MH_I2C_Read... [12:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:52]Read from MH i2c: E2 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 62 00 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 62 00 58 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 4E [12:09: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 83 21 02 00 0E 04 04 00 2D 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:09:52]wFMCommunicate OK [12:09:52]SAM_PROTO_GetFieldsCounters done [12:09:52]requested_item shift.num is exist - process it [12:09:52]requested_item shift.opened is exist - process it [12:09:52]req_shift_opened [12:09:52]FM_GetShiftState [12:09:52]SAM_PROTO_GetShiftState [12:09:52]wFMCommunicate request_size=4 [12:09:52]MH_SAM_APDU [12:09:52]CAPDU: 80 13 01 00 [12:09:52]Write to MH i2c: E2 08 00 59 01 80 13 01 00 00 00 00 00 D7 [12:09:52]Write i2c OK [12:09:52]MH_I2C_Read... [12:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:52]Read from MH i2c: E2 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 0E 00 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 0E 00 59 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 00 [12:09:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:52]wFMCommunicate OK [12:09:52]SAM_PROTO_GetShiftState done [12:09:52]FM_GetShiftState done [12:09:52]req_shift_opened done [12:09:52]requested_item shift.open_date is exist - process it [12:09:52]req_shift_open_date [12:09:52]req_shift_open_date done [12:09:52]produce_requested_data done [12:09:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139651,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:09:52]process_action_free close_receipt [12:09:52]json_value_free [12:09:52]json_value_free done [12:09:52]process_json_proto returns [12:09:52]Send response to host [12:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139651,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:09:52]free response buf [12:09:52]execute_script done [12:09:52]execute_script returns [12:09:52]free content buf [12:09:52]Sock 7.Close socket [12:09:52]Sock 7.Thread stoped [12:09:53]accept exits with 9 [12:09:53]New connection [12:09:53]New thread 3066654052 created [12:09:53]Thread 3066510692 joined [12:09:53]Waiting for new connection... [12:09:53] Sock 9.Parse request [12:09:53]Sock 9.Check first char [12:09:53]Sock 9.First char is OK [12:09:53]request: POST /json_proto HTTP/1.0 [12:09:53]Method: POST [12:09:53]URL: /json_proto [12:09:53]Method is POST - this is cgi request [12:09:53]url: /json_proto [12:09:53]query_string will be loaded in cgi processing [12:09:53]execute_cgi json_proto POST (null) [12:09:53]execute_cgi path=json_proto method=POST [12:09:53]POST find Content-Length [12:09:53]Host: 172.17.50.196:8080 [12:09:53]Content-Length: 683 [12:09:53]Content-Type: application/json [12:09:53] [12:09:53]POST finish read [12:09:53]Found Content-Length = 683 [12:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.550, "sum" : 1005.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:53]execute_script... [12:09: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)1095144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.550, "sum" : 1005.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:53]POST & json_proto [12:09:53]process_json_proto [12:09:53]json parsed OK: [12:09:53]protocol is kg_v1.0 [12:09:53]action value=close_receipt [12:09:53]process_action close_receipt [12:09:53]cmd_close_receipt [12:09:53]MH_GetDate [12:09:53]Write to MH i2c: F0 00 00 5A 01 4A [12:09:53]Write i2c OK [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: F0 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: F0 09 00 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: F0 09 00 5A 01 00 91 73 23 67 72 0D 1C 67 E3 [12:09:53]GetLastDocTimeStamp 1730376587 [12:09:53]current date 1730376593 [12:09:53]FM_GetShiftState [12:09:53]SAM_PROTO_GetShiftState [12:09:53]wFMCommunicate request_size=4 [12:09:53]MH_SAM_APDU [12:09:53]CAPDU: 80 13 01 00 [12:09:53]Write to MH i2c: E2 08 00 5B 01 80 13 01 00 00 00 00 00 D9 [12:09:53]Write i2c OK [12:09:53]MH_I2C_Read... [12:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:53]Read from MH i2c: E2 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 0E 00 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 0E 00 5B 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 02 [12:09:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:53]wFMCommunicate OK [12:09:53]SAM_PROTO_GetShiftState done [12:09:53]FM_GetShiftState done [12:09:53]opened in 1730332621 [12:09:53]opened+sec_in_day 1730419021 [12:09:53]quantity*price = 100541 [12:09:53]sum+1 = 100542 [12:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.77 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 129 31.10.2024 12:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139652 ФПД: 123098844884689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120953&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139652&fm=123098844884689&tin=02508201610067®Number=0000000000091631&sum=100500 [12:09:55]StoreToDocumentArchive [12:09:55]shift 557 fd 139652 [12:09:55]save to /storage/0557/doc_00139652 [12:09:55]save last doc name /storage/0557/doc_00139652 to /storage/kkm_last_doc_name [12:09:55]save OK [12:09:55]Clear old archive folders... [12:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:55]tlvbuf is 00ACBBC0 [12:09:55]SAM_PROTO_ClearQueue [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 09 00 00 [12:09:55]Write to MH i2c: E2 08 00 68 01 80 09 00 00 00 00 00 00 DB [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [12:09:55]RAPDU: 90 00 [12:09:55]wFMCommunicate OK [12:09:55]SAM_PROTO_ClearQueue done [12:09:55]KKMCreateOFDPacket [12:09:55]OFDProtocolAddRootSTLVToBuf [12:09:55]FM_MakeSignedData [12:09:55]FM_MakeSignedData [12:09:55]SAM_PROTO_SignData [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 0D 01 02 [12:09:55]Write to MH i2c: E2 08 00 69 01 80 0D 01 02 00 00 00 00 E3 [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [12:09:55]RAPDU: 90 00 [12:09:55]wFMCommunicate OK [12:09:55]wFMCommunicate request_size=255 [12:09:55]MH_SAM_APDU [12:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 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 91 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F [12:09:55]Write to MH i2c: E2 02 01 6A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 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 91 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F 00 00 5B [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [12:09:55]RAPDU: 90 00 [12:09:55]wFMCommunicate OK [12:09:55]wFMCommunicate request_size=10 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 0D 02 02 05 F5 2E EB EE D1 [12:09:55]Write to MH i2c: E2 0D 00 6B 01 80 0D 02 02 05 00 F5 2E EB EE D1 00 00 BD [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:56]Read from MH i2c: E2 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 03 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [12:09:56]RAPDU: 90 00 [12:09:56]wFMCommunicate OK [12:09:56]wFMCommunicate request_size=4 [12:09:56]MH_SAM_APDU [12:09:56]CAPDU: 80 0D 03 02 [12:09:56]Write to MH i2c: E2 08 00 6C 01 80 0D 03 02 00 00 00 00 E8 [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:56]Read from MH i2c: E2 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 0B 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 0B 00 6C 01 00 19 D4 C7 C3 C3 E2 D7 E3 90 00 BF [12:09:56]RAPDU: 19 D4 C7 C3 C3 E2 D7 E3 90 00 [12:09:56]wFMCommunicate OK [12:09:56]SAM_PROTO_SignData done [12:09:56]FM_MakeSignedData done [12:09:56]CreateOFDProtocolMessage [12:09:56]wFMCommunicate request_size=4 [12:09:56]MH_SAM_APDU [12:09:56]CAPDU: 80 11 00 00 [12:09:56]Write to MH i2c: E2 08 00 6D 01 80 11 00 00 00 00 00 00 E8 [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]OFD Sender: No OFD packet to send [12:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:56]Read from MH i2c: E2 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 17 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 17 00 6D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 43 [12:09: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:09:56]wFMCommunicate OK [12:09:56]CreateOFDProtocolMessage done [12:09:56]OFDSenderStorePacket 139652 [12:09:56]StoreOFDPacket docnum=139652 [12:09: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 0F 01 00 00 7D 5E 07 01 5A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 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 91 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F F5 2E EB EE D1 19 D4 C7 C3 C3 E2 D7 E3 [12:09:56]CheckFolder [12:09:56]dirname=/storage/ofd_packets [12:09:56]CheckFolder done [12:09:56]ProducePacketName [12:09:56]name=ofd_packets/00139652 [12:09:56]NVStorageSaveData ofd_packets/00139652 [12:09:56]File name is /storage/ofd_packets/00139652 [12:09:56]Write 301 bytes [12:09:56]NVStorageSaveData done [12:09:56]OFDSenderStorePacket done [12:09:56]KKMCreateOFDPacket done [12:09:56]NVStorageSaveData kkm_last_timestamp [12:09:56]File name is /storage/kkm_last_timestamp [12:09:56]Write 4 bytes [12:09:56]NVStorageSaveData done [12:09:56]ExternCall_PrintAddStr [12:09:56]wPrintStart [12:09:56]Write to MH i2c: 01 00 00 6E 01 6F [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 FF 0F 84 [12:09:56]RasterBufferAndPrint [12:09:56]line Счет N : (1)1095144 [12:09:56]line ИНН: 02508201610067 [12:09:56]line Контрольно-Кассовый Чек [12:09:56]line ПРОДАЖА [12:09:56]line ТРК (МРК, ГНК) : 34 [12:09:56]line Товар: 2710124500 [12:09:56]line Аи-95-К-3 [12:09:56]line 13.550 * 74.20 [12:09:56]line = 1005.41 [12:09:56]line НДС 12% НСП 1% [12:09:56]line > о реализуемом товаре [12:09:56]line ОКРУГЛЕНИЕ: -0.41 [12:09:56]line ИТОГО: 1005.00 [12:09:56]line Внесено: 1005.00 [12:09:56]line СДАЧА: 0.00 [12:09:56]line НСП 1% : 8.90 [12:09:56]line НДС 12% : 106.77 [12:09:56]line Наличными: 1005.00 [12:09:56]line Безнал.: 0.00 [12:09:56]line Место: АЗС № 101 "Партнер Нефть" [12:09:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:09:56]line СНО: Общий режим [12:09:56]line Чек 129 31.10.2024 12:09 [12:09:56]line Смена: 557 ФФД: 1.0 [12:09:56]line ЗНМ: 0300000081 [12:09:56]line РНМ: 0000000000091631 [12:09:56]line Версия ККМ: 001 [12:09:56]line ФМ: 0000000000874669 [12:09:56]line ФД: 139652 [12:09:56]line ФПД: 123098844884689 [12:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T120953&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139652&fm=123098844884689&tin=02508201610067®Number=0000000000091631&sum=100500 [12:09:56]OFD Sender: Processing packet 139652 [packets to send 34, broken 33] [12:09:56]ProducePacketName [12:09:56]name=ofd_packets/00139652 [12:09:56]OFD Sender: To server: pG, [12:09:56]CommunicateWithHost lk.salyk.kg:30040 [12:09:56]ConnectInit lk.salyk.kg [12:09:56]written 0, free lines is 4095 [12:09:56]Connected sock=10 [12:09: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 7D 5E 07 01 5A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 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 91 73 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F F5 2E EB EE D1 19 D4 C7 C3 C3 E2 D7 E3 [12:09:56]Write to MH i2c: 01 00 00 99 01 9A [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 00 0D AE [12:09:56]RasterBufferAndPrint [12:09:56]line [12:09:56]line [12:09:56]line [12:09:56]line [12:09:56]line [12:09:56]written 0, free lines is 3364 [12:09: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 4A 27 47 00 FC 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 84 21 02 00 F4 03 04 00 40 1F 23 67 B6 04 01 00 00 12 60 CB 15 F4 2B 25 BD [12:09:57]CommunicateWithHost err = 0 [12:09:57]CheckOFDResponse [12:09:57]1017 (14) - 77093643461234 [12:09:57]1041 (16) - 0000000000874669 [12:09:57]1040 (4) - 139652 [12:09:57]1012 (4) - 31.10.2024 06:10 [12:09:57]1206 (1) - 0 [12:09:57]OFD Sender: Remove packet 139652 [12:09:57]ProducePacketName [12:09:57]name=ofd_packets/00139652 [12:09:57]NVStorageDeleteData [12:09:57]MH_Cut [12:09:57]Write to MH i2c: D1 01 00 A0 01 01 73 [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: D1 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: D1 01 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: D1 01 00 A0 01 00 72 [12:09:57]Write to MH i2c: 01 00 00 A1 01 A2 [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]OFD Sender: No OFD packet to send [12:09:57]*** Cut start [12:09:57]*** Partial cut [12:09:57]*** CUTSNS_PIN = 1 [12:09:57]*** CUTSNS_PIN = 0 [12:09:57]*** Brake cut motor [12:09:58]Read from MH i2c: *** Stop cut motor [12:09:58]01 *** Cut end [12:09:58] [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: 01 07 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [12:09:58]process_action close_receipt done [12:09:58]requested_data is exist [12:09:58]produce_requested_data [12:09:58]requested_item fm.sn is exist - process it [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 11 00 00 [12:09:58]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 17 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 78 [12:09: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:09:58]wFMCommunicate OK [12:09:58]requested_item fd.num is exist - process it [12:09:58]SAM_PROTO_GetFieldsCounters [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 13 00 00 [12:09:58]Write to MH i2c: E2 08 00 A3 01 80 13 00 00 00 00 00 00 20 [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 62 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 62 00 A3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 9D [12:09: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 84 21 02 00 0E 04 04 00 2D 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:09:58]wFMCommunicate OK [12:09:58]SAM_PROTO_GetFieldsCounters done [12:09:58]requested_item shift.num is exist - process it [12:09:58]requested_item shift.opened is exist - process it [12:09:58]req_shift_opened [12:09:58]FM_GetShiftState [12:09:58]SAM_PROTO_GetShiftState [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 13 01 00 [12:09:58]Write to MH i2c: E2 08 00 A4 01 80 13 01 00 00 00 00 00 22 [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 A4 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4B [12:09:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:09:58]wFMCommunicate OK [12:09:58]SAM_PROTO_GetShiftState done [12:09:58]FM_GetShiftState done [12:09:58]req_shift_opened done [12:09:58]requested_item shift.open_date is exist - process it [12:09:58]req_shift_open_date [12:09:58]req_shift_open_date done [12:09:58]produce_requested_data done [12:09:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139652,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:09:58]process_action_free close_receipt [12:09:58]json_value_free [12:09:58]json_value_free done [12:09:58]process_json_proto returns [12:09:58]Send response to host [12:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139652,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:09:58]free response buf [12:09:58]execute_script done [12:09:58]execute_script returns [12:09:58]free content buf [12:09:58]Sock 9.Close socket [12:09:58]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:05]accept exits with 7 [12:22:05]New connection [12:22:05]New thread 3066510692 created [12:22:05]Thread 3066654052 joined [12:22:05]Waiting for new connection... [12:22:05] Sock 7.Parse request [12:22:05]Sock 7.Check first char [12:22:05]Sock 7.First char is OK [12:22:05]request: POST /json_proto HTTP/1.0 [12:22:05]Method: POST [12:22:05]URL: /json_proto [12:22:05]Method is POST - this is cgi request [12:22:05]url: /json_proto [12:22:05]query_string will be loaded in cgi processing [12:22:05]execute_cgi json_proto POST (null) [12:22:05]execute_cgi path=json_proto method=POST [12:22:05]POST find Content-Length [12:22:05]Host: 172.17.50.196:8080 [12:22:05]Content-Length: 711 [12:22:05]Content-Type: application/json [12:22:05] [12:22:05]POST finish read [12:22:05]Found Content-Length = 711 [12:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335512", "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 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:05]execute_script... [12:22:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335512", "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 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:05]POST & json_proto [12:22:05]process_json_proto [12:22:05]json parsed OK: [12:22:05]protocol is kg_v1.0 [12:22:05]action value=close_receipt [12:22:05]process_action close_receipt [12:22:05]cmd_close_receipt [12:22:05]MH_GetDate [12:22:05]Write to MH i2c: F0 00 00 A5 01 95 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: F0 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: F0 09 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: F0 09 00 A5 01 00 6E 76 23 67 72 0D 1C 67 0E [12:22:05]GetLastDocTimeStamp 1730376593 [12:22:05]current date 1730377326 [12:22:05]FM_GetShiftState [12:22:05]SAM_PROTO_GetShiftState [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 13 01 00 [12:22:05]Write to MH i2c: E2 08 00 A6 01 80 13 01 00 00 00 00 00 24 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0E 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0E 00 A6 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4D [12:22:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:22:05]wFMCommunicate OK [12:22:05]SAM_PROTO_GetShiftState done [12:22:05]FM_GetShiftState done [12:22:05]opened in 1730332621 [12:22:05]opened+sec_in_day 1730419021 [12:22:05]quantity*price = 10400 [12:22:05]sum+1 = 10401 [12:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 130 31.10.2024 12:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139653 ФПД: 145402858359610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122206&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139653&fm=145402858359610&tin=02508201610067®Number=0000000000091631&sum=10400 0 [12:22:06]StoreToDocumentArchive [12:22:06]shift 557 fd 139653 [12:22:06]save to /storage/0557/doc_00139653 [12:22:06]save last doc name /storage/0557/doc_00139653 to /storage/kkm_last_doc_name [12:22:06]save OK [12:22:06]Clear old archive folders... [12:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=303 [12:22:06]tlvbuf is 00A165B0 [12:22:06]SAM_PROTO_ClearQueue [12:22:06]wFMCommunicate request_size=4 [12:22:06]MH_SAM_APDU [12:22:06]CAPDU: 80 09 00 00 [12:22:06]Write to MH i2c: E2 08 00 B3 01 80 09 00 00 00 00 00 00 26 [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 [12:22:06]MH_I2C_Read... [12:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:06]Read from MH i2c: E2 03 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [12:22:06]RAPDU: 90 00 [12:22:06]wFMCommunicate OK [12:22:06]SAM_PROTO_ClearQueue done [12:22:06]KKMCreateOFDPacket [12:22:06]OFDProtocolAddRootSTLVToBuf [12:22:06]FM_MakeSignedData [12:22:06]FM_MakeSignedData [12:22:06]SAM_PROTO_SignData [12:22:06]wFMCommunicate request_size=4 [12:22:06]MH_SAM_APDU [12:22:06]CAPDU: 80 0D 01 02 [12:22:06]Write to MH i2c: E2 08 00 B4 01 80 0D 01 02 00 00 00 00 2E [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:06]Read from MH i2c: E2 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 03 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [12:22:06]RAPDU: 90 00 [12:22:06]wFMCommunicate OK [12:22:06]wFMCommunicate request_size=255 [12:22:06]MH_SAM_APDU [12:22:06]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6E 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D [12:22:06]Write to MH i2c: E2 02 01 B5 01 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6E 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 00 00 90 [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [12:22:07]RAPDU: 90 00 [12:22:07]wFMCommunicate OK [12:22:07]wFMCommunicate request_size=62 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 3E 3D B8 CB 3A [12:22:07]Write to MH i2c: E2 41 00 B6 01 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 3E 3D B8 CB 3A 00 00 D3 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 B6 01 00 90 00 2B [12:22:07]RAPDU: 90 00 [12:22:07]wFMCommunicate OK [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 0D 03 02 [12:22:07]Write to MH i2c: E2 08 00 B7 01 80 0D 03 02 00 00 00 00 33 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0B 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0B 00 B7 01 00 97 C7 06 8B 0B 9A EA BB 90 00 6D [12:22:07]RAPDU: 97 C7 06 8B 0B 9A EA BB 90 00 [12:22:07]wFMCommunicate OK [12:22:07]SAM_PROTO_SignData done [12:22:07]FM_MakeSignedData done [12:22:07]CreateOFDProtocolMessage [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 11 00 00 [12:22:07]Write to MH i2c: E2 08 00 B8 01 80 11 00 00 00 00 00 00 33 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 17 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 17 00 B8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [12:22: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:22:07]wFMCommunicate OK [12:22:07]CreateOFDProtocolMessage done [12:22:07]OFDSenderStorePacket 139653 [12:22:07]StoreOFDPacket docnum=139653 [12:22: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 43 01 00 00 F3 FC 3B 01 BA B4 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6E 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 3E 3D B8 CB 3A 97 C7 06 8B 0B 9A EA BB [12:22:07]CheckFolder [12:22:07]dirname=/storage/ofd_packets [12:22:07]CheckFolder done [12:22:07]ProducePacketName [12:22:07]name=ofd_packets/00139653 [12:22:07]NVStorageSaveData ofd_packets/00139653 [12:22:07]File name is /storage/ofd_packets/00139653 [12:22:07]Write 353 bytes [12:22:07]NVStorageSaveData done [12:22:07]OFDSenderStorePacket done [12:22:07]KKMCreateOFDPacket done [12:22:07]NVStorageSaveData kkm_last_timestamp [12:22:07]File name is /storage/kkm_last_timestamp [12:22:07]Write 4 bytes [12:22:07]NVStorageSaveData done [12:22:07]ExternCall_PrintAddStr [12:22:07]wPrintStart [12:22:07]Write to MH i2c: 01 00 00 B9 01 BA [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: 01 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: 01 07 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 FF 0F CF [12:22:07]RasterBufferAndPrint [12:22:07]line Счет N : (3)335512 [12:22:07]line ИНН: 02508201610067 [12:22:07]line Контрольно-Кассовый Чек [12:22:07]line ПРОДАЖА [12:22:07]line Товар: 4870202521216 [12:22:07]line Напиток MAXI чай 1,2 зел.лимон (новый) [12:22:07]line 1.000 * 104.00 [12:22:07]line = 104.00 [12:22:07]line НДС 12% НСП 1% [12:22:07]line > о реализуемом товаре [12:22:07]line ИТОГО: 104.00 [12:22:07]line НСП 1% : 0.92 [12:22:07]line НДС 12% : 11.04 [12:22:07]line Наличными: 104.00 [12:22:07]line Безнал.: 0.00 [12:22:07]line Место: АЗС № 101 "Партнер Нефть" [12:22:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:22:07]line СНО: Общий режим [12:22:07]line Чек 130 31.10.2024 12:22 [12:22:07]line Смена: 557 ФФД: 1.0 [12:22:07]line ЗНМ: 0300000081 [12:22:07]line РНМ: 0000000000091631 [12:22:07]line Версия ККМ: 001 [12:22:07]line ФМ: 0000000000874669 [12:22:07]line ФД: 139653 [12:22:07]line ФПД: 145402858359610 [12:22:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122206&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139653&fm=145402858359610&tin=02508201610067®Number=0000000000091631&sum=10400 [12:22:07]line 0 [12:22:07]OFD Sender: Processing packet 139653 [packets to send 34, broken 33] [12:22:07]ProducePacketName [12:22:07]name=ofd_packets/00139653 [12:22:07]OFD Sender: To server: pG, [12:22:07]CommunicateWithHost lk.salyk.kg:30040 [12:22:07]ConnectInit lk.salyk.kg [12:22:07]written 0, free lines is 4095 [12:22:07]Connected sock=10 [12:22:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 F3 FC 3B 01 BA B4 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6E 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 3E 3D B8 CB 3A 97 C7 06 8B 0B 9A EA BB [12:22: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 6F 45 47 00 E5 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 21 02 00 F4 03 04 00 1C 22 23 67 B6 04 01 00 00 E9 FD AD 73 D2 31 45 B5 [12:22:08]CommunicateWithHost err = 0 [12:22:08]CheckOFDResponse [12:22:08]1017 (14) - 77093643461234 [12:22:08]1041 (16) - 0000000000874669 [12:22:08]1040 (4) - 139653 [12:22:08]1012 (4) - 31.10.2024 06:22 [12:22:08]1206 (1) - 0 [12:22:08]OFD Sender: Remove packet 139653 [12:22:08]ProducePacketName [12:22:08]name=ofd_packets/00139653 [12:22:08]NVStorageDeleteData [12:22:08]Write to MH i2c: 01 00 00 E2 01 E3 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 07 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 0C 0D 03 [12:22:08]RasterBufferAndPrint [12:22:08]line [12:22:08]line [12:22:08]line [12:22:08]line [12:22:08]line [12:22:08]written 0, free lines is 3346 [12:22:08]MH_Cut [12:22:08]Write to MH i2c: D1 01 00 E9 01 01 BC [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: D1 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: D1 01 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: D1 01 00 E9 01 00 BB [12:22:08]Write to MH i2c: 01 00 00 EA 01 EB [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]OFD Sender: No OFD packet to send [12:22:08]*** Cut start [12:22:08]*** Partial cut [12:22:08]*** CUTSNS_PIN = 1 [12:22:08]*** CUTSNS_PIN = 0 [12:22:09]*** Brake cut motor [12:22:09]Read from MH i2c: 01 [12:22:09]MH_I2C_Read... [12:22:09]*** Stop cut motor [12:22:09]*** Cut end [12:22:09]Read from MH i2c: 01 07 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [12:22:09]process_action close_receipt done [12:22:09]requested_data is exist [12:22:09]produce_requested_data [12:22:09]requested_item fm.sn is exist - process it [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 11 00 00 [12:22:09]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [12:22: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:22:09]wFMCommunicate OK [12:22:09]requested_item fd.num is exist - process it [12:22:09]SAM_PROTO_GetFieldsCounters [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 13 00 00 [12:22:09]Write to MH i2c: E2 08 00 EC 01 80 13 00 00 00 00 00 00 69 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 62 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 62 00 EC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 EA [12:22: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 85 21 02 00 0E 04 04 00 2D 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:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_GetFieldsCounters done [12:22:09]requested_item shift.num is exist - process it [12:22:09]requested_item shift.opened is exist - process it [12:22:09]req_shift_opened [12:22:09]FM_GetShiftState [12:22:09]SAM_PROTO_GetShiftState [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 13 01 00 [12:22:09]Write to MH i2c: E2 08 00 ED 01 80 13 01 00 00 00 00 00 6B [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0E 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0E 00 ED 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 94 [12:22:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_GetShiftState done [12:22:09]FM_GetShiftState done [12:22:09]req_shift_opened done [12:22:09]requested_item shift.open_date is exist - process it [12:22:09]req_shift_open_date [12:22:09]req_shift_open_date done [12:22:09]produce_requested_data done [12:22:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139653,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:22:09]process_action_free close_receipt [12:22:09]json_value_free [12:22:09]json_value_free done [12:22:09]process_json_proto returns [12:22:09]Send response to host [12:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139653,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:22:09]free response buf [12:22:09]execute_script done [12:22:09]execute_script returns [12:22:09]free content buf [12:22:09]Sock 7.Close socket [12:22:09]Sock 7.Thread stoped [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]accept exits with 9 [12:23:28]New connection [12:23:28]New thread 3066654052 created [12:23:28]Thread 3066510692 joined [12:23:28]Waiting for new connection... [12:23:28] Sock 9.Parse request [12:23:28]Sock 9.Check first char [12:23:28]Sock 9.First char is OK [12:23:28]request: POST /json_proto HTTP/1.0 [12:23:28]Method: POST [12:23:28]URL: /json_proto [12:23:28]Method is POST - this is cgi request [12:23:28]url: /json_proto [12:23:28]query_string will be loaded in cgi processing [12:23:28]execute_cgi json_proto POST (null) [12:23:28]execute_cgi path=json_proto method=POST [12:23:28]POST find Content-Length [12:23:28]Host: 172.17.50.196:8080 [12:23:28]Content-Length: 748 [12:23:28]Content-Type: application/json [12:23:28] [12:23:28]POST finish read [12:23:28]Found Content-Length = 748 [12:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335513", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:28]execute_script... [12:23: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)335513", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:28]POST & json_proto [12:23:28]process_json_proto [12:23:28]json parsed OK: [12:23:28]protocol is kg_v1.0 [12:23:28]action value=close_receipt [12:23:28]process_action close_receipt [12:23:28]cmd_close_receipt [12:23:28]MH_GetDate [12:23:28]Write to MH i2c: F0 00 00 EE 01 DE [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: F0 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: F0 09 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: F0 09 00 EE 01 00 C1 76 23 67 72 0D 1C 67 AA [12:23:28]GetLastDocTimeStamp 1730377326 [12:23:28]current date 1730377409 [12:23:28]FM_GetShiftState [12:23:28]SAM_PROTO_GetShiftState [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 13 01 00 [12:23:28]Write to MH i2c: E2 08 00 EF 01 80 13 01 00 00 00 00 00 6D [12:23:28]OFD Sender: No OFD packet to send [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0E 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0E 00 EF 01 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 96 [12:23:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:23:28]wFMCommunicate OK [12:23:28]SAM_PROTO_GetShiftState done [12:23:28]FM_GetShiftState done [12:23:28]opened in 1730332621 [12:23:28]opened+sec_in_day 1730419021 [12:23:28]quantity*price = 10400 [12:23:28]sum+1 = 10401 [12:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 131 31.10.2024 12:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139654 ФПД: 63038245854599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122329&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139654&fm=63038245854599&tin=02508201610067®Number=0000000000091631&sum=10400 0 [12:23:29]StoreToDocumentArchive [12:23:29]shift 557 fd 139654 [12:23:29]save to /storage/0557/doc_00139654 [12:23:29]save last doc name /storage/0557/doc_00139654 to /storage/kkm_last_doc_name [12:23:29]save OK [12:23:29]Clear old archive folders... [12:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=312 [12:23:29]tlvbuf is 00A6A7F0 [12:23:29]SAM_PROTO_ClearQueue [12:23:29]wFMCommunicate request_size=4 [12:23:29]MH_SAM_APDU [12:23:29]CAPDU: 80 09 00 00 [12:23:29]Write to MH i2c: E2 08 00 FC 01 80 09 00 00 00 00 00 00 6F [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:29]Read from MH i2c: E2 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: E2 03 00 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: E2 03 00 FC 01 00 90 00 71 [12:23:29]RAPDU: 90 00 [12:23:29]wFMCommunicate OK [12:23:29]SAM_PROTO_ClearQueue done [12:23:29]KKMCreateOFDPacket [12:23:29]OFDProtocolAddRootSTLVToBuf [12:23:29]FM_MakeSignedData [12:23:29]FM_MakeSignedData [12:23:29]SAM_PROTO_SignData [12:23:29]wFMCommunicate request_size=4 [12:23:29]MH_SAM_APDU [12:23:29]CAPDU: 80 0D 01 02 [12:23:29]Write to MH i2c: E2 08 00 FD 01 80 0D 01 02 00 00 00 00 77 [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:29]Read from MH i2c: E2 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: E2 03 00 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [12:23:29]RAPDU: 90 00 [12:23:29]wFMCommunicate OK [12:23:29]wFMCommunicate request_size=255 [12:23:29]MH_SAM_APDU [12:23:29]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 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C1 76 23 67 0E 04 04 00 2D [12:23:29]Write to MH i2c: E2 02 01 FE 01 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 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C1 76 23 67 0E 04 04 00 2D 00 00 21 [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 03 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [12:23:30]RAPDU: 90 00 [12:23:30]wFMCommunicate OK [12:23:30]wFMCommunicate request_size=71 [12:23:30]MH_SAM_APDU [12:23: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 86 21 02 00 35 04 06 00 39 55 3C 40 5D 87 [12:23:30]Write to MH i2c: E2 4A 00 FF 01 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 86 21 02 00 35 04 06 00 39 55 3C 40 5D 87 00 00 2F [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 03 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [12:23:30]RAPDU: 90 00 [12:23:30]wFMCommunicate OK [12:23:30]wFMCommunicate request_size=4 [12:23:30]MH_SAM_APDU [12:23:30]CAPDU: 80 0D 03 02 [12:23:30]Write to MH i2c: E2 08 00 00 02 80 0D 03 02 00 00 00 00 7D [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0B 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0B 00 00 02 00 4A CC 58 37 B7 F1 F9 C4 90 00 88 [12:23:30]RAPDU: 4A CC 58 37 B7 F1 F9 C4 90 00 [12:23:30]wFMCommunicate OK [12:23:30]SAM_PROTO_SignData done [12:23:30]FM_MakeSignedData done [12:23:30]CreateOFDProtocolMessage [12:23:30]wFMCommunicate request_size=4 [12:23:30]MH_SAM_APDU [12:23:30]CAPDU: 80 11 00 00 [12:23:30]Write to MH i2c: E2 08 00 01 02 80 11 00 00 00 00 00 00 7D [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 17 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 17 00 01 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D8 [12:23: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:23:30]wFMCommunicate OK [12:23:30]CreateOFDProtocolMessage done [12:23:30]OFDSenderStorePacket 139654 [12:23:30]StoreOFDPacket docnum=139654 [12:23: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 6D 6B 44 01 13 25 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 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C1 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 39 55 3C 40 5D 87 4A CC 58 37 B7 F1 F9 C4 [12:23:30]CheckFolder [12:23:30]dirname=/storage/ofd_packets [12:23:30]CheckFolder done [12:23:30]ProducePacketName [12:23:30]name=ofd_packets/00139654 [12:23:30]NVStorageSaveData ofd_packets/00139654 [12:23:30]File name is /storage/ofd_packets/00139654 [12:23:30]Write 362 bytes [12:23:30]NVStorageSaveData done [12:23:30]OFDSenderStorePacket done [12:23:30]KKMCreateOFDPacket done [12:23:30]NVStorageSaveData kkm_last_timestamp [12:23:30]File name is /storage/kkm_last_timestamp [12:23:30]Write 4 bytes [12:23:30]NVStorageSaveData done [12:23:30]ExternCall_PrintAddStr [12:23:30]wPrintStart [12:23:30]Write to MH i2c: 01 00 00 02 02 04 [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: 01 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: 01 07 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 FF 0F 19 [12:23:30]RasterBufferAndPrint [12:23:30]line Счет N : (3)335513 [12:23:30]line ИНН: 02508201610067 [12:23:30]line Контрольно-Кассовый Чек [12:23:30]line ПРОДАЖА [12:23:30]line Товар: 4870202521254 [12:23:30]line Чай холодный MAXI черный со вкусом клубн [12:23:30]line 1.000 * 104.00 [12:23:30]line = 104.00 [12:23:30]line НДС 12% НСП 1% [12:23:30]line > о реализуемом товаре [12:23:30]line ИТОГО: 104.00 [12:23:30]line НСП 1% : 0.92 [12:23:30]line НДС 12% : 11.04 [12:23:30]line Наличными: 104.00 [12:23:30]line Безнал.: 0.00 [12:23:30]line Место: АЗС № 101 "Партнер Нефть" [12:23:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:23:30]line СНО: Общий режим [12:23:30]line Чек 131 31.10.2024 12:23 [12:23:30]line Смена: 557 ФФД: 1.0 [12:23:30]line ЗНМ: 0300000081 [12:23:30]line РНМ: 0000000000091631 [12:23:30]line Версия ККМ: 001 [12:23:30]line ФМ: 0000000000874669 [12:23:30]line ФД: 139654 [12:23:30]line ФПД: 63038245854599 [12:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T122329&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139654&fm=63038245854599&tin=02508201610067®Number=0000000000091631&sum=10400 [12:23:30]line 0 [12:23:30]OFD Sender: Processing packet 139654 [packets to send 34, broken 33] [12:23:30]ProducePacketName [12:23:30]name=ofd_packets/00139654 [12:23:30]OFD Sender: To server: pG, [12:23:30]CommunicateWithHost lk.salyk.kg:30040 [12:23:30]ConnectInit lk.salyk.kg [12:23:30]written 0, free lines is 4095 [12:23:30]Connected sock=10 [12:23: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 4C 01 00 00 6D 6B 44 01 13 25 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 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C1 76 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 39 55 3C 40 5D 87 4A CC 58 37 B7 F1 F9 C4 [12:23: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 BE 9B 47 00 64 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 21 02 00 F4 03 04 00 6F 22 23 67 B6 04 01 00 00 12 1E 10 B7 9F 26 8C 9C [12:23:30]CommunicateWithHost err = 0 [12:23:30]CheckOFDResponse [12:23:30]1017 (14) - 77093643461234 [12:23:30]1041 (16) - 0000000000874669 [12:23:30]1040 (4) - 139654 [12:23:30]1012 (4) - 31.10.2024 06:23 [12:23:30]1206 (1) - 0 [12:23:30]OFD Sender: Remove packet 139654 [12:23:30]ProducePacketName [12:23:30]name=ofd_packets/00139654 [12:23:30]NVStorageDeleteData [12:23:31]Write to MH i2c: 01 00 00 2B 02 2D [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 07 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 16 0D 57 [12:23:31]RasterBufferAndPrint [12:23:31]line [12:23:31]line [12:23:31]line [12:23:31]line [12:23:31]line [12:23:31]written 0, free lines is 3357 [12:23:31]MH_Cut [12:23:31]Write to MH i2c: D1 01 00 32 02 01 06 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: D1 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: D1 01 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: D1 01 00 32 02 00 05 [12:23:31]Write to MH i2c: 01 00 00 33 02 35 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]OFD Sender: No OFD packet to send [12:23:31]*** Cut start [12:23:31]*** Partial cut [12:23:31]*** CUTSNS_PIN = 1 [12:23:31]*** CUTSNS_PIN = 0 [12:23:32]*** Brake cut motor [12:23:32]Read from MH i2c: 01 [12:23:32]MH_I2C_Read... [12:23:32]*** Stop cut motor [12:23:32]*** Cut end [12:23:32]Read from MH i2c: 01 07 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [12:23:32]process_action close_receipt done [12:23:32]requested_data is exist [12:23:32]produce_requested_data [12:23:32]requested_item fm.sn is exist - process it [12:23:32]wFMCommunicate request_size=4 [12:23:32]MH_SAM_APDU [12:23:32]CAPDU: 80 11 00 00 [12:23:32]Write to MH i2c: E2 08 00 34 02 80 11 00 00 00 00 00 00 B0 [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:32]Read from MH i2c: E2 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: E2 17 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: E2 17 00 34 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [12:23: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:23:32]wFMCommunicate OK [12:23:32]requested_item fd.num is exist - process it [12:23:32]SAM_PROTO_GetFieldsCounters [12:23:32]wFMCommunicate request_size=4 [12:23:32]MH_SAM_APDU [12:23:32]CAPDU: 80 13 00 00 [12:23:32]Write to MH i2c: E2 08 00 35 02 80 13 00 00 00 00 00 00 B3 [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:32]Read from MH i2c: E2 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: E2 62 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: E2 62 00 35 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 38 [12:23: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 86 21 02 00 0E 04 04 00 2D 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:23:32]wFMCommunicate OK [12:23:32]SAM_PROTO_GetFieldsCounters done [12:23:32]requested_item shift.num is exist - process it [12:23:32]requested_item shift.opened is exist - process it [12:23:32]req_shift_opened [12:23:32]FM_GetShiftState [12:23:32]SAM_PROTO_GetShiftState [12:23:32]wFMCommunicate request_size=4 [12:23:32]MH_SAM_APDU [12:23:32]CAPDU: 80 13 01 00 [12:23:32]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:32]Read from MH i2c: E2 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: E2 0E 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DE [12:23:32]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:23:32]wFMCommunicate OK [12:23:32]SAM_PROTO_GetShiftState done [12:23:32]FM_GetShiftState done [12:23:32]req_shift_opened done [12:23:32]requested_item shift.open_date is exist - process it [12:23:32]req_shift_open_date [12:23:32]req_shift_open_date done [12:23:32]produce_requested_data done [12:23:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139654,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:23:32]process_action_free close_receipt [12:23:32]json_value_free [12:23:32]json_value_free done [12:23:32]process_json_proto returns [12:23:32]Send response to host [12:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139654,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:23:32]free response buf [12:23:32]execute_script done [12:23:32]execute_script returns [12:23:32]free content buf [12:23:32]Sock 9.Close socket [12:23:32]Sock 9.Thread stoped [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24: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:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]accept exits with 7 [12:31:46]New connection [12:31:46]New thread 3066510692 created [12:31:46]Thread 3066654052 joined [12:31:46]Waiting for new connection... [12:31:46] Sock 7.Parse request [12:31:46]Sock 7.Check first char [12:31:46]Sock 7.First char is OK [12:31:46]request: POST /json_proto HTTP/1.0 [12:31:46]Method: POST [12:31:46]URL: /json_proto [12:31:46]Method is POST - this is cgi request [12:31:46]url: /json_proto [12:31:46]query_string will be loaded in cgi processing [12:31:46]execute_cgi json_proto POST (null) [12:31:46]execute_cgi path=json_proto method=POST [12:31:46]POST find Content-Length [12:31:46]Host: 172.17.50.196:8080 [12:31:46]Content-Length: 620 [12:31:46]Content-Type: application/json [12:31:46] [12:31:46]POST finish read [12:31:46]Found Content-Length = 620 [12:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335514", "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" ] } } [12:31:46]execute_script... [12:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335514", "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" ] } } [12:31:46]POST & json_proto [12:31:46]process_json_proto [12:31:46]json parsed OK: [12:31:46]protocol is kg_v1.0 [12:31:46]action value=close_receipt [12:31:46]process_action close_receipt [12:31:46]cmd_close_receipt [12:31:46]MH_GetDate [12:31:46]Write to MH i2c: F0 00 00 37 02 28 [12:31:46]Write i2c OK [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 09 00 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 09 00 37 02 00 B3 78 23 67 72 0D 1C 67 E8 [12:31:46]GetLastDocTimeStamp 1730377409 [12:31:46]current date 1730377907 [12:31:46]FM_GetShiftState [12:31:46]SAM_PROTO_GetShiftState [12:31:46]wFMCommunicate request_size=4 [12:31:46]MH_SAM_APDU [12:31:46]CAPDU: 80 13 01 00 [12:31:46]Write to MH i2c: E2 08 00 38 02 80 13 01 00 00 00 00 00 B7 [12:31:46]Write i2c OK [12:31:46]MH_I2C_Read... [12:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:46]Read from MH i2c: E2 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: E2 0E 00 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: E2 0E 00 38 02 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E0 [12:31:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:31:46]wFMCommunicate OK [12:31:46]SAM_PROTO_GetShiftState done [12:31:46]FM_GetShiftState done [12:31:46]opened in 1730332621 [12:31:46]opened+sec_in_day 1730419021 [12:31:46]quantity*price = 13900 [12:31:46]sum+1 = 13901 [12:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 132 31.10.2024 12:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139655 ФПД: 37656845529631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123147&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139655&fm=37656845529631&tin=02508201610067®Number=0000000000091631&sum=13900 0 [12:31:47]StoreToDocumentArchive [12:31:47]shift 557 fd 139655 [12:31:47]save to /storage/0557/doc_00139655 [12:31:47]save last doc name /storage/0557/doc_00139655 to /storage/kkm_last_doc_name [12:31:47]save OK [12:31:47]Clear old archive folders... [12:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:31:47]tlvbuf is 00A244C0 [12:31:47]SAM_PROTO_ClearQueue [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 09 00 00 [12:31:47]Write to MH i2c: E2 08 00 45 02 80 09 00 00 00 00 00 00 B9 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]SAM_PROTO_ClearQueue done [12:31:47]KKMCreateOFDPacket [12:31:47]OFDProtocolAddRootSTLVToBuf [12:31:47]FM_MakeSignedData [12:31:47]FM_MakeSignedData [12:31:47]SAM_PROTO_SignData [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 01 02 [12:31:47]Write to MH i2c: E2 08 00 46 02 80 0D 01 02 00 00 00 00 C1 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]wFMCommunicate request_size=255 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 02 02 FA 03 00 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 84 00 00 00 F4 03 04 00 B3 78 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [12:31:47]Write to MH i2c: E2 02 01 47 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B3 78 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 55 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:48]Read from MH i2c: E2 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 03 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [12:31:48]RAPDU: 90 00 [12:31:48]wFMCommunicate OK [12:31:48]wFMCommunicate request_size=31 [12:31:48]MH_SAM_APDU [12:31:48]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 87 21 02 00 35 04 06 00 22 3F AA E6 B2 1F [12:31:48]Write to MH i2c: E2 22 00 48 02 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 87 21 02 00 35 04 06 00 22 3F AA E6 B2 1F 00 00 63 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:48]Read from MH i2c: E2 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 03 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [12:31:48]RAPDU: 90 00 [12:31:48]wFMCommunicate OK [12:31:48]wFMCommunicate request_size=4 [12:31:48]MH_SAM_APDU [12:31:48]CAPDU: 80 0D 03 02 [12:31:48]Write to MH i2c: E2 08 00 49 02 80 0D 03 02 00 00 00 00 C6 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:48]Read from MH i2c: E2 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 0B 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 0B 00 49 02 00 A7 07 31 3D 48 F8 7A 6F 90 00 0C [12:31:48]RAPDU: A7 07 31 3D 48 F8 7A 6F 90 00 [12:31:48]wFMCommunicate OK [12:31:48]SAM_PROTO_SignData done [12:31:48]FM_MakeSignedData done [12:31:48]CreateOFDProtocolMessage [12:31:48]wFMCommunicate request_size=4 [12:31:48]MH_SAM_APDU [12:31:48]CAPDU: 80 11 00 00 [12:31:48]Write to MH i2c: E2 08 00 4A 02 80 11 00 00 00 00 00 00 C6 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:48]Read from MH i2c: E2 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 17 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 17 00 4A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 21 [12:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:31:48]wFMCommunicate OK [12:31:48]CreateOFDProtocolMessage done [12:31:48]OFDSenderStorePacket 139655 [12:31:48]StoreOFDPacket docnum=139655 [12:31: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 24 01 00 00 08 0C 1C 01 3E 03 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 84 00 00 00 F4 03 04 00 B3 78 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 22 3F AA E6 B2 1F A7 07 31 3D 48 F8 7A 6F [12:31:48]CheckFolder [12:31:48]dirname=/storage/ofd_packets [12:31:48]CheckFolder done [12:31:48]ProducePacketName [12:31:48]name=ofd_packets/00139655 [12:31:48]NVStorageSaveData ofd_packets/00139655 [12:31:48]File name is /storage/ofd_packets/00139655 [12:31:48]Write 322 bytes [12:31:48]NVStorageSaveData done [12:31:48]OFDSenderStorePacket done [12:31:48]KKMCreateOFDPacket done [12:31:48]NVStorageSaveData kkm_last_timestamp [12:31:48]File name is /storage/kkm_last_timestamp [12:31:48]Write 4 bytes [12:31:48]NVStorageSaveData done [12:31:48]ExternCall_PrintAddStr [12:31:48]wPrintStart [12:31:48]Write to MH i2c: 01 00 00 4B 02 4D [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 07 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 07 00 4B 02 00 00 00 00 00 FF 0F 62 [12:31:48]RasterBufferAndPrint [12:31:48]line Счет N : (3)335514 [12:31:48]line ИНН: 02508201610067 [12:31:48]line Контрольно-Кассовый Чек [12:31:48]line ПРОДАЖА [12:31:48]line Товар: 48745000 [12:31:48]line Сигареты Winston Purple Mix [12:31:48]line 1.000 * 139.00 [12:31:48]line = 139.00 [12:31:48]line НДС 12% НСП 1% [12:31:48]line > о реализуемом товаре [12:31:48]line ИТОГО: 139.00 [12:31:48]line НСП 1% : 1.23 [12:31:48]line НДС 12% : 14.76 [12:31:48]line Наличными: 139.00 [12:31:48]line Безнал.: 0.00 [12:31:48]line Место: АЗС № 101 "Партнер Нефть" [12:31:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:31:48]line СНО: Общий режим [12:31:48]line Чек 132 31.10.2024 12:31 [12:31:48]line Смена: 557 ФФД: 1.0 [12:31:48]line ЗНМ: 0300000081 [12:31:48]line РНМ: 0000000000091631 [12:31:48]line Версия ККМ: 001 [12:31:48]line ФМ: 0000000000874669 [12:31:48]line ФД: 139655 [12:31:48]line ФПД: 37656845529631 [12:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T123147&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139655&fm=37656845529631&tin=02508201610067®Number=0000000000091631&sum=13900 [12:31:48]OFD Sender: Processing packet 139655 [packets to send 34, broken 33] [12:31:48]ProducePacketName [12:31:48]name=ofd_packets/00139655 [12:31:48]OFD Sender: To server: pG, [12:31:48]CommunicateWithHost lk.salyk.kg:30040 [12:31:48]ConnectInit lk.salyk.kg [12:31:48]line 0 [12:31:48]written 0, free lines is 4095 [12:31:48]Connected sock=10 [12:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 08 0C 1C 01 3E 03 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 84 00 00 00 F4 03 04 00 B3 78 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 22 3F AA E6 B2 1F A7 07 31 3D 48 F8 7A 6F [12:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F0 FE 47 00 87 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 87 21 02 00 F4 03 04 00 60 24 23 67 B6 04 01 00 00 80 3E 15 97 A4 BB D7 E2 [12:31:48]CommunicateWithHost err = 0 [12:31:48]CheckOFDResponse [12:31:48]1017 (14) - 77093643461234 [12:31:48]1041 (16) - 0000000000874669 [12:31:48]1040 (4) - 139655 [12:31:48]1012 (4) - 31.10.2024 06:32 [12:31:48]1206 (1) - 0 [12:31:48]OFD Sender: Remove packet 139655 [12:31:48]ProducePacketName [12:31:48]name=ofd_packets/00139655 [12:31:48]NVStorageDeleteData [12:31:49]Write to MH i2c: 01 00 00 73 02 75 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: 01 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: 01 07 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 07 0D 90 [12:31:49]RasterBufferAndPrint [12:31:49]line [12:31:49]line [12:31:49]line [12:31:49]line [12:31:49]line [12:31:49]written 0, free lines is 3344 [12:31:49]MH_Cut [12:31:49]Write to MH i2c: D1 01 00 7A 02 01 4E [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: D1 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: D1 01 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: D1 01 00 7A 02 00 4D [12:31:49]Write to MH i2c: 01 00 00 7B 02 7D [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]OFD Sender: No OFD packet to send [12:31:49]*** Cut start [12:31:49]*** Partial cut [12:31:49]*** CUTSNS_PIN = 1 [12:31:49]*** CUTSNS_PIN = 0 [12:31:50]*** Brake cut motor [12:31:50]Read from MH i2c: 01 [12:31:50]MH_I2C_Read... [12:31:50]*** Stop cut motor [12:31:50]*** Cut end [12:31:50]Read from MH i2c: 01 07 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [12:31:50]process_action close_receipt done [12:31:50]requested_data is exist [12:31:50]produce_requested_data [12:31:50]requested_item fm.sn is exist - process it [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 11 00 00 [12:31:50]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 17 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [12:31: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:31:50]wFMCommunicate OK [12:31:50]requested_item fd.num is exist - process it [12:31:50]SAM_PROTO_GetFieldsCounters [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 13 00 00 [12:31:50]Write to MH i2c: E2 08 00 7D 02 80 13 00 00 00 00 00 00 FB [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 62 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 62 00 7D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 84 [12:31: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 87 21 02 00 0E 04 04 00 2D 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:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_GetFieldsCounters done [12:31:50]requested_item shift.num is exist - process it [12:31:50]requested_item shift.opened is exist - process it [12:31:50]req_shift_opened [12:31:50]FM_GetShiftState [12:31:50]SAM_PROTO_GetShiftState [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 13 01 00 [12:31:50]Write to MH i2c: E2 08 00 7E 02 80 13 01 00 00 00 00 00 FD [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0E 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0E 00 7E 02 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 26 [12:31:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_GetShiftState done [12:31:50]FM_GetShiftState done [12:31:50]req_shift_opened done [12:31:50]requested_item shift.open_date is exist - process it [12:31:50]req_shift_open_date [12:31:50]req_shift_open_date done [12:31:50]produce_requested_data done [12:31:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139655,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:31:50]process_action_free close_receipt [12:31:50]json_value_free [12:31:50]json_value_free done [12:31:50]process_json_proto returns [12:31:50]Send response to host [12:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139655,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:31:50]free response buf [12:31:50]execute_script done [12:31:50]execute_script returns [12:31:50]free content buf [12:31:50]Sock 7.Close socket [12:31:50]Sock 7.Thread stoped [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:46]accept exits with 9 [12:41:46]New connection [12:41:46]New thread 3066654052 created [12:41:46]Thread 3066510692 joined [12:41:46]Waiting for new connection... [12:41:46] Sock 9.Parse request [12:41:46]Sock 9.Check first char [12:41:46]Sock 9.First char is OK [12:41:46]request: POST /json_proto HTTP/1.0 [12:41:46]Method: POST [12:41:46]URL: /json_proto [12:41:46]Method is POST - this is cgi request [12:41:46]url: /json_proto [12:41:46]query_string will be loaded in cgi processing [12:41:46]execute_cgi json_proto POST (null) [12:41:46]execute_cgi path=json_proto method=POST [12:41:46]POST find Content-Length [12:41:46]Host: 172.17.50.196:8080 [12:41:46]Content-Length: 682 [12:41:46]Content-Type: application/json [12:41:46] [12:41:46]POST finish read [12:41:46]Found Content-Length = 682 [12:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095159", "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" : 18.280, "sum" : 700.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:46]execute_script... [12:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095159", "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" : 18.280, "sum" : 700.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:46]POST & json_proto [12:41:46]process_json_proto [12:41:46]json parsed OK: [12:41:46]protocol is kg_v1.0 [12:41:46]action value=close_receipt [12:41:46]process_action close_receipt [12:41:46]cmd_close_receipt [12:41:46]MH_GetDate [12:41:46]Write to MH i2c: F0 00 00 7F 02 70 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: F0 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: F0 09 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: F0 09 00 7F 02 00 0B 7B 23 67 72 0D 1C 67 8B [12:41:46]GetLastDocTimeStamp 1730377907 [12:41:46]current date 1730378507 [12:41:46]FM_GetShiftState [12:41:46]SAM_PROTO_GetShiftState [12:41:46]wFMCommunicate request_size=4 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 13 01 00 [12:41:46]Write to MH i2c: E2 08 00 80 02 80 13 01 00 00 00 00 00 FF [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 0E 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 0E 00 80 02 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 28 [12:41:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:41:46]wFMCommunicate OK [12:41:46]SAM_PROTO_GetShiftState done [12:41:46]FM_GetShiftState done [12:41:46]opened in 1730332621 [12:41:46]opened+sec_in_day 1730419021 [12:41:46]quantity*price = 70012 [12:41:46]sum+1 = 70013 [12:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 133 31.10.2024 12:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139656 ФПД: 14803281566218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124147&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139656&fm=14803281566218&tin=02508201610067®Number=0000000000091631&sum=70000 [12:41:48]StoreToDocumentArchive [12:41:48]shift 557 fd 139656 [12:41:48]save to /storage/0557/doc_00139656 [12:41:48]save last doc name /storage/0557/doc_00139656 to /storage/kkm_last_doc_name [12:41:48]save OK [12:41:48]Clear old archive folders... [12:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:41:48]tlvbuf is 00A24390 [12:41:48]SAM_PROTO_ClearQueue [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 09 00 00 [12:41:48]Write to MH i2c: E2 08 00 8D 02 80 09 00 00 00 00 00 00 01 [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [12:41:48]RAPDU: 90 00 [12:41:48]wFMCommunicate OK [12:41:48]SAM_PROTO_ClearQueue done [12:41:48]KKMCreateOFDPacket [12:41:48]OFDProtocolAddRootSTLVToBuf [12:41:48]FM_MakeSignedData [12:41:48]FM_MakeSignedData [12:41:48]SAM_PROTO_SignData [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 0D 01 02 [12:41:48]Write to MH i2c: E2 08 00 8E 02 80 0D 01 02 00 00 00 00 09 [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [12:41:48]RAPDU: 90 00 [12:41:48]wFMCommunicate OK [12:41:48]wFMCommunicate request_size=255 [12:41:48]MH_SAM_APDU [12:41:48]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 68 47 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 7C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 7B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 0D 76 [12:41:48]Write to MH i2c: E2 02 01 8F 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 47 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 7C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 7B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 0D 76 00 00 8A [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [12:41:48]RAPDU: 90 00 [12:41:48]wFMCommunicate OK [12:41:48]wFMCommunicate request_size=9 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 0D 02 02 04 A8 56 DA 0A [12:41:48]Write to MH i2c: E2 0C 00 90 02 80 0D 02 02 04 00 A8 56 DA 0A 00 00 F6 [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [12:41:48]RAPDU: 90 00 [12:41:48]wFMCommunicate OK [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 0D 03 02 [12:41:48]Write to MH i2c: E2 08 00 91 02 80 0D 03 02 00 00 00 00 0E [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 0B 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 0B 00 91 02 00 31 6B 78 1F D7 96 7A 1E 90 00 47 [12:41:48]RAPDU: 31 6B 78 1F D7 96 7A 1E 90 00 [12:41:48]wFMCommunicate OK [12:41:48]SAM_PROTO_SignData done [12:41:48]FM_MakeSignedData done [12:41:48]CreateOFDProtocolMessage [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 11 00 00 [12:41:48]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 17 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 69 [12:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:41:48]wFMCommunicate OK [12:41:48]CreateOFDProtocolMessage done [12:41:48]OFDSenderStorePacket 139656 [12:41:48]StoreOFDPacket docnum=139656 [12:41: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 0E 01 00 00 DF 86 06 01 2A A1 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 68 47 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 7C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 7B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 0D 76 A8 56 DA 0A 31 6B 78 1F D7 96 7A 1E [12:41:48]CheckFolder [12:41:48]dirname=/storage/ofd_packets [12:41:48]CheckFolder done [12:41:48]ProducePacketName [12:41:48]name=ofd_packets/00139656 [12:41:48]NVStorageSaveData ofd_packets/00139656 [12:41:48]File name is /storage/ofd_packets/00139656 [12:41:48]Write 300 bytes [12:41:48]NVStorageSaveData done [12:41:48]OFDSenderStorePacket done [12:41:48]KKMCreateOFDPacket done [12:41:48]NVStorageSaveData kkm_last_timestamp [12:41:48]File name is /storage/kkm_last_timestamp [12:41:48]Write 4 bytes [12:41:48]NVStorageSaveData done [12:41:48]ExternCall_PrintAddStr [12:41:48]wPrintStart [12:41:48]Write to MH i2c: 01 00 00 93 02 95 [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: 01 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: 01 07 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 FF 0F AA [12:41:48]RasterBufferAndPrint [12:41:48]line Счет N : (1)1095159 [12:41:48]line ИНН: 02508201610067 [12:41:48]line Контрольно-Кассовый Чек [12:41:48]line ПРОДАЖА [12:41:48]line ТРК (МРК, ГНК) : 81 [12:41:48]line Товар: 2711190000 [12:41:48]line ГАЗ-К-5 [12:41:48]line 18.280 * 38.30 [12:41:48]line = 700.12 [12:41:48]line НДС 12% НСП 1% [12:41:48]line > о реализуемом товаре [12:41:48]line ОКРУГЛЕНИЕ: -0.12 [12:41:48]line ИТОГО: 700.00 [12:41:48]line Внесено: 700.00 [12:41:48]line СДАЧА: 0.00 [12:41:48]line НСП 1% : 6.20 [12:41:48]line НДС 12% : 74.35 [12:41:48]line Наличными: 700.00 [12:41:48]line Безнал.: 0.00 [12:41:48]line Место: АЗС № 101 "Партнер Нефть" [12:41:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:41:48]line СНО: Общий режим [12:41:48]line Чек 133 31.10.2024 12:41 [12:41:48]line Смена: 557 ФФД: 1.0 [12:41:48]line ЗНМ: 0300000081 [12:41:48]line РНМ: 0000000000091631 [12:41:48]line Версия ККМ: 001 [12:41:48]line ФМ: 0000000000874669 [12:41:48]line ФД: 139656 [12:41:48]line ФПД: 14803281566218 [12:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124147&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139656&fm=14803281566218&tin=02508201610067®Number=0000000000091631&sum=70000 [12:41:48]OFD Sender: Processing packet 139656 [packets to send 34, broken 33] [12:41:48]ProducePacketName [12:41:48]name=ofd_packets/00139656 [12:41:48]OFD Sender: To server: pG, [12:41:48]CommunicateWithHost lk.salyk.kg:30040 [12:41:48]ConnectInit lk.salyk.kg [12:41:48]written 0, free lines is 4095 [12:41:49]Connected sock=10 [12:41: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 0E 01 00 00 DF 86 06 01 2A A1 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 68 47 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 7C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0B 7B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 0D 76 A8 56 DA 0A 31 6B 78 1F D7 96 7A 1E [12:41: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 6A 64 47 00 31 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 88 21 02 00 F4 03 04 00 B9 26 23 67 B6 04 01 00 00 57 0E 42 4C 5F 1E 8F 74 [12:41:49]CommunicateWithHost err = 0 [12:41:49]CheckOFDResponse [12:41:49]1017 (14) - 77093643461234 [12:41:49]1041 (16) - 0000000000874669 [12:41:49]1040 (4) - 139656 [12:41:49]1012 (4) - 31.10.2024 06:42 [12:41:49]1206 (1) - 0 [12:41:49]OFD Sender: Remove packet 139656 [12:41:49]ProducePacketName [12:41:49]name=ofd_packets/00139656 [12:41:49]NVStorageDeleteData [12:41:49]Write to MH i2c: 01 00 00 BE 02 C0 [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: 01 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: 01 07 00 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 E4 0C B7 [12:41:49]RasterBufferAndPrint [12:41:49]line [12:41:49]line [12:41:49]line [12:41:49]line [12:41:49]line [12:41:49]written 0, free lines is 3306 [12:41:49]MH_Cut [12:41:49]Write to MH i2c: D1 01 00 C5 02 01 99 [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: D1 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: D1 01 00 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: D1 01 00 C5 02 00 98 [12:41:49]Write to MH i2c: 01 00 00 C6 02 C8 [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:49]OFD Sender: No OFD packet to send [12:41:50]*** Cut start [12:41:50]*** Partial cut [12:41:50]*** CUTSNS_PIN = 1 [12:41:50]*** CUTSNS_PIN = 0 [12:41:50]*** Brake cut motor [12:41:50]Read from MH i2c: 01 [12:41:50]MH_I2C_Read... [12:41:50]*** Stop cut motor [12:41:50]*** Cut end [12:41:50]Read from MH i2c: 01 07 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [12:41:50]process_action close_receipt done [12:41:50]requested_data is exist [12:41:50]produce_requested_data [12:41:50]requested_item fm.sn is exist - process it [12:41:50]wFMCommunicate request_size=4 [12:41:50]MH_SAM_APDU [12:41:50]CAPDU: 80 11 00 00 [12:41:50]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [12:41:50]Write i2c OK [12:41:50]MH_I2C_Read... [12:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:50]Read from MH i2c: E2 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 17 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9E [12:41: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:41:50]wFMCommunicate OK [12:41:50]requested_item fd.num is exist - process it [12:41:50]SAM_PROTO_GetFieldsCounters [12:41:50]wFMCommunicate request_size=4 [12:41:50]MH_SAM_APDU [12:41:50]CAPDU: 80 13 00 00 [12:41:50]Write to MH i2c: E2 08 00 C8 02 80 13 00 00 00 00 00 00 46 [12:41:50]Write i2c OK [12:41:50]MH_I2C_Read... [12:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:50]Read from MH i2c: E2 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 62 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 62 00 C8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 D3 [12:41: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 88 21 02 00 0E 04 04 00 2D 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:41:50]wFMCommunicate OK [12:41:50]SAM_PROTO_GetFieldsCounters done [12:41:50]requested_item shift.num is exist - process it [12:41:50]requested_item shift.opened is exist - process it [12:41:50]req_shift_opened [12:41:50]FM_GetShiftState [12:41:50]SAM_PROTO_GetShiftState [12:41:50]wFMCommunicate request_size=4 [12:41:50]MH_SAM_APDU [12:41:50]CAPDU: 80 13 01 00 [12:41:50]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [12:41:50]Write i2c OK [12:41:50]MH_I2C_Read... [12:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:51]Read from MH i2c: E2 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 0E 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 71 [12:41:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:41:51]wFMCommunicate OK [12:41:51]SAM_PROTO_GetShiftState done [12:41:51]FM_GetShiftState done [12:41:51]req_shift_opened done [12:41:51]requested_item shift.open_date is exist - process it [12:41:51]req_shift_open_date [12:41:51]req_shift_open_date done [12:41:51]produce_requested_data done [12:41:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139656,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:41:51]process_action_free close_receipt [12:41:51]json_value_free [12:41:51]json_value_free done [12:41:51]process_json_proto returns [12:41:51]Send response to host [12:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139656,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:41:51]free response buf [12:41:51]execute_script done [12:41:51]execute_script returns [12:41:51]free content buf [12:41:51]Sock 9.Close socket [12:41:51]Sock 9.Thread stoped [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:49:55]accept exits with 7 [12:49:55]New connection [12:49:55]New thread 3066510692 created [12:49:55]Thread 3066654052 joined [12:49:55]Waiting for new connection... [12:49:55] Sock 7.Parse request [12:49:55]Sock 7.Check first char [12:49:55]Sock 7.First char is OK [12:49:55]request: POST /json_proto HTTP/1.0 [12:49:55]Method: POST [12:49:55]URL: /json_proto [12:49:55]Method is POST - this is cgi request [12:49:55]url: /json_proto [12:49:55]query_string will be loaded in cgi processing [12:49:55]execute_cgi json_proto POST (null) [12:49:55]execute_cgi path=json_proto method=POST [12:49:55]POST find Content-Length [12:49:55]Host: 172.17.50.196:8080 [12:49:55]Content-Length: 621 [12:49:55]Content-Type: application/json [12:49:55] [12:49:55]POST finish read [12:49:55]Found Content-Length = 621 [12:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335515", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:55]execute_script... [12:49: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)335515", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:55]POST & json_proto [12:49:55]process_json_proto [12:49:55]json parsed OK: [12:49:55]protocol is kg_v1.0 [12:49:55]action value=close_receipt [12:49:55]process_action close_receipt [12:49:55]cmd_close_receipt [12:49:55]MH_GetDate [12:49:55]Write to MH i2c: F0 00 00 CA 02 BB [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: F0 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: F0 09 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: F0 09 00 CA 02 00 F4 7C 23 67 72 0D 1C 67 C0 [12:49:55]GetLastDocTimeStamp 1730378507 [12:49:55]current date 1730378996 [12:49:55]FM_GetShiftState [12:49:55]SAM_PROTO_GetShiftState [12:49:55]wFMCommunicate request_size=4 [12:49:55]MH_SAM_APDU [12:49:55]CAPDU: 80 13 01 00 [12:49:55]Write to MH i2c: E2 08 00 CB 02 80 13 01 00 00 00 00 00 4A [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 0E 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 0E 00 CB 02 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 73 [12:49:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:49:55]wFMCommunicate OK [12:49:55]SAM_PROTO_GetShiftState done [12:49:55]FM_GetShiftState done [12:49:55]opened in 1730332621 [12:49:55]opened+sec_in_day 1730419021 [12:49:55]quantity*price = 14400 [12:49:55]sum+1 = 14401 [12:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 134 31.10.2024 12:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139657 ФПД: 140719677357241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124956&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139657&fm=140719677357241&tin=02508201610067®Number=0000000000091631&sum=14400 0 [12:49:56]StoreToDocumentArchive [12:49:56]shift 557 fd 139657 [12:49:56]save to /storage/0557/doc_00139657 [12:49:56]save last doc name /storage/0557/doc_00139657 to /storage/kkm_last_doc_name [12:49:56]save OK [12:49:56]Clear old archive folders... [12:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:49:56]tlvbuf is 00A7B4B0 [12:49:56]SAM_PROTO_ClearQueue [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 09 00 00 [12:49:56]Write to MH i2c: E2 08 00 D8 02 80 09 00 00 00 00 00 00 4C [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_ClearQueue done [12:49:56]KKMCreateOFDPacket [12:49:56]OFDProtocolAddRootSTLVToBuf [12:49:56]FM_MakeSignedData [12:49:56]FM_MakeSignedData [12:49:56]SAM_PROTO_SignData [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 01 02 [12:49:56]Write to MH i2c: E2 08 00 D9 02 80 0D 01 02 00 00 00 00 54 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]wFMCommunicate request_size=255 [12:49:56]MH_SAM_APDU [12:49:56]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 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 86 00 00 00 F4 03 04 00 F4 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [12:49:56]Write to MH i2c: E2 02 01 DA 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 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 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 86 00 00 00 F4 03 04 00 F4 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 90 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [12:49:57]RAPDU: 90 00 [12:49:57]wFMCommunicate OK [12:49:57]wFMCommunicate request_size=32 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 89 21 02 00 35 04 06 00 7F FB DA 61 BC B9 [12:49:57]Write to MH i2c: E2 23 00 DB 02 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 89 21 02 00 35 04 06 00 7F FB DA 61 BC B9 00 00 92 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [12:49:57]RAPDU: 90 00 [12:49:57]wFMCommunicate OK [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 0D 03 02 [12:49:57]Write to MH i2c: E2 08 00 DC 02 80 0D 03 02 00 00 00 00 59 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 0B 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 0B 00 DC 02 00 AD B6 72 AE FA E5 4E A3 90 00 AD [12:49:57]RAPDU: AD B6 72 AE FA E5 4E A3 90 00 [12:49:57]wFMCommunicate OK [12:49:57]SAM_PROTO_SignData done [12:49:57]FM_MakeSignedData done [12:49:57]CreateOFDProtocolMessage [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 11 00 00 [12:49:57]Write to MH i2c: E2 08 00 DD 02 80 11 00 00 00 00 00 00 59 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 17 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 17 00 DD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B4 [12:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:49:57]wFMCommunicate OK [12:49:57]CreateOFDProtocolMessage done [12:49:57]OFDSenderStorePacket 139657 [12:49:57]StoreOFDPacket docnum=139657 [12:49: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 25 01 00 00 40 DC 1D 01 FC D4 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 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 86 00 00 00 F4 03 04 00 F4 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F FB DA 61 BC B9 AD B6 72 AE FA E5 4E A3 [12:49:57]CheckFolder [12:49:57]dirname=/storage/ofd_packets [12:49:57]CheckFolder done [12:49:57]ProducePacketName [12:49:57]name=ofd_packets/00139657 [12:49:57]NVStorageSaveData ofd_packets/00139657 [12:49:57]File name is /storage/ofd_packets/00139657 [12:49:57]Write 323 bytes [12:49:57]NVStorageSaveData done [12:49:57]OFDSenderStorePacket done [12:49:57]KKMCreateOFDPacket done [12:49:57]NVStorageSaveData kkm_last_timestamp [12:49:57]File name is /storage/kkm_last_timestamp [12:49:57]Write 4 bytes [12:49:57]NVStorageSaveData done [12:49:57]ExternCall_PrintAddStr [12:49:57]wPrintStart [12:49:57]Write to MH i2c: 01 00 00 DE 02 E0 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 07 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 FF 0F F5 [12:49:57]RasterBufferAndPrint [12:49:57]line Счет N : (3)335515 [12:49:57]line ИНН: 02508201610067 [12:49:57]line Контрольно-Кассовый Чек [12:49:57]line ПРОДАЖА [12:49:57]line Товар: 48747066 [12:49:57]line Сигареты Winston True Silver [12:49:57]line 1.000 * 144.00 [12:49:57]line = 144.00 [12:49:57]line НДС 12% НСП 1% [12:49:57]line > о реализуемом товаре [12:49:57]line ИТОГО: 144.00 [12:49:57]line НСП 1% : 1.27 [12:49:57]line НДС 12% : 15.29 [12:49:57]line Наличными: 144.00 [12:49:57]line Безнал.: 0.00 [12:49:57]line Место: АЗС № 101 "Партнер Нефть" [12:49:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:49:57]line СНО: Общий режим [12:49:57]line Чек 134 31.10.2024 12:49 [12:49:57]line Смена: 557 ФФД: 1.0 [12:49:57]line ЗНМ: 0300000081 [12:49:57]line РНМ: 0000000000091631 [12:49:57]line Версия ККМ: 001 [12:49:57]line ФМ: 0000000000874669 [12:49:57]line ФД: 139657 [12:49:57]line ФПД: 140719677357241 [12:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T124956&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139657&fm=140719677357241&tin=02508201610067®Number=0000000000091631&sum=14400 [12:49:57]OFD Sender: Processing packet 139657 [packets to send 34, broken 33] [12:49:57]ProducePacketName [12:49:57]name=ofd_packets/00139657 [12:49:57]OFD Sender: To server: pG, [12:49:57]CommunicateWithHost lk.salyk.kg:30040 [12:49:57]ConnectInit lk.salyk.kg [12:49:57]line 0 [12:49:57]written 0, free lines is 4095 [12:49:57]Connected sock=10 [12:49: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 25 01 00 00 40 DC 1D 01 FC D4 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 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 86 00 00 00 F4 03 04 00 F4 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F FB DA 61 BC B9 AD B6 72 AE FA E5 4E A3 [12:49: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 66 16 47 00 D8 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 21 02 00 F4 03 04 00 A1 28 23 67 B6 04 01 00 00 A9 26 4E 4E A3 AC 84 59 [12:49:57]CommunicateWithHost err = 0 [12:49:57]CheckOFDResponse [12:49:57]1017 (14) - 77093643461234 [12:49:57]1041 (16) - 0000000000874669 [12:49:57]1040 (4) - 139657 [12:49:57]1012 (4) - 31.10.2024 06:50 [12:49:57]1206 (1) - 0 [12:49:57]OFD Sender: Remove packet 139657 [12:49:57]ProducePacketName [12:49:57]name=ofd_packets/00139657 [12:49:57]NVStorageDeleteData [12:49:58]Write to MH i2c: 01 00 00 06 03 09 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 07 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 10 0D 2D [12:49:58]RasterBufferAndPrint [12:49:58]line [12:49:58]line [12:49:58]line [12:49:58]line [12:49:58]line [12:49:58]written 0, free lines is 3350 [12:49:58]MH_Cut [12:49:58]Write to MH i2c: D1 01 00 0D 03 01 E2 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: D1 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: D1 01 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: D1 01 00 0D 03 00 E1 [12:49:58]Write to MH i2c: 01 00 00 0E 03 11 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]OFD Sender: No OFD packet to send [12:49:58]*** Cut start [12:49:58]*** Partial cut [12:49:58]*** CUTSNS_PIN = 1 [12:49:58]*** CUTSNS_PIN = 0 [12:49:58]*** Brake cut motor [12:49:59]Read from MH i2c: 01 [12:49:59]MH_I2C_Read... [12:49:59]*** Stop cut motor [12:49:59]*** Cut end [12:49:59]Read from MH i2c: 01 07 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 FF 0F 26 [12:49:59]process_action close_receipt done [12:49:59]requested_data is exist [12:49:59]produce_requested_data [12:49:59]requested_item fm.sn is exist - process it [12:49:59]wFMCommunicate request_size=4 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 11 00 00 [12:49:59]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 17 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E7 [12:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:49:59]wFMCommunicate OK [12:49:59]requested_item fd.num is exist - process it [12:49:59]SAM_PROTO_GetFieldsCounters [12:49:59]wFMCommunicate request_size=4 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 13 00 00 [12:49:59]Write to MH i2c: E2 08 00 10 03 80 13 00 00 00 00 00 00 8F [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 62 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 62 00 10 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 20 [12:49: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 89 21 02 00 0E 04 04 00 2D 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:49:59]wFMCommunicate OK [12:49:59]SAM_PROTO_GetFieldsCounters done [12:49:59]requested_item shift.num is exist - process it [12:49:59]requested_item shift.opened is exist - process it [12:49:59]req_shift_opened [12:49:59]FM_GetShiftState [12:49:59]SAM_PROTO_GetShiftState [12:49:59]wFMCommunicate request_size=4 [12:49:59]MH_SAM_APDU [12:49:59]CAPDU: 80 13 01 00 [12:49:59]Write to MH i2c: E2 08 00 11 03 80 13 01 00 00 00 00 00 91 [12:49:59]Write i2c OK [12:49:59]MH_I2C_Read... [12:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:59]Read from MH i2c: E2 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 0E 00 [12:49:59]MH_I2C_Read... [12:49:59]Read from MH i2c: E2 0E 00 11 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BA [12:49:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:49:59]wFMCommunicate OK [12:49:59]SAM_PROTO_GetShiftState done [12:49:59]FM_GetShiftState done [12:49:59]req_shift_opened done [12:49:59]requested_item shift.open_date is exist - process it [12:49:59]req_shift_open_date [12:49:59]req_shift_open_date done [12:49:59]produce_requested_data done [12:49:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139657,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:49:59]process_action_free close_receipt [12:49:59]json_value_free [12:49:59]json_value_free done [12:49:59]process_json_proto returns [12:49:59]Send response to host [12:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139657,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:49:59]free response buf [12:49:59]execute_script done [12:49:59]execute_script returns [12:49:59]free content buf [12:49:59]Sock 7.Close socket [12:49:59]Sock 7.Thread stoped [12:50:00]accept exits with 9 [12:50:00]New connection [12:50:00]New thread 3066654052 created [12:50:00]Thread 3066510692 joined [12:50:00]Waiting for new connection... [12:50:00] Sock 9.Parse request [12:50:00]Sock 9.Check first char [12:50:00]Sock 9.First char is OK [12:50:00]request: POST /json_proto HTTP/1.0 [12:50:00]Method: POST [12:50:00]URL: /json_proto [12:50:00]Method is POST - this is cgi request [12:50:00]url: /json_proto [12:50:00]query_string will be loaded in cgi processing [12:50:00]execute_cgi json_proto POST (null) [12:50:00]execute_cgi path=json_proto method=POST [12:50:00]POST find Content-Length [12:50:00]Host: 172.17.50.196:8080 [12:50:00]Content-Length: 724 [12:50:00]Content-Type: application/json [12:50:00] [12:50:00]POST finish read [12:50:00]Found Content-Length = 724 [12:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335516", "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" ] } } [12:50:00]execute_script... [12:50:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335516", "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" ] } } [12:50:00]POST & json_proto [12:50:00]process_json_proto [12:50:00]json parsed OK: [12:50:00]protocol is kg_v1.0 [12:50:00]action value=close_receipt [12:50:00]process_action close_receipt [12:50:00]cmd_close_receipt [12:50:00]MH_GetDate [12:50:00]Write to MH i2c: F0 00 00 12 03 04 [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: F0 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: F0 09 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: F0 09 00 12 03 00 F9 7C 23 67 72 0D 1C 67 0E [12:50:00]GetLastDocTimeStamp 1730378996 [12:50:00]current date 1730379001 [12:50:00]FM_GetShiftState [12:50:00]SAM_PROTO_GetShiftState [12:50:00]wFMCommunicate request_size=4 [12:50:00]MH_SAM_APDU [12:50:00]CAPDU: 80 13 01 00 [12:50:00]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [12:50:00]Write i2c OK [12:50:00]MH_I2C_Read... [12:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:00]Read from MH i2c: E2 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 0E 00 [12:50:00]MH_I2C_Read... [12:50:00]Read from MH i2c: E2 0E 00 13 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BC [12:50:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:50:00]wFMCommunicate OK [12:50:00]SAM_PROTO_GetShiftState done [12:50:00]FM_GetShiftState done [12:50:00]opened in 1730332621 [12:50:00]opened+sec_in_day 1730419021 [12:50:00]quantity*price = 28500 [12:50:00]sum+1 = 28501 [12:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 135 31.10.2024 12:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139658 ФПД: 189775410929448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T125001&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139658&fm=189775410929448&tin=02508201610067®Number=0000000000091631&sum=28500 0 [12:50:02]StoreToDocumentArchive [12:50:02]shift 557 fd 139658 [12:50:02]save to /storage/0557/doc_00139658 [12:50:02]save last doc name /storage/0557/doc_00139658 to /storage/kkm_last_doc_name [12:50:02]save OK [12:50:02]Clear old archive folders... [12:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=304 [12:50:02]tlvbuf is 00A6B230 [12:50:02]SAM_PROTO_ClearQueue [12:50:02]wFMCommunicate request_size=4 [12:50:02]MH_SAM_APDU [12:50:02]CAPDU: 80 09 00 00 [12:50:02]Write to MH i2c: E2 08 00 20 03 80 09 00 00 00 00 00 00 95 [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [12:50:02]RAPDU: 90 00 [12:50:02]wFMCommunicate OK [12:50:02]SAM_PROTO_ClearQueue done [12:50:02]KKMCreateOFDPacket [12:50:02]OFDProtocolAddRootSTLVToBuf [12:50:02]FM_MakeSignedData [12:50:02]FM_MakeSignedData [12:50:02]SAM_PROTO_SignData [12:50:02]wFMCommunicate request_size=4 [12:50:02]MH_SAM_APDU [12:50:02]CAPDU: 80 0D 01 02 [12:50:02]Write to MH i2c: E2 08 00 21 03 80 0D 01 02 00 00 00 00 9D [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [12:50:02]RAPDU: 90 00 [12:50:02]wFMCommunicate OK [12:50:02]wFMCommunicate request_size=255 [12:50:02]MH_SAM_APDU [12:50:02]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 87 00 00 00 F4 03 04 00 F9 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 [12:50:02]Write to MH i2c: E2 02 01 22 03 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 87 00 00 00 F4 03 04 00 F9 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 00 00 95 [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [12:50:02]RAPDU: 90 00 [12:50:02]wFMCommunicate OK [12:50:02]wFMCommunicate request_size=63 [12:50:02]MH_SAM_APDU [12:50:02]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 8A 21 02 00 35 04 06 00 AC 99 87 F4 9F 28 [12:50:02]Write to MH i2c: E2 42 00 23 03 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 8A 21 02 00 35 04 06 00 AC 99 87 F4 9F 28 00 00 21 [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [12:50:02]RAPDU: 90 00 [12:50:02]wFMCommunicate OK [12:50:02]wFMCommunicate request_size=4 [12:50:02]MH_SAM_APDU [12:50:02]CAPDU: 80 0D 03 02 [12:50:02]Write to MH i2c: E2 08 00 24 03 80 0D 03 02 00 00 00 00 A2 [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 0B 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 0B 00 24 03 00 CC E1 F5 99 F8 F8 2B AE 90 00 A7 [12:50:02]RAPDU: CC E1 F5 99 F8 F8 2B AE 90 00 [12:50:02]wFMCommunicate OK [12:50:02]SAM_PROTO_SignData done [12:50:02]FM_MakeSignedData done [12:50:02]CreateOFDProtocolMessage [12:50:02]wFMCommunicate request_size=4 [12:50:02]MH_SAM_APDU [12:50:02]CAPDU: 80 11 00 00 [12:50:02]Write to MH i2c: E2 08 00 25 03 80 11 00 00 00 00 00 00 A2 [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 17 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 17 00 25 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FD [12:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:50:02]wFMCommunicate OK [12:50:02]CreateOFDProtocolMessage done [12:50:02]OFDSenderStorePacket 139658 [12:50:02]StoreOFDPacket docnum=139658 [12:50: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 44 01 00 00 8D 23 3C 01 98 76 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 87 00 00 00 F4 03 04 00 F9 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AC 99 87 F4 9F 28 CC E1 F5 99 F8 F8 2B AE [12:50:02]CheckFolder [12:50:02]dirname=/storage/ofd_packets [12:50:02]CheckFolder done [12:50:02]ProducePacketName [12:50:02]name=ofd_packets/00139658 [12:50:02]NVStorageSaveData ofd_packets/00139658 [12:50:02]File name is /storage/ofd_packets/00139658 [12:50:02]Write 354 bytes [12:50:02]NVStorageSaveData done [12:50:02]OFDSenderStorePacket done [12:50:02]KKMCreateOFDPacket done [12:50:02]NVStorageSaveData kkm_last_timestamp [12:50:02]File name is /storage/kkm_last_timestamp [12:50:02]Write 4 bytes [12:50:02]NVStorageSaveData done [12:50:02]ExternCall_PrintAddStr [12:50:02]wPrintStart [12:50:02]Write to MH i2c: 01 00 00 26 03 29 [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: 01 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: 01 07 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [12:50:02]RasterBufferAndPrint [12:50:02]line Счет N : (3)335516 [12:50:02]line ИНН: 02508201610067 [12:50:02]line Контрольно-Кассовый Чек [12:50:02]line ПРОДАЖА [12:50:02]line Товар: 8901086040022 [12:50:02]line Жидкость стеклоомывающая ПН -20 4,5л [12:50:02]line 1.000 * 285.00 [12:50:02]line = 285.00 [12:50:02]line НДС 12% НСП 1% [12:50:02]line > о реализуемом товаре [12:50:02]line ИТОГО: 285.00 [12:50:02]line НСП 1% : 2.52 [12:50:02]line НДС 12% : 30.26 [12:50:02]line Наличными: 285.00 [12:50:02]line Безнал.: 0.00 [12:50:02]line Место: АЗС № 101 "Партнер Нефть" [12:50:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:50:02]line СНО: Общий режим [12:50:02]line Чек 135 31.10.2024 12:50 [12:50:02]line Смена: 557 ФФД: 1.0 [12:50:02]line ЗНМ: 0300000081 [12:50:02]line РНМ: 0000000000091631 [12:50:02]line Версия ККМ: 001 [12:50:02]line ФМ: 0000000000874669 [12:50:02]line ФД: 139658 [12:50:02]line ФПД: 189775410929448 [12:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T125001&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139658&fm=189775410929448&tin=02508201610067®Number=0000000000091631&sum=28500 [12:50:02]line 0 [12:50:02]written 0, free lines is 4095 [12:50:02]OFD Sender: Processing packet 139658 [packets to send 34, broken 33] [12:50:02]ProducePacketName [12:50:02]name=ofd_packets/00139658 [12:50:02]OFD Sender: To server: pG, [12:50:02]CommunicateWithHost lk.salyk.kg:30040 [12:50:02]ConnectInit lk.salyk.kg [12:50:02]Connected sock=10 [12:50: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 44 01 00 00 8D 23 3C 01 98 76 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 87 00 00 00 F4 03 04 00 F9 7C 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AC 99 87 F4 9F 28 CC E1 F5 99 F8 F8 2B AE [12:50: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 4B CB 47 00 19 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 21 02 00 F4 03 04 00 A7 28 23 67 B6 04 01 00 00 12 D5 9E ED 13 B0 D8 AC [12:50:03]CommunicateWithHost err = 0 [12:50:03]CheckOFDResponse [12:50:03]1017 (14) - 77093643461234 [12:50:03]1041 (16) - 0000000000874669 [12:50:03]1040 (4) - 139658 [12:50:03]1012 (4) - 31.10.2024 06:50 [12:50:03]1206 (1) - 0 [12:50:03]OFD Sender: Remove packet 139658 [12:50:03]ProducePacketName [12:50:03]name=ofd_packets/00139658 [12:50:03]NVStorageDeleteData [12:50:03]Write to MH i2c: 01 00 00 4F 03 52 [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: 01 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: 01 07 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 0B 0D 71 [12:50:03]RasterBufferAndPrint [12:50:03]line [12:50:03]line [12:50:03]line [12:50:03]line [12:50:03]line [12:50:03]written 0, free lines is 3354 [12:50:03]MH_Cut [12:50:03]Write to MH i2c: D1 01 00 56 03 01 2B [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: D1 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: D1 01 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: D1 01 00 56 03 00 2A [12:50:03]Write to MH i2c: 01 00 00 57 03 5A [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]OFD Sender: No OFD packet to send [12:50:03]*** Cut start [12:50:03]*** Partial cut [12:50:03]*** CUTSNS_PIN = 1 [12:50:03]*** CUTSNS_PIN = 0 [12:50:04]*** Brake cut motor [12:50:04]Read from MH i2c: 01 [12:50:04]MH_I2C_Read... [12:50:04]*** Stop cut motor [12:50:04]*** Cut end [12:50:04]Read from MH i2c: 01 07 00 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [12:50:04]process_action close_receipt done [12:50:04]requested_data is exist [12:50:04]produce_requested_data [12:50:04]requested_item fm.sn is exist - process it [12:50:04]wFMCommunicate request_size=4 [12:50:04]MH_SAM_APDU [12:50:04]CAPDU: 80 11 00 00 [12:50:04]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [12:50:04]Write i2c OK [12:50:04]MH_I2C_Read... [12:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:04]Read from MH i2c: E2 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: E2 17 00 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 30 [12:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:50:04]wFMCommunicate OK [12:50:04]requested_item fd.num is exist - process it [12:50:04]SAM_PROTO_GetFieldsCounters [12:50:04]wFMCommunicate request_size=4 [12:50:04]MH_SAM_APDU [12:50:04]CAPDU: 80 13 00 00 [12:50:04]Write to MH i2c: E2 08 00 59 03 80 13 00 00 00 00 00 00 D8 [12:50:04]Write i2c OK [12:50:04]MH_I2C_Read... [12:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:04]Read from MH i2c: E2 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: E2 62 00 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: E2 62 00 59 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 6D [12:50:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:50:04]wFMCommunicate OK [12:50:04]SAM_PROTO_GetFieldsCounters done [12:50:04]requested_item shift.num is exist - process it [12:50:04]requested_item shift.opened is exist - process it [12:50:04]req_shift_opened [12:50:04]FM_GetShiftState [12:50:04]SAM_PROTO_GetShiftState [12:50:04]wFMCommunicate request_size=4 [12:50:04]MH_SAM_APDU [12:50:04]CAPDU: 80 13 01 00 [12:50:04]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [12:50:04]Write i2c OK [12:50:04]MH_I2C_Read... [12:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:04]Read from MH i2c: E2 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: E2 0E 00 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 03 [12:50:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:50:04]wFMCommunicate OK [12:50:04]SAM_PROTO_GetShiftState done [12:50:04]FM_GetShiftState done [12:50:04]req_shift_opened done [12:50:04]requested_item shift.open_date is exist - process it [12:50:04]req_shift_open_date [12:50:04]req_shift_open_date done [12:50:04]produce_requested_data done [12:50:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139658,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:50:04]process_action_free close_receipt [12:50:04]json_value_free [12:50:04]json_value_free done [12:50:04]process_json_proto returns [12:50:04]Send response to host [12:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139658,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:50:04]free response buf [12:50:04]execute_script done [12:50:04]execute_script returns [12:50:04]free content buf [12:50:04]Sock 9.Close socket [12:50:04]Sock 9.Thread stoped [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:04]accept exits with 7 [12:56:04]New connection [12:56:04]New thread 3066510692 created [12:56:04]Thread 3066654052 joined [12:56:04]Waiting for new connection... [12:56:04] Sock 7.Parse request [12:56:04]Sock 7.Check first char [12:56:04]Sock 7.First char is OK [12:56:04]request: POST /json_proto HTTP/1.0 [12:56:04]Method: POST [12:56:04]URL: /json_proto [12:56:04]Method is POST - this is cgi request [12:56:04]url: /json_proto [12:56:04]query_string will be loaded in cgi processing [12:56:04]execute_cgi json_proto POST (null) [12:56:04]execute_cgi path=json_proto method=POST [12:56:04]POST find Content-Length [12:56:04]Host: 172.17.50.196:8080 [12:56:04]Content-Length: 887 [12:56:04]Content-Type: application/json [12:56:04] [12:56:04]POST finish read [12:56:04]Found Content-Length = 887 [12:56:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335517", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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:56:04]execute_script... [12:56: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)335517", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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:56:04]POST & json_proto [12:56:04]process_json_proto [12:56:04]json parsed OK: [12:56:04]protocol is kg_v1.0 [12:56:04]action value=close_receipt [12:56:04]process_action close_receipt [12:56:04]cmd_close_receipt [12:56:04]MH_GetDate [12:56:04]Write to MH i2c: F0 00 00 5B 03 4D [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: F0 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: F0 09 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: F0 09 00 5B 03 00 65 7E 23 67 72 0D 1C 67 C5 [12:56:04]GetLastDocTimeStamp 1730379001 [12:56:04]current date 1730379365 [12:56:04]FM_GetShiftState [12:56:04]SAM_PROTO_GetShiftState [12:56:04]wFMCommunicate request_size=4 [12:56:04]MH_SAM_APDU [12:56:04]CAPDU: 80 13 01 00 [12:56:04]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:04]Read from MH i2c: E2 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 0E 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 05 [12:56:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:56:04]wFMCommunicate OK [12:56:04]SAM_PROTO_GetShiftState done [12:56:04]FM_GetShiftState done [12:56:04]opened in 1730332621 [12:56:04]opened+sec_in_day 1730419021 [12:56:04]quantity*price = 10000 [12:56:04]sum+1 = 10001 [12:56:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 136 31.10.2024 12:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139659 ФПД: 181478459944321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T125605&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139659&fm=181478459944321&tin=02508201610067®Number=0000000000091631&sum=22500 0 [12:56:05]StoreToDocumentArchive [12:56:05]shift 557 fd 139659 [12:56:05]save to /storage/0557/doc_00139659 [12:56:05]save last doc name /storage/0557/doc_00139659 to /storage/kkm_last_doc_name [12:56:05]save OK [12:56:05]Clear old archive folders... [12:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=370 [12:56:05]tlvbuf is 00A6AE20 [12:56:05]SAM_PROTO_ClearQueue [12:56:05]wFMCommunicate request_size=4 [12:56:05]MH_SAM_APDU [12:56:05]CAPDU: 80 09 00 00 [12:56:05]Write to MH i2c: E2 08 00 69 03 80 09 00 00 00 00 00 00 DE [12:56:05]Write i2c OK [12:56:05]MH_I2C_Read... [12:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:05]Read from MH i2c: E2 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 03 00 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [12:56:05]RAPDU: 90 00 [12:56:05]wFMCommunicate OK [12:56:05]SAM_PROTO_ClearQueue done [12:56:05]KKMCreateOFDPacket [12:56:05]OFDProtocolAddRootSTLVToBuf [12:56:05]FM_MakeSignedData [12:56:05]FM_MakeSignedData [12:56:05]SAM_PROTO_SignData [12:56:05]wFMCommunicate request_size=4 [12:56:05]MH_SAM_APDU [12:56:05]CAPDU: 80 0D 01 02 [12:56:05]Write to MH i2c: E2 08 00 6A 03 80 0D 01 02 00 00 00 00 E6 [12:56:05]Write i2c OK [12:56:05]MH_I2C_Read... [12:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:05]Read from MH i2c: E2 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 03 00 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [12:56:05]RAPDU: 90 00 [12:56:05]wFMCommunicate OK [12:56:05]wFMCommunicate request_size=255 [12:56:05]MH_SAM_APDU [12:56:05]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [12:56:05]Write to MH i2c: E2 02 01 6B 03 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 4E [12:56:05]Write i2c OK [12:56:05]MH_I2C_Read... [12:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:06]Read from MH i2c: E2 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 03 00 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [12:56:06]RAPDU: 90 00 [12:56:06]wFMCommunicate OK [12:56:06]wFMCommunicate request_size=129 [12:56:06]MH_SAM_APDU [12:56:06]CAPDU: 80 0D 02 02 7C 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 65 7E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 0D BF 23 AD 81 [12:56:06]Write to MH i2c: E2 84 00 6C 03 80 0D 02 02 7C 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 65 7E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 0D BF 23 AD 81 00 00 48 [12:56:06]Write i2c OK [12:56:06]MH_I2C_Read... [12:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:06]Read from MH i2c: E2 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 03 00 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [12:56:06]RAPDU: 90 00 [12:56:06]wFMCommunicate OK [12:56:06]wFMCommunicate request_size=4 [12:56:06]MH_SAM_APDU [12:56:06]CAPDU: 80 0D 03 02 [12:56:06]Write to MH i2c: E2 08 00 6D 03 80 0D 03 02 00 00 00 00 EB [12:56:06]Write i2c OK [12:56:06]MH_I2C_Read... [12:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:06]Read from MH i2c: E2 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 0B 00 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 0B 00 6D 03 00 08 A9 A6 4B DA B0 81 AC 90 00 45 [12:56:06]RAPDU: 08 A9 A6 4B DA B0 81 AC 90 00 [12:56:06]wFMCommunicate OK [12:56:06]SAM_PROTO_SignData done [12:56:06]FM_MakeSignedData done [12:56:06]CreateOFDProtocolMessage [12:56:06]wFMCommunicate request_size=4 [12:56:06]MH_SAM_APDU [12:56:06]CAPDU: 80 11 00 00 [12:56:06]Write to MH i2c: E2 08 00 6E 03 80 11 00 00 00 00 00 00 EB [12:56:06]Write i2c OK [12:56:06]MH_I2C_Read... [12:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:06]Read from MH i2c: E2 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 17 00 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 17 00 6E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 46 [12:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:56:06]wFMCommunicate OK [12:56:06]CreateOFDProtocolMessage done [12:56:06]OFDSenderStorePacket 139659 [12:56:06]StoreOFDPacket docnum=139659 [12:56: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 86 01 00 00 04 6B 7E 01 10 39 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 65 7E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 0D BF 23 AD 81 08 A9 A6 4B DA B0 81 AC [12:56:06]CheckFolder [12:56:06]dirname=/storage/ofd_packets [12:56:06]CheckFolder done [12:56:06]ProducePacketName [12:56:06]name=ofd_packets/00139659 [12:56:06]NVStorageSaveData ofd_packets/00139659 [12:56:06]File name is /storage/ofd_packets/00139659 [12:56:06]Write 420 bytes [12:56:06]NVStorageSaveData done [12:56:06]OFDSenderStorePacket done [12:56:06]KKMCreateOFDPacket done [12:56:06]NVStorageSaveData kkm_last_timestamp [12:56:06]File name is /storage/kkm_last_timestamp [12:56:06]Write 4 bytes [12:56:06]NVStorageSaveData done [12:56:06]ExternCall_PrintAddStr [12:56:06]wPrintStart [12:56:06]Write to MH i2c: 01 00 00 6F 03 72 [12:56:06]Write i2c OK [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: 01 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: 01 07 00 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [12:56:06]RasterBufferAndPrint [12:56:06]line Счет N : (3)335517 [12:56:06]line ИНН: 02508201610067 [12:56:06]line Контрольно-Кассовый Чек [12:56:06]line ПРОДАЖА [12:56:06]line Товар: 4700000160358 [12:56:06]line Вода Легенда 1л [12:56:06]line 2.000 * 50.00 [12:56:06]line = 100.00 [12:56:06]line НДС 12% НСП 1% [12:56:06]line > о реализуемом товаре [12:56:06]line Товар: 5449000006271 [12:56:06]line Напиток Фанта 1л [12:56:06]line 1.000 * 125.00 [12:56:06]line = 125.00 [12:56:06]line НДС 12% НСП 1% [12:56:06]line > о реализуемом товаре [12:56:06]line ИТОГО: 225.00 [12:56:06]line НСП 1% : 1.99 [12:56:06]line НДС 12% : 23.89 [12:56:06]line Наличными: 225.00 [12:56:06]line Безнал.: 0.00 [12:56:06]line Место: АЗС № 101 "Партнер Нефть" [12:56:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:56:06]line СНО: Общий режим [12:56:06]line Чек 136 31.10.2024 12:56 [12:56:06]line Смена: 557 ФФД: 1.0 [12:56:06]line ЗНМ: 0300000081 [12:56:06]line РНМ: 0000000000091631 [12:56:06]line Версия ККМ: 001 [12:56:06]line ФМ: 0000000000874669 [12:56:06]line ФД: 139659 [12:56:06]line ФПД: 181478459944321 [12:56:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T125605&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139659&fm=181478459944321&tin=02508201610067®Number=0000000000091631&sum=22500 [12:56:06]line 0 [12:56:06]OFD Sender: Processing packet 139659 [packets to send 34, broken 33] [12:56:06]ProducePacketName [12:56:06]name=ofd_packets/00139659 [12:56:06]OFD Sender: To server: pG, [12:56:06]CommunicateWithHost lk.salyk.kg:30040 [12:56:06]ConnectInit lk.salyk.kg [12:56:06]written 0, free lines is 4095 [12:56:06]Connected sock=11 [12:56: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 86 01 00 00 04 6B 7E 01 10 39 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 65 7E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A5 0D BF 23 AD 81 08 A9 A6 4B DA B0 81 AC [12:56: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 42 F7 47 00 76 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 21 02 00 F4 03 04 00 13 2A 23 67 B6 04 01 00 00 CA FA E1 EB 05 9E 78 A0 [12:56:07]CommunicateWithHost err = 0 [12:56:07]CheckOFDResponse [12:56:07]1017 (14) - 77093643461234 [12:56:07]1041 (16) - 0000000000874669 [12:56:07]1040 (4) - 139659 [12:56:07]1012 (4) - 31.10.2024 06:56 [12:56:07]1206 (1) - 0 [12:56:07]OFD Sender: Remove packet 139659 [12:56:07]ProducePacketName [12:56:07]name=ofd_packets/00139659 [12:56:07]NVStorageDeleteData [12:56:07]Write to MH i2c: 01 00 00 9D 03 A0 [12:56:07]Write i2c OK [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: 01 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: 01 07 00 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 D8 0C 8B [12:56:07]RasterBufferAndPrint [12:56:07]line [12:56:07]line [12:56:07]line [12:56:07]line [12:56:07]line [12:56:07]written 0, free lines is 3297 [12:56:07]MH_Cut [12:56:07]Write to MH i2c: D1 01 00 A4 03 01 79 [12:56:07]Write i2c OK [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: D1 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: D1 01 00 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: D1 01 00 A4 03 00 78 [12:56:07]Write to MH i2c: 01 00 00 A5 03 A8 [12:56:07]Write i2c OK [12:56:07]MH_I2C_Read... [12:56:07]OFD Sender: No OFD packet to send [12:56:08]*** Cut start [12:56:08]*** Partial cut [12:56:08]*** CUTSNS_PIN = 1 [12:56:08]*** CUTSNS_PIN = 0 [12:56:08]*** Brake cut motor [12:56:08]Read from MH i2c: 01 [12:56:08]MH_I2C_Read... [12:56:08]*** Stop cut motor [12:56:08]*** Cut end [12:56:08]Read from MH i2c: 01 07 00 [12:56:08]MH_I2C_Read... [12:56:08]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [12:56:08]process_action close_receipt done [12:56:08]requested_data is exist [12:56:08]produce_requested_data [12:56:08]requested_item fm.sn is exist - process it [12:56:08]wFMCommunicate request_size=4 [12:56:08]MH_SAM_APDU [12:56:08]CAPDU: 80 11 00 00 [12:56:08]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [12:56:08]Write i2c OK [12:56:08]MH_I2C_Read... [12:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:08]Read from MH i2c: E2 [12:56:08]MH_I2C_Read... [12:56:08]Read from MH i2c: E2 17 00 [12:56:08]MH_I2C_Read... [12:56:08]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [12:56: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:56:08]wFMCommunicate OK [12:56:08]requested_item fd.num is exist - process it [12:56:08]SAM_PROTO_GetFieldsCounters [12:56:08]wFMCommunicate request_size=4 [12:56:08]MH_SAM_APDU [12:56:08]CAPDU: 80 13 00 00 [12:56:08]Write to MH i2c: E2 08 00 A7 03 80 13 00 00 00 00 00 00 26 [12:56:08]Write i2c OK [12:56:08]MH_I2C_Read... [12:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:08]Read from MH i2c: E2 [12:56:08]MH_I2C_Read... [12:56:08]Read from MH i2c: E2 62 00 [12:56:08]MH_I2C_Read... [12:56:08]Read from MH i2c: E2 62 00 A7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 BF [12:56: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 8B 21 02 00 0E 04 04 00 2D 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:56:08]wFMCommunicate OK [12:56:08]SAM_PROTO_GetFieldsCounters done [12:56:08]requested_item shift.num is exist - process it [12:56:08]requested_item shift.opened is exist - process it [12:56:08]req_shift_opened [12:56:08]FM_GetShiftState [12:56:08]SAM_PROTO_GetShiftState [12:56:08]wFMCommunicate request_size=4 [12:56:08]MH_SAM_APDU [12:56:08]CAPDU: 80 13 01 00 [12:56:08]Write to MH i2c: E2 08 00 A8 03 80 13 01 00 00 00 00 00 28 [12:56:08]Write i2c OK [12:56:08]MH_I2C_Read... [12:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:08]Read from MH i2c: E2 [12:56:08]MH_I2C_Read... [12:56:08]Read from MH i2c: E2 0E 00 [12:56:08]MH_I2C_Read... [12:56:08]Read from MH i2c: E2 0E 00 A8 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 51 [12:56:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [12:56:08]wFMCommunicate OK [12:56:08]SAM_PROTO_GetShiftState done [12:56:08]FM_GetShiftState done [12:56:08]req_shift_opened done [12:56:08]requested_item shift.open_date is exist - process it [12:56:08]req_shift_open_date [12:56:08]req_shift_open_date done [12:56:08]produce_requested_data done [12:56:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139659,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [12:56:08]process_action_free close_receipt [12:56:08]json_value_free [12:56:08]json_value_free done [12:56:08]process_json_proto returns [12:56:08]Send response to host [12:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139659,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [12:56:08]free response buf [12:56:08]execute_script done [12:56:08]execute_script returns [12:56:08]free content buf [12:56:08]Sock 7.Close socket [12:56:08]Sock 7.Thread stoped [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]ConnectInit Can't connect to host [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:01:57]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:31]accept exits with 10 [13:02:31]New connection [13:02:31]New thread 3066654052 created [13:02:31]Thread 3066510692 joined [13:02:31]Waiting for new connection... [13:02:31] Sock 10.Parse request [13:02:31]Sock 10.Check first char [13:02:31]Sock 10.First char is OK [13:02:31]request: POST /json_proto HTTP/1.0 [13:02:31]Method: POST [13:02:31]URL: /json_proto [13:02:31]Method is POST - this is cgi request [13:02:31]url: /json_proto [13:02:31]query_string will be loaded in cgi processing [13:02:31]execute_cgi json_proto POST (null) [13:02:31]execute_cgi path=json_proto method=POST [13:02:31]POST find Content-Length [13:02:31]Host: 172.17.50.196:8080 [13:02:31]Content-Length: 964 [13:02:31]Content-Type: application/json [13:02:31] [13:02:31]POST finish read [13:02:31]Found Content-Length = 964 [13:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335518", "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": "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" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:31]execute_script... [13:02: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)335518", "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": "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" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:31]POST & json_proto [13:02:31]process_json_proto [13:02:31]json parsed OK: [13:02:31]protocol is kg_v1.0 [13:02:31]action value=close_receipt [13:02:31]process_action close_receipt [13:02:31]cmd_close_receipt [13:02:31]MH_GetDate [13:02:31]Write to MH i2c: F0 00 00 A9 03 9B [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: F0 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: F0 09 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: F0 09 00 A9 03 00 E8 7F 23 67 72 0D 1C 67 97 [13:02:31]GetLastDocTimeStamp 1730379365 [13:02:31]current date 1730379752 [13:02:31]FM_GetShiftState [13:02:31]SAM_PROTO_GetShiftState [13:02:31]wFMCommunicate request_size=4 [13:02:31]MH_SAM_APDU [13:02:31]CAPDU: 80 13 01 00 [13:02:31]Write to MH i2c: E2 08 00 AA 03 80 13 01 00 00 00 00 00 2A [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:31]Read from MH i2c: E2 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 0E 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 0E 00 AA 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 53 [13:02:31]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:02:31]wFMCommunicate OK [13:02:31]SAM_PROTO_GetShiftState done [13:02:31]FM_GetShiftState done [13:02:31]opened in 1730332621 [13:02:31]opened+sec_in_day 1730419021 [13:02:31]quantity*price = 18000 [13:02:31]sum+1 = 18001 [13:02:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.91 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 137 31.10.2024 13:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139660 ФПД: 191681321028471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130232&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139660&fm=191681321028471&tin=02508201610067®Number=0000000000091631&sum=31000 0 [13:02:32]StoreToDocumentArchive [13:02:32]shift 557 fd 139660 [13:02:32]save to /storage/0557/doc_00139660 [13:02:32]save last doc name /storage/0557/doc_00139660 to /storage/kkm_last_doc_name [13:02:32]save OK [13:02:32]Clear old archive folders... [13:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=411 [13:02:32]tlvbuf is 00A5DF30 [13:02:32]SAM_PROTO_ClearQueue [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 09 00 00 [13:02:32]Write to MH i2c: E2 08 00 B7 03 80 09 00 00 00 00 00 00 2C [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [13:02:32]RAPDU: 90 00 [13:02:32]wFMCommunicate OK [13:02:32]SAM_PROTO_ClearQueue done [13:02:32]KKMCreateOFDPacket [13:02:32]OFDProtocolAddRootSTLVToBuf [13:02:32]FM_MakeSignedData [13:02:32]FM_MakeSignedData [13:02:32]SAM_PROTO_SignData [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 0D 01 02 [13:02:32]Write to MH i2c: E2 08 00 B8 03 80 0D 01 02 00 00 00 00 34 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [13:02:32]RAPDU: 90 00 [13:02:32]wFMCommunicate OK [13:02:32]wFMCommunicate request_size=255 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 0D 02 02 FA 03 00 9B 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 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 [13:02:32]Write to MH i2c: E2 02 01 B9 03 80 0D 02 02 FA 00 03 00 9B 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 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 00 00 7B [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:33]OFD Sender: No OFD packet to send [13:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:33]Read from MH i2c: E2 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 03 00 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [13:02:33]RAPDU: 90 00 [13:02:33]wFMCommunicate OK [13:02:33]wFMCommunicate request_size=170 [13:02:33]MH_SAM_APDU [13:02:33]CAPDU: 80 0D 02 02 A5 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 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 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 89 00 00 00 F4 03 04 00 E8 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AE 55 49 0C CB 77 [13:02:33]Write to MH i2c: E2 AD 00 BA 03 80 0D 02 02 A5 00 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 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 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 89 00 00 00 F4 03 04 00 E8 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AE 55 49 0C CB 77 00 00 D4 [13:02:33]Write i2c OK [13:02:33]MH_I2C_Read... [13:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:33]Read from MH i2c: E2 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 03 00 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [13:02:33]RAPDU: 90 00 [13:02:33]wFMCommunicate OK [13:02:33]wFMCommunicate request_size=4 [13:02:33]MH_SAM_APDU [13:02:33]CAPDU: 80 0D 03 02 [13:02:33]Write to MH i2c: E2 08 00 BB 03 80 0D 03 02 00 00 00 00 39 [13:02:33]Write i2c OK [13:02:33]MH_I2C_Read... [13:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:33]Read from MH i2c: E2 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 0B 00 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 0B 00 BB 03 00 32 5F E6 77 AB D4 1B 81 90 00 43 [13:02:33]RAPDU: 32 5F E6 77 AB D4 1B 81 90 00 [13:02:33]wFMCommunicate OK [13:02:33]SAM_PROTO_SignData done [13:02:33]FM_MakeSignedData done [13:02:33]CreateOFDProtocolMessage [13:02:33]wFMCommunicate request_size=4 [13:02:33]MH_SAM_APDU [13:02:33]CAPDU: 80 11 00 00 [13:02:33]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [13:02:33]Write i2c OK [13:02:33]MH_I2C_Read... [13:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:33]Read from MH i2c: E2 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 17 00 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [13:02: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:02:33]wFMCommunicate OK [13:02:33]CreateOFDProtocolMessage done [13:02:33]OFDSenderStorePacket 139660 [13:02:33]StoreOFDPacket docnum=139660 [13:02: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 AF 01 00 00 77 B9 A7 01 01 DA 5A 03 01 00 03 00 9B 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 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 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 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 89 00 00 00 F4 03 04 00 E8 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AE 55 49 0C CB 77 32 5F E6 77 AB D4 1B 81 [13:02:33]CheckFolder [13:02:33]dirname=/storage/ofd_packets [13:02:33]CheckFolder done [13:02:33]ProducePacketName [13:02:33]name=ofd_packets/00139660 [13:02:33]NVStorageSaveData ofd_packets/00139660 [13:02:33]File name is /storage/ofd_packets/00139660 [13:02:33]Write 461 bytes [13:02:33]NVStorageSaveData done [13:02:33]OFDSenderStorePacket done [13:02:33]KKMCreateOFDPacket done [13:02:33]NVStorageSaveData kkm_last_timestamp [13:02:33]File name is /storage/kkm_last_timestamp [13:02:33]Write 4 bytes [13:02:33]NVStorageSaveData done [13:02:33]ExternCall_PrintAddStr [13:02:33]wPrintStart [13:02:33]Write to MH i2c: 01 00 00 BD 03 C0 [13:02:33]Write i2c OK [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: 01 [13:02:33]MH_I2C_Read... [13:02:33]OFD Sender: Processing packet 139660 [packets to send 34, broken 33] [13:02:33]ProducePacketName [13:02:33]name=ofd_packets/00139660 [13:02:33]OFD Sender: To server: pG, [13:02:33]CommunicateWithHost lk.salyk.kg:30040 [13:02:33]ConnectInit lk.salyk.kg [13:02:33]Read from MH i2c: 01 07 00 [13:02:33]MH_I2C_Read... [13:02:33]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 FF 0F D5 [13:02:33]RasterBufferAndPrint [13:02:33]line Счет N : (3)335518 [13:02:33]line ИНН: 02508201610067 [13:02:33]line Контрольно-Кассовый Чек [13:02:33]line ПРОДАЖА [13:02:33]line Товар: 4870002325113 [13:02:33]line Напиток PEPSI газированный ст 0,25л [13:02:33]line 2.000 * 90.00 [13:02:33]line = 180.00 [13:02:33]line НДС 12% НСП 1% [13:02:33]line > о реализуемом товаре [13:02:33]line Товар: 2000036220012 [13:02:33]line Кофе Капучино XL(GABB TRADE) [13:02:33]line 1.000 * 130.00 [13:02:33]line = 130.00 [13:02:33]line НДС 12% НСП 1% [13:02:33]line > о реализуемом товаре [13:02:33]line ИТОГО: 310.00 [13:02:33]line НСП 1% : 2.74 [13:02:33]line НДС 12% : 32.91 [13:02:33]line Наличными: 310.00 [13:02:33]line Безнал.: 0.00 [13:02:33]line Место: АЗС № 101 "Партнер Нефть" [13:02:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:02:33]line СНО: Общий режим [13:02:33]line Чек 137 31.10.2024 13:02 [13:02:33]line Смена: 557 ФФД: 1.0 [13:02:33]line ЗНМ: 0300000081 [13:02:33]line РНМ: 0000000000091631 [13:02:33]line Версия ККМ: 001 [13:02:33]line ФМ: 0000000000874669 [13:02:33]line ФД: 139660 [13:02:33]line ФПД: 191681321028471 [13:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130232&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139660&fm=191681321028471&tin=02508201610067®Number=0000000000091631&sum=31000 [13:02:33]line 0 [13:02:33]written 0, free lines is 4095 [13:02:33]Connected sock=9 [13:02: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 AF 01 00 00 77 B9 A7 01 01 DA 5A 03 01 00 03 00 9B 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 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 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 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 89 00 00 00 F4 03 04 00 E8 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AE 55 49 0C CB 77 32 5F E6 77 AB D4 1B 81 [13:02: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 F5 5D 47 00 92 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 21 02 00 F4 03 04 00 96 2B 23 67 B6 04 01 00 00 B3 8D CF 60 52 63 52 D4 [13:02:34]CommunicateWithHost err = 0 [13:02:34]CheckOFDResponse [13:02:34]1017 (14) - 77093643461234 [13:02:34]1041 (16) - 0000000000874669 [13:02:34]1040 (4) - 139660 [13:02:34]1012 (4) - 31.10.2024 07:02 [13:02:34]1206 (1) - 0 [13:02:34]OFD Sender: Remove packet 139660 [13:02:34]ProducePacketName [13:02:34]name=ofd_packets/00139660 [13:02:34]NVStorageDeleteData [13:02:34]Write to MH i2c: 01 00 00 ED 03 F0 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: 01 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: 01 07 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 95 0C 98 [13:02:34]RasterBufferAndPrint [13:02:34]line [13:02:34]line [13:02:34]line [13:02:34]line [13:02:34]line [13:02:34]written 0, free lines is 3228 [13:02:34]MH_Cut [13:02:34]Write to MH i2c: D1 01 00 F4 03 01 C9 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: D1 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: D1 01 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: D1 01 00 F4 03 00 C8 [13:02:34]Write to MH i2c: 01 00 00 F5 03 F8 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]OFD Sender: No OFD packet to send [13:02:35]*** Cut start [13:02:35]*** Partial cut [13:02:35]*** CUTSNS_PIN = 1 [13:02:35]*** CUTSNS_PIN = 0 [13:02:35]*** Brake cut motor [13:02:35]Read from MH i2c: 01 [13:02:35]MH_I2C_Read... [13:02:35]*** Stop cut motor [13:02:35]*** Cut end [13:02:35]Read from MH i2c: 01 07 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [13:02:35]process_action close_receipt done [13:02:35]requested_data is exist [13:02:35]produce_requested_data [13:02:35]requested_item fm.sn is exist - process it [13:02:35]wFMCommunicate request_size=4 [13:02:35]MH_SAM_APDU [13:02:35]CAPDU: 80 11 00 00 [13:02:35]Write to MH i2c: E2 08 00 F6 03 80 11 00 00 00 00 00 00 73 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:35]Read from MH i2c: E2 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 17 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 17 00 F6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [13:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:02:35]wFMCommunicate OK [13:02:35]requested_item fd.num is exist - process it [13:02:35]SAM_PROTO_GetFieldsCounters [13:02:35]wFMCommunicate request_size=4 [13:02:35]MH_SAM_APDU [13:02:35]CAPDU: 80 13 00 00 [13:02:35]Write to MH i2c: E2 08 00 F7 03 80 13 00 00 00 00 00 00 76 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:35]Read from MH i2c: E2 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 62 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 62 00 F7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 13 [13:02: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 8C 21 02 00 0E 04 04 00 2D 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 [13:02:35]wFMCommunicate OK [13:02:35]SAM_PROTO_GetFieldsCounters done [13:02:35]requested_item shift.num is exist - process it [13:02:35]requested_item shift.opened is exist - process it [13:02:35]req_shift_opened [13:02:35]FM_GetShiftState [13:02:35]SAM_PROTO_GetShiftState [13:02:35]wFMCommunicate request_size=4 [13:02:35]MH_SAM_APDU [13:02:35]CAPDU: 80 13 01 00 [13:02:35]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:35]Read from MH i2c: E2 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [13:02:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:02:35]wFMCommunicate OK [13:02:35]SAM_PROTO_GetShiftState done [13:02:35]FM_GetShiftState done [13:02:35]req_shift_opened done [13:02:35]requested_item shift.open_date is exist - process it [13:02:35]req_shift_open_date [13:02:35]req_shift_open_date done [13:02:35]produce_requested_data done [13:02:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139660,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:02:35]process_action_free close_receipt [13:02:35]json_value_free [13:02:35]json_value_free done [13:02:35]process_json_proto returns [13:02:35]Send response to host [13:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139660,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:02:35]free response buf [13:02:35]execute_script done [13:02:35]execute_script returns [13:02:35]free content buf [13:02:35]Sock 10.Close socket [13:02:35]Sock 10.Thread stoped [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:48]accept exits with 7 [13:02:48]New connection [13:02:48]New thread 3066510692 created [13:02:48]Thread 3066654052 joined [13:02:48]Waiting for new connection... [13:02:48] Sock 7.Parse request [13:02:48]Sock 7.Check first char [13:02:48]Sock 7.First char is OK [13:02:48]request: POST /json_proto HTTP/1.0 [13:02:48]Method: POST [13:02:48]URL: /json_proto [13:02:48]Method is POST - this is cgi request [13:02:48]url: /json_proto [13:02:48]query_string will be loaded in cgi processing [13:02:48]execute_cgi json_proto POST (null) [13:02:48]execute_cgi path=json_proto method=POST [13:02:48]POST find Content-Length [13:02:48]Host: 172.17.50.196:8080 [13:02:48]Content-Length: 711 [13:02:48]Content-Type: application/json [13:02:48] [13:02:48]POST finish read [13:02:48]Found Content-Length = 711 [13:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335519", "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 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:48]execute_script... [13:02: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)335519", "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 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:48]POST & json_proto [13:02:48]process_json_proto [13:02:48]json parsed OK: [13:02:48]protocol is kg_v1.0 [13:02:48]action value=close_receipt [13:02:48]process_action close_receipt [13:02:48]cmd_close_receipt [13:02:48]MH_GetDate [13:02:48]Write to MH i2c: F0 00 00 F9 03 EB [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: F0 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: F0 09 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: F0 09 00 F9 03 00 F9 7F 23 67 72 0D 1C 67 F8 [13:02:48]GetLastDocTimeStamp 1730379752 [13:02:48]current date 1730379769 [13:02:48]FM_GetShiftState [13:02:48]SAM_PROTO_GetShiftState [13:02:48]wFMCommunicate request_size=4 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 13 01 00 [13:02:48]Write to MH i2c: E2 08 00 FA 03 80 13 01 00 00 00 00 00 7A [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 0E 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 0E 00 FA 03 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A3 [13:02:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:02:48]wFMCommunicate OK [13:02:48]SAM_PROTO_GetShiftState done [13:02:48]FM_GetShiftState done [13:02:48]opened in 1730332621 [13:02:48]opened+sec_in_day 1730419021 [13:02:48]quantity*price = 10400 [13:02:48]sum+1 = 10401 [13:02:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 138 31.10.2024 13:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139661 ФПД: 83757193777404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130249&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139661&fm=83757193777404&tin=02508201610067®Number=0000000000091631&sum=10400 0 [13:02:49]StoreToDocumentArchive [13:02:49]shift 557 fd 139661 [13:02:49]save to /storage/0557/doc_00139661 [13:02:49]save last doc name /storage/0557/doc_00139661 to /storage/kkm_last_doc_name [13:02:49]save OK [13:02:49]Clear old archive folders... [13:02:49]OFD Sender: No OFD packet to send [13:02:49]ProcessDocumentItem done err = 0, tmpTLVsize=303 [13:02:49]tlvbuf is 00ADA5F0 [13:02:49]SAM_PROTO_ClearQueue [13:02:49]wFMCommunicate request_size=4 [13:02:49]MH_SAM_APDU [13:02:49]CAPDU: 80 09 00 00 [13:02:49]Write to MH i2c: E2 08 00 07 04 80 09 00 00 00 00 00 00 7D [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:49]Read from MH i2c: E2 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 03 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [13:02:49]RAPDU: 90 00 [13:02:49]wFMCommunicate OK [13:02:49]SAM_PROTO_ClearQueue done [13:02:49]KKMCreateOFDPacket [13:02:49]OFDProtocolAddRootSTLVToBuf [13:02:49]FM_MakeSignedData [13:02:49]FM_MakeSignedData [13:02:49]SAM_PROTO_SignData [13:02:49]wFMCommunicate request_size=4 [13:02:49]MH_SAM_APDU [13:02:49]CAPDU: 80 0D 01 02 [13:02:49]Write to MH i2c: E2 08 00 08 04 80 0D 01 02 00 00 00 00 85 [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:49]Read from MH i2c: E2 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 03 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [13:02:49]RAPDU: 90 00 [13:02:49]wFMCommunicate OK [13:02:49]wFMCommunicate request_size=255 [13:02:49]MH_SAM_APDU [13:02:49]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F9 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D [13:02:49]Write to MH i2c: E2 02 01 09 04 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F9 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 00 00 83 [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [13:02:50]RAPDU: 90 00 [13:02:50]wFMCommunicate OK [13:02:50]wFMCommunicate request_size=62 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C 2D 3D C8 50 FC [13:02:50]Write to MH i2c: E2 41 00 0A 04 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C 2D 3D C8 50 FC 00 00 40 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [13:02:50]RAPDU: 90 00 [13:02:50]wFMCommunicate OK [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 0D 03 02 [13:02:50]Write to MH i2c: E2 08 00 0B 04 80 0D 03 02 00 00 00 00 8A [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0B 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0B 00 0B 04 00 62 14 0A 09 5E D8 15 95 90 00 F4 [13:02:50]RAPDU: 62 14 0A 09 5E D8 15 95 90 00 [13:02:50]wFMCommunicate OK [13:02:50]SAM_PROTO_SignData done [13:02:50]FM_MakeSignedData done [13:02:50]CreateOFDProtocolMessage [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 11 00 00 [13:02:50]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E5 [13:02: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:02:50]wFMCommunicate OK [13:02:50]CreateOFDProtocolMessage done [13:02:50]OFDSenderStorePacket 139661 [13:02:50]StoreOFDPacket docnum=139661 [13:02: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 43 01 00 00 F7 0E 3B 01 0B 81 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F9 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C 2D 3D C8 50 FC 62 14 0A 09 5E D8 15 95 [13:02:50]CheckFolder [13:02:50]dirname=/storage/ofd_packets [13:02:50]CheckFolder done [13:02:50]ProducePacketName [13:02:50]name=ofd_packets/00139661 [13:02:50]NVStorageSaveData ofd_packets/00139661 [13:02:50]File name is /storage/ofd_packets/00139661 [13:02:50]Write 353 bytes [13:02:50]NVStorageSaveData done [13:02:50]OFDSenderStorePacket done [13:02:50]KKMCreateOFDPacket done [13:02:50]NVStorageSaveData kkm_last_timestamp [13:02:50]File name is /storage/kkm_last_timestamp [13:02:50]Write 4 bytes [13:02:50]NVStorageSaveData done [13:02:50]ExternCall_PrintAddStr [13:02:50]wPrintStart [13:02:50]Write to MH i2c: 01 00 00 0D 04 11 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [13:02:50]RasterBufferAndPrint [13:02:50]line Счет N : (3)335519 [13:02:50]line ИНН: 02508201610067 [13:02:50]line Контрольно-Кассовый Чек [13:02:50]line ПРОДАЖА [13:02:50]line Товар: 4870202521216 [13:02:50]line Напиток MAXI чай 1,2 зел.лимон (новый) [13:02:50]line 1.000 * 104.00 [13:02:50]line = 104.00 [13:02:50]line НДС 12% НСП 1% [13:02:50]line > о реализуемом товаре [13:02:50]line ИТОГО: 104.00 [13:02:50]line НСП 1% : 0.92 [13:02:50]line НДС 12% : 11.04 [13:02:50]line Наличными: 104.00 [13:02:50]line Безнал.: 0.00 [13:02:50]line Место: АЗС № 101 "Партнер Нефть" [13:02:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:02:50]line СНО: Общий режим [13:02:50]line Чек 138 31.10.2024 13:02 [13:02:50]line Смена: 557 ФФД: 1.0 [13:02:50]line ЗНМ: 0300000081 [13:02:50]line РНМ: 0000000000091631 [13:02:50]line Версия ККМ: 001 [13:02:50]line ФМ: 0000000000874669 [13:02:50]line ФД: 139661 [13:02:50]line ФПД: 83757193777404 [13:02:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130249&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139661&fm=83757193777404&tin=02508201610067®Number=0000000000091631&sum=10400 [13:02:50]line 0 [13:02:50]OFD Sender: Processing packet 139661 [packets to send 34, broken 33] [13:02:50]ProducePacketName [13:02:50]name=ofd_packets/00139661 [13:02:50]OFD Sender: To server: pG, [13:02:50]CommunicateWithHost lk.salyk.kg:30040 [13:02:50]ConnectInit lk.salyk.kg [13:02:50]written 0, free lines is 4095 [13:02:50]Connected sock=10 [13:02: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 43 01 00 00 F7 0E 3B 01 0B 81 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 F9 7F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C 2D 3D C8 50 FC 62 14 0A 09 5E D8 15 95 [13:02: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 FC B0 47 00 19 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 21 02 00 F4 03 04 00 A6 2B 23 67 B6 04 01 00 00 41 2E D7 63 AA 87 05 22 [13:02:50]CommunicateWithHost err = 0 [13:02:50]CheckOFDResponse [13:02:50]1017 (14) - 77093643461234 [13:02:50]1041 (16) - 0000000000874669 [13:02:50]1040 (4) - 139661 [13:02:50]1012 (4) - 31.10.2024 07:03 [13:02:50]1206 (1) - 0 [13:02:50]OFD Sender: Remove packet 139661 [13:02:50]ProducePacketName [13:02:50]name=ofd_packets/00139661 [13:02:50]NVStorageDeleteData [13:02:50]Write to MH i2c: 01 00 00 36 04 3A [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FE 0C 4B [13:02:50]RasterBufferAndPrint [13:02:50]line [13:02:50]line [13:02:50]line [13:02:50]line [13:02:50]line [13:02:50]written 0, free lines is 3334 [13:02:50]MH_Cut [13:02:50]Write to MH i2c: D1 01 00 3D 04 01 13 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: D1 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: D1 01 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: D1 01 00 3D 04 00 12 [13:02:50]Write to MH i2c: 01 00 00 3E 04 42 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:51]OFD Sender: No OFD packet to send [13:02:51]*** Cut start [13:02:51]*** Partial cut [13:02:51]*** CUTSNS_PIN = 1 [13:02:51]*** CUTSNS_PIN = 0 [13:02:51]*** Brake cut motor [13:02:52]Read from MH i2c: 01 [13:02:52]MH_I2C_Read... [13:02:52]*** Stop cut motor [13:02:52]*** Cut end [13:02:52]Read from MH i2c: 01 07 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 07 00 3E 04 00 00 00 00 00 FF 0F 57 [13:02:52]process_action close_receipt done [13:02:52]requested_data is exist [13:02:52]produce_requested_data [13:02:52]requested_item fm.sn is exist - process it [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 11 00 00 [13:02:52]Write to MH i2c: E2 08 00 3F 04 80 11 00 00 00 00 00 00 BD [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 17 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 17 00 3F 04 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:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:02:52]wFMCommunicate OK [13:02:52]requested_item fd.num is exist - process it [13:02:52]SAM_PROTO_GetFieldsCounters [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 13 00 00 [13:02:52]Write to MH i2c: E2 08 00 40 04 80 13 00 00 00 00 00 00 C0 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 62 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 62 00 40 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 61 [13:02: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 8D 21 02 00 0E 04 04 00 2D 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:02:52]wFMCommunicate OK [13:02:52]SAM_PROTO_GetFieldsCounters done [13:02:52]requested_item shift.num is exist - process it [13:02:52]requested_item shift.opened is exist - process it [13:02:52]req_shift_opened [13:02:52]FM_GetShiftState [13:02:52]SAM_PROTO_GetShiftState [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 13 01 00 [13:02:52]Write to MH i2c: E2 08 00 41 04 80 13 01 00 00 00 00 00 C2 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 0E 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 0E 00 41 04 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EB [13:02:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:02:52]wFMCommunicate OK [13:02:52]SAM_PROTO_GetShiftState done [13:02:52]FM_GetShiftState done [13:02:52]req_shift_opened done [13:02:52]requested_item shift.open_date is exist - process it [13:02:52]req_shift_open_date [13:02:52]req_shift_open_date done [13:02:52]produce_requested_data done [13:02:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139661,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:02:52]process_action_free close_receipt [13:02:52]json_value_free [13:02:52]json_value_free done [13:02:52]process_json_proto returns [13:02:52]Send response to host [13:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139661,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:02:52]free response buf [13:02:52]execute_script done [13:02:52]execute_script returns [13:02:52]free content buf [13:02:52]Sock 7.Close socket [13:02:52]Sock 7.Thread stoped [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:55]accept exits with 9 [13:05:55]New connection [13:05:55]New thread 3066654052 created [13:05:55]Thread 3066510692 joined [13:05:55]Waiting for new connection... [13:05:55] Sock 9.Parse request [13:05:55]Sock 9.Check first char [13:05:55]Sock 9.First char is OK [13:05:55]request: POST /json_proto HTTP/1.0 [13:05:55]Method: POST [13:05:55]URL: /json_proto [13:05:55]Method is POST - this is cgi request [13:05:55]url: /json_proto [13:05:55]query_string will be loaded in cgi processing [13:05:55]execute_cgi json_proto POST (null) [13:05:55]execute_cgi path=json_proto method=POST [13:05:55]POST find Content-Length [13:05:55]Host: 172.17.50.196:8080 [13:05:55]Content-Length: 686 [13:05:55]Content-Type: application/json [13:05:55] [13:05:55]POST finish read [13:05:55]Found Content-Length = 686 [13:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095170", "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" ] } } [13:05:55]execute_script... [13:05: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)1095170", "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" ] } } [13:05:55]POST & json_proto [13:05:55]process_json_proto [13:05:55]json parsed OK: [13:05:55]protocol is kg_v1.0 [13:05:55]action value=close_receipt [13:05:55]process_action close_receipt [13:05:55]cmd_close_receipt [13:05:55]MH_GetDate [13:05:55]Write to MH i2c: F0 00 00 42 04 35 [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: F0 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: F0 09 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: F0 09 00 42 04 00 B3 80 23 67 72 0D 1C 67 FD [13:05:55]GetLastDocTimeStamp 1730379769 [13:05:55]current date 1730379955 [13:05:55]FM_GetShiftState [13:05:55]SAM_PROTO_GetShiftState [13:05:55]wFMCommunicate request_size=4 [13:05:55]MH_SAM_APDU [13:05:55]CAPDU: 80 13 01 00 [13:05:55]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0E 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 ED [13:05:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:05:55]wFMCommunicate OK [13:05:55]SAM_PROTO_GetShiftState done [13:05:55]FM_GetShiftState done [13:05:55]opened in 1730332621 [13:05:55]opened+sec_in_day 1730419021 [13:05:55]quantity*price = 200002 [13:05:55]sum+1 = 200004 [13:05:55]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 СНО: Общий режим Чек 139 31.10.2024 13:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139662 ФПД: 70992592061300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139662&fm=70992592061300&tin=02508201610067®Number=0000000000091631&sum=200000 [13:05:56]StoreToDocumentArchive [13:05:56]shift 557 fd 139662 [13:05:56]save to /storage/0557/doc_00139662 [13:05:56]save last doc name /storage/0557/doc_00139662 to /storage/kkm_last_doc_name [13:05:56]save OK [13:05:56]Clear old archive folders... [13:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:05:56]tlvbuf is 00A7D190 [13:05:56]SAM_PROTO_ClearQueue [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 09 00 00 [13:05:56]Write to MH i2c: E2 08 00 50 04 80 09 00 00 00 00 00 00 C6 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]SAM_PROTO_ClearQueue done [13:05:56]KKMCreateOFDPacket [13:05:56]OFDProtocolAddRootSTLVToBuf [13:05:56]FM_MakeSignedData [13:05:56]FM_MakeSignedData [13:05:56]SAM_PROTO_SignData [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 0D 01 02 [13:05:56]Write to MH i2c: E2 08 00 51 04 80 0D 01 02 00 00 00 00 CE [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]wFMCommunicate request_size=255 [13:05:56]MH_SAM_APDU [13:05:56]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 8B 00 00 00 F4 03 04 00 B3 80 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 40 91 [13:05:56]Write to MH i2c: E2 02 01 52 04 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 8B 00 00 00 F4 03 04 00 B3 80 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 40 91 00 00 72 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]OFD Sender: No OFD packet to send [13:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]wFMCommunicate request_size=9 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 0D 02 02 04 40 3B 43 74 [13:05:56]Write to MH i2c: E2 0C 00 53 04 80 0D 02 02 04 00 40 3B 43 74 00 00 0B [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 0D 03 02 [13:05:56]Write to MH i2c: E2 08 00 54 04 80 0D 03 02 00 00 00 00 D3 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 0B 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 0B 00 54 04 00 C3 87 98 86 3F 07 30 EF 90 00 A1 [13:05:56]RAPDU: C3 87 98 86 3F 07 30 EF 90 00 [13:05:56]wFMCommunicate OK [13:05:56]SAM_PROTO_SignData done [13:05:56]FM_MakeSignedData done [13:05:56]CreateOFDProtocolMessage [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 11 00 00 [13:05:56]Write to MH i2c: E2 08 00 55 04 80 11 00 00 00 00 00 00 D3 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 17 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 17 00 55 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [13:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:05:56]wFMCommunicate OK [13:05:56]CreateOFDProtocolMessage done [13:05:56]OFDSenderStorePacket 139662 [13:05:56]StoreOFDPacket docnum=139662 [13:05: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 0E 01 00 00 C2 E3 06 01 7C AD 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 8B 00 00 00 F4 03 04 00 B3 80 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 40 91 40 3B 43 74 C3 87 98 86 3F 07 30 EF [13:05:56]CheckFolder [13:05:56]dirname=/storage/ofd_packets [13:05:56]CheckFolder done [13:05:56]ProducePacketName [13:05:56]name=ofd_packets/00139662 [13:05:56]NVStorageSaveData ofd_packets/00139662 [13:05:56]File name is /storage/ofd_packets/00139662 [13:05:56]Write 300 bytes [13:05:56]NVStorageSaveData done [13:05:56]OFDSenderStorePacket done [13:05:56]KKMCreateOFDPacket done [13:05:56]NVStorageSaveData kkm_last_timestamp [13:05:56]File name is /storage/kkm_last_timestamp [13:05:56]Write 4 bytes [13:05:56]NVStorageSaveData done [13:05:56]ExternCall_PrintAddStr [13:05:56]wPrintStart [13:05:56]Write to MH i2c: 01 00 00 56 04 5A [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: 01 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: 01 07 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FF 0F 6F [13:05:56]RasterBufferAndPrint [13:05:56]line Счет N : (1)1095170 [13:05:56]line ИНН: 02508201610067 [13:05:56]line Контрольно-Кассовый Чек [13:05:56]line ПРОДАЖА [13:05:56]line ТРК (МРК, ГНК) : 81 [13:05:56]line Товар: 2711190000 [13:05:56]line ГАЗ-К-5 [13:05:56]line 52.220 * 38.30 [13:05:56]line = 2000.03 [13:05:56]line НДС 12% НСП 1% [13:05:56]line > о реализуемом товаре [13:05:56]line ОКРУГЛЕНИЕ: -0.03 [13:05:56]line ИТОГО: 2000.00 [13:05:56]line Внесено: 2000.00 [13:05:56]line СДАЧА: 0.00 [13:05:56]line НСП 1% : 17.70 [13:05:56]line НДС 12% : 212.39 [13:05:56]line Наличными: 2000.00 [13:05:56]line Безнал.: 0.00 [13:05:56]line Место: АЗС № 101 "Партнер Нефть" [13:05:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:05:56]line СНО: Общий режим [13:05:56]line Чек 139 31.10.2024 13:05 [13:05:56]line Смена: 557 ФФД: 1.0 [13:05:56]line ЗНМ: 0300000081 [13:05:56]line РНМ: 0000000000091631 [13:05:56]line Версия ККМ: 001 [13:05:56]line ФМ: 0000000000874669 [13:05:56]line ФД: 139662 [13:05:56]line ФПД: 70992592061300 [13:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T130555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139662&fm=70992592061300&tin=02508201610067®Number=0000000000091631&sum=200000 [13:05:57]OFD Sender: Processing packet 139662 [packets to send 34, broken 33] [13:05:57]ProducePacketName [13:05:57]name=ofd_packets/00139662 [13:05:57]OFD Sender: To server: pG, [13:05:57]CommunicateWithHost lk.salyk.kg:30040 [13:05:57]ConnectInit lk.salyk.kg [13:05:57]written 0, free lines is 4095 [13:05:57]Connected sock=11 [13:05: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 0E 01 00 00 C2 E3 06 01 7C AD 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 8B 00 00 00 F4 03 04 00 B3 80 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 40 91 40 3B 43 74 C3 87 98 86 3F 07 30 EF [13:05: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 AD 82 47 00 71 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 21 02 00 F4 03 04 00 61 2C 23 67 B6 04 01 00 00 92 3D B8 19 AB D7 68 1E [13:05:57]CommunicateWithHost err = 0 [13:05:57]CheckOFDResponse [13:05:57]1017 (14) - 77093643461234 [13:05:57]1041 (16) - 0000000000874669 [13:05:57]1040 (4) - 139662 [13:05:57]1012 (4) - 31.10.2024 07:06 [13:05:57]1206 (1) - 0 [13:05:57]OFD Sender: Remove packet 139662 [13:05:57]ProducePacketName [13:05:57]name=ofd_packets/00139662 [13:05:57]NVStorageDeleteData [13:05:57]Write to MH i2c: 01 00 00 81 04 85 [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 07 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 07 00 81 04 00 00 00 00 00 ED 0C 85 [13:05:57]RasterBufferAndPrint [13:05:57]line [13:05:57]line [13:05:57]line [13:05:57]line [13:05:57]line [13:05:57]written 0, free lines is 3315 [13:05:57]MH_Cut [13:05:57]Write to MH i2c: D1 01 00 88 04 01 5E [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: D1 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: D1 01 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: D1 01 00 88 04 00 5D [13:05:57]Write to MH i2c: 01 00 00 89 04 8D [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]OFD Sender: No OFD packet to send [13:05:58]*** Cut start [13:05:58]*** Partial cut [13:05:58]*** CUTSNS_PIN = 1 [13:05:58]*** CUTSNS_PIN = 0 [13:05:58]*** Brake cut motor [13:05:58]Read from MH i2c: 01 [13:05:58]MH_I2C_Read... [13:05:58]*** Stop cut motor [13:05:58]*** Cut end [13:05:58]Read from MH i2c: 01 07 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 FF 0F A2 [13:05:58]process_action close_receipt done [13:05:58]requested_data is exist [13:05:58]produce_requested_data [13:05:58]requested_item fm.sn is exist - process it [13:05:58]wFMCommunicate request_size=4 [13:05:58]MH_SAM_APDU [13:05:58]CAPDU: 80 11 00 00 [13:05:58]Write to MH i2c: E2 08 00 8A 04 80 11 00 00 00 00 00 00 08 [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:58]Read from MH i2c: E2 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: E2 17 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: E2 17 00 8A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [13:05: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:05:58]wFMCommunicate OK [13:05:58]requested_item fd.num is exist - process it [13:05:58]SAM_PROTO_GetFieldsCounters [13:05:58]wFMCommunicate request_size=4 [13:05:58]MH_SAM_APDU [13:05:58]CAPDU: 80 13 00 00 [13:05:58]Write to MH i2c: E2 08 00 8B 04 80 13 00 00 00 00 00 00 0B [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:59]Read from MH i2c: E2 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 62 00 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 62 00 8B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 B0 [13:05: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 8E 21 02 00 0E 04 04 00 2D 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:05:59]wFMCommunicate OK [13:05:59]SAM_PROTO_GetFieldsCounters done [13:05:59]requested_item shift.num is exist - process it [13:05:59]requested_item shift.opened is exist - process it [13:05:59]req_shift_opened [13:05:59]FM_GetShiftState [13:05:59]SAM_PROTO_GetShiftState [13:05:59]wFMCommunicate request_size=4 [13:05:59]MH_SAM_APDU [13:05:59]CAPDU: 80 13 01 00 [13:05:59]Write to MH i2c: E2 08 00 8C 04 80 13 01 00 00 00 00 00 0D [13:05:59]Write i2c OK [13:05:59]MH_I2C_Read... [13:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:59]Read from MH i2c: E2 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 0E 00 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 0E 00 8C 04 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 36 [13:05:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:05:59]wFMCommunicate OK [13:05:59]SAM_PROTO_GetShiftState done [13:05:59]FM_GetShiftState done [13:05:59]req_shift_opened done [13:05:59]requested_item shift.open_date is exist - process it [13:05:59]req_shift_open_date [13:05:59]req_shift_open_date done [13:05:59]produce_requested_data done [13:05:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139662,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:05:59]process_action_free close_receipt [13:05:59]json_value_free [13:05:59]json_value_free done [13:05:59]process_json_proto returns [13:05:59]Send response to host [13:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139662,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:05:59]free response buf [13:05:59]execute_script done [13:05:59]execute_script returns [13:05:59]free content buf [13:05:59]Sock 9.Close socket [13:05:59]Sock 9.Thread stoped [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06: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:45]accept exits with 7 [13:15:45]New connection [13:15:45]New thread 3066510692 created [13:15:45]Thread 3066654052 joined [13:15:45]Waiting for new connection... [13:15:45] Sock 7.Parse request [13:15:45]Sock 7.Check first char [13:15:45]Sock 7.First char is OK [13:15:45]request: POST /json_proto HTTP/1.0 [13:15:45]Method: POST [13:15:45]URL: /json_proto [13:15:45]Method is POST - this is cgi request [13:15:45]url: /json_proto [13:15:45]query_string will be loaded in cgi processing [13:15:45]execute_cgi json_proto POST (null) [13:15:45]execute_cgi path=json_proto method=POST [13:15:45]POST find Content-Length [13:15:45]Host: 172.17.50.196:8080 [13:15:45]Content-Length: 613 [13:15:45]Content-Type: application/json [13:15:45] [13:15:45]POST finish read [13:15:45]Found Content-Length = 613 [13:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335520", "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" ] } } [13:15:45]execute_script... [13:15:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335520", "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" ] } } [13:15:45]POST & json_proto [13:15:45]process_json_proto [13:15:45]json parsed OK: [13:15:45]protocol is kg_v1.0 [13:15:45]action value=close_receipt [13:15:45]process_action close_receipt [13:15:45]cmd_close_receipt [13:15:45]MH_GetDate [13:15:45]Write to MH i2c: F0 00 00 8D 04 80 [13:15:45]Write i2c OK [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: F0 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: F0 09 00 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: F0 09 00 8D 04 00 02 83 23 67 72 0D 1C 67 9A [13:15:45]GetLastDocTimeStamp 1730379955 [13:15:45]current date 1730380546 [13:15:45]FM_GetShiftState [13:15:45]SAM_PROTO_GetShiftState [13:15:45]wFMCommunicate request_size=4 [13:15:45]MH_SAM_APDU [13:15:45]CAPDU: 80 13 01 00 [13:15:45]Write to MH i2c: E2 08 00 8E 04 80 13 01 00 00 00 00 00 0F [13:15:45]Write i2c OK [13:15:45]MH_I2C_Read... [13:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:45]Read from MH i2c: E2 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 0E 00 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 0E 00 8E 04 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 38 [13:15:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:15:45]wFMCommunicate OK [13:15:45]SAM_PROTO_GetShiftState done [13:15:45]FM_GetShiftState done [13:15:45]opened in 1730332621 [13:15:45]opened+sec_in_day 1730419021 [13:15:45]quantity*price = 15900 [13:15:45]sum+1 = 15901 [13:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 140 31.10.2024 13:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139663 ФПД: 32886342451252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131546&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139663&fm=32886342451252&tin=02508201610067®Number=0000000000091631&sum=15900 0 [13:15:46]StoreToDocumentArchive [13:15:46]shift 557 fd 139663 [13:15:46]save to /storage/0557/doc_00139663 [13:15:46]save last doc name /storage/0557/doc_00139663 to /storage/kkm_last_doc_name [13:15:46]save OK [13:15:46]Clear old archive folders... [13:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=265 [13:15:46]tlvbuf is 009F84F0 [13:15:46]SAM_PROTO_ClearQueue [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 09 00 00 [13:15:46]Write to MH i2c: E2 08 00 9B 04 80 09 00 00 00 00 00 00 11 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [13:15:46]RAPDU: 90 00 [13:15:46]wFMCommunicate OK [13:15:46]SAM_PROTO_ClearQueue done [13:15:46]KKMCreateOFDPacket [13:15:46]OFDProtocolAddRootSTLVToBuf [13:15:46]FM_MakeSignedData [13:15:46]FM_MakeSignedData [13:15:46]SAM_PROTO_SignData [13:15:46]wFMCommunicate request_size=4 [13:15:46]MH_SAM_APDU [13:15:46]CAPDU: 80 0D 01 02 [13:15:46]Write to MH i2c: E2 08 00 9C 04 80 0D 01 02 00 00 00 00 19 [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:46]Read from MH i2c: E2 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 [13:15:46]MH_I2C_Read... [13:15:46]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [13:15:46]RAPDU: 90 00 [13:15:46]wFMCommunicate OK [13:15:46]wFMCommunicate request_size=255 [13:15:46]MH_SAM_APDU [13:15: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 8C 00 00 00 F4 03 04 00 02 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [13:15:46]Write to MH i2c: E2 02 01 9D 04 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 8C 00 00 00 F4 03 04 00 02 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 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 0F [13:15:46]Write i2c OK [13:15:46]MH_I2C_Read... [13:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:47]Read from MH i2c: E2 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 03 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 03 00 9D 04 00 90 00 15 [13:15:47]RAPDU: 90 00 [13:15:47]wFMCommunicate OK [13:15:47]wFMCommunicate request_size=24 [13:15:47]MH_SAM_APDU [13:15:47]CAPDU: 80 0D 02 02 13 39 10 04 04 00 8F 21 02 00 35 04 06 00 1D E8 F2 C2 80 34 [13:15:47]Write to MH i2c: E2 1B 00 9E 04 80 0D 02 02 13 00 39 10 04 04 00 8F 21 02 00 35 04 06 00 1D E8 F2 C2 80 34 00 00 F1 [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:47]Read from MH i2c: E2 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 03 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 03 00 9E 04 00 90 00 16 [13:15:47]RAPDU: 90 00 [13:15:47]wFMCommunicate OK [13:15:47]wFMCommunicate request_size=4 [13:15:47]MH_SAM_APDU [13:15:47]CAPDU: 80 0D 03 02 [13:15:47]Write to MH i2c: E2 08 00 9F 04 80 0D 03 02 00 00 00 00 1E [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:47]Read from MH i2c: E2 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 0B 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 0B 00 9F 04 00 78 92 CF A8 86 BC 4B 7C 90 00 A9 [13:15:47]RAPDU: 78 92 CF A8 86 BC 4B 7C 90 00 [13:15:47]wFMCommunicate OK [13:15:47]SAM_PROTO_SignData done [13:15:47]FM_MakeSignedData done [13:15:47]CreateOFDProtocolMessage [13:15:47]wFMCommunicate request_size=4 [13:15:47]MH_SAM_APDU [13:15:47]CAPDU: 80 11 00 00 [13:15:47]Write to MH i2c: E2 08 00 A0 04 80 11 00 00 00 00 00 00 1E [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:47]Read from MH i2c: E2 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 17 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 17 00 A0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [13:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:15:47]wFMCommunicate OK [13:15:47]CreateOFDProtocolMessage done [13:15:47]OFDSenderStorePacket 139663 [13:15:47]StoreOFDPacket docnum=139663 [13:15: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 1D 01 00 00 3A 8A 15 01 B1 31 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 8C 00 00 00 F4 03 04 00 02 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1D E8 F2 C2 80 34 78 92 CF A8 86 BC 4B 7C [13:15:47]CheckFolder [13:15:47]dirname=/storage/ofd_packets [13:15:47]CheckFolder done [13:15:47]ProducePacketName [13:15:47]name=ofd_packets/00139663 [13:15:47]NVStorageSaveData ofd_packets/00139663 [13:15:47]File name is /storage/ofd_packets/00139663 [13:15:47]Write 315 bytes [13:15:47]NVStorageSaveData done [13:15:47]OFDSenderStorePacket done [13:15:47]KKMCreateOFDPacket done [13:15:47]NVStorageSaveData kkm_last_timestamp [13:15:47]File name is /storage/kkm_last_timestamp [13:15:47]Write 4 bytes [13:15:47]NVStorageSaveData done [13:15:47]ExternCall_PrintAddStr [13:15:47]wPrintStart [13:15:47]Write to MH i2c: 01 00 00 A1 04 A5 [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 07 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 07 00 A1 04 00 00 00 00 00 FF 0F BA [13:15:47]RasterBufferAndPrint [13:15:47]line Счет N : (3)335520 [13:15:47]line ИНН: 02508201610067 [13:15:47]line Контрольно-Кассовый Чек [13:15:47]line ПРОДАЖА [13:15:47]line Товар: 47803152 [13:15:47]line Сигареты Mevius Revo [13:15:47]line 1.000 * 159.00 [13:15:47]line = 159.00 [13:15:47]line НДС 12% НСП 1% [13:15:47]line > о реализуемом товаре [13:15:47]line ИТОГО: 159.00 [13:15:47]line НСП 1% : 1.41 [13:15:47]line НДС 12% : 16.88 [13:15:47]line Наличными: 159.00 [13:15:47]line Безнал.: 0.00 [13:15:47]line Место: АЗС № 101 "Партнер Нефть" [13:15:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:15:47]line СНО: Общий режим [13:15:47]line Чек 140 31.10.2024 13:15 [13:15:47]line Смена: 557 ФФД: 1.0 [13:15:47]line ЗНМ: 0300000081 [13:15:47]line РНМ: 0000000000091631 [13:15:47]line Версия ККМ: 001 [13:15:47]line ФМ: 0000000000874669 [13:15:47]line ФД: 139663 [13:15:47]line ФПД: 32886342451252 [13:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131546&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139663&fm=32886342451252&tin=02508201610067®Number=0000000000091631&sum=15900 [13:15:47]line 0 [13:15:47]OFD Sender: Processing packet 139663 [packets to send 34, broken 33] [13:15:47]ProducePacketName [13:15:47]name=ofd_packets/00139663 [13:15:47]OFD Sender: To server: pG, [13:15:47]CommunicateWithHost lk.salyk.kg:30040 [13:15:47]ConnectInit lk.salyk.kg [13:15:47]written 0, free lines is 4095 [13:15:47]Connected sock=10 [13:15: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 3A 8A 15 01 B1 31 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 8C 00 00 00 F4 03 04 00 02 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1D E8 F2 C2 80 34 78 92 CF A8 86 BC 4B 7C [13:15: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 38 E4 47 00 16 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 21 02 00 F4 03 04 00 AF 2E 23 67 B6 04 01 00 00 1D E2 20 18 62 EA 77 84 [13:15:47]CommunicateWithHost err = 0 [13:15:47]CheckOFDResponse [13:15:47]1017 (14) - 77093643461234 [13:15:47]1041 (16) - 0000000000874669 [13:15:47]1040 (4) - 139663 [13:15:47]1012 (4) - 31.10.2024 07:15 [13:15:47]1206 (1) - 0 [13:15:47]OFD Sender: Remove packet 139663 [13:15:47]ProducePacketName [13:15:47]name=ofd_packets/00139663 [13:15:47]NVStorageDeleteData [13:15:47]Write to MH i2c: 01 00 00 C9 04 CD [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 07 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 04 0D E5 [13:15:47]RasterBufferAndPrint [13:15:47]line [13:15:47]line [13:15:47]line [13:15:47]line [13:15:47]line [13:15:47]written 0, free lines is 3338 [13:15:47]MH_Cut [13:15:47]Write to MH i2c: D1 01 00 D0 04 01 A6 [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: D1 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: D1 01 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: D1 01 00 D0 04 00 A5 [13:15:47]Write to MH i2c: 01 00 00 D1 04 D5 [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:48]OFD Sender: No OFD packet to send [13:15:48]*** Cut start [13:15:48]*** Partial cut [13:15:48]*** CUTSNS_PIN = 1 [13:15:48]*** CUTSNS_PIN = 0 [13:15:48]*** Brake cut motor [13:15:49]Read from MH i2c: 01 [13:15:49]MH_I2C_Read... [13:15:49]*** Stop cut motor [13:15:49]*** Cut end [13:15:49]Read from MH i2c: 01 07 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [13:15:49]process_action close_receipt done [13:15:49]requested_data is exist [13:15:49]produce_requested_data [13:15:49]requested_item fm.sn is exist - process it [13:15:49]wFMCommunicate request_size=4 [13:15:49]MH_SAM_APDU [13:15:49]CAPDU: 80 11 00 00 [13:15:49]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:49]Read from MH i2c: E2 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 17 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AB [13: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 [13:15:49]wFMCommunicate OK [13:15:49]requested_item fd.num is exist - process it [13:15:49]SAM_PROTO_GetFieldsCounters [13:15:49]wFMCommunicate request_size=4 [13:15:49]MH_SAM_APDU [13:15:49]CAPDU: 80 13 00 00 [13:15:49]Write to MH i2c: E2 08 00 D3 04 80 13 00 00 00 00 00 00 53 [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:49]Read from MH i2c: E2 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 62 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 62 00 D3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 FC [13:15: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 8F 21 02 00 0E 04 04 00 2D 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:15:49]wFMCommunicate OK [13:15:49]SAM_PROTO_GetFieldsCounters done [13:15:49]requested_item shift.num is exist - process it [13:15:49]requested_item shift.opened is exist - process it [13:15:49]req_shift_opened [13:15:49]FM_GetShiftState [13:15:49]SAM_PROTO_GetShiftState [13:15:49]wFMCommunicate request_size=4 [13:15:49]MH_SAM_APDU [13:15:49]CAPDU: 80 13 01 00 [13:15:49]Write to MH i2c: E2 08 00 D4 04 80 13 01 00 00 00 00 00 55 [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:49]Read from MH i2c: E2 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 0E 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 0E 00 D4 04 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7E [13:15:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:15:49]wFMCommunicate OK [13:15:49]SAM_PROTO_GetShiftState done [13:15:49]FM_GetShiftState done [13:15:49]req_shift_opened done [13:15:49]requested_item shift.open_date is exist - process it [13:15:49]req_shift_open_date [13:15:49]req_shift_open_date done [13:15:49]produce_requested_data done [13:15:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139663,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:15:49]process_action_free close_receipt [13:15:49]json_value_free [13:15:49]json_value_free done [13:15:49]process_json_proto returns [13:15:49]Send response to host [13:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139663,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:15:49]free response buf [13:15:49]execute_script done [13:15:49]execute_script returns [13:15:49]free content buf [13:15:49]Sock 7.Close socket [13:15:49]Sock 7.Thread stoped [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:36]accept exits with 9 [13:16:36]New connection [13:16:36]New thread 3066654052 created [13:16:36]Thread 3066510692 joined [13:16:36]Waiting for new connection... [13:16:36] Sock 9.Parse request [13:16:36]Sock 9.Check first char [13:16:36]Sock 9.First char is OK [13:16:36]request: POST /json_proto HTTP/1.0 [13:16:36]Method: POST [13:16:36]URL: /json_proto [13:16:36]Method is POST - this is cgi request [13:16:36]url: /json_proto [13:16:36]query_string will be loaded in cgi processing [13:16:36]execute_cgi json_proto POST (null) [13:16:36]execute_cgi path=json_proto method=POST [13:16:36]POST find Content-Length [13:16:36]Host: 172.17.50.196:8080 [13:16:36]Content-Length: 683 [13:16:36]Content-Type: application/json [13:16:36] [13:16:36]POST finish read [13:16:36]Found Content-Length = 683 [13:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095176", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:36]execute_script... [13:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095176", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:36]POST & json_proto [13:16:36]process_json_proto [13:16:36]json parsed OK: [13:16:36]protocol is kg_v1.0 [13:16:36]action value=close_receipt [13:16:36]process_action close_receipt [13:16:36]cmd_close_receipt [13:16:36]MH_GetDate [13:16:36]Write to MH i2c: F0 00 00 D5 04 C8 [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: F0 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: F0 09 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: F0 09 00 D5 04 00 35 83 23 67 72 0D 1C 67 15 [13:16:36]GetLastDocTimeStamp 1730380546 [13:16:36]current date 1730380597 [13:16:36]FM_GetShiftState [13:16:36]SAM_PROTO_GetShiftState [13:16:36]wFMCommunicate request_size=4 [13:16:36]MH_SAM_APDU [13:16:36]CAPDU: 80 13 01 00 [13:16:36]Write to MH i2c: E2 08 00 D6 04 80 13 01 00 00 00 00 00 57 [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:36]Read from MH i2c: E2 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 0E 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 0E 00 D6 04 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 80 [13:16:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:16:36]wFMCommunicate OK [13:16:36]SAM_PROTO_GetShiftState done [13:16:36]FM_GetShiftState done [13:16:36]opened in 1730332621 [13:16:36]opened+sec_in_day 1730419021 [13:16:36]quantity*price = 100015 [13:16:36]sum+1 = 100017 [13:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 141 31.10.2024 13:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139664 ФПД: 82777276848543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131637&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139664&fm=82777276848543&tin=02508201610067®Number=0000000000091631&sum=100000 [13:16:37]StoreToDocumentArchive [13:16:37]shift 557 fd 139664 [13:16:37]save to /storage/0557/doc_00139664 [13:16:37]save last doc name /storage/0557/doc_00139664 to /storage/kkm_last_doc_name [13:16:37]save OK [13:16:37]Clear old archive folders... [13:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:37]tlvbuf is 00A2A770 [13:16:37]SAM_PROTO_ClearQueue [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 09 00 00 [13:16:37]Write to MH i2c: E2 08 00 E3 04 80 09 00 00 00 00 00 00 59 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]SAM_PROTO_ClearQueue done [13:16:38]KKMCreateOFDPacket [13:16:38]OFDProtocolAddRootSTLVToBuf [13:16:38]FM_MakeSignedData [13:16:38]FM_MakeSignedData [13:16:38]SAM_PROTO_SignData [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 0D 01 02 [13:16:38]Write to MH i2c: E2 08 00 E4 04 80 0D 01 02 00 00 00 00 61 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]wFMCommunicate request_size=255 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 35 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4B [13:16:38]Write to MH i2c: E2 02 01 E5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 35 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4B 00 00 E6 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 E5 04 00 90 00 5D [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]wFMCommunicate request_size=10 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 0D 02 02 05 49 16 2E 99 9F [13:16:38]Write to MH i2c: E2 0D 00 E6 04 80 0D 02 02 05 00 49 16 2E 99 9F 00 00 33 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 03 00 E6 04 00 90 00 5E [13:16:38]RAPDU: 90 00 [13:16:38]wFMCommunicate OK [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 0D 03 02 [13:16:38]Write to MH i2c: E2 08 00 E7 04 80 0D 03 02 00 00 00 00 66 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:38]OFD Sender: No OFD packet to send [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 0B 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 0B 00 E7 04 00 2A 25 EA E6 CE F9 8C CB 90 00 A4 [13:16:38]RAPDU: 2A 25 EA E6 CE F9 8C CB 90 00 [13:16:38]wFMCommunicate OK [13:16:38]SAM_PROTO_SignData done [13:16:38]FM_MakeSignedData done [13:16:38]CreateOFDProtocolMessage [13:16:38]wFMCommunicate request_size=4 [13:16:38]MH_SAM_APDU [13:16:38]CAPDU: 80 11 00 00 [13:16:38]Write to MH i2c: E2 08 00 E8 04 80 11 00 00 00 00 00 00 66 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:38]Read from MH i2c: E2 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 17 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: E2 17 00 E8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [13:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:16:38]wFMCommunicate OK [13:16:38]CreateOFDProtocolMessage done [13:16:38]OFDSenderStorePacket 139664 [13:16:38]StoreOFDPacket docnum=139664 [13:16: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 0F 01 00 00 53 CB 07 01 3B 5E 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 35 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4B 49 16 2E 99 9F 2A 25 EA E6 CE F9 8C CB [13:16:38]CheckFolder [13:16:38]dirname=/storage/ofd_packets [13:16:38]CheckFolder done [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00139664 [13:16:38]NVStorageSaveData ofd_packets/00139664 [13:16:38]File name is /storage/ofd_packets/00139664 [13:16:38]Write 301 bytes [13:16:38]NVStorageSaveData done [13:16:38]OFDSenderStorePacket done [13:16:38]KKMCreateOFDPacket done [13:16:38]NVStorageSaveData kkm_last_timestamp [13:16:38]File name is /storage/kkm_last_timestamp [13:16:38]Write 4 bytes [13:16:38]NVStorageSaveData done [13:16:38]ExternCall_PrintAddStr [13:16:38]wPrintStart [13:16:38]Write to MH i2c: 01 00 00 E9 04 ED [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 FF 0F 02 [13:16:38]RasterBufferAndPrint [13:16:38]line Счет N : (1)1095176 [13:16:38]line ИНН: 02508201610067 [13:16:38]line Контрольно-Кассовый Чек [13:16:38]line ПРОДАЖА [13:16:38]line ТРК (МРК, ГНК) : 43 [13:16:38]line Товар: 2710124130 [13:16:38]line Аи-92-К-2 [13:16:38]line 14.950 * 66.90 [13:16:38]line = 1000.16 [13:16:38]line НДС 12% НСП 1% [13:16:38]line > о реализуемом товаре [13:16:38]line ОКРУГЛЕНИЕ: -0.16 [13:16:38]line ИТОГО: 1000.00 [13:16:38]line Внесено: 1000.00 [13:16:38]line СДАЧА: 0.00 [13:16:38]line НСП 1% : 8.85 [13:16:38]line НДС 12% : 106.21 [13:16:38]line Наличными: 1000.00 [13:16:38]line Безнал.: 0.00 [13:16:38]line Место: АЗС № 101 "Партнер Нефть" [13:16:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:16:38]line СНО: Общий режим [13:16:38]line Чек 141 31.10.2024 13:16 [13:16:38]line Смена: 557 ФФД: 1.0 [13:16:38]line ЗНМ: 0300000081 [13:16:38]line РНМ: 0000000000091631 [13:16:38]line Версия ККМ: 001 [13:16:38]line ФМ: 0000000000874669 [13:16:38]line ФД: 139664 [13:16:38]line ФПД: 82777276848543 [13:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131637&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139664&fm=82777276848543&tin=02508201610067®Number=0000000000091631&sum=100000 [13:16:38]OFD Sender: Processing packet 139664 [packets to send 34, broken 33] [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00139664 [13:16:38]OFD Sender: To server: pG, [13:16:38]CommunicateWithHost lk.salyk.kg:30040 [13:16:38]ConnectInit lk.salyk.kg [13:16:38]written 0, free lines is 4095 [13:16:38]Connected sock=10 [13:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 53 CB 07 01 3B 5E 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 35 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4B 49 16 2E 99 9F 2A 25 EA E6 CE F9 8C CB [13:16: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 E1 CD 47 00 8B 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 21 02 00 F4 03 04 00 E3 2E 23 67 B6 04 01 00 00 A3 1A 35 52 EB C6 E5 F2 [13:16:39]CommunicateWithHost err = 0 [13:16:39]CheckOFDResponse [13:16:39]1017 (14) - 77093643461234 [13:16:39]1041 (16) - 0000000000874669 [13:16:39]1040 (4) - 139664 [13:16:39]1012 (4) - 31.10.2024 07:16 [13:16:39]1206 (1) - 0 [13:16:39]OFD Sender: Remove packet 139664 [13:16:39]ProducePacketName [13:16:39]name=ofd_packets/00139664 [13:16:39]NVStorageDeleteData [13:16:39]Write to MH i2c: 01 00 00 14 05 19 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 07 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 07 00 14 05 00 00 00 00 00 E4 0C 10 [13:16:39]RasterBufferAndPrint [13:16:39]line [13:16:39]line [13:16:39]line [13:16:39]line [13:16:39]line [13:16:39]written 0, free lines is 3306 [13:16:39]MH_Cut [13:16:39]Write to MH i2c: D1 01 00 1B 05 01 F2 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: D1 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: D1 01 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: D1 01 00 1B 05 00 F1 [13:16:39]Write to MH i2c: 01 00 00 1C 05 21 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]OFD Sender: No OFD packet to send [13:16:39]*** Cut start [13:16:39]*** Partial cut [13:16:39]*** CUTSNS_PIN = 1 [13:16:40]*** CUTSNS_PIN = 0 [13:16:40]*** Brake cut motor [13:16:40]Read from MH i2c: 01 [13:16:40]MH_I2C_Read... [13:16:40]*** Stop cut motor [13:16:40]*** Cut end [13:16:40]Read from MH i2c: 01 07 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: 01 07 00 1C 05 00 00 00 00 00 FF 0F 36 [13:16:40]process_action close_receipt done [13:16:40]requested_data is exist [13:16:40]produce_requested_data [13:16:40]requested_item fm.sn is exist - process it [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 11 00 00 [13:16:40]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 17 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F7 [13:16: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:16:40]wFMCommunicate OK [13:16:40]requested_item fd.num is exist - process it [13:16:40]SAM_PROTO_GetFieldsCounters [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 13 00 00 [13:16:40]Write to MH i2c: E2 08 00 1E 05 80 13 00 00 00 00 00 00 9F [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 62 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 62 00 1E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 4C [13:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:16:40]wFMCommunicate OK [13:16:40]SAM_PROTO_GetFieldsCounters done [13:16:40]requested_item shift.num is exist - process it [13:16:40]requested_item shift.opened is exist - process it [13:16:40]req_shift_opened [13:16:40]FM_GetShiftState [13:16:40]SAM_PROTO_GetShiftState [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 13 01 00 [13:16:40]Write to MH i2c: E2 08 00 1F 05 80 13 01 00 00 00 00 00 A1 [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 0E 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 0E 00 1F 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CA [13:16:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:16:40]wFMCommunicate OK [13:16:40]SAM_PROTO_GetShiftState done [13:16:40]FM_GetShiftState done [13:16:40]req_shift_opened done [13:16:40]requested_item shift.open_date is exist - process it [13:16:40]req_shift_open_date [13:16:40]req_shift_open_date done [13:16:40]produce_requested_data done [13:16:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139664,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:16:40]process_action_free close_receipt [13:16:40]json_value_free [13:16:40]json_value_free done [13:16:40]process_json_proto returns [13:16:40]Send response to host [13:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139664,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:16:40]free response buf [13:16:40]execute_script done [13:16:40]execute_script returns [13:16:40]free content buf [13:16:40]Sock 9.Close socket [13:16:40]Sock 9.Thread stoped [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:50]accept exits with 7 [13:18:50]New connection [13:18:50]New thread 3066510692 created [13:18:50]Thread 3066654052 joined [13:18:50]Waiting for new connection... [13:18:50] Sock 7.Parse request [13:18:50]Sock 7.Check first char [13:18:50]Sock 7.First char is OK [13:18:50]request: POST /json_proto HTTP/1.0 [13:18:50]Method: POST [13:18:50]URL: /json_proto [13:18:50]Method is POST - this is cgi request [13:18:50]url: /json_proto [13:18:50]query_string will be loaded in cgi processing [13:18:50]execute_cgi json_proto POST (null) [13:18:50]execute_cgi path=json_proto method=POST [13:18:50]POST find Content-Length [13:18:50]Host: 172.17.50.196:8080 [13:18:50]Content-Length: 770 [13:18:50]Content-Type: application/json [13:18:50] [13:18:50]POST finish read [13:18:50]Found Content-Length = 770 [13:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095178", "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" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:50]execute_script... [13:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095178", "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" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:50]POST & json_proto [13:18:50]process_json_proto [13:18:50]json parsed OK: [13:18:50]protocol is kg_v1.0 [13:18:50]action value=close_receipt [13:18:50]process_action close_receipt [13:18:50]cmd_close_receipt [13:18:50]MH_GetDate [13:18:50]Write to MH i2c: F0 00 00 20 05 14 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 09 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 09 00 20 05 00 BB 83 23 67 72 0D 1C 67 E7 [13:18:50]GetLastDocTimeStamp 1730380597 [13:18:50]current date 1730380731 [13:18:50]FM_GetShiftState [13:18:50]SAM_PROTO_GetShiftState [13:18:50]wFMCommunicate request_size=4 [13:18:50]MH_SAM_APDU [13:18:50]CAPDU: 80 13 01 00 [13:18:50]Write to MH i2c: E2 08 00 21 05 80 13 01 00 00 00 00 00 A3 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:50]Read from MH i2c: E2 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 0E 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 0E 00 21 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CC [13:18:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:18:50]wFMCommunicate OK [13:18:50]SAM_PROTO_GetShiftState done [13:18:50]FM_GetShiftState done [13:18:50]opened in 1730332621 [13:18:50]opened+sec_in_day 1730419021 [13:18:50]quantity*price = 160024 [13:18:50]sum+1 = 160026 [13:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.25 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 0.00 Безнал.: 1600.25 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 142 31.10.2024 13:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139665 ФПД: 182776471257267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131851&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139665&fm=182776471257267&tin=02508201610067®Number=0000000000091631&sum=160025 [13:18:51]StoreToDocumentArchive [13:18:51]shift 557 fd 139665 [13:18:51]save to /storage/0557/doc_00139665 [13:18:51]save last doc name /storage/0557/doc_00139665 to /storage/kkm_last_doc_name [13:18:51]save OK [13:18:51]Clear old archive folders... [13:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:51]tlvbuf is 00A255A0 [13:18:51]SAM_PROTO_ClearQueue [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 09 00 00 [13:18:51]Write to MH i2c: E2 08 00 2E 05 80 09 00 00 00 00 00 00 A5 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [13:18:51]RAPDU: 90 00 [13:18:51]wFMCommunicate OK [13:18:51]SAM_PROTO_ClearQueue done [13:18:51]KKMCreateOFDPacket [13:18:51]OFDProtocolAddRootSTLVToBuf [13:18:51]FM_MakeSignedData [13:18:51]FM_MakeSignedData [13:18:51]SAM_PROTO_SignData [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 0D 01 02 [13:18:51]Write to MH i2c: E2 08 00 2F 05 80 0D 01 02 00 00 00 00 AD [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 2F 05 00 90 00 A8 [13:18:51]RAPDU: 90 00 [13:18:51]wFMCommunicate OK [13:18:51]wFMCommunicate request_size=255 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A6 [13:18:51]Write to MH i2c: E2 02 01 30 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A6 00 00 74 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 30 05 00 90 00 A9 [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]wFMCommunicate request_size=10 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 0D 02 02 05 3B F6 A4 80 B3 [13:18:52]Write to MH i2c: E2 0D 00 31 05 80 0D 02 02 05 00 3B F6 A4 80 B3 00 00 C2 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 31 05 00 90 00 AA [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 0D 03 02 [13:18:52]Write to MH i2c: E2 08 00 32 05 80 0D 03 02 00 00 00 00 B2 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0B 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0B 00 32 05 00 1A E8 C5 67 5F 1E 4C 6D 90 00 17 [13:18:52]RAPDU: 1A E8 C5 67 5F 1E 4C 6D 90 00 [13:18:52]wFMCommunicate OK [13:18:52]SAM_PROTO_SignData done [13:18:52]FM_MakeSignedData done [13:18:52]CreateOFDProtocolMessage [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 11 00 00 [13:18:52]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0D [13:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:18:52]wFMCommunicate OK [13:18:52]CreateOFDProtocolMessage done [13:18:52]OFDSenderStorePacket 139665 [13:18:52]StoreOFDPacket docnum=139665 [13:18: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 0F 01 00 00 5B C6 07 01 A8 A2 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A6 3B F6 A4 80 B3 1A E8 C5 67 5F 1E 4C 6D [13:18:52]CheckFolder [13:18:52]dirname=/storage/ofd_packets [13:18:52]CheckFolder done [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00139665 [13:18:52]NVStorageSaveData ofd_packets/00139665 [13:18:52]File name is /storage/ofd_packets/00139665 [13:18:52]Write 301 bytes [13:18:52]NVStorageSaveData done [13:18:52]OFDSenderStorePacket done [13:18:52]KKMCreateOFDPacket done [13:18:52]NVStorageSaveData kkm_last_timestamp [13:18:52]File name is /storage/kkm_last_timestamp [13:18:52]Write 4 bytes [13:18:52]NVStorageSaveData done [13:18:52]ExternCall_PrintAddStr [13:18:52]wPrintStart [13:18:52]Write to MH i2c: 01 00 00 34 05 39 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 FF 0F 4E [13:18:52]RasterBufferAndPrint [13:18:52]line Счет N : (1)1095178 [13:18:52]line ИНН: 02508201610067 [13:18:52]line Контрольно-Кассовый Чек [13:18:52]line ПРОДАЖА [13:18:52]line ТРК (МРК, ГНК) : 63 [13:18:52]line Товар: 2710124130 [13:18:52]line Аи-92-К-2 [13:18:52]line 23.920 * 66.90 [13:18:52]line = 1600.25 [13:18:52]line НДС 12% НСП 1% [13:18:52]line > о реализуемом товаре [13:18:52]line ИТОГО: 1600.25 [13:18:52]line НСП 1% : 14.16 [13:18:52]line НДС 12% : 169.94 [13:18:52]line Наличными: 0.00 [13:18:52]line Безнал.: 1600.25 [13:18:52]line Место: АЗС № 101 "Партнер Нефть" [13:18:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:18:52]line СНО: Общий режим [13:18:52]line Чек 142 31.10.2024 13:18 [13:18:52]line Смена: 557 ФФД: 1.0 [13:18:52]line ЗНМ: 0300000081 [13:18:52]line РНМ: 0000000000091631 [13:18:52]line Версия ККМ: 001 [13:18:52]line Платежная система: Mbank [13:18:52]line ФМ: 0000000000874669 [13:18:52]line ФД: 139665 [13:18:52]line ФПД: 182776471257267 [13:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131851&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139665&fm=182776471257267&tin=02508201610067®Number=0000000000091631&sum=160025 [13:18:52]written 0, free lines is 4095 [13:18:52]OFD Sender: Processing packet 139665 [packets to send 34, broken 33] [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00139665 [13:18:52]OFD Sender: To server: pG, [13:18:52]CommunicateWithHost lk.salyk.kg:30040 [13:18:52]ConnectInit lk.salyk.kg [13:18:52]Connected sock=10 [13:18: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 0F 01 00 00 5B C6 07 01 A8 A2 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A6 3B F6 A4 80 B3 1A E8 C5 67 5F 1E 4C 6D [13:18: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 98 DD 47 00 DE 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 21 02 00 F4 03 04 00 68 2F 23 67 B6 04 01 00 00 E9 9A BF 25 C9 44 77 DB [13:18:52]CommunicateWithHost err = 0 [13:18:52]CheckOFDResponse [13:18:52]1017 (14) - 77093643461234 [13:18:52]1041 (16) - 0000000000874669 [13:18:52]1040 (4) - 139665 [13:18:52]1012 (4) - 31.10.2024 07:19 [13:18:52]1206 (1) - 0 [13:18:52]OFD Sender: Remove packet 139665 [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00139665 [13:18:52]NVStorageDeleteData [13:18:52]Write to MH i2c: 01 00 00 5D 05 62 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 15 0D 8B [13:18:52]RasterBufferAndPrint [13:18:52]line [13:18:52]line [13:18:52]line [13:18:52]line [13:18:52]line [13:18:52]written 0, free lines is 3357 [13:18:52]MH_Cut [13:18:52]Write to MH i2c: D1 01 00 64 05 01 3B [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: D1 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: D1 01 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: D1 01 00 64 05 00 3A [13:18:52]Write to MH i2c: 01 00 00 65 05 6A [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:53]OFD Sender: No OFD packet to send [13:18:53]*** Cut start [13:18:53]*** Partial cut [13:18:53]*** CUTSNS_PIN = 1 [13:18:53]*** CUTSNS_PIN = 0 [13:18:53]*** Brake cut motor [13:18:53]Read from MH i2c: 01 [13:18:53]MH_I2C_Read... [13:18:53]*** Stop cut motor [13:18:53]*** Cut end [13:18:54]Read from MH i2c: 01 07 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [13:18:54]process_action close_receipt done [13:18:54]requested_data is exist [13:18:54]produce_requested_data [13:18:54]requested_item fm.sn is exist - process it [13:18:54]wFMCommunicate request_size=4 [13:18:54]MH_SAM_APDU [13:18:54]CAPDU: 80 11 00 00 [13:18:54]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 17 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [13:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:18:54]wFMCommunicate OK [13:18:54]requested_item fd.num is exist - process it [13:18:54]SAM_PROTO_GetFieldsCounters [13:18:54]wFMCommunicate request_size=4 [13:18:54]MH_SAM_APDU [13:18:54]CAPDU: 80 13 00 00 [13:18:54]Write to MH i2c: E2 08 00 67 05 80 13 00 00 00 00 00 00 E8 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 62 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 62 00 67 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 99 [13:18: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 91 21 02 00 0E 04 04 00 2D 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:18:54]wFMCommunicate OK [13:18:54]SAM_PROTO_GetFieldsCounters done [13:18:54]requested_item shift.num is exist - process it [13:18:54]requested_item shift.opened is exist - process it [13:18:54]req_shift_opened [13:18:54]FM_GetShiftState [13:18:54]SAM_PROTO_GetShiftState [13:18:54]wFMCommunicate request_size=4 [13:18:54]MH_SAM_APDU [13:18:54]CAPDU: 80 13 01 00 [13:18:54]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 0E 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 13 [13:18:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:18:54]wFMCommunicate OK [13:18:54]SAM_PROTO_GetShiftState done [13:18:54]FM_GetShiftState done [13:18:54]req_shift_opened done [13:18:54]requested_item shift.open_date is exist - process it [13:18:54]req_shift_open_date [13:18:54]req_shift_open_date done [13:18:54]produce_requested_data done [13:18:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139665,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:18:54]process_action_free close_receipt [13:18:54]json_value_free [13:18:54]json_value_free done [13:18:54]process_json_proto returns [13:18:54]Send response to host [13:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139665,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:18:54]free response buf [13:18:54]execute_script done [13:18:54]execute_script returns [13:18:54]free content buf [13:18:54]Sock 7.Close socket [13:18:54]Sock 7.Thread stoped [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:44]accept exits with 9 [13:19:44]New connection [13:19:44]New thread 3066654052 created [13:19:44]Thread 3066510692 joined [13:19:44]Waiting for new connection... [13:19:44] Sock 9.Parse request [13:19:44]Sock 9.Check first char [13:19:44]Sock 9.First char is OK [13:19:44]request: POST /json_proto HTTP/1.0 [13:19:44]Method: POST [13:19:44]URL: /json_proto [13:19:44]Method is POST - this is cgi request [13:19:44]url: /json_proto [13:19:44]query_string will be loaded in cgi processing [13:19:44]execute_cgi json_proto POST (null) [13:19:44]execute_cgi path=json_proto method=POST [13:19:44]POST find Content-Length [13:19:44]Host: 172.17.50.196:8080 [13:19:44]Content-Length: 683 [13:19:44]Content-Type: application/json [13:19:44] [13:19:44]POST finish read [13:19:44]Found Content-Length = 683 [13:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095179", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:44]execute_script... [13:19:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095179", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:44]POST & json_proto [13:19:44]process_json_proto [13:19:44]json parsed OK: [13:19:44]protocol is kg_v1.0 [13:19:44]action value=close_receipt [13:19:44]process_action close_receipt [13:19:44]cmd_close_receipt [13:19:44]MH_GetDate [13:19:44]Write to MH i2c: F0 00 00 69 05 5D [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: F0 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: F0 09 00 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: F0 09 00 69 05 00 F1 83 23 67 72 0D 1C 67 66 [13:19:44]GetLastDocTimeStamp 1730380731 [13:19:44]current date 1730380785 [13:19:44]FM_GetShiftState [13:19:44]SAM_PROTO_GetShiftState [13:19:44]wFMCommunicate request_size=4 [13:19:44]MH_SAM_APDU [13:19:44]CAPDU: 80 13 01 00 [13:19:44]Write to MH i2c: E2 08 00 6A 05 80 13 01 00 00 00 00 00 EC [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:44]Read from MH i2c: E2 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: E2 0E 00 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: E2 0E 00 6A 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 15 [13:19:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:19:44]wFMCommunicate OK [13:19:44]SAM_PROTO_GetShiftState done [13:19:44]FM_GetShiftState done [13:19:44]opened in 1730332621 [13:19:44]opened+sec_in_day 1730419021 [13:19:44]quantity*price = 100015 [13:19:44]sum+1 = 100017 [13:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 143 31.10.2024 13:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139666 ФПД: 139781968664512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131945&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139666&fm=139781968664512&tin=02508201610067®Number=0000000000091631&sum=100000 [13:19:45]StoreToDocumentArchive [13:19:45]shift 557 fd 139666 [13:19:45]save to /storage/0557/doc_00139666 [13:19:45]save last doc name /storage/0557/doc_00139666 to /storage/kkm_last_doc_name [13:19:45]save OK [13:19:45]Clear old archive folders... [13:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:45]tlvbuf is 00AD9FC0 [13:19:45]SAM_PROTO_ClearQueue [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 09 00 00 [13:19:45]Write to MH i2c: E2 08 00 77 05 80 09 00 00 00 00 00 00 EE [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 03 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [13:19:45]RAPDU: 90 00 [13:19:45]wFMCommunicate OK [13:19:45]SAM_PROTO_ClearQueue done [13:19:45]KKMCreateOFDPacket [13:19:45]OFDProtocolAddRootSTLVToBuf [13:19:45]FM_MakeSignedData [13:19:45]FM_MakeSignedData [13:19:45]SAM_PROTO_SignData [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 0D 01 02 [13:19:45]Write to MH i2c: E2 08 00 78 05 80 0D 01 02 00 00 00 00 F6 [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 03 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [13:19:45]RAPDU: 90 00 [13:19:45]wFMCommunicate OK [13:19:45]wFMCommunicate request_size=255 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F [13:19:45]Write to MH i2c: E2 02 01 79 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F 00 00 6F [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:46]Read from MH i2c: E2 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 03 00 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [13:19:46]RAPDU: 90 00 [13:19:46]wFMCommunicate OK [13:19:46]wFMCommunicate request_size=10 [13:19:46]MH_SAM_APDU [13:19:46]CAPDU: 80 0D 02 02 05 21 86 96 97 C0 [13:19:46]Write to MH i2c: E2 0D 00 7A 05 80 0D 02 02 05 00 21 86 96 97 C0 00 00 97 [13:19:46]Write i2c OK [13:19:46]MH_I2C_Read... [13:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:46]Read from MH i2c: E2 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 03 00 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [13:19:46]RAPDU: 90 00 [13:19:46]wFMCommunicate OK [13:19:46]wFMCommunicate request_size=4 [13:19:46]MH_SAM_APDU [13:19:46]CAPDU: 80 0D 03 02 [13:19:46]Write to MH i2c: E2 08 00 7B 05 80 0D 03 02 00 00 00 00 FB [13:19:46]Write i2c OK [13:19:46]MH_I2C_Read... [13:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:46]Read from MH i2c: E2 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 0B 00 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 0B 00 7B 05 00 43 EF AC 9B 07 3C EF 3A 90 00 E1 [13:19:46]RAPDU: 43 EF AC 9B 07 3C EF 3A 90 00 [13:19:46]wFMCommunicate OK [13:19:46]SAM_PROTO_SignData done [13:19:46]FM_MakeSignedData done [13:19:46]CreateOFDProtocolMessage [13:19:46]wFMCommunicate request_size=4 [13:19:46]MH_SAM_APDU [13:19:46]CAPDU: 80 11 00 00 [13:19:46]Write to MH i2c: E2 08 00 7C 05 80 11 00 00 00 00 00 00 FB [13:19:46]Write i2c OK [13:19:46]MH_I2C_Read... [13:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:46]Read from MH i2c: E2 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 17 00 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: E2 17 00 7C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 56 [13:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:19:46]wFMCommunicate OK [13:19:46]CreateOFDProtocolMessage done [13:19:46]OFDSenderStorePacket 139666 [13:19:46]StoreOFDPacket docnum=139666 [13:19: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 0F 01 00 00 B5 44 07 01 FE 89 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F 21 86 96 97 C0 43 EF AC 9B 07 3C EF 3A [13:19:46]CheckFolder [13:19:46]dirname=/storage/ofd_packets [13:19:46]CheckFolder done [13:19:46]ProducePacketName [13:19:46]name=ofd_packets/00139666 [13:19:46]NVStorageSaveData ofd_packets/00139666 [13:19:46]File name is /storage/ofd_packets/00139666 [13:19:46]Write 301 bytes [13:19:46]NVStorageSaveData done [13:19:46]OFDSenderStorePacket done [13:19:46]KKMCreateOFDPacket done [13:19:46]NVStorageSaveData kkm_last_timestamp [13:19:46]File name is /storage/kkm_last_timestamp [13:19:46]Write 4 bytes [13:19:46]NVStorageSaveData done [13:19:46]OFD Sender: Processing packet 139666 [packets to send 34, broken 33] [13:19:46]ProducePacketName [13:19:46]name=ofd_packets/00139666 [13:19:46]OFD Sender: To server: pG, [13:19:46]CommunicateWithHost lk.salyk.kg:30040 [13:19:46]ConnectInit lk.salyk.kg [13:19:46]ExternCall_PrintAddStr [13:19:46]wPrintStart [13:19:46]Write to MH i2c: 01 00 00 7D 05 82 [13:19:46]Write i2c OK [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: 01 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: 01 07 00 [13:19:46]MH_I2C_Read... [13:19:46]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [13:19:46]RasterBufferAndPrint [13:19:46]line Счет N : (1)1095179 [13:19:46]line ИНН: 02508201610067 [13:19:46]line Контрольно-Кассовый Чек [13:19:46]line ПРОДАЖА [13:19:46]line ТРК (МРК, ГНК) : 53 [13:19:46]line Товар: 2710124130 [13:19:46]line Аи-92-К-2 [13:19:46]line 14.950 * 66.90 [13:19:46]line = 1000.16 [13:19:46]line НДС 12% НСП 1% [13:19:46]line > о реализуемом товаре [13:19:46]line ОКРУГЛЕНИЕ: -0.16 [13:19:46]line ИТОГО: 1000.00 [13:19:46]line Внесено: 1000.00 [13:19:46]line СДАЧА: 0.00 [13:19:46]line НСП 1% : 8.85 [13:19:46]line НДС 12% : 106.21 [13:19:46]line Наличными: 1000.00 [13:19:46]line Безнал.: 0.00 [13:19:46]line Место: АЗС № 101 "Партнер Нефть" [13:19:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:19:46]line СНО: Общий режим [13:19:46]line Чек 143 31.10.2024 13:19 [13:19:46]line Смена: 557 ФФД: 1.0 [13:19:46]line ЗНМ: 0300000081 [13:19:46]line РНМ: 0000000000091631 [13:19:46]line Версия ККМ: 001 [13:19:46]line ФМ: 0000000000874669 [13:19:46]line ФД: 139666 [13:19:46]line ФПД: 139781968664512 [13:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T131945&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139666&fm=139781968664512&tin=02508201610067®Number=0000000000091631&sum=100000 [13:19:46]Connected sock=11 [13:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 B5 44 07 01 FE 89 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F1 83 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F 21 86 96 97 C0 43 EF AC 9B 07 3C EF 3A [13:19:46]written 0, free lines is 4095 [13:19: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 5A 29 47 00 D2 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 21 02 00 F4 03 04 00 9E 2F 23 67 B6 04 01 00 00 F6 10 B7 A9 D4 5F E7 05 [13:19:46]CommunicateWithHost err = 0 [13:19:46]CheckOFDResponse [13:19:46]1017 (14) - 77093643461234 [13:19:46]1041 (16) - 0000000000874669 [13:19:46]1040 (4) - 139666 [13:19:46]1012 (4) - 31.10.2024 07:19 [13:19:46]1206 (1) - 0 [13:19:46]OFD Sender: Remove packet 139666 [13:19:46]ProducePacketName [13:19:46]name=ofd_packets/00139666 [13:19:46]NVStorageDeleteData [13:19:47]Write to MH i2c: 01 00 00 A8 05 AD [13:19:47]Write i2c OK [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: 01 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: 01 07 00 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 EC 0C AC [13:19:47]RasterBufferAndPrint [13:19:47]line [13:19:47]line [13:19:47]line [13:19:47]line [13:19:47]line [13:19:47]written 0, free lines is 3314 [13:19:47]MH_Cut [13:19:47]Write to MH i2c: D1 01 00 AF 05 01 86 [13:19:47]Write i2c OK [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: D1 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: D1 01 00 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: D1 01 00 AF 05 00 85 [13:19:47]Write to MH i2c: 01 00 00 B0 05 B5 [13:19:47]Write i2c OK [13:19:47]MH_I2C_Read... [13:19:47]OFD Sender: No OFD packet to send [13:19:47]*** Cut start [13:19:47]*** Partial cut [13:19:47]*** CUTSNS_PIN = 1 [13:19:47]*** CUTSNS_PIN = 0 [13:19:47]*** Brake cut motor [13:19:48]Read from MH i2c: 01 [13:19:48]MH_I2C_Read... [13:19:48]*** Stop cut motor [13:19:48]*** Cut end [13:19:48]Read from MH i2c: 01 07 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 FF 0F CA [13:19:48]process_action close_receipt done [13:19:48]requested_data is exist [13:19:48]produce_requested_data [13:19:48]requested_item fm.sn is exist - process it [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 11 00 00 [13:19:48]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 17 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8B [13:19: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:19:48]wFMCommunicate OK [13:19:48]requested_item fd.num is exist - process it [13:19:48]SAM_PROTO_GetFieldsCounters [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 13 00 00 [13:19:48]Write to MH i2c: E2 08 00 B2 05 80 13 00 00 00 00 00 00 33 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 62 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 62 00 B2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 E8 [13:19: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 92 21 02 00 0E 04 04 00 2D 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:19:48]wFMCommunicate OK [13:19:48]SAM_PROTO_GetFieldsCounters done [13:19:48]requested_item shift.num is exist - process it [13:19:48]requested_item shift.opened is exist - process it [13:19:48]req_shift_opened [13:19:48]FM_GetShiftState [13:19:48]SAM_PROTO_GetShiftState [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 13 01 00 [13:19:48]Write to MH i2c: E2 08 00 B3 05 80 13 01 00 00 00 00 00 35 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 0E 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 0E 00 B3 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5E [13:19:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:19:48]wFMCommunicate OK [13:19:48]SAM_PROTO_GetShiftState done [13:19:48]FM_GetShiftState done [13:19:48]req_shift_opened done [13:19:48]requested_item shift.open_date is exist - process it [13:19:48]req_shift_open_date [13:19:48]req_shift_open_date done [13:19:48]produce_requested_data done [13:19:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139666,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:19:48]process_action_free close_receipt [13:19:48]json_value_free [13:19:48]json_value_free done [13:19:48]process_json_proto returns [13:19:48]Send response to host [13:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139666,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:19:48]free response buf [13:19:48]execute_script done [13:19:48]execute_script returns [13:19:48]free content buf [13:19:48]Sock 9.Close socket [13:19:48]Sock 9.Thread stoped [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]ConnectInit Can't connect to host [13:25:57]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:20]ConnectInit Can't connect to host [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31: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:54]accept exits with 10 [13:32:54]New connection [13:32:54]New thread 3066510692 created [13:32:54]Thread 3066654052 joined [13:32:54]Waiting for new connection... [13:32:54] Sock 10.Parse request [13:32:54]Sock 10.Check first char [13:32:54]Sock 10.First char is OK [13:32:54]request: POST /json_proto HTTP/1.0 [13:32:54]Method: POST [13:32:54]URL: /json_proto [13:32:54]Method is POST - this is cgi request [13:32:54]url: /json_proto [13:32:54]query_string will be loaded in cgi processing [13:32:54]execute_cgi json_proto POST (null) [13:32:54]execute_cgi path=json_proto method=POST [13:32:54]POST find Content-Length [13:32:54]Host: 172.17.50.196:8080 [13:32:54]Content-Length: 755 [13:32:54]Content-Type: application/json [13:32:54] [13:32:54]POST finish read [13:32:54]Found Content-Length = 755 [13:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335521", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:54]execute_script... [13:32: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)335521", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:54]POST & json_proto [13:32:54]process_json_proto [13:32:54]json parsed OK: [13:32:54]protocol is kg_v1.0 [13:32:54]action value=close_receipt [13:32:54]process_action close_receipt [13:32:54]cmd_close_receipt [13:32:54]MH_GetDate [13:32:54]Write to MH i2c: F0 00 00 B4 05 A8 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: F0 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: F0 09 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: F0 09 00 B4 05 00 07 87 23 67 72 0D 1C 67 CB [13:32:54]GetLastDocTimeStamp 1730380785 [13:32:54]current date 1730381575 [13:32:54]FM_GetShiftState [13:32:54]SAM_PROTO_GetShiftState [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 13 01 00 [13:32:54]Write to MH i2c: E2 08 00 B5 05 80 13 01 00 00 00 00 00 37 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0E 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0E 00 B5 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 60 [13:32:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_GetShiftState done [13:32:54]FM_GetShiftState done [13:32:54]opened in 1730332621 [13:32:54]opened+sec_in_day 1730419021 [13:32:54]quantity*price = 39000 [13:32:54]sum+1 = 39001 [13:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 0.00 Безнал.: 390.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 144 31.10.2024 13:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139667 ФПД: 116378011526806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133255&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139667&fm=116378011526806&tin=02508201610067®Number=0000000000091631&sum=39000 0 [13:32:55]StoreToDocumentArchive [13:32:55]shift 557 fd 139667 [13:32:55]save to /storage/0557/doc_00139667 [13:32:55]save last doc name /storage/0557/doc_00139667 to /storage/kkm_last_doc_name [13:32:55]save OK [13:32:55]Clear old archive folders... [13:32:55]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:32:55]tlvbuf is 00A28420 [13:32:55]SAM_PROTO_ClearQueue [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 09 00 00 [13:32:55]Write to MH i2c: E2 08 00 C2 05 80 09 00 00 00 00 00 00 39 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 C2 05 00 90 00 3B [13:32:55]RAPDU: 90 00 [13:32:55]wFMCommunicate OK [13:32:55]SAM_PROTO_ClearQueue done [13:32:55]KKMCreateOFDPacket [13:32:55]OFDProtocolAddRootSTLVToBuf [13:32:55]FM_MakeSignedData [13:32:55]FM_MakeSignedData [13:32:55]SAM_PROTO_SignData [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 0D 01 02 [13:32:55]Write to MH i2c: E2 08 00 C3 05 80 0D 01 02 00 00 00 00 41 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 C3 05 00 90 00 3C [13:32:55]RAPDU: 90 00 [13:32:55]wFMCommunicate OK [13:32:55]wFMCommunicate request_size=255 [13:32:55]MH_SAM_APDU [13:32:55]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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 07 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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:32:55]Write to MH i2c: E2 02 01 C4 05 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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 07 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 A4 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 C4 05 00 90 00 3D [13:32:55]RAPDU: 90 00 [13:32:55]wFMCommunicate OK [13:32:55]wFMCommunicate request_size=35 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 21 02 00 35 04 06 00 69 D8 5E 09 66 96 [13:32:55]Write to MH i2c: E2 26 00 C5 05 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 21 02 00 35 04 06 00 69 D8 5E 09 66 96 00 00 99 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 03 02 [13:32:56]Write to MH i2c: E2 08 00 C6 05 80 0D 03 02 00 00 00 00 46 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0B 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0B 00 C6 05 00 67 FE 2B 95 4D 5E 39 D1 90 00 21 [13:32:56]RAPDU: 67 FE 2B 95 4D 5E 39 D1 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_SignData done [13:32:56]FM_MakeSignedData done [13:32:56]CreateOFDProtocolMessage [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 11 00 00 [13:32:56]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 17 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 17 00 C7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A1 [13: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 [13:32:56]wFMCommunicate OK [13:32:56]CreateOFDProtocolMessage done [13:32:56]OFDSenderStorePacket 139667 [13:32:56]StoreOFDPacket docnum=139667 [13:32: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 28 01 00 00 2D 8A 20 01 13 F8 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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 07 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 69 D8 5E 09 66 96 67 FE 2B 95 4D 5E 39 D1 [13:32:56]CheckFolder [13:32:56]dirname=/storage/ofd_packets [13:32:56]CheckFolder done [13:32:56]ProducePacketName [13:32:56]name=ofd_packets/00139667 [13:32:56]NVStorageSaveData ofd_packets/00139667 [13:32:56]File name is /storage/ofd_packets/00139667 [13:32:56]Write 326 bytes [13:32:56]NVStorageSaveData done [13:32:56]OFDSenderStorePacket done [13:32:56]KKMCreateOFDPacket done [13:32:56]NVStorageSaveData kkm_last_timestamp [13:32:56]File name is /storage/kkm_last_timestamp [13:32:56]Write 4 bytes [13:32:56]NVStorageSaveData done [13:32:56]ExternCall_PrintAddStr [13:32:56]wPrintStart [13:32:56]Write to MH i2c: 01 00 00 C8 05 CD [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [13:32:56]RasterBufferAndPrint [13:32:56]line Счет N : (3)335521 [13:32:56]line ИНН: 02508201610067 [13:32:56]line Контрольно-Кассовый Чек [13:32:56]line ПРОДАЖА [13:32:56]line Товар: 2000036230011 [13:32:56]line Кофе Латте XL(GABB TRADE) [13:32:56]line 3.000 * 130.00 [13:32:56]line = 390.00 [13:32:56]line НДС 12% НСП 1% [13:32:56]line > о реализуемом товаре [13:32:56]line ИТОГО: 390.00 [13:32:56]line НСП 1% : 3.45 [13:32:56]line НДС 12% : 41.42 [13:32:56]line Наличными: 0.00 [13:32:56]line Безнал.: 390.00 [13:32:56]line Место: АЗС № 101 "Партнер Нефть" [13:32:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:32:56]line СНО: Общий режим [13:32:56]line Чек 144 31.10.2024 13:32 [13:32:56]line Смена: 557 ФФД: 1.0 [13:32:56]line ЗНМ: 0300000081 [13:32:56]line РНМ: 0000000000091631 [13:32:56]line Версия ККМ: 001 [13:32:56]line Платежная система: Mbank [13:32:56]line ФМ: 0000000000874669 [13:32:56]line ФД: 139667 [13:32:56]line ФПД: 116378011526806 [13:32:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133255&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139667&fm=116378011526806&tin=02508201610067®Number=0000000000091631&sum=39000 [13:32:56]line 0 [13:32:56]OFD Sender: Processing packet 139667 [packets to send 34, broken 33] [13:32:56]ProducePacketName [13:32:56]name=ofd_packets/00139667 [13:32:56]OFD Sender: To server: pG, [13:32:56]CommunicateWithHost lk.salyk.kg:30040 [13:32:56]ConnectInit lk.salyk.kg [13:32:56]written 0, free lines is 4095 [13:32:56]Connected sock=9 [13:32: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 28 01 00 00 2D 8A 20 01 13 F8 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 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 07 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 69 D8 5E 09 66 96 67 FE 2B 95 4D 5E 39 D1 [13:32: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 C3 E3 47 00 57 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 21 02 00 F4 03 04 00 B4 32 23 67 B6 04 01 00 00 0F 98 75 B8 E0 F2 C8 3E [13:32:56]CommunicateWithHost err = 0 [13:32:56]CheckOFDResponse [13:32:56]1017 (14) - 77093643461234 [13:32:56]1041 (16) - 0000000000874669 [13:32:56]1040 (4) - 139667 [13:32:56]1012 (4) - 31.10.2024 07:33 [13:32:56]1206 (1) - 0 [13:32:56]OFD Sender: Remove packet 139667 [13:32:56]ProducePacketName [13:32:56]name=ofd_packets/00139667 [13:32:56]NVStorageDeleteData [13:32:56]Write to MH i2c: 01 00 00 F1 05 F6 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 F1 05 00 00 00 00 00 0F 0D 19 [13:32:56]RasterBufferAndPrint [13:32:56]line [13:32:56]line [13:32:56]line [13:32:56]line [13:32:56]line [13:32:56]written 0, free lines is 3350 [13:32:56]MH_Cut [13:32:56]Write to MH i2c: D1 01 00 F8 05 01 CF [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: D1 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: D1 01 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: D1 01 00 F8 05 00 CE [13:32:56]Write to MH i2c: 01 00 00 F9 05 FE [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:57]OFD Sender: No OFD packet to send [13:32:57]*** Cut start [13:32:57]*** Partial cut [13:32:57]*** CUTSNS_PIN = 1 [13:32:57]*** CUTSNS_PIN = 0 [13:32:57]*** Brake cut motor [13:32:58]Read from MH i2c: 01 [13:32:58]MH_I2C_Read... [13:32:58]*** Stop cut motor [13:32:58]*** Cut end [13:32:58]Read from MH i2c: 01 07 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 FF 0F 13 [13:32:58]process_action close_receipt done [13:32:58]requested_data is exist [13:32:58]produce_requested_data [13:32:58]requested_item fm.sn is exist - process it [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 11 00 00 [13:32:58]Write to MH i2c: E2 08 00 FA 05 80 11 00 00 00 00 00 00 79 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 FA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D4 [13:32: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:32:58]wFMCommunicate OK [13:32:58]requested_item fd.num is exist - process it [13:32:58]SAM_PROTO_GetFieldsCounters [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 13 00 00 [13:32:58]Write to MH i2c: E2 08 00 FB 05 80 13 00 00 00 00 00 00 7C [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 62 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 62 00 FB 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 35 [13:32: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 93 21 02 00 0E 04 04 00 2D 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:32:58]wFMCommunicate OK [13:32:58]SAM_PROTO_GetFieldsCounters done [13:32:58]requested_item shift.num is exist - process it [13:32:58]requested_item shift.opened is exist - process it [13:32:58]req_shift_opened [13:32:58]FM_GetShiftState [13:32:58]SAM_PROTO_GetShiftState [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 13 01 00 [13:32:58]Write to MH i2c: E2 08 00 FC 05 80 13 01 00 00 00 00 00 7E [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:58]Read from MH i2c: E2 0E 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 0E 00 FC 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A7 [13:32:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:32:58]wFMCommunicate OK [13:32:58]SAM_PROTO_GetShiftState done [13:32:58]FM_GetShiftState done [13:32:58]req_shift_opened done [13:32:58]requested_item shift.open_date is exist - process it [13:32:58]req_shift_open_date [13:32:58]req_shift_open_date done [13:32:58]produce_requested_data done [13:32:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139667,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:32:58]process_action_free close_receipt [13:32:58]json_value_free [13:32:58]json_value_free done [13:32:58]process_json_proto returns [13:32:58]Send response to host [13:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139667,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:32:58]free response buf [13:32:58]execute_script done [13:32:58]execute_script returns [13:32:58]free content buf [13:32:58]Sock 10.Close socket [13:32:58]Sock 10.Thread stoped [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:09]accept exits with 7 [13:34:09]New connection [13:34:09]New thread 3066654052 created [13:34:09]Thread 3066510692 joined [13:34:09]Waiting for new connection... [13:34:09] Sock 7.Parse request [13:34:09]Sock 7.Check first char [13:34:09]Sock 7.First char is OK [13:34:09]request: POST /json_proto HTTP/1.0 [13:34:09]Method: POST [13:34:09]URL: /json_proto [13:34:09]Method is POST - this is cgi request [13:34:09]url: /json_proto [13:34:09]query_string will be loaded in cgi processing [13:34:09]execute_cgi json_proto POST (null) [13:34:09]execute_cgi path=json_proto method=POST [13:34:09]POST find Content-Length [13:34:09]Host: 172.17.50.196:8080 [13:34:09]Content-Length: 657 [13:34:09]Content-Type: application/json [13:34:09] [13:34:09]POST finish read [13:34:09]Found Content-Length = 657 [13:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335522", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [13:34:09]execute_script... [13:34: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)335522", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [13:34:09]POST & json_proto [13:34:09]process_json_proto [13:34:09]json parsed OK: [13:34:09]protocol is kg_v1.0 [13:34:09]action value=close_receipt [13:34:09]process_action close_receipt [13:34:09]cmd_close_receipt [13:34:09]MH_GetDate [13:34:09]Write to MH i2c: F0 00 00 FD 05 F1 [13:34:09]Write i2c OK [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: F0 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: F0 09 00 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: F0 09 00 FD 05 00 52 87 23 67 72 0D 1C 67 5F [13:34:09]GetLastDocTimeStamp 1730381575 [13:34:09]current date 1730381650 [13:34:09]FM_GetShiftState [13:34:09]SAM_PROTO_GetShiftState [13:34:09]wFMCommunicate request_size=4 [13:34:09]MH_SAM_APDU [13:34:09]CAPDU: 80 13 01 00 [13:34:09]Write to MH i2c: E2 08 00 FE 05 80 13 01 00 00 00 00 00 80 [13:34:09]Write i2c OK [13:34:09]MH_I2C_Read... [13:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:09]Read from MH i2c: E2 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: E2 0E 00 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: E2 0E 00 FE 05 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A9 [13:34:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:34:09]wFMCommunicate OK [13:34:09]SAM_PROTO_GetShiftState done [13:34:09]FM_GetShiftState done [13:34:09]opened in 1730332621 [13:34:09]opened+sec_in_day 1730419021 [13:34:09]quantity*price = 9500 [13:34:09]sum+1 = 9501 [13:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 145 31.10.2024 13:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139668 ФПД: 254669078244693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133410&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139668&fm=254669078244693&tin=02508201610067®Number=0000000000091631&sum=9500 0 [13:34:10]StoreToDocumentArchive [13:34:10]shift 557 fd 139668 [13:34:10]save to /storage/0557/doc_00139668 [13:34:10]save last doc name /storage/0557/doc_00139668 to /storage/kkm_last_doc_name [13:34:10]save OK [13:34:10]Clear old archive folders... [13:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=288 [13:34:10]tlvbuf is 00A7EC20 [13:34:10]SAM_PROTO_ClearQueue [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 09 00 00 [13:34:10]Write to MH i2c: E2 08 00 0B 06 80 09 00 00 00 00 00 00 83 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]SAM_PROTO_ClearQueue done [13:34:10]KKMCreateOFDPacket [13:34:10]OFDProtocolAddRootSTLVToBuf [13:34:10]FM_MakeSignedData [13:34:10]FM_MakeSignedData [13:34:10]SAM_PROTO_SignData [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 0D 01 02 [13:34:10]Write to MH i2c: E2 08 00 0C 06 80 0D 01 02 00 00 00 00 8B [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]wFMCommunicate request_size=255 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 91 00 00 00 F4 03 04 00 52 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [13:34:10]Write to MH i2c: E2 02 01 0D 06 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 91 00 00 00 F4 03 04 00 52 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 99 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]wFMCommunicate request_size=47 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 0D 02 02 2A 31 36 33 31 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 21 02 00 35 04 06 00 E7 9E C3 F1 AD 55 [13:34:10]Write to MH i2c: E2 32 00 0E 06 80 0D 02 02 2A 00 31 36 33 31 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 21 02 00 35 04 06 00 E7 9E C3 F1 AD 55 00 00 43 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 0D 03 02 [13:34:10]Write to MH i2c: E2 08 00 0F 06 80 0D 03 02 00 00 00 00 90 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:11]Read from MH i2c: E2 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: E2 0B 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: E2 0B 00 0F 06 00 CC 8A BF 5A 90 3D 86 D1 90 00 24 [13:34:11]RAPDU: CC 8A BF 5A 90 3D 86 D1 90 00 [13:34:11]wFMCommunicate OK [13:34:11]SAM_PROTO_SignData done [13:34:11]FM_MakeSignedData done [13:34:11]CreateOFDProtocolMessage [13:34:11]wFMCommunicate request_size=4 [13:34:11]MH_SAM_APDU [13:34:11]CAPDU: 80 11 00 00 [13:34:11]Write to MH i2c: E2 08 00 10 06 80 11 00 00 00 00 00 00 90 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:11]Read from MH i2c: E2 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: E2 17 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: E2 17 00 10 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EB [13:34: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:34:11]wFMCommunicate OK [13:34:11]CreateOFDProtocolMessage done [13:34:11]OFDSenderStorePacket 139668 [13:34:11]StoreOFDPacket docnum=139668 [13:34: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 34 01 00 00 28 B8 2C 01 07 DA 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 91 00 00 00 F4 03 04 00 52 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E7 9E C3 F1 AD 55 CC 8A BF 5A 90 3D 86 D1 [13:34:11]CheckFolder [13:34:11]dirname=/storage/ofd_packets [13:34:11]CheckFolder done [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00139668 [13:34:11]NVStorageSaveData ofd_packets/00139668 [13:34:11]File name is /storage/ofd_packets/00139668 [13:34:11]Write 338 bytes [13:34:11]NVStorageSaveData done [13:34:11]OFDSenderStorePacket done [13:34:11]KKMCreateOFDPacket done [13:34:11]NVStorageSaveData kkm_last_timestamp [13:34:11]File name is /storage/kkm_last_timestamp [13:34:11]Write 4 bytes [13:34:11]NVStorageSaveData done [13:34:11]ExternCall_PrintAddStr [13:34:11]wPrintStart [13:34:11]Write to MH i2c: 01 00 00 11 06 17 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 11 06 00 00 00 00 00 FF 0F 2C [13:34:11]RasterBufferAndPrint [13:34:11]line Счет N : (3)335522 [13:34:11]line ИНН: 02508201610067 [13:34:11]line Контрольно-Кассовый Чек [13:34:11]line ПРОДАЖА [13:34:11]line Товар: 4700000481453 [13:34:11]line Напиток энерг Nitro Max 0,45 ж/б [13:34:11]line 1.000 * 95.00 [13:34:11]line = 95.00 [13:34:11]line НДС 12% НСП 1% [13:34:11]line > о реализуемом товаре [13:34:11]line ИТОГО: 95.00 [13:34:11]line НСП 1% : 0.84 [13:34:11]line НДС 12% : 10.09 [13:34:11]line Наличными: 95.00 [13:34:11]line Безнал.: 0.00 [13:34:11]line Место: АЗС № 101 "Партнер Нефть" [13:34:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:34:11]line СНО: Общий режим [13:34:11]line Чек 145 31.10.2024 13:34 [13:34:11]line Смена: 557 ФФД: 1.0 [13:34:11]line ЗНМ: 0300000081 [13:34:11]line РНМ: 0000000000091631 [13:34:11]line Версия ККМ: 001 [13:34:11]line ФМ: 0000000000874669 [13:34:11]line ФД: 139668 [13:34:11]line ФПД: 254669078244693 [13:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133410&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139668&fm=254669078244693&tin=02508201610067®Number=0000000000091631&sum=9500 [13:34:11]line 0 [13:34:11]OFD Sender: Processing packet 139668 [packets to send 34, broken 33] [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00139668 [13:34:11]OFD Sender: To server: pG, [13:34:11]CommunicateWithHost lk.salyk.kg:30040 [13:34:11]ConnectInit lk.salyk.kg [13:34:11]written 0, free lines is 4095 [13:34:11]Connected sock=10 [13:34: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 34 01 00 00 28 B8 2C 01 07 DA 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 91 00 00 00 F4 03 04 00 52 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E7 9E C3 F1 AD 55 CC 8A BF 5A 90 3D 86 D1 [13:34: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 AC 2A 47 00 4B 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 94 21 02 00 F4 03 04 00 FF 32 23 67 B6 04 01 00 00 55 12 B4 AB D2 C2 05 AF [13:34:11]CommunicateWithHost err = 0 [13:34:11]CheckOFDResponse [13:34:11]1017 (14) - 77093643461234 [13:34:11]1041 (16) - 0000000000874669 [13:34:11]1040 (4) - 139668 [13:34:11]1012 (4) - 31.10.2024 07:34 [13:34:11]1206 (1) - 0 [13:34:11]OFD Sender: Remove packet 139668 [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00139668 [13:34:11]NVStorageDeleteData [13:34:11]Write to MH i2c: 01 00 00 3A 06 40 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 F5 0C 48 [13:34:11]RasterBufferAndPrint [13:34:11]line [13:34:11]line [13:34:11]line [13:34:11]line [13:34:11]line [13:34:11]written 0, free lines is 3327 [13:34:11]MH_Cut [13:34:11]Write to MH i2c: D1 01 00 41 06 01 19 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: D1 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: D1 01 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: D1 01 00 41 06 00 18 [13:34:11]Write to MH i2c: 01 00 00 42 06 48 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:12]OFD Sender: No OFD packet to send [13:34:12]*** Cut start [13:34:12]*** Partial cut [13:34:12]*** CUTSNS_PIN = 1 [13:34:12]*** CUTSNS_PIN = 0 [13:34:12]*** Brake cut motor [13:34:13]Read from MH i2c: 01 [13:34:13]MH_I2C_Read... [13:34:13]*** Stop cut motor [13:34:13]*** Cut end [13:34:13]Read from MH i2c: 01 07 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [13:34:13]process_action close_receipt done [13:34:13]requested_data is exist [13:34:13]produce_requested_data [13:34:13]requested_item fm.sn is exist - process it [13:34:13]wFMCommunicate request_size=4 [13:34:13]MH_SAM_APDU [13:34:13]CAPDU: 80 11 00 00 [13:34:13]Write to MH i2c: E2 08 00 43 06 80 11 00 00 00 00 00 00 C3 [13:34:13]Write i2c OK [13:34:13]MH_I2C_Read... [13:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:13]Read from MH i2c: E2 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 17 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 17 00 43 06 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:34: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:34:13]wFMCommunicate OK [13:34:13]requested_item fd.num is exist - process it [13:34:13]SAM_PROTO_GetFieldsCounters [13:34:13]wFMCommunicate request_size=4 [13:34:13]MH_SAM_APDU [13:34:13]CAPDU: 80 13 00 00 [13:34:13]Write to MH i2c: E2 08 00 44 06 80 13 00 00 00 00 00 00 C6 [13:34:13]Write i2c OK [13:34:13]MH_I2C_Read... [13:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:13]Read from MH i2c: E2 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 62 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 62 00 44 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 83 [13:34: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 94 21 02 00 0E 04 04 00 2D 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:34:13]wFMCommunicate OK [13:34:13]SAM_PROTO_GetFieldsCounters done [13:34:13]requested_item shift.num is exist - process it [13:34:13]requested_item shift.opened is exist - process it [13:34:13]req_shift_opened [13:34:13]FM_GetShiftState [13:34:13]SAM_PROTO_GetShiftState [13:34:13]wFMCommunicate request_size=4 [13:34:13]MH_SAM_APDU [13:34:13]CAPDU: 80 13 01 00 [13:34:13]Write to MH i2c: E2 08 00 45 06 80 13 01 00 00 00 00 00 C8 [13:34:13]Write i2c OK [13:34:13]MH_I2C_Read... [13:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:13]Read from MH i2c: E2 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 0E 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 0E 00 45 06 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F1 [13:34:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:34:13]wFMCommunicate OK [13:34:13]SAM_PROTO_GetShiftState done [13:34:13]FM_GetShiftState done [13:34:13]req_shift_opened done [13:34:13]requested_item shift.open_date is exist - process it [13:34:13]req_shift_open_date [13:34:13]req_shift_open_date done [13:34:13]produce_requested_data done [13:34:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139668,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:34:13]process_action_free close_receipt [13:34:13]json_value_free [13:34:13]json_value_free done [13:34:13]process_json_proto returns [13:34:13]Send response to host [13:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139668,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:34:13]free response buf [13:34:13]execute_script done [13:34:13]execute_script returns [13:34:13]free content buf [13:34:13]Sock 7.Close socket [13:34:13]Sock 7.Thread stoped [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:18]accept exits with 9 [13:35:18]New connection [13:35:18]New thread 3066510692 created [13:35:18]Thread 3066654052 joined [13:35:18]Waiting for new connection... [13:35:18] Sock 9.Parse request [13:35:18]Sock 9.Check first char [13:35:18]Sock 9.First char is OK [13:35:18]request: POST /json_proto HTTP/1.0 [13:35:18]Method: POST [13:35:18]URL: /json_proto [13:35:18]Method is POST - this is cgi request [13:35:18]url: /json_proto [13:35:18]query_string will be loaded in cgi processing [13:35:18]execute_cgi json_proto POST (null) [13:35:18]execute_cgi path=json_proto method=POST [13:35:18]POST find Content-Length [13:35:18]Host: 172.17.50.196:8080 [13:35:18]Content-Length: 608 [13:35:18]Content-Type: application/json [13:35:18] [13:35:18]POST finish read [13:35:18]Found Content-Length = 608 [13:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335523", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:18]execute_script... [13:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335523", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:18]POST & json_proto [13:35:18]process_json_proto [13:35:18]json parsed OK: [13:35:18]protocol is kg_v1.0 [13:35:18]action value=close_receipt [13:35:18]process_action close_receipt [13:35:18]cmd_close_receipt [13:35:18]MH_GetDate [13:35:18]Write to MH i2c: F0 00 00 46 06 3B [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: F0 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: F0 09 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: F0 09 00 46 06 00 97 87 23 67 72 0D 1C 67 EE [13:35:18]GetLastDocTimeStamp 1730381650 [13:35:18]current date 1730381719 [13:35:18]FM_GetShiftState [13:35:18]SAM_PROTO_GetShiftState [13:35:18]wFMCommunicate request_size=4 [13:35:18]MH_SAM_APDU [13:35:18]CAPDU: 80 13 01 00 [13:35:18]Write to MH i2c: E2 08 00 47 06 80 13 01 00 00 00 00 00 CA [13:35:18]Write i2c OK [13:35:18]MH_I2C_Read... [13:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:18]Read from MH i2c: E2 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 0E 00 [13:35:18]MH_I2C_Read... [13:35:18]Read from MH i2c: E2 0E 00 47 06 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F3 [13:35:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:35:18]wFMCommunicate OK [13:35:18]SAM_PROTO_GetShiftState done [13:35:18]FM_GetShiftState done [13:35:18]opened in 1730332621 [13:35:18]opened+sec_in_day 1730419021 [13:35:18]quantity*price = 2000 [13:35:18]sum+1 = 2001 [13:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 146 31.10.2024 13:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139669 ФПД: 73019083159920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133519&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139669&fm=73019083159920&tin=02508201610067®Number=0000000000091631&sum=2000 0 [13:35:19]StoreToDocumentArchive [13:35:19]shift 557 fd 139669 [13:35:19]save to /storage/0557/doc_00139669 [13:35:19]save last doc name /storage/0557/doc_00139669 to /storage/kkm_last_doc_name [13:35:19]save OK [13:35:19]Clear old archive folders... [13:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=267 [13:35:19]tlvbuf is 00A7DFF0 [13:35:19]SAM_PROTO_ClearQueue [13:35:19]wFMCommunicate request_size=4 [13:35:19]MH_SAM_APDU [13:35:19]CAPDU: 80 09 00 00 [13:35:19]Write to MH i2c: E2 08 00 54 06 80 09 00 00 00 00 00 00 CC [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [13:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:19]Read from MH i2c: E2 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: E2 03 00 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: E2 03 00 54 06 00 90 00 CE [13:35:19]RAPDU: 90 00 [13:35:19]wFMCommunicate OK [13:35:19]SAM_PROTO_ClearQueue done [13:35:19]KKMCreateOFDPacket [13:35:19]OFDProtocolAddRootSTLVToBuf [13:35:19]FM_MakeSignedData [13:35:19]FM_MakeSignedData [13:35:19]SAM_PROTO_SignData [13:35:19]wFMCommunicate request_size=4 [13:35:19]MH_SAM_APDU [13:35:19]CAPDU: 80 0D 01 02 [13:35:19]Write to MH i2c: E2 08 00 55 06 80 0D 01 02 00 00 00 00 D4 [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [13:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:19]Read from MH i2c: E2 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: E2 03 00 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [13:35:19]RAPDU: 90 00 [13:35:19]wFMCommunicate OK [13:35:19]wFMCommunicate request_size=255 [13:35:19]MH_SAM_APDU [13:35:19]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 97 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [13:35:19]Write to MH i2c: E2 02 01 56 06 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 97 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 F1 [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [13:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:19]Read from MH i2c: E2 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: E2 03 00 [13:35:19]MH_I2C_Read... [13:35:19]Read from MH i2c: E2 03 00 56 06 00 90 00 D0 [13:35:19]RAPDU: 90 00 [13:35:19]wFMCommunicate OK [13:35:19]wFMCommunicate request_size=26 [13:35:19]MH_SAM_APDU [13:35:19]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 95 21 02 00 35 04 06 00 42 69 14 83 79 70 [13:35:19]Write to MH i2c: E2 1D 00 57 06 80 0D 02 02 15 00 36 36 39 10 04 04 00 95 21 02 00 35 04 06 00 42 69 14 83 79 70 00 00 E0 [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [13:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:20]Read from MH i2c: E2 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 03 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [13:35:20]RAPDU: 90 00 [13:35:20]wFMCommunicate OK [13:35:20]wFMCommunicate request_size=4 [13:35:20]MH_SAM_APDU [13:35:20]CAPDU: 80 0D 03 02 [13:35:20]Write to MH i2c: E2 08 00 58 06 80 0D 03 02 00 00 00 00 D9 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:20]Read from MH i2c: E2 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 0B 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 0B 00 58 06 00 9C BC F2 D5 08 46 CB E2 90 00 F4 [13:35:20]RAPDU: 9C BC F2 D5 08 46 CB E2 90 00 [13:35:20]wFMCommunicate OK [13:35:20]SAM_PROTO_SignData done [13:35:20]FM_MakeSignedData done [13:35:20]CreateOFDProtocolMessage [13:35:20]wFMCommunicate request_size=4 [13:35:20]MH_SAM_APDU [13:35:20]CAPDU: 80 11 00 00 [13:35:20]Write to MH i2c: E2 08 00 59 06 80 11 00 00 00 00 00 00 D9 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:20]Read from MH i2c: E2 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 17 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 17 00 59 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 34 [13:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:35:20]wFMCommunicate OK [13:35:20]CreateOFDProtocolMessage done [13:35:20]OFDSenderStorePacket 139669 [13:35:20]StoreOFDPacket docnum=139669 [13:35: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 1F 01 00 00 44 A5 17 01 40 7F 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 97 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 42 69 14 83 79 70 9C BC F2 D5 08 46 CB E2 [13:35:20]CheckFolder [13:35:20]dirname=/storage/ofd_packets [13:35:20]CheckFolder done [13:35:20]ProducePacketName [13:35:20]name=ofd_packets/00139669 [13:35:20]NVStorageSaveData ofd_packets/00139669 [13:35:20]File name is /storage/ofd_packets/00139669 [13:35:20]Write 317 bytes [13:35:20]NVStorageSaveData done [13:35:20]OFDSenderStorePacket done [13:35:20]KKMCreateOFDPacket done [13:35:20]NVStorageSaveData kkm_last_timestamp [13:35:20]File name is /storage/kkm_last_timestamp [13:35:20]Write 4 bytes [13:35:20]NVStorageSaveData done [13:35:20]ExternCall_PrintAddStr [13:35:20]wPrintStart [13:35:20]Write to MH i2c: 01 00 00 5A 06 60 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: 01 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: 01 07 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FF 0F 75 [13:35:20]RasterBufferAndPrint [13:35:20]line Счет N : (3)335523 [13:35:20]line ИНН: 02508201610067 [13:35:20]line Контрольно-Кассовый Чек [13:35:20]line ПРОДАЖА [13:35:20]line Товар: 46231529 [13:35:20]line Mentos ПФ Арбуз 6*100*2 [13:35:20]line 2.000 * 10.00 [13:35:20]line = 20.00 [13:35:20]line НДС 12% НСП 1% [13:35:20]line > о реализуемом товаре [13:35:20]line ИТОГО: 20.00 [13:35:20]line НСП 1% : 0.18 [13:35:20]line НДС 12% : 2.12 [13:35:20]line Наличными: 20.00 [13:35:20]line Безнал.: 0.00 [13:35:20]line Место: АЗС № 101 "Партнер Нефть" [13:35:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:35:20]line СНО: Общий режим [13:35:20]line Чек 146 31.10.2024 13:35 [13:35:20]line Смена: 557 ФФД: 1.0 [13:35:20]line ЗНМ: 0300000081 [13:35:20]line РНМ: 0000000000091631 [13:35:20]line Версия ККМ: 001 [13:35:20]line ФМ: 0000000000874669 [13:35:20]line ФД: 139669 [13:35:20]line ФПД: 73019083159920 [13:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133519&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139669&fm=73019083159920&tin=02508201610067®Number=0000000000091631&sum=2000 [13:35:20]line 0 [13:35:20]OFD Sender: Processing packet 139669 [packets to send 34, broken 33] [13:35:20]ProducePacketName [13:35:20]name=ofd_packets/00139669 [13:35:20]OFD Sender: To server: pG, [13:35:20]CommunicateWithHost lk.salyk.kg:30040 [13:35:20]ConnectInit lk.salyk.kg [13:35:20]written 0, free lines is 4095 [13:35:20]Connected sock=10 [13:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1F 01 00 00 44 A5 17 01 40 7F 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 97 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 42 69 14 83 79 70 9C BC F2 D5 08 46 CB E2 [13:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6D B1 47 00 F7 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 21 02 00 F4 03 04 00 44 33 23 67 B6 04 01 00 00 3F 73 8B 13 DA CF C9 1D [13:35:20]CommunicateWithHost err = 0 [13:35:20]CheckOFDResponse [13:35:20]1017 (14) - 77093643461234 [13:35:20]1041 (16) - 0000000000874669 [13:35:20]1040 (4) - 139669 [13:35:20]1012 (4) - 31.10.2024 07:35 [13:35:20]1206 (1) - 0 [13:35:20]OFD Sender: Remove packet 139669 [13:35:20]ProducePacketName [13:35:20]name=ofd_packets/00139669 [13:35:20]NVStorageDeleteData [13:35:20]Write to MH i2c: 01 00 00 82 06 88 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: 01 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: 01 07 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 0E 0D AA [13:35:20]RasterBufferAndPrint [13:35:20]line [13:35:20]line [13:35:20]line [13:35:20]line [13:35:20]line [13:35:20]written 0, free lines is 3351 [13:35:20]MH_Cut [13:35:20]Write to MH i2c: D1 01 00 89 06 01 61 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: D1 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: D1 01 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: D1 01 00 89 06 00 60 [13:35:20]Write to MH i2c: 01 00 00 8A 06 90 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:21]OFD Sender: No OFD packet to send [13:35:21]*** Cut start [13:35:21]*** Partial cut [13:35:21]*** CUTSNS_PIN = 1 [13:35:21]*** CUTSNS_PIN = 0 [13:35:21]*** Brake cut motor [13:35:22]Read from MH i2c: 01 [13:35:22]MH_I2C_Read... [13:35:22]*** Stop cut motor [13:35:22]*** Cut end [13:35:22]Read from MH i2c: 01 07 00 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [13:35:22]process_action close_receipt done [13:35:22]requested_data is exist [13:35:22]produce_requested_data [13:35:22]requested_item fm.sn is exist - process it [13:35:22]wFMCommunicate request_size=4 [13:35:22]MH_SAM_APDU [13:35:22]CAPDU: 80 11 00 00 [13:35:22]Write to MH i2c: E2 08 00 8B 06 80 11 00 00 00 00 00 00 0B [13:35:22]Write i2c OK [13:35:22]MH_I2C_Read... [13:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:22]Read from MH i2c: E2 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: E2 17 00 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: E2 17 00 8B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [13:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:35:22]wFMCommunicate OK [13:35:22]requested_item fd.num is exist - process it [13:35:22]SAM_PROTO_GetFieldsCounters [13:35:22]wFMCommunicate request_size=4 [13:35:22]MH_SAM_APDU [13:35:22]CAPDU: 80 13 00 00 [13:35:22]Write to MH i2c: E2 08 00 8C 06 80 13 00 00 00 00 00 00 0E [13:35:22]Write i2c OK [13:35:22]MH_I2C_Read... [13:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:22]Read from MH i2c: E2 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: E2 62 00 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: E2 62 00 8C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 CF [13:35: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 95 21 02 00 0E 04 04 00 2D 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:35:22]wFMCommunicate OK [13:35:22]SAM_PROTO_GetFieldsCounters done [13:35:22]requested_item shift.num is exist - process it [13:35:22]requested_item shift.opened is exist - process it [13:35:22]req_shift_opened [13:35:22]FM_GetShiftState [13:35:22]SAM_PROTO_GetShiftState [13:35:22]wFMCommunicate request_size=4 [13:35:22]MH_SAM_APDU [13:35:22]CAPDU: 80 13 01 00 [13:35:22]Write to MH i2c: E2 08 00 8D 06 80 13 01 00 00 00 00 00 10 [13:35:22]Write i2c OK [13:35:22]MH_I2C_Read... [13:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:22]Read from MH i2c: E2 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: E2 0E 00 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: E2 0E 00 8D 06 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 39 [13:35:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:35:22]wFMCommunicate OK [13:35:22]SAM_PROTO_GetShiftState done [13:35:22]FM_GetShiftState done [13:35:22]req_shift_opened done [13:35:22]requested_item shift.open_date is exist - process it [13:35:22]req_shift_open_date [13:35:22]req_shift_open_date done [13:35:22]produce_requested_data done [13:35:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139669,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:35:22]process_action_free close_receipt [13:35:22]json_value_free [13:35:22]json_value_free done [13:35:22]process_json_proto returns [13:35:22]Send response to host [13:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139669,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:35:22]free response buf [13:35:22]execute_script done [13:35:22]execute_script returns [13:35:22]free content buf [13:35:22]Sock 9.Close socket [13:35:22]Sock 9.Thread stoped [13:35:25]accept exits with 7 [13:35:25]New connection [13:35:25]New thread 3066654052 created [13:35:25]Thread 3066510692 joined [13:35:25]Waiting for new connection... [13:35:25] Sock 7.Parse request [13:35:25]Sock 7.Check first char [13:35:25]Sock 7.First char is OK [13:35:25]request: POST /json_proto HTTP/1.0 [13:35:25]Method: POST [13:35:25]URL: /json_proto [13:35:25]Method is POST - this is cgi request [13:35:25]url: /json_proto [13:35:25]query_string will be loaded in cgi processing [13:35:25]execute_cgi json_proto POST (null) [13:35:25]execute_cgi path=json_proto method=POST [13:35:25]POST find Content-Length [13:35:25]Host: 172.17.50.196:8080 [13:35:25]Content-Length: 608 [13:35:25]Content-Type: application/json [13:35:25] [13:35:25]POST finish read [13:35:25]Found Content-Length = 608 [13:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335524", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:25]execute_script... [13:35: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)335524", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:25]POST & json_proto [13:35:25]process_json_proto [13:35:25]json parsed OK: [13:35:25]protocol is kg_v1.0 [13:35:25]action value=close_receipt [13:35:25]process_action close_receipt [13:35:25]cmd_close_receipt [13:35:25]MH_GetDate [13:35:25]Write to MH i2c: F0 00 00 8E 06 83 [13:35:25]Write i2c OK [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: F0 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: F0 09 00 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: F0 09 00 8E 06 00 9E 87 23 67 72 0D 1C 67 3D [13:35:25]GetLastDocTimeStamp 1730381719 [13:35:25]current date 1730381726 [13:35:25]FM_GetShiftState [13:35:25]SAM_PROTO_GetShiftState [13:35:25]wFMCommunicate request_size=4 [13:35:25]MH_SAM_APDU [13:35:25]CAPDU: 80 13 01 00 [13:35:25]Write to MH i2c: E2 08 00 8F 06 80 13 01 00 00 00 00 00 12 [13:35:25]Write i2c OK [13:35:25]MH_I2C_Read... [13:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:25]Read from MH i2c: E2 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: E2 0E 00 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: E2 0E 00 8F 06 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3B [13:35:25]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:35:25]wFMCommunicate OK [13:35:25]SAM_PROTO_GetShiftState done [13:35:25]FM_GetShiftState done [13:35:25]opened in 1730332621 [13:35:25]opened+sec_in_day 1730419021 [13:35:25]quantity*price = 1000 [13:35:25]sum+1 = 1001 [13:35:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 147 31.10.2024 13:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139670 ФПД: 70066007237891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133526&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139670&fm=70066007237891&tin=02508201610067®Number=0000000000091631&sum=1000 0 [13:35:26]StoreToDocumentArchive [13:35:26]shift 557 fd 139670 [13:35:26]save to /storage/0557/doc_00139670 [13:35:26]save last doc name /storage/0557/doc_00139670 to /storage/kkm_last_doc_name [13:35:26]save OK [13:35:26]Clear old archive folders... [13:35:26]ProcessDocumentItem done err = 0, tmpTLVsize=267 [13:35:26]tlvbuf is 00AD97A0 [13:35:26]SAM_PROTO_ClearQueue [13:35:26]wFMCommunicate request_size=4 [13:35:26]MH_SAM_APDU [13:35:26]CAPDU: 80 09 00 00 [13:35:26]Write to MH i2c: E2 08 00 9C 06 80 09 00 00 00 00 00 00 14 [13:35:26]Write i2c OK [13:35:26]MH_I2C_Read... [13:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:26]Read from MH i2c: E2 [13:35:26]MH_I2C_Read... [13:35:26]Read from MH i2c: E2 03 00 [13:35:26]MH_I2C_Read... [13:35:26]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [13:35:26]RAPDU: 90 00 [13:35:26]wFMCommunicate OK [13:35:26]SAM_PROTO_ClearQueue done [13:35:26]KKMCreateOFDPacket [13:35:26]OFDProtocolAddRootSTLVToBuf [13:35:26]FM_MakeSignedData [13:35:26]FM_MakeSignedData [13:35:26]SAM_PROTO_SignData [13:35:26]wFMCommunicate request_size=4 [13:35:26]MH_SAM_APDU [13:35:26]CAPDU: 80 0D 01 02 [13:35:26]Write to MH i2c: E2 08 00 9D 06 80 0D 01 02 00 00 00 00 1C [13:35:26]Write i2c OK [13:35:26]MH_I2C_Read... [13:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:26]Read from MH i2c: E2 [13:35:26]MH_I2C_Read... [13:35:26]Read from MH i2c: E2 03 00 [13:35:26]MH_I2C_Read... [13:35:26]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [13:35:26]RAPDU: 90 00 [13:35:26]wFMCommunicate OK [13:35:26]wFMCommunicate request_size=255 [13:35:26]MH_SAM_APDU [13:35:26]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 9E 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [13:35:26]Write to MH i2c: E2 02 01 9E 06 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 9E 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 1E [13:35:26]Write i2c OK [13:35:26]MH_I2C_Read... [13:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:27]Read from MH i2c: E2 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 03 00 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 03 00 9E 06 00 90 00 18 [13:35:27]RAPDU: 90 00 [13:35:27]wFMCommunicate OK [13:35:27]wFMCommunicate request_size=26 [13:35:27]MH_SAM_APDU [13:35:27]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 96 21 02 00 35 04 06 00 3F B9 83 78 E5 03 [13:35:27]Write to MH i2c: E2 1D 00 9F 06 80 0D 02 02 15 00 36 36 39 10 04 04 00 96 21 02 00 35 04 06 00 3F B9 83 78 E5 03 00 00 D9 [13:35:27]Write i2c OK [13:35:27]MH_I2C_Read... [13:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:27]Read from MH i2c: E2 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 03 00 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 03 00 9F 06 00 90 00 19 [13:35:27]RAPDU: 90 00 [13:35:27]wFMCommunicate OK [13:35:27]wFMCommunicate request_size=4 [13:35:27]MH_SAM_APDU [13:35:27]CAPDU: 80 0D 03 02 [13:35:27]Write to MH i2c: E2 08 00 A0 06 80 0D 03 02 00 00 00 00 21 [13:35:27]Write i2c OK [13:35:27]MH_I2C_Read... [13:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:27]Read from MH i2c: E2 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 0B 00 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 0B 00 A0 06 00 DC 0B 48 FF A6 E1 87 5A 90 00 B8 [13:35:27]RAPDU: DC 0B 48 FF A6 E1 87 5A 90 00 [13:35:27]wFMCommunicate OK [13:35:27]SAM_PROTO_SignData done [13:35:27]FM_MakeSignedData done [13:35:27]CreateOFDProtocolMessage [13:35:27]wFMCommunicate request_size=4 [13:35:27]MH_SAM_APDU [13:35:27]CAPDU: 80 11 00 00 [13:35:27]Write to MH i2c: E2 08 00 A1 06 80 11 00 00 00 00 00 00 21 [13:35:27]Write i2c OK [13:35:27]MH_I2C_Read... [13:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:27]Read from MH i2c: E2 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 17 00 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: E2 17 00 A1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7C [13:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:35:27]wFMCommunicate OK [13:35:27]CreateOFDProtocolMessage done [13:35:27]OFDSenderStorePacket 139670 [13:35:27]StoreOFDPacket docnum=139670 [13:35: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 1F 01 00 00 41 6A 17 01 8F 82 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 9E 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3F B9 83 78 E5 03 DC 0B 48 FF A6 E1 87 5A [13:35:27]CheckFolder [13:35:27]dirname=/storage/ofd_packets [13:35:27]CheckFolder done [13:35:27]ProducePacketName [13:35:27]name=ofd_packets/00139670 [13:35:27]NVStorageSaveData ofd_packets/00139670 [13:35:27]File name is /storage/ofd_packets/00139670 [13:35:27]Write 317 bytes [13:35:27]NVStorageSaveData done [13:35:27]OFDSenderStorePacket done [13:35:27]KKMCreateOFDPacket done [13:35:27]NVStorageSaveData kkm_last_timestamp [13:35:27]File name is /storage/kkm_last_timestamp [13:35:27]Write 4 bytes [13:35:27]NVStorageSaveData done [13:35:27]ExternCall_PrintAddStr [13:35:27]wPrintStart [13:35:27]Write to MH i2c: 01 00 00 A2 06 A8 [13:35:27]Write i2c OK [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: 01 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: 01 07 00 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: 01 07 00 A2 06 00 00 00 00 00 FF 0F BD [13:35:27]RasterBufferAndPrint [13:35:27]line Счет N : (3)335524 [13:35:27]line ИНН: 02508201610067 [13:35:27]line Контрольно-Кассовый Чек [13:35:27]line ПРОДАЖА [13:35:27]line Товар: 46231529 [13:35:27]line Mentos ПФ Арбуз 6*100*2 [13:35:27]line 1.000 * 10.00 [13:35:27]line = 10.00 [13:35:27]line НДС 12% НСП 1% [13:35:27]line > о реализуемом товаре [13:35:27]line ИТОГО: 10.00 [13:35:27]line НСП 1% : 0.09 [13:35:27]line НДС 12% : 1.06 [13:35:27]line Наличными: 10.00 [13:35:27]line Безнал.: 0.00 [13:35:27]line Место: АЗС № 101 "Партнер Нефть" [13:35:27]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:35:27]line СНО: Общий режим [13:35:27]line Чек 147 31.10.2024 13:35 [13:35:27]line Смена: 557 ФФД: 1.0 [13:35:27]line ЗНМ: 0300000081 [13:35:27]line РНМ: 0000000000091631 [13:35:27]line Версия ККМ: 001 [13:35:27]line ФМ: 0000000000874669 [13:35:27]line ФД: 139670 [13:35:27]line ФПД: 70066007237891 [13:35:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T133526&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139670&fm=70066007237891&tin=02508201610067®Number=0000000000091631&sum=1000 [13:35:27]line 0 [13:35:27]written 0, free lines is 4095 [13:35:27]OFD Sender: Processing packet 139670 [packets to send 34, broken 33] [13:35:27]ProducePacketName [13:35:27]name=ofd_packets/00139670 [13:35:27]OFD Sender: To server: pG, [13:35:27]CommunicateWithHost lk.salyk.kg:30040 [13:35:27]ConnectInit lk.salyk.kg [13:35:27]Connected sock=11 [13:35: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 1F 01 00 00 41 6A 17 01 8F 82 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 9E 87 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3F B9 83 78 E5 03 DC 0B 48 FF A6 E1 87 5A [13:35: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 1B F8 47 00 07 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 96 21 02 00 F4 03 04 00 4B 33 23 67 B6 04 01 00 00 87 C9 59 D0 96 9A 65 68 [13:35:27]CommunicateWithHost err = 0 [13:35:27]CheckOFDResponse [13:35:27]1017 (14) - 77093643461234 [13:35:27]1041 (16) - 0000000000874669 [13:35:27]1040 (4) - 139670 [13:35:27]1012 (4) - 31.10.2024 07:35 [13:35:27]1206 (1) - 0 [13:35:27]OFD Sender: Remove packet 139670 [13:35:27]ProducePacketName [13:35:27]name=ofd_packets/00139670 [13:35:27]NVStorageDeleteData [13:35:27]Write to MH i2c: 01 00 00 CA 06 D0 [13:35:27]Write i2c OK [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: 01 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: 01 07 00 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 13 0D F7 [13:35:27]RasterBufferAndPrint [13:35:27]line [13:35:27]line [13:35:27]line [13:35:27]line [13:35:27]line [13:35:27]written 0, free lines is 3359 [13:35:27]MH_Cut [13:35:27]Write to MH i2c: D1 01 00 D1 06 01 A9 [13:35:27]Write i2c OK [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: D1 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: D1 01 00 [13:35:27]MH_I2C_Read... [13:35:27]Read from MH i2c: D1 01 00 D1 06 00 A8 [13:35:27]Write to MH i2c: 01 00 00 D2 06 D8 [13:35:27]Write i2c OK [13:35:27]MH_I2C_Read... [13:35:28]OFD Sender: No OFD packet to send [13:35:28]*** Cut start [13:35:28]*** Partial cut [13:35:28]*** CUTSNS_PIN = 1 [13:35:28]*** CUTSNS_PIN = 0 [13:35:28]*** Brake cut motor [13:35:28]Read from MH i2c: 01 [13:35:28]MH_I2C_Read... [13:35:28]*** Stop cut motor [13:35:28]*** Cut end [13:35:28]Read from MH i2c: 01 07 00 [13:35:28]MH_I2C_Read... [13:35:28]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [13:35:28]process_action close_receipt done [13:35:28]requested_data is exist [13:35:28]produce_requested_data [13:35:28]requested_item fm.sn is exist - process it [13:35:28]wFMCommunicate request_size=4 [13:35:28]MH_SAM_APDU [13:35:28]CAPDU: 80 11 00 00 [13:35:28]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [13:35:28]Write i2c OK [13:35:28]MH_I2C_Read... [13:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:28]Read from MH i2c: E2 [13:35:28]MH_I2C_Read... [13:35:28]Read from MH i2c: E2 17 00 [13:35:28]MH_I2C_Read... [13:35:28]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AE [13:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:35:28]wFMCommunicate OK [13:35:28]requested_item fd.num is exist - process it [13:35:28]SAM_PROTO_GetFieldsCounters [13:35:28]wFMCommunicate request_size=4 [13:35:28]MH_SAM_APDU [13:35:28]CAPDU: 80 13 00 00 [13:35:28]Write to MH i2c: E2 08 00 D4 06 80 13 00 00 00 00 00 00 56 [13:35:28]Write i2c OK [13:35:28]MH_I2C_Read... [13:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:29]Read from MH i2c: E2 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: E2 62 00 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: E2 62 00 D4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 1B [13:35: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 96 21 02 00 0E 04 04 00 2D 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:35:29]wFMCommunicate OK [13:35:29]SAM_PROTO_GetFieldsCounters done [13:35:29]requested_item shift.num is exist - process it [13:35:29]requested_item shift.opened is exist - process it [13:35:29]req_shift_opened [13:35:29]FM_GetShiftState [13:35:29]SAM_PROTO_GetShiftState [13:35:29]wFMCommunicate request_size=4 [13:35:29]MH_SAM_APDU [13:35:29]CAPDU: 80 13 01 00 [13:35:29]Write to MH i2c: E2 08 00 D5 06 80 13 01 00 00 00 00 00 58 [13:35:29]Write i2c OK [13:35:29]MH_I2C_Read... [13:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:29]Read from MH i2c: E2 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: E2 0E 00 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: E2 0E 00 D5 06 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 81 [13:35:29]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:35:29]wFMCommunicate OK [13:35:29]SAM_PROTO_GetShiftState done [13:35:29]FM_GetShiftState done [13:35:29]req_shift_opened done [13:35:29]requested_item shift.open_date is exist - process it [13:35:29]req_shift_open_date [13:35:29]req_shift_open_date done [13:35:29]produce_requested_data done [13:35:29]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139670,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:35:29]process_action_free close_receipt [13:35:29]json_value_free [13:35:29]json_value_free done [13:35:29]process_json_proto returns [13:35:29]Send response to host [13:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139670,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:35:29]free response buf [13:35:29]execute_script done [13:35:29]execute_script returns [13:35:29]free content buf [13:35:29]Sock 7.Close socket [13:35:29]Sock 7.Thread stoped [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:09]accept exits with 9 [13:43:09]New connection [13:43:09]New thread 3066510692 created [13:43:09]Thread 3066654052 joined [13:43:09]Waiting for new connection... [13:43:09] Sock 9.Parse request [13:43:09]Sock 9.Check first char [13:43:09]Sock 9.First char is OK [13:43:09]request: POST /json_proto HTTP/1.0 [13:43:09]Method: POST [13:43:09]URL: /json_proto [13:43:09]Method is POST - this is cgi request [13:43:09]url: /json_proto [13:43:09]query_string will be loaded in cgi processing [13:43:09]execute_cgi json_proto POST (null) [13:43:09]execute_cgi path=json_proto method=POST [13:43:09]POST find Content-Length [13:43:09]Host: 172.17.50.196:8080 [13:43:09]Content-Length: 896 [13:43:09]Content-Type: application/json [13:43:09] [13:43:09]POST finish read [13:43:09]Found Content-Length = 896 [13:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335525", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:09]execute_script... [13:43: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)335525", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:09]POST & json_proto [13:43:09]process_json_proto [13:43:09]json parsed OK: [13:43:09]protocol is kg_v1.0 [13:43:09]action value=close_receipt [13:43:09]process_action close_receipt [13:43:09]cmd_close_receipt [13:43:09]MH_GetDate [13:43:09]Write to MH i2c: F0 00 00 D6 06 CB [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: F0 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: F0 09 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: F0 09 00 D6 06 00 6E 89 23 67 72 0D 1C 67 57 [13:43:09]GetLastDocTimeStamp 1730381726 [13:43:09]current date 1730382190 [13:43:09]FM_GetShiftState [13:43:09]SAM_PROTO_GetShiftState [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 13 01 00 [13:43:09]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 0E 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 83 [13:43:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:43:09]wFMCommunicate OK [13:43:09]SAM_PROTO_GetShiftState done [13:43:09]FM_GetShiftState done [13:43:09]opened in 1730332621 [13:43:09]opened+sec_in_day 1730419021 [13:43:09]quantity*price = 12500 [13:43:09]sum+1 = 12501 [13:43:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 148 31.10.2024 13:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139671 ФПД: 21005436426491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T134310&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139671&fm=21005436426491&tin=02508201610067®Number=0000000000091631&sum=25500 0 [13:43:10]StoreToDocumentArchive [13:43:10]shift 557 fd 139671 [13:43:10]save to /storage/0557/doc_00139671 [13:43:10]save last doc name /storage/0557/doc_00139671 to /storage/kkm_last_doc_name [13:43:10]save OK [13:43:10]Clear old archive folders... [13:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=374 [13:43:10]tlvbuf is 00A1A3A0 [13:43:10]SAM_PROTO_ClearQueue [13:43:10]wFMCommunicate request_size=4 [13:43:10]MH_SAM_APDU [13:43:10]CAPDU: 80 09 00 00 [13:43:10]Write to MH i2c: E2 08 00 E4 06 80 09 00 00 00 00 00 00 5C [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:10]Read from MH i2c: E2 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [13:43:10]RAPDU: 90 00 [13:43:10]wFMCommunicate OK [13:43:10]SAM_PROTO_ClearQueue done [13:43:10]KKMCreateOFDPacket [13:43:10]OFDProtocolAddRootSTLVToBuf [13:43:10]FM_MakeSignedData [13:43:10]FM_MakeSignedData [13:43:10]SAM_PROTO_SignData [13:43:10]wFMCommunicate request_size=4 [13:43:10]MH_SAM_APDU [13:43:10]CAPDU: 80 0D 01 02 [13:43:10]Write to MH i2c: E2 08 00 E5 06 80 0D 01 02 00 00 00 00 64 [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:10]Read from MH i2c: E2 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [13:43:10]RAPDU: 90 00 [13:43:10]wFMCommunicate OK [13:43:10]wFMCommunicate request_size=255 [13:43:10]MH_SAM_APDU [13:43:10]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 [13:43:10]Write to MH i2c: E2 02 01 E6 06 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 00 00 5D [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:11]Read from MH i2c: E2 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 03 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [13:43:11]RAPDU: 90 00 [13:43:11]wFMCommunicate OK [13:43:11]wFMCommunicate request_size=133 [13:43:11]MH_SAM_APDU [13:43:11]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 6E 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 1A B5 93 98 FB [13:43:11]Write to MH i2c: E2 88 00 E7 06 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 6E 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 1A B5 93 98 FB 00 00 39 [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:11]Read from MH i2c: E2 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 03 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [13:43:11]RAPDU: 90 00 [13:43:11]wFMCommunicate OK [13:43:11]wFMCommunicate request_size=4 [13:43:11]MH_SAM_APDU [13:43:11]CAPDU: 80 0D 03 02 [13:43:11]Write to MH i2c: E2 08 00 E8 06 80 0D 03 02 00 00 00 00 69 [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:11]Read from MH i2c: E2 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 0B 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 0B 00 E8 06 00 21 A3 15 E7 25 31 E3 98 90 00 FB [13:43:11]RAPDU: 21 A3 15 E7 25 31 E3 98 90 00 [13:43:11]wFMCommunicate OK [13:43:11]SAM_PROTO_SignData done [13:43:11]FM_MakeSignedData done [13:43:11]CreateOFDProtocolMessage [13:43:11]wFMCommunicate request_size=4 [13:43:11]MH_SAM_APDU [13:43:11]CAPDU: 80 11 00 00 [13:43:11]Write to MH i2c: E2 08 00 E9 06 80 11 00 00 00 00 00 00 69 [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:11]Read from MH i2c: E2 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 17 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 17 00 E9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C4 [13:43: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:43:11]wFMCommunicate OK [13:43:11]CreateOFDProtocolMessage done [13:43:11]OFDSenderStorePacket 139671 [13:43:11]StoreOFDPacket docnum=139671 [13:43: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 8A 01 00 00 49 C8 82 01 8F 2D 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 6E 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 1A B5 93 98 FB 21 A3 15 E7 25 31 E3 98 [13:43:11]CheckFolder [13:43:11]dirname=/storage/ofd_packets [13:43:11]CheckFolder done [13:43:11]ProducePacketName [13:43:11]name=ofd_packets/00139671 [13:43:11]NVStorageSaveData ofd_packets/00139671 [13:43:11]File name is /storage/ofd_packets/00139671 [13:43:11]Write 424 bytes [13:43:11]NVStorageSaveData done [13:43:11]OFDSenderStorePacket done [13:43:11]KKMCreateOFDPacket done [13:43:11]NVStorageSaveData kkm_last_timestamp [13:43:11]File name is /storage/kkm_last_timestamp [13:43:11]Write 4 bytes [13:43:11]NVStorageSaveData done [13:43:11]ExternCall_PrintAddStr [13:43:11]wPrintStart [13:43:11]Write to MH i2c: 01 00 00 EA 06 F0 [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: 01 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: 01 07 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [13:43:11]RasterBufferAndPrint [13:43:11]line Счет N : (3)335525 [13:43:11]line ИНН: 02508201610067 [13:43:11]line Контрольно-Кассовый Чек [13:43:11]line ПРОДАЖА [13:43:11]line Товар: 5449000006271 [13:43:11]line Напиток Фанта 1л [13:43:11]line 1.000 * 125.00 [13:43:11]line = 125.00 [13:43:11]line НДС 12% НСП 1% [13:43:11]line > о реализуемом товаре [13:43:11]line Товар: 4630007400389 [13:43:11]line Семечки ДЖИНН 140г [13:43:11]line 1.000 * 130.00 [13:43:11]line = 130.00 [13:43:11]line НДС 12% НСП 1% [13:43:11]line > о реализуемом товаре [13:43:11]line ИТОГО: 255.00 [13:43:11]line НСП 1% : 2.26 [13:43:11]line НДС 12% : 27.07 [13:43:11]line Наличными: 255.00 [13:43:11]line Безнал.: 0.00 [13:43:11]line Место: АЗС № 101 "Партнер Нефть" [13:43:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:43:11]line СНО: Общий режим [13:43:11]line Чек 148 31.10.2024 13:43 [13:43:11]line Смена: 557 ФФД: 1.0 [13:43:11]line ЗНМ: 0300000081 [13:43:11]line РНМ: 0000000000091631 [13:43:11]line Версия ККМ: 001 [13:43:11]line ФМ: 0000000000874669 [13:43:11]line ФД: 139671 [13:43:11]line ФПД: 21005436426491 [13:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T134310&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139671&fm=21005436426491&tin=02508201610067®Number=0000000000091631&sum=25500 [13:43:11]line 0 [13:43:11]OFD Sender: Processing packet 139671 [packets to send 34, broken 33] [13:43:11]ProducePacketName [13:43:11]name=ofd_packets/00139671 [13:43:11]OFD Sender: To server: pG, [13:43:11]CommunicateWithHost lk.salyk.kg:30040 [13:43:11]ConnectInit lk.salyk.kg [13:43:11]written 0, free lines is 4095 [13:43:11]Connected sock=10 [13:43: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 8A 01 00 00 49 C8 82 01 8F 2D 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 6E 89 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 13 1A B5 93 98 FB 21 A3 15 E7 25 31 E3 98 [13:43: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 79 05 47 00 AF 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 21 02 00 F4 03 04 00 1C 35 23 67 B6 04 01 00 00 84 49 3F 82 E5 85 44 0A [13:43:12]CommunicateWithHost err = 0 [13:43:12]CheckOFDResponse [13:43:12]1017 (14) - 77093643461234 [13:43:12]1041 (16) - 0000000000874669 [13:43:12]1040 (4) - 139671 [13:43:12]1012 (4) - 31.10.2024 07:43 [13:43:12]1206 (1) - 0 [13:43:12]OFD Sender: Remove packet 139671 [13:43:12]ProducePacketName [13:43:12]name=ofd_packets/00139671 [13:43:12]NVStorageDeleteData [13:43:12]Write to MH i2c: 01 00 00 18 07 1F [13:43:12]Write i2c OK [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: 01 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: 01 07 00 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 BB 0C ED [13:43:12]RasterBufferAndPrint [13:43:12]line [13:43:12]line [13:43:12]line [13:43:12]line [13:43:12]line [13:43:12]written 0, free lines is 3268 [13:43:12]MH_Cut [13:43:12]Write to MH i2c: D1 01 00 1F 07 01 F8 [13:43:12]Write i2c OK [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: D1 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: D1 01 00 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: D1 01 00 1F 07 00 F7 [13:43:12]Write to MH i2c: 01 00 00 20 07 27 [13:43:12]Write i2c OK [13:43:12]MH_I2C_Read... [13:43:12]OFD Sender: No OFD packet to send [13:43:12]*** Cut start [13:43:12]*** Partial cut [13:43:12]*** CUTSNS_PIN = 1 [13:43:12]*** CUTSNS_PIN = 0 [13:43:13]*** Brake cut motor [13:43:13]Read from MH i2c: 01 [13:43:13]MH_I2C_Read... [13:43:13]*** Stop cut motor [13:43:13]*** Cut end [13:43:13]Read from MH i2c: 01 07 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [13:43:13]process_action close_receipt done [13:43:13]requested_data is exist [13:43:13]produce_requested_data [13:43:13]requested_item fm.sn is exist - process it [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 11 00 00 [13:43:13]Write to MH i2c: E2 08 00 21 07 80 11 00 00 00 00 00 00 A2 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 17 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 17 00 21 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FD [13:43: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:43:13]wFMCommunicate OK [13:43:13]requested_item fd.num is exist - process it [13:43:13]SAM_PROTO_GetFieldsCounters [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 13 00 00 [13:43:13]Write to MH i2c: E2 08 00 22 07 80 13 00 00 00 00 00 00 A5 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 62 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 62 00 22 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 6E [13:43: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 97 21 02 00 0E 04 04 00 2D 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:43:13]wFMCommunicate OK [13:43:13]SAM_PROTO_GetFieldsCounters done [13:43:13]requested_item shift.num is exist - process it [13:43:13]requested_item shift.opened is exist - process it [13:43:13]req_shift_opened [13:43:13]FM_GetShiftState [13:43:13]SAM_PROTO_GetShiftState [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 13 01 00 [13:43:13]Write to MH i2c: E2 08 00 23 07 80 13 01 00 00 00 00 00 A7 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:13]Read from MH i2c: E2 0E 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 0E 00 23 07 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D0 [13:43:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:43:13]wFMCommunicate OK [13:43:13]SAM_PROTO_GetShiftState done [13:43:13]FM_GetShiftState done [13:43:13]req_shift_opened done [13:43:13]requested_item shift.open_date is exist - process it [13:43:13]req_shift_open_date [13:43:13]req_shift_open_date done [13:43:13]produce_requested_data done [13:43:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139671,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:43:13]process_action_free close_receipt [13:43:13]json_value_free [13:43:13]json_value_free done [13:43:13]process_json_proto returns [13:43:13]Send response to host [13:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139671,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:43:13]free response buf [13:43:13]execute_script done [13:43:13]execute_script returns [13:43:13]free content buf [13:43:13]Sock 9.Close socket [13:43:13]Sock 9.Thread stoped [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:01]accept exits with 7 [13:53:01]New connection [13:53:01]New thread 3066654052 created [13:53:01]Thread 3066510692 joined [13:53:01]Waiting for new connection... [13:53:01] Sock 7.Parse request [13:53:01]Sock 7.Check first char [13:53:01]Sock 7.First char is OK [13:53:01]request: POST /json_proto HTTP/1.0 [13:53:01]Method: POST [13:53:01]URL: /json_proto [13:53:01]Method is POST - this is cgi request [13:53:01]url: /json_proto [13:53:01]query_string will be loaded in cgi processing [13:53:01]execute_cgi json_proto POST (null) [13:53:01]execute_cgi path=json_proto method=POST [13:53:01]POST find Content-Length [13:53:01]Host: 172.17.50.196:8080 [13:53:01]Content-Length: 724 [13:53:01]Content-Type: application/json [13:53:01] [13:53:01]POST finish read [13:53:01]Found Content-Length = 724 [13:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335526", "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" ] } } [13:53:01]execute_script... [13:53: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)335526", "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" ] } } [13:53:01]POST & json_proto [13:53:01]process_json_proto [13:53:01]json parsed OK: [13:53:01]protocol is kg_v1.0 [13:53:01]action value=close_receipt [13:53:01]process_action close_receipt [13:53:01]cmd_close_receipt [13:53:01]MH_GetDate [13:53:01]Write to MH i2c: F0 00 00 24 07 1A [13:53:01]Write i2c OK [13:53:01]MH_I2C_Read... [13:53:01]Read from MH i2c: F0 [13:53:01]MH_I2C_Read... [13:53:01]Read from MH i2c: F0 09 00 [13:53:01]MH_I2C_Read... [13:53:01]Read from MH i2c: F0 09 00 24 07 00 BE 8B 23 67 72 0D 1C 67 F8 [13:53:01]GetLastDocTimeStamp 1730382190 [13:53:01]current date 1730382782 [13:53:01]FM_GetShiftState [13:53:01]SAM_PROTO_GetShiftState [13:53:01]wFMCommunicate request_size=4 [13:53:01]MH_SAM_APDU [13:53:01]CAPDU: 80 13 01 00 [13:53:01]Write to MH i2c: E2 08 00 25 07 80 13 01 00 00 00 00 00 A9 [13:53:01]Write i2c OK [13:53:01]MH_I2C_Read... [13:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:01]Read from MH i2c: E2 [13:53:01]MH_I2C_Read... [13:53:01]Read from MH i2c: E2 0E 00 [13:53:01]MH_I2C_Read... [13:53:01]Read from MH i2c: E2 0E 00 25 07 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D2 [13:53:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:53:01]wFMCommunicate OK [13:53:01]SAM_PROTO_GetShiftState done [13:53:01]FM_GetShiftState done [13:53:01]opened in 1730332621 [13:53:01]opened+sec_in_day 1730419021 [13:53:01]quantity*price = 28500 [13:53:01]sum+1 = 28501 [13:53:01]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 31.10.2024 13:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139672 ФПД: 172024637493769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T135302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139672&fm=172024637493769&tin=02508201610067®Number=0000000000091631&sum=28500 0 [13:53:02]StoreToDocumentArchive [13:53:02]shift 557 fd 139672 [13:53:02]save to /storage/0557/doc_00139672 [13:53:02]save last doc name /storage/0557/doc_00139672 to /storage/kkm_last_doc_name [13:53:02]save OK [13:53:02]Clear old archive folders... [13:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=304 [13:53:02]tlvbuf is 00A1DDD0 [13:53:02]SAM_PROTO_ClearQueue [13:53:02]wFMCommunicate request_size=4 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 09 00 00 [13:53:02]Write to MH i2c: E2 08 00 32 07 80 09 00 00 00 00 00 00 AB [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [13:53:02]RAPDU: 90 00 [13:53:02]wFMCommunicate OK [13:53:02]SAM_PROTO_ClearQueue done [13:53:02]KKMCreateOFDPacket [13:53:02]OFDProtocolAddRootSTLVToBuf [13:53:02]FM_MakeSignedData [13:53:02]FM_MakeSignedData [13:53:02]SAM_PROTO_SignData [13:53:02]wFMCommunicate request_size=4 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 0D 01 02 [13:53:02]Write to MH i2c: E2 08 00 33 07 80 0D 01 02 00 00 00 00 B3 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [13:53:02]RAPDU: 90 00 [13:53:02]wFMCommunicate OK [13:53:02]wFMCommunicate request_size=255 [13:53:02]MH_SAM_APDU [13:53:02]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 BE 8B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 [13:53:02]Write to MH i2c: E2 02 01 34 07 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 BE 8B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 00 00 8D [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [13:53:02]RAPDU: 90 00 [13:53:02]wFMCommunicate OK [13:53:02]wFMCommunicate request_size=63 [13:53:02]MH_SAM_APDU [13:53:02]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 98 21 02 00 35 04 06 00 9C 74 9B 69 12 09 [13:53:02]Write to MH i2c: E2 42 00 35 07 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 98 21 02 00 35 04 06 00 9C 74 9B 69 12 09 00 00 ED [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:03]Read from MH i2c: E2 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [13:53:03]RAPDU: 90 00 [13:53:03]wFMCommunicate OK [13:53:03]wFMCommunicate request_size=4 [13:53:03]MH_SAM_APDU [13:53:03]CAPDU: 80 0D 03 02 [13:53:03]Write to MH i2c: E2 08 00 36 07 80 0D 03 02 00 00 00 00 B8 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]OFD Sender: No OFD packet to send [13:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:03]Read from MH i2c: E2 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 0B 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 0B 00 36 07 00 1D 80 D0 C2 00 44 9B 4B 90 00 12 [13:53:03]RAPDU: 1D 80 D0 C2 00 44 9B 4B 90 00 [13:53:03]wFMCommunicate OK [13:53:03]SAM_PROTO_SignData done [13:53:03]FM_MakeSignedData done [13:53:03]CreateOFDProtocolMessage [13:53:03]wFMCommunicate request_size=4 [13:53:03]MH_SAM_APDU [13:53:03]CAPDU: 80 11 00 00 [13:53:03]Write to MH i2c: E2 08 00 37 07 80 11 00 00 00 00 00 00 B8 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:03]Read from MH i2c: E2 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 17 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 17 00 37 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 13 [13:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:53:03]wFMCommunicate OK [13:53:03]CreateOFDProtocolMessage done [13:53:03]OFDSenderStorePacket 139672 [13:53:03]StoreOFDPacket docnum=139672 [13:53: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 44 01 00 00 15 24 3C 01 3C C3 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 BE 8B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 9C 74 9B 69 12 09 1D 80 D0 C2 00 44 9B 4B [13:53:03]CheckFolder [13:53:03]dirname=/storage/ofd_packets [13:53:03]CheckFolder done [13:53:03]ProducePacketName [13:53:03]name=ofd_packets/00139672 [13:53:03]NVStorageSaveData ofd_packets/00139672 [13:53:03]File name is /storage/ofd_packets/00139672 [13:53:03]Write 354 bytes [13:53:03]NVStorageSaveData done [13:53:03]OFDSenderStorePacket done [13:53:03]KKMCreateOFDPacket done [13:53:03]NVStorageSaveData kkm_last_timestamp [13:53:03]File name is /storage/kkm_last_timestamp [13:53:03]Write 4 bytes [13:53:03]NVStorageSaveData done [13:53:03]ExternCall_PrintAddStr [13:53:03]wPrintStart [13:53:03]Write to MH i2c: 01 00 00 38 07 3F [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: 01 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: 01 07 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FF 0F 54 [13:53:03]RasterBufferAndPrint [13:53:03]line Счет N : (3)335526 [13:53:03]line ИНН: 02508201610067 [13:53:03]line Контрольно-Кассовый Чек [13:53:03]line ПРОДАЖА [13:53:03]line Товар: 8901086040022 [13:53:03]line Жидкость стеклоомывающая ПН -20 4,5л [13:53:03]line 1.000 * 285.00 [13:53:03]line = 285.00 [13:53:03]line НДС 12% НСП 1% [13:53:03]line > о реализуемом товаре [13:53:03]line ИТОГО: 285.00 [13:53:03]line НСП 1% : 2.52 [13:53:03]line НДС 12% : 30.26 [13:53:03]line Наличными: 285.00 [13:53:03]line Безнал.: 0.00 [13:53:03]line Место: АЗС № 101 "Партнер Нефть" [13:53:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:53:03]line СНО: Общий режим [13:53:03]line Чек 149 31.10.2024 13:53 [13:53:03]line Смена: 557 ФФД: 1.0 [13:53:03]line ЗНМ: 0300000081 [13:53:03]line РНМ: 0000000000091631 [13:53:03]line Версия ККМ: 001 [13:53:03]line ФМ: 0000000000874669 [13:53:03]line ФД: 139672 [13:53:03]line ФПД: 172024637493769 [13:53:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T135302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139672&fm=172024637493769&tin=02508201610067®Number=0000000000091631&sum=28500 [13:53:03]line 0 [13:53:03]OFD Sender: Processing packet 139672 [packets to send 34, broken 33] [13:53:03]ProducePacketName [13:53:03]name=ofd_packets/00139672 [13:53:03]OFD Sender: To server: pG, [13:53:03]CommunicateWithHost lk.salyk.kg:30040 [13:53:03]ConnectInit lk.salyk.kg [13:53:03]written 0, free lines is 4095 [13:53:03]Connected sock=10 [13:53: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 44 01 00 00 15 24 3C 01 3C C3 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 BE 8B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 9C 74 9B 69 12 09 1D 80 D0 C2 00 44 9B 4B [13:53: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 46 2D 47 00 FB 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 98 21 02 00 F4 03 04 00 6B 37 23 67 B6 04 01 00 00 24 72 39 B0 BE 54 EA CB [13:53:03]CommunicateWithHost err = 0 [13:53:03]CheckOFDResponse [13:53:03]1017 (14) - 77093643461234 [13:53:03]1041 (16) - 0000000000874669 [13:53:03]1040 (4) - 139672 [13:53:03]1012 (4) - 31.10.2024 07:53 [13:53:03]1206 (1) - 0 [13:53:03]OFD Sender: Remove packet 139672 [13:53:03]ProducePacketName [13:53:03]name=ofd_packets/00139672 [13:53:03]NVStorageDeleteData [13:53:03]Write to MH i2c: 01 00 00 61 07 68 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: 01 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: 01 07 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: 01 07 00 61 07 00 00 00 00 00 F5 0C 70 [13:53:03]RasterBufferAndPrint [13:53:03]line [13:53:03]line [13:53:03]line [13:53:03]line [13:53:03]line [13:53:03]written 0, free lines is 3323 [13:53:03]MH_Cut [13:53:03]Write to MH i2c: D1 01 00 68 07 01 41 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: D1 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: D1 01 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: D1 01 00 68 07 00 40 [13:53:03]Write to MH i2c: 01 00 00 69 07 70 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:04]OFD Sender: No OFD packet to send [13:53:04]*** Cut start [13:53:04]*** Partial cut [13:53:04]*** CUTSNS_PIN = 1 [13:53:04]*** CUTSNS_PIN = 0 [13:53:04]*** Brake cut motor [13:53:05]Read from MH i2c: 01 [13:53:05]MH_I2C_Read... [13:53:05]*** Stop cut motor [13:53:05]*** Cut end [13:53:05]Read from MH i2c: 01 07 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 FF 0F 85 [13:53:05]process_action close_receipt done [13:53:05]requested_data is exist [13:53:05]produce_requested_data [13:53:05]requested_item fm.sn is exist - process it [13:53:05]wFMCommunicate request_size=4 [13:53:05]MH_SAM_APDU [13:53:05]CAPDU: 80 11 00 00 [13:53:05]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 17 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 46 [13:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:53:05]wFMCommunicate OK [13:53:05]requested_item fd.num is exist - process it [13:53:05]SAM_PROTO_GetFieldsCounters [13:53:05]wFMCommunicate request_size=4 [13:53:05]MH_SAM_APDU [13:53:05]CAPDU: 80 13 00 00 [13:53:05]Write to MH i2c: E2 08 00 6B 07 80 13 00 00 00 00 00 00 EE [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 62 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 62 00 6B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 BB [13:53: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 98 21 02 00 0E 04 04 00 2D 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 [13:53:05]wFMCommunicate OK [13:53:05]SAM_PROTO_GetFieldsCounters done [13:53:05]requested_item shift.num is exist - process it [13:53:05]requested_item shift.opened is exist - process it [13:53:05]req_shift_opened [13:53:05]FM_GetShiftState [13:53:05]SAM_PROTO_GetShiftState [13:53:05]wFMCommunicate request_size=4 [13:53:05]MH_SAM_APDU [13:53:05]CAPDU: 80 13 01 00 [13:53:05]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 0E 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 19 [13:53:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:53:05]wFMCommunicate OK [13:53:05]SAM_PROTO_GetShiftState done [13:53:05]FM_GetShiftState done [13:53:05]req_shift_opened done [13:53:05]requested_item shift.open_date is exist - process it [13:53:05]req_shift_open_date [13:53:05]req_shift_open_date done [13:53:05]produce_requested_data done [13:53:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139672,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [13:53:05]process_action_free close_receipt [13:53:05]json_value_free [13:53:05]json_value_free done [13:53:05]process_json_proto returns [13:53:05]Send response to host [13:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139672,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [13:53:05]free response buf [13:53:05]execute_script done [13:53:05]execute_script returns [13:53:05]free content buf [13:53:05]Sock 7.Close socket [13:53:05]Sock 7.Thread stoped [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]accept exits with 9 [13:59:59]New connection [13:59:59]New thread 3066510692 created [13:59:59]Thread 3066654052 joined [13:59:59]Waiting for new connection... [13:59:59] Sock 9.Parse request [13:59:59]Sock 9.Check first char [13:59:59]Sock 9.First char is OK [13:59:59]request: POST /json_proto HTTP/1.0 [13:59:59]Method: POST [13:59:59]URL: /json_proto [13:59:59]Method is POST - this is cgi request [13:59:59]url: /json_proto [13:59:59]query_string will be loaded in cgi processing [13:59:59]execute_cgi json_proto POST (null) [13:59:59]execute_cgi path=json_proto method=POST [13:59:59]POST find Content-Length [13:59:59]Host: 172.17.50.196:8080 [13:59:59]Content-Length: 687 [13:59:59]Content-Type: application/json [13:59:59] [13:59:59]POST finish read [13:59:59]Found Content-Length = 687 [13:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335527", "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" ] } } [13:59:59]execute_script... [13:59: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)335527", "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" ] } } [13:59:59]POST & json_proto [13:59:59]process_json_proto [13:59:59]json parsed OK: [13:59:59]protocol is kg_v1.0 [13:59:59]action value=close_receipt [13:59:59]process_action close_receipt [13:59:59]cmd_close_receipt [13:59:59]MH_GetDate [13:59:59]Write to MH i2c: F0 00 00 6D 07 63 [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: F0 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: F0 09 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: F0 09 00 6D 07 00 60 8D 23 67 72 0D 1C 67 E5 [13:59:59]GetLastDocTimeStamp 1730382782 [13:59:59]current date 1730383200 [13:59:59]FM_GetShiftState [13:59:59]SAM_PROTO_GetShiftState [13:59:59]wFMCommunicate request_size=4 [13:59:59]MH_SAM_APDU [13:59:59]CAPDU: 80 13 01 00 [13:59:59]Write to MH i2c: E2 08 00 6E 07 80 13 01 00 00 00 00 00 F2 [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:59]Read from MH i2c: E2 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 0E 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 0E 00 6E 07 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1B [13:59:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [13:59:59]wFMCommunicate OK [13:59:59]SAM_PROTO_GetShiftState done [13:59:59]FM_GetShiftState done [13:59:59]opened in 1730332621 [13:59:59]opened+sec_in_day 1730419021 [13:59:59]quantity*price = 5000 [13:59:59]sum+1 = 5001 [13:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 150 31.10.2024 14:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139673 ФПД: 192383822446434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140000&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139673&fm=192383822446434&tin=02508201610067®Number=0000000000091631&sum=5000 0 [14:00:00]StoreToDocumentArchive [14:00:00]shift 557 fd 139673 [14:00:00]save to /storage/0557/doc_00139673 [14:00:00]save last doc name /storage/0557/doc_00139673 to /storage/kkm_last_doc_name [14:00:00]save OK [14:00:00]Clear old archive folders... [14:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=298 [14:00:00]tlvbuf is 00ADA310 [14:00:00]SAM_PROTO_ClearQueue [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 09 00 00 [14:00:00]Write to MH i2c: E2 08 00 7B 07 80 09 00 00 00 00 00 00 F4 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]SAM_PROTO_ClearQueue done [14:00:00]KKMCreateOFDPacket [14:00:00]OFDProtocolAddRootSTLVToBuf [14:00:00]FM_MakeSignedData [14:00:00]FM_MakeSignedData [14:00:00]SAM_PROTO_SignData [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 0D 01 02 [14:00:00]Write to MH i2c: E2 08 00 7C 07 80 0D 01 02 00 00 00 00 FC [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]wFMCommunicate request_size=255 [14:00:00]MH_SAM_APDU [14:00:00]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 96 00 00 00 F4 03 04 00 60 8D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [14:00:00]Write to MH i2c: E2 02 01 7D 07 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 96 00 00 00 F4 03 04 00 60 8D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 38 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]wFMCommunicate request_size=57 [14:00:00]MH_SAM_APDU [14:00:00]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 99 21 02 00 35 04 06 00 AE F8 D9 65 BF 62 [14:00:00]Write to MH i2c: E2 3C 00 7E 07 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 99 21 02 00 35 04 06 00 AE F8 D9 65 BF 62 00 00 80 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [14:00:00]RAPDU: 90 00 [14:00:00]wFMCommunicate OK [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 0D 03 02 [14:00:00]Write to MH i2c: E2 08 00 7F 07 80 0D 03 02 00 00 00 00 01 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 0B 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 0B 00 7F 07 00 06 D0 D4 D0 BA AA 4B C2 90 00 ED [14:00:00]RAPDU: 06 D0 D4 D0 BA AA 4B C2 90 00 [14:00:00]wFMCommunicate OK [14:00:00]SAM_PROTO_SignData done [14:00:00]FM_MakeSignedData done [14:00:00]CreateOFDProtocolMessage [14:00:00]wFMCommunicate request_size=4 [14:00:00]MH_SAM_APDU [14:00:00]CAPDU: 80 11 00 00 [14:00:00]Write to MH i2c: E2 08 00 80 07 80 11 00 00 00 00 00 00 01 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:00]Read from MH i2c: E2 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 17 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: E2 17 00 80 07 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:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:00:00]wFMCommunicate OK [14:00:00]CreateOFDProtocolMessage done [14:00:00]OFDSenderStorePacket 139673 [14:00:00]StoreOFDPacket docnum=139673 [14:00: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 3E 01 00 00 FC 9C 36 01 B8 2C 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 96 00 00 00 F4 03 04 00 60 8D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AE F8 D9 65 BF 62 06 D0 D4 D0 BA AA 4B C2 [14:00:00]CheckFolder [14:00:00]dirname=/storage/ofd_packets [14:00:00]CheckFolder done [14:00:00]ProducePacketName [14:00:00]name=ofd_packets/00139673 [14:00:00]NVStorageSaveData ofd_packets/00139673 [14:00:00]File name is /storage/ofd_packets/00139673 [14:00:00]Write 348 bytes [14:00:00]NVStorageSaveData done [14:00:00]OFDSenderStorePacket done [14:00:00]KKMCreateOFDPacket done [14:00:00]NVStorageSaveData kkm_last_timestamp [14:00:00]File name is /storage/kkm_last_timestamp [14:00:00]Write 4 bytes [14:00:00]NVStorageSaveData done [14:00:00]ExternCall_PrintAddStr [14:00:00]wPrintStart [14:00:00]Write to MH i2c: 01 00 00 81 07 88 [14:00:00]Write i2c OK [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 07 00 [14:00:00]MH_I2C_Read... [14:00:00]Read from MH i2c: 01 07 00 81 07 00 00 00 00 00 FF 0F 9D [14:00:00]RasterBufferAndPrint [14:00:00]line Счет N : (3)335527 [14:00:00]line ИНН: 02508201610067 [14:00:00]line Контрольно-Кассовый Чек [14:00:00]line ПРОДАЖА [14:00:00]line Товар: 4700003010032 [14:00:00]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [14:00:00]line 1.000 * 50.00 [14:00:00]line = 50.00 [14:00:00]line НДС 12% НСП 1% [14:00:00]line > о реализуемом товаре [14:00:00]line ИТОГО: 50.00 [14:00:00]line НСП 1% : 0.44 [14:00:00]line НДС 12% : 5.31 [14:00:00]line Наличными: 50.00 [14:00:00]line Безнал.: 0.00 [14:00:00]line Место: АЗС № 101 "Партнер Нефть" [14:00:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:00:00]line СНО: Общий режим [14:00:00]line Чек 150 31.10.2024 14:00 [14:00:00]line Смена: 557 ФФД: 1.0 [14:00:00]line ЗНМ: 0300000081 [14:00:00]line РНМ: 0000000000091631 [14:00:00]line Версия ККМ: 001 [14:00:00]line ФМ: 0000000000874669 [14:00:00]line ФД: 139673 [14:00:00]line ФПД: 192383822446434 [14:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140000&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139673&fm=192383822446434&tin=02508201610067®Number=0000000000091631&sum=5000 [14:00:01]line 0 [14:00:01]OFD Sender: Processing packet 139673 [packets to send 34, broken 33] [14:00:01]ProducePacketName [14:00:01]name=ofd_packets/00139673 [14:00:01]OFD Sender: To server: pG, [14:00:01]CommunicateWithHost lk.salyk.kg:30040 [14:00:01]ConnectInit lk.salyk.kg [14:00:01]written 0, free lines is 4095 [14:00:01]Connected sock=10 [14:00: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 3E 01 00 00 FC 9C 36 01 B8 2C 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 96 00 00 00 F4 03 04 00 60 8D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AE F8 D9 65 BF 62 06 D0 D4 D0 BA AA 4B C2 [14:00: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 70 4E 47 00 A4 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 99 21 02 00 F4 03 04 00 0D 39 23 67 B6 04 01 00 00 F1 16 58 4B 89 B1 18 80 [14:00:01]CommunicateWithHost err = 0 [14:00:01]CheckOFDResponse [14:00:01]1017 (14) - 77093643461234 [14:00:01]1041 (16) - 0000000000874669 [14:00:01]1040 (4) - 139673 [14:00:01]1012 (4) - 31.10.2024 08:00 [14:00:01]1206 (1) - 0 [14:00:01]OFD Sender: Remove packet 139673 [14:00:01]ProducePacketName [14:00:01]name=ofd_packets/00139673 [14:00:01]NVStorageDeleteData [14:00:01]Write to MH i2c: 01 00 00 AA 07 B1 [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 AA 07 00 00 00 00 00 F7 0C BB [14:00:01]RasterBufferAndPrint [14:00:01]line [14:00:01]line [14:00:01]line [14:00:01]line [14:00:01]line [14:00:01]written 0, free lines is 3325 [14:00:01]MH_Cut [14:00:01]Write to MH i2c: D1 01 00 B1 07 01 8A [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: D1 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: D1 01 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: D1 01 00 B1 07 00 89 [14:00:01]Write to MH i2c: 01 00 00 B2 07 B9 [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:02]OFD Sender: No OFD packet to send [14:00:02]*** Cut start [14:00:02]*** Partial cut [14:00:02]*** CUTSNS_PIN = 1 [14:00:02]*** CUTSNS_PIN = 0 [14:00:02]*** Brake cut motor [14:00:02]Read from MH i2c: 01 [14:00:02]MH_I2C_Read... [14:00:03]*** Stop cut motor [14:00:03]*** Cut end [14:00:03]Read from MH i2c: 01 07 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: 01 07 00 B2 07 00 00 00 00 00 FF 0F CE [14:00:03]process_action close_receipt done [14:00:03]requested_data is exist [14:00:03]produce_requested_data [14:00:03]requested_item fm.sn is exist - process it [14:00:03]wFMCommunicate request_size=4 [14:00:03]MH_SAM_APDU [14:00:03]CAPDU: 80 11 00 00 [14:00:03]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [14:00:03]Write i2c OK [14:00:03]MH_I2C_Read... [14:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:03]Read from MH i2c: E2 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 17 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8F [14:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:00:03]wFMCommunicate OK [14:00:03]requested_item fd.num is exist - process it [14:00:03]SAM_PROTO_GetFieldsCounters [14:00:03]wFMCommunicate request_size=4 [14:00:03]MH_SAM_APDU [14:00:03]CAPDU: 80 13 00 00 [14:00:03]Write to MH i2c: E2 08 00 B4 07 80 13 00 00 00 00 00 00 37 [14:00:03]Write i2c OK [14:00:03]MH_I2C_Read... [14:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:03]Read from MH i2c: E2 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 62 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 62 00 B4 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 08 [14:00: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 99 21 02 00 0E 04 04 00 2D 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:00:03]wFMCommunicate OK [14:00:03]SAM_PROTO_GetFieldsCounters done [14:00:03]requested_item shift.num is exist - process it [14:00:03]requested_item shift.opened is exist - process it [14:00:03]req_shift_opened [14:00:03]FM_GetShiftState [14:00:03]SAM_PROTO_GetShiftState [14:00:03]wFMCommunicate request_size=4 [14:00:03]MH_SAM_APDU [14:00:03]CAPDU: 80 13 01 00 [14:00:03]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [14:00:03]Write i2c OK [14:00:03]MH_I2C_Read... [14:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:03]Read from MH i2c: E2 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 0E 00 [14:00:03]MH_I2C_Read... [14:00:03]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 62 [14:00:03]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:00:03]wFMCommunicate OK [14:00:03]SAM_PROTO_GetShiftState done [14:00:03]FM_GetShiftState done [14:00:03]req_shift_opened done [14:00:03]requested_item shift.open_date is exist - process it [14:00:03]req_shift_open_date [14:00:03]req_shift_open_date done [14:00:03]produce_requested_data done [14:00:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139673,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:00:03]process_action_free close_receipt [14:00:03]json_value_free [14:00:03]json_value_free done [14:00:03]process_json_proto returns [14:00:03]Send response to host [14:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139673,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:00:03]free response buf [14:00:03]execute_script done [14:00:03]execute_script returns [14:00:03]free content buf [14:00:03]Sock 9.Close socket [14:00:03]Sock 9.Thread stoped [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:29]accept exits with 7 [14:00:29]New connection [14:00:29]New thread 3066654052 created [14:00:29]Thread 3066510692 joined [14:00:29]Waiting for new connection... [14:00:29] Sock 7.Parse request [14:00:29]Sock 7.Check first char [14:00:29]Sock 7.First char is OK [14:00:29]request: POST /json_proto HTTP/1.0 [14:00:29]Method: POST [14:00:29]URL: /json_proto [14:00:29]Method is POST - this is cgi request [14:00:29]url: /json_proto [14:00:29]query_string will be loaded in cgi processing [14:00:29]execute_cgi json_proto POST (null) [14:00:29]execute_cgi path=json_proto method=POST [14:00:29]POST find Content-Length [14:00:29]Host: 172.17.50.196:8080 [14:00:29]Content-Length: 741 [14:00:29]Content-Type: application/json [14:00:29] [14:00:29]POST finish read [14:00:29]Found Content-Length = 741 [14:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335528", "tax_sys" : 0, "items" : [ { "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:29]execute_script... [14:00: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)335528", "tax_sys" : 0, "items" : [ { "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:29]POST & json_proto [14:00:29]process_json_proto [14:00:29]json parsed OK: [14:00:29]protocol is kg_v1.0 [14:00:29]action value=close_receipt [14:00:29]process_action close_receipt [14:00:29]cmd_close_receipt [14:00:29]MH_GetDate [14:00:29]Write to MH i2c: F0 00 00 B6 07 AC [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: F0 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: F0 09 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: F0 09 00 B6 07 00 7E 8D 23 67 72 0D 1C 67 4C [14:00:29]GetLastDocTimeStamp 1730383200 [14:00:29]current date 1730383230 [14:00:29]FM_GetShiftState [14:00:29]SAM_PROTO_GetShiftState [14:00:29]wFMCommunicate request_size=4 [14:00:29]MH_SAM_APDU [14:00:29]CAPDU: 80 13 01 00 [14:00:29]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:29]Read from MH i2c: E2 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 0E 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 64 [14:00:29]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:00:29]wFMCommunicate OK [14:00:29]SAM_PROTO_GetShiftState done [14:00:29]FM_GetShiftState done [14:00:29]opened in 1730332621 [14:00:29]opened+sec_in_day 1730419021 [14:00:29]quantity*price = 12500 [14:00:29]sum+1 = 12501 [14:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 151 31.10.2024 14:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139674 ФПД: 1680078159106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140030&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139674&fm=1680078159106&tin=02508201610067®Number=0000000000091631&sum=12500 0 [14:00:30]StoreToDocumentArchive [14:00:30]shift 557 fd 139674 [14:00:30]save to /storage/0557/doc_00139674 [14:00:30]save last doc name /storage/0557/doc_00139674 to /storage/kkm_last_doc_name [14:00:30]save OK [14:00:30]Clear old archive folders... [14:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=309 [14:00:30]tlvbuf is 00A69F80 [14:00:30]SAM_PROTO_ClearQueue [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 09 00 00 [14:00:30]Write to MH i2c: E2 08 00 C4 07 80 09 00 00 00 00 00 00 3D [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]SAM_PROTO_ClearQueue done [14:00:30]KKMCreateOFDPacket [14:00:30]OFDProtocolAddRootSTLVToBuf [14:00:30]FM_MakeSignedData [14:00:30]FM_MakeSignedData [14:00:30]SAM_PROTO_SignData [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 01 02 [14:00:30]Write to MH i2c: E2 08 00 C5 07 80 0D 01 02 00 00 00 00 45 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=255 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 02 02 FA 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7E 8D 23 67 0E 04 04 00 2D 02 00 00 [14:00:30]Write to MH i2c: E2 02 01 C6 07 80 0D 02 02 FA 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7E 8D 23 67 0E 04 04 00 2D 02 00 00 00 00 DB [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=68 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 02 02 3F B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 01 87 2C 76 3D 02 [14:00:30]Write to MH i2c: E2 47 00 C7 07 80 0D 02 02 3F 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 01 87 2C 76 3D 02 00 00 84 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 03 02 [14:00:30]Write to MH i2c: E2 08 00 C8 07 80 0D 03 02 00 00 00 00 4A [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 0B 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 0B 00 C8 07 00 70 29 90 88 44 CB AB 17 90 00 CD [14:00:30]RAPDU: 70 29 90 88 44 CB AB 17 90 00 [14:00:30]wFMCommunicate OK [14:00:30]SAM_PROTO_SignData done [14:00:30]FM_MakeSignedData done [14:00:30]CreateOFDProtocolMessage [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 11 00 00 [14:00:30]Write to MH i2c: E2 08 00 C9 07 80 11 00 00 00 00 00 00 4A [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 17 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 17 00 C9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A5 [14:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:00:30]wFMCommunicate OK [14:00:30]CreateOFDProtocolMessage done [14:00:30]OFDSenderStorePacket 139674 [14:00:30]StoreOFDPacket docnum=139674 [14:00: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 49 01 00 00 DA 9D 41 01 2D 94 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7E 8D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 01 87 2C 76 3D 02 70 29 90 88 44 CB AB 17 [14:00:30]CheckFolder [14:00:30]dirname=/storage/ofd_packets [14:00:30]CheckFolder done [14:00:30]ProducePacketName [14:00:30]name=ofd_packets/00139674 [14:00:30]NVStorageSaveData ofd_packets/00139674 [14:00:30]File name is /storage/ofd_packets/00139674 [14:00:30]Write 359 bytes [14:00:30]NVStorageSaveData done [14:00:30]OFDSenderStorePacket done [14:00:30]KKMCreateOFDPacket done [14:00:31]NVStorageSaveData kkm_last_timestamp [14:00:31]File name is /storage/kkm_last_timestamp [14:00:31]Write 4 bytes [14:00:31]NVStorageSaveData done [14:00:31]ExternCall_PrintAddStr [14:00:31]wPrintStart [14:00:31]Write to MH i2c: 01 00 00 CA 07 D1 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 FF 0F E6 [14:00:31]RasterBufferAndPrint [14:00:31]line Счет N : (3)335528 [14:00:31]line ИНН: 02508201610067 [14:00:31]line Контрольно-Кассовый Чек [14:00:31]line ПРОДАЖА [14:00:31]line Товар: 4780111550484 [14:00:31]line Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л [14:00:31]line 1.000 * 125.00 [14:00:31]line = 125.00 [14:00:31]line НДС 12% НСП 1% [14:00:31]line > о реализуемом товаре [14:00:31]line ИТОГО: 125.00 [14:00:31]line НСП 1% : 1.11 [14:00:31]line НДС 12% : 13.27 [14:00:31]line Наличными: 125.00 [14:00:31]line Безнал.: 0.00 [14:00:31]line Место: АЗС № 101 "Партнер Нефть" [14:00:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:00:31]line СНО: Общий режим [14:00:31]line Чек 151 31.10.2024 14:00 [14:00:31]line Смена: 557 ФФД: 1.0 [14:00:31]line ЗНМ: 0300000081 [14:00:31]line РНМ: 0000000000091631 [14:00:31]line Версия ККМ: 001 [14:00:31]line ФМ: 0000000000874669 [14:00:31]line ФД: 139674 [14:00:31]line ФПД: 1680078159106 [14:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140030&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139674&fm=1680078159106&tin=02508201610067®Number=0000000000091631&sum=12500 [14:00:31]line 0 [14:00:31]OFD Sender: Processing packet 139674 [packets to send 34, broken 33] [14:00:31]ProducePacketName [14:00:31]name=ofd_packets/00139674 [14:00:31]OFD Sender: To server: pG, [14:00:31]CommunicateWithHost lk.salyk.kg:30040 [14:00:31]ConnectInit lk.salyk.kg [14:00:31]written 0, free lines is 4095 [14:00:31]Connected sock=10 [14:00: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 49 01 00 00 DA 9D 41 01 2D 94 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7E 8D 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 01 87 2C 76 3D 02 70 29 90 88 44 CB AB 17 [14:00: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 EE E3 47 00 0C 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 21 02 00 F4 03 04 00 2B 39 23 67 B6 04 01 00 00 06 C9 48 12 FD 96 00 20 [14:00:31]CommunicateWithHost err = 0 [14:00:31]CheckOFDResponse [14:00:31]1017 (14) - 77093643461234 [14:00:31]1041 (16) - 0000000000874669 [14:00:31]1040 (4) - 139674 [14:00:31]1012 (4) - 31.10.2024 08:00 [14:00:31]1206 (1) - 0 [14:00:31]OFD Sender: Remove packet 139674 [14:00:31]ProducePacketName [14:00:31]name=ofd_packets/00139674 [14:00:31]NVStorageDeleteData [14:00:31]Write to MH i2c: 01 00 00 F3 07 FA [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 04 0D 12 [14:00:31]RasterBufferAndPrint [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]written 0, free lines is 3339 [14:00:31]MH_Cut [14:00:31]Write to MH i2c: D1 01 00 FA 07 01 D3 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: D1 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: D1 01 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: D1 01 00 FA 07 00 D2 [14:00:31]Write to MH i2c: 01 00 00 FB 07 02 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:32]OFD Sender: No OFD packet to send [14:00:32]*** Cut start [14:00:32]*** Partial cut [14:00:32]*** CUTSNS_PIN = 1 [14:00:32]*** CUTSNS_PIN = 0 [14:00:32]*** Brake cut motor [14:00:33]Read from MH i2c: 01 [14:00:33]MH_I2C_Read... [14:00:33]*** Stop cut motor [14:00:33]*** Cut end [14:00:33]Read from MH i2c: 01 07 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [14:00:33]process_action close_receipt done [14:00:33]requested_data is exist [14:00:33]produce_requested_data [14:00:33]requested_item fm.sn is exist - process it [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 11 00 00 [14:00:33]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 17 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D8 [14:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:00:33]wFMCommunicate OK [14:00:33]requested_item fd.num is exist - process it [14:00:33]SAM_PROTO_GetFieldsCounters [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 13 00 00 [14:00:33]Write to MH i2c: E2 08 00 FD 07 80 13 00 00 00 00 00 00 80 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 62 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 62 00 FD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 55 [14:00: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 9A 21 02 00 0E 04 04 00 2D 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:00:33]wFMCommunicate OK [14:00:33]SAM_PROTO_GetFieldsCounters done [14:00:33]requested_item shift.num is exist - process it [14:00:33]requested_item shift.opened is exist - process it [14:00:33]req_shift_opened [14:00:33]FM_GetShiftState [14:00:33]SAM_PROTO_GetShiftState [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 13 01 00 [14:00:33]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 0E 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AB [14:00:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:00:33]wFMCommunicate OK [14:00:33]SAM_PROTO_GetShiftState done [14:00:33]FM_GetShiftState done [14:00:33]req_shift_opened done [14:00:33]requested_item shift.open_date is exist - process it [14:00:33]req_shift_open_date [14:00:33]req_shift_open_date done [14:00:33]produce_requested_data done [14:00:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139674,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:00:33]process_action_free close_receipt [14:00:33]json_value_free [14:00:33]json_value_free done [14:00:33]process_json_proto returns [14:00:33]Send response to host [14:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139674,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:00:33]free response buf [14:00:33]execute_script done [14:00:33]execute_script returns [14:00:33]free content buf [14:00:33]Sock 7.Close socket [14:00:33]Sock 7.Thread stoped [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]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:04]accept exits with 9 [14:05:04]New connection [14:05:04]New thread 3066510692 created [14:05:04]Thread 3066654052 joined [14:05:04]Waiting for new connection... [14:05:04] Sock 9.Parse request [14:05:04]Sock 9.Check first char [14:05:04]Sock 9.First char is OK [14:05:04]request: POST /json_proto HTTP/1.0 [14:05:04]Method: POST [14:05:04]URL: /json_proto [14:05:04]Method is POST - this is cgi request [14:05:04]url: /json_proto [14:05:04]query_string will be loaded in cgi processing [14:05:04]execute_cgi json_proto POST (null) [14:05:04]execute_cgi path=json_proto method=POST [14:05:04]POST find Content-Length [14:05:04]Host: 172.17.50.196:8080 [14:05:04]Content-Length: 652 [14:05:04]Content-Type: application/json [14:05:04] [14:05:04]POST finish read [14:05:04]Found Content-Length = 652 [14:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335529", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 5.000, "sum" : 625.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:04]execute_script... [14:05: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)335529", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 5.000, "sum" : 625.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:04]POST & json_proto [14:05:04]process_json_proto [14:05:04]json parsed OK: [14:05:04]protocol is kg_v1.0 [14:05:04]action value=close_receipt [14:05:04]process_action close_receipt [14:05:04]cmd_close_receipt [14:05:04]MH_GetDate [14:05:04]Write to MH i2c: F0 00 00 FF 07 F5 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: F0 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: F0 09 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: F0 09 00 FF 07 00 91 8E 23 67 72 0D 1C 67 A9 [14:05:04]GetLastDocTimeStamp 1730383230 [14:05:04]current date 1730383505 [14:05:04]FM_GetShiftState [14:05:04]SAM_PROTO_GetShiftState [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 13 01 00 [14:05:04]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0E 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AE [14:05:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_GetShiftState done [14:05:04]FM_GetShiftState done [14:05:04]opened in 1730332621 [14:05:04]opened+sec_in_day 1730419021 [14:05:04]quantity*price = 62500 [14:05:04]sum+1 = 62501 [14:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 625.00 НСП 1% : 5.53 НДС 12% : 66.37 Наличными: 625.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 152 31.10.2024 14:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139675 ФПД: 119504247203070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140505&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139675&fm=119504247203070&tin=02508201610067®Number=0000000000091631&sum=62500 0 [14:05:05]StoreToDocumentArchive [14:05:05]shift 557 fd 139675 [14:05:05]save to /storage/0557/doc_00139675 [14:05:05]save last doc name /storage/0557/doc_00139675 to /storage/kkm_last_doc_name [14:05:05]save OK [14:05:05]Clear old archive folders... [14:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:05:05]tlvbuf is 00A1B840 [14:05:05]SAM_PROTO_ClearQueue [14:05:05]wFMCommunicate request_size=4 [14:05:05]MH_SAM_APDU [14:05:05]CAPDU: 80 09 00 00 [14:05:05]Write to MH i2c: E2 08 00 0D 08 80 09 00 00 00 00 00 00 87 [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:05]Read from MH i2c: E2 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [14:05:05]RAPDU: 90 00 [14:05:05]wFMCommunicate OK [14:05:05]SAM_PROTO_ClearQueue done [14:05:05]KKMCreateOFDPacket [14:05:05]OFDProtocolAddRootSTLVToBuf [14:05:05]FM_MakeSignedData [14:05:05]FM_MakeSignedData [14:05:05]SAM_PROTO_SignData [14:05:05]wFMCommunicate request_size=4 [14:05:05]MH_SAM_APDU [14:05:05]CAPDU: 80 0D 01 02 [14:05:05]Write to MH i2c: E2 08 00 0E 08 80 0D 01 02 00 00 00 00 8F [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:05]Read from MH i2c: E2 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [14:05:05]RAPDU: 90 00 [14:05:05]wFMCommunicate OK [14:05:05]wFMCommunicate request_size=255 [14:05:05]MH_SAM_APDU [14:05:05]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 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 91 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [14:05:05]Write to MH i2c: E2 02 01 0F 08 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 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 91 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 16 [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:05]Read from MH i2c: E2 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [14:05:05]RAPDU: 90 00 [14:05:05]wFMCommunicate OK [14:05:05]wFMCommunicate request_size=43 [14:05:05]MH_SAM_APDU [14:05:05]CAPDU: 80 0D 02 02 26 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 21 02 00 35 04 06 00 6C B0 40 34 24 FE [14:05:05]Write to MH i2c: E2 2E 00 10 08 80 0D 02 02 26 00 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 21 02 00 35 04 06 00 6C B0 40 34 24 FE 00 00 F2 [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:05]Read from MH i2c: E2 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [14:05:05]RAPDU: 90 00 [14:05:05]wFMCommunicate OK [14:05:05]wFMCommunicate request_size=4 [14:05:05]MH_SAM_APDU [14:05:05]CAPDU: 80 0D 03 02 [14:05:05]Write to MH i2c: E2 08 00 11 08 80 0D 03 02 00 00 00 00 94 [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0B 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0B 00 11 08 00 35 B0 A2 A8 51 31 19 A0 90 00 FF [14:05:06]RAPDU: 35 B0 A2 A8 51 31 19 A0 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_SignData done [14:05:06]FM_MakeSignedData done [14:05:06]CreateOFDProtocolMessage [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 11 00 00 [14:05:06]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [14:05: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:05:06]wFMCommunicate OK [14:05:06]CreateOFDProtocolMessage done [14:05:06]OFDSenderStorePacket 139675 [14:05:06]StoreOFDPacket docnum=139675 [14:05: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 30 01 00 00 CA D9 28 01 01 A9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 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 91 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6C B0 40 34 24 FE 35 B0 A2 A8 51 31 19 A0 [14:05:06]CheckFolder [14:05:06]dirname=/storage/ofd_packets [14:05:06]CheckFolder done [14:05:06]ProducePacketName [14:05:06]name=ofd_packets/00139675 [14:05:06]NVStorageSaveData ofd_packets/00139675 [14:05:06]File name is /storage/ofd_packets/00139675 [14:05:06]Write 334 bytes [14:05:06]NVStorageSaveData done [14:05:06]OFDSenderStorePacket done [14:05:06]KKMCreateOFDPacket done [14:05:06]NVStorageSaveData kkm_last_timestamp [14:05:06]File name is /storage/kkm_last_timestamp [14:05:06]Write 4 bytes [14:05:06]NVStorageSaveData done [14:05:06]ExternCall_PrintAddStr [14:05:06]wPrintStart [14:05:06]Write to MH i2c: 01 00 00 13 08 1B [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [14:05:06]RasterBufferAndPrint [14:05:06]line Счет N : (3)335529 [14:05:06]line ИНН: 02508201610067 [14:05:06]line Контрольно-Кассовый Чек [14:05:06]line ПРОДАЖА [14:05:06]line Товар: 2000036190018 [14:05:06]line Кофе Американо XL(GABB TRADE) [14:05:06]line 5.000 * 125.00 [14:05:06]line = 625.00 [14:05:06]line НДС 12% НСП 1% [14:05:06]line > о реализуемом товаре [14:05:06]line ИТОГО: 625.00 [14:05:06]line НСП 1% : 5.53 [14:05:06]line НДС 12% : 66.37 [14:05:06]line Наличными: 625.00 [14:05:06]line Безнал.: 0.00 [14:05:06]line Место: АЗС № 101 "Партнер Нефть" [14:05:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:05:06]line СНО: Общий режим [14:05:06]line Чек 152 31.10.2024 14:05 [14:05:06]line Смена: 557 ФФД: 1.0 [14:05:06]line ЗНМ: 0300000081 [14:05:06]line РНМ: 0000000000091631 [14:05:06]line Версия ККМ: 001 [14:05:06]line ФМ: 0000000000874669 [14:05:06]line ФД: 139675 [14:05:06]line ФПД: 119504247203070 [14:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140505&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139675&fm=119504247203070&tin=02508201610067®Number=0000000000091631&sum=62500 [14:05:06]line 0 [14:05:06]OFD Sender: Processing packet 139675 [packets to send 34, broken 33] [14:05:06]ProducePacketName [14:05:06]name=ofd_packets/00139675 [14:05:06]OFD Sender: To server: pG, [14:05:06]CommunicateWithHost lk.salyk.kg:30040 [14:05:06]ConnectInit lk.salyk.kg [14:05:06]written 0, free lines is 4095 [14:05:06]Connected sock=10 [14:05: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 30 01 00 00 CA D9 28 01 01 A9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 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 91 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6C B0 40 34 24 FE 35 B0 A2 A8 51 31 19 A0 [14:05: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 CD D4 47 00 B3 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 21 02 00 F4 03 04 00 3E 3A 23 67 B6 04 01 00 00 15 80 B1 D2 37 76 8A 8D [14:05:06]CommunicateWithHost err = 0 [14:05:06]CheckOFDResponse [14:05:06]1017 (14) - 77093643461234 [14:05:06]1041 (16) - 0000000000874669 [14:05:06]1040 (4) - 139675 [14:05:06]1012 (4) - 31.10.2024 08:05 [14:05:06]1206 (1) - 0 [14:05:06]OFD Sender: Remove packet 139675 [14:05:06]ProducePacketName [14:05:06]name=ofd_packets/00139675 [14:05:06]NVStorageDeleteData [14:05:06]Write to MH i2c: 01 00 00 3C 08 44 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 14 0D 6C [14:05:06]RasterBufferAndPrint [14:05:06]line [14:05:06]line [14:05:06]line [14:05:06]line [14:05:06]line [14:05:06]written 0, free lines is 3354 [14:05:06]MH_Cut [14:05:06]Write to MH i2c: D1 01 00 43 08 01 1D [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: D1 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: D1 01 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: D1 01 00 43 08 00 1C [14:05:06]Write to MH i2c: 01 00 00 44 08 4C [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:07]OFD Sender: No OFD packet to send [14:05:07]*** Cut start [14:05:07]*** Partial cut [14:05:07]*** CUTSNS_PIN = 1 [14:05:07]*** CUTSNS_PIN = 0 [14:05:07]*** Brake cut motor [14:05:08]Read from MH i2c: 01 [14:05:08]MH_I2C_Read... [14:05:08]*** Stop cut motor [14:05:08]*** Cut end [14:05:08]Read from MH i2c: 01 07 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 FF 0F 61 [14:05:08]process_action close_receipt done [14:05:08]requested_data is exist [14:05:08]produce_requested_data [14:05:08]requested_item fm.sn is exist - process it [14:05:08]wFMCommunicate request_size=4 [14:05:08]MH_SAM_APDU [14:05:08]CAPDU: 80 11 00 00 [14:05:08]Write to MH i2c: E2 08 00 45 08 80 11 00 00 00 00 00 00 C7 [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:08]Read from MH i2c: E2 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 17 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 17 00 45 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 22 [14:05: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:05:08]wFMCommunicate OK [14:05:08]requested_item fd.num is exist - process it [14:05:08]SAM_PROTO_GetFieldsCounters [14:05:08]wFMCommunicate request_size=4 [14:05:08]MH_SAM_APDU [14:05:08]CAPDU: 80 13 00 00 [14:05:08]Write to MH i2c: E2 08 00 46 08 80 13 00 00 00 00 00 00 CA [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:08]Read from MH i2c: E2 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 62 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 62 00 46 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 A3 [14:05: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 9B 21 02 00 0E 04 04 00 2D 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:05:08]wFMCommunicate OK [14:05:08]SAM_PROTO_GetFieldsCounters done [14:05:08]requested_item shift.num is exist - process it [14:05:08]requested_item shift.opened is exist - process it [14:05:08]req_shift_opened [14:05:08]FM_GetShiftState [14:05:08]SAM_PROTO_GetShiftState [14:05:08]wFMCommunicate request_size=4 [14:05:08]MH_SAM_APDU [14:05:08]CAPDU: 80 13 01 00 [14:05:08]Write to MH i2c: E2 08 00 47 08 80 13 01 00 00 00 00 00 CC [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:08]Read from MH i2c: E2 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 0E 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 0E 00 47 08 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F5 [14:05:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:05:08]wFMCommunicate OK [14:05:08]SAM_PROTO_GetShiftState done [14:05:08]FM_GetShiftState done [14:05:08]req_shift_opened done [14:05:08]requested_item shift.open_date is exist - process it [14:05:08]req_shift_open_date [14:05:08]req_shift_open_date done [14:05:08]produce_requested_data done [14:05:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139675,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:05:08]process_action_free close_receipt [14:05:08]json_value_free [14:05:08]json_value_free done [14:05:08]process_json_proto returns [14:05:08]Send response to host [14:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139675,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:05:08]free response buf [14:05:08]execute_script done [14:05:08]execute_script returns [14:05:08]free content buf [14:05:08]Sock 9.Close socket [14:05:08]Sock 9.Thread stoped [14:05:10]accept exits with 7 [14:05:10]New connection [14:05:10]New thread 3066654052 created [14:05:10]Thread 3066510692 joined [14:05:10]Waiting for new connection... [14:05:10] Sock 7.Parse request [14:05:10]Sock 7.Check first char [14:05:10]Sock 7.First char is OK [14:05:10]request: POST /json_proto HTTP/1.0 [14:05:10]Method: POST [14:05:10]URL: /json_proto [14:05:10]Method is POST - this is cgi request [14:05:10]url: /json_proto [14:05:10]query_string will be loaded in cgi processing [14:05:10]execute_cgi json_proto POST (null) [14:05:10]execute_cgi path=json_proto method=POST [14:05:10]POST find Content-Length [14:05:10]Host: 172.17.50.196:8080 [14:05:10]Content-Length: 652 [14:05:10]Content-Type: application/json [14:05:10] [14:05:10]POST finish read [14:05:10]Found Content-Length = 652 [14:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335530", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 4.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:10]execute_script... [14:05:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335530", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 4.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:10]POST & json_proto [14:05:10]process_json_proto [14:05:10]json parsed OK: [14:05:10]protocol is kg_v1.0 [14:05:10]action value=close_receipt [14:05:10]process_action close_receipt [14:05:10]cmd_close_receipt [14:05:10]MH_GetDate [14:05:10]Write to MH i2c: F0 00 00 48 08 3F [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: F0 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: F0 09 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: F0 09 00 48 08 00 97 8E 23 67 72 0D 1C 67 F9 [14:05:10]GetLastDocTimeStamp 1730383505 [14:05:10]current date 1730383511 [14:05:10]FM_GetShiftState [14:05:10]SAM_PROTO_GetShiftState [14:05:10]wFMCommunicate request_size=4 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 13 01 00 [14:05:10]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 0E 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F7 [14:05:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:05:10]wFMCommunicate OK [14:05:10]SAM_PROTO_GetShiftState done [14:05:10]FM_GetShiftState done [14:05:10]opened in 1730332621 [14:05:10]opened+sec_in_day 1730419021 [14:05:10]quantity*price = 50000 [14:05:10]sum+1 = 50001 [14:05:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 153 31.10.2024 14:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139676 ФПД: 2587793149894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139676&fm=2587793149894&tin=02508201610067®Number=0000000000091631&sum=50000 0 [14:05:11]StoreToDocumentArchive [14:05:11]shift 557 fd 139676 [14:05:11]save to /storage/0557/doc_00139676 [14:05:11]save last doc name /storage/0557/doc_00139676 to /storage/kkm_last_doc_name [14:05:11]save OK [14:05:11]Clear old archive folders... [14:05:11]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:05:11]tlvbuf is 00AE9430 [14:05:11]SAM_PROTO_ClearQueue [14:05:11]wFMCommunicate request_size=4 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 09 00 00 [14:05:11]Write to MH i2c: E2 08 00 56 08 80 09 00 00 00 00 00 00 D0 [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:11]Read from MH i2c: E2 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 56 08 00 90 00 D2 [14:05:11]RAPDU: 90 00 [14:05:11]wFMCommunicate OK [14:05:11]SAM_PROTO_ClearQueue done [14:05:11]KKMCreateOFDPacket [14:05:11]OFDProtocolAddRootSTLVToBuf [14:05:11]FM_MakeSignedData [14:05:11]FM_MakeSignedData [14:05:11]SAM_PROTO_SignData [14:05:11]wFMCommunicate request_size=4 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 0D 01 02 [14:05:11]Write to MH i2c: E2 08 00 57 08 80 0D 01 02 00 00 00 00 D8 [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:11]Read from MH i2c: E2 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 57 08 00 90 00 D3 [14:05:11]RAPDU: 90 00 [14:05:11]wFMCommunicate OK [14:05:11]wFMCommunicate request_size=255 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 97 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [14:05:11]Write to MH i2c: E2 02 01 58 08 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 97 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 C7 [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:11]Read from MH i2c: E2 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [14:05:11]RAPDU: 90 00 [14:05:11]wFMCommunicate OK [14:05:11]wFMCommunicate request_size=43 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 0D 02 02 26 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 21 02 00 35 04 06 00 02 5A 84 7D CF C6 [14:05:11]Write to MH i2c: E2 2E 00 59 08 80 0D 02 02 26 00 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 21 02 00 35 04 06 00 02 5A 84 7D CF C6 00 00 7C [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:11]Read from MH i2c: E2 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [14:05:11]RAPDU: 90 00 [14:05:11]wFMCommunicate OK [14:05:11]wFMCommunicate request_size=4 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 0D 03 02 [14:05:11]Write to MH i2c: E2 08 00 5A 08 80 0D 03 02 00 00 00 00 DD [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:11]Read from MH i2c: E2 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 0B 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 0B 00 5A 08 00 37 A4 AF 70 E9 18 54 41 90 00 6E [14:05:11]RAPDU: 37 A4 AF 70 E9 18 54 41 90 00 [14:05:11]wFMCommunicate OK [14:05:11]SAM_PROTO_SignData done [14:05:11]FM_MakeSignedData done [14:05:11]CreateOFDProtocolMessage [14:05:11]wFMCommunicate request_size=4 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 11 00 00 [14:05:11]Write to MH i2c: E2 08 00 5B 08 80 11 00 00 00 00 00 00 DD [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 5B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 38 [14:05: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:05:12]wFMCommunicate OK [14:05:12]CreateOFDProtocolMessage done [14:05:12]OFDSenderStorePacket 139676 [14:05:12]StoreOFDPacket docnum=139676 [14:05: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 30 01 00 00 92 9C 28 01 D9 2F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 97 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 02 5A 84 7D CF C6 37 A4 AF 70 E9 18 54 41 [14:05:12]CheckFolder [14:05:12]dirname=/storage/ofd_packets [14:05:12]CheckFolder done [14:05:12]ProducePacketName [14:05:12]name=ofd_packets/00139676 [14:05:12]NVStorageSaveData ofd_packets/00139676 [14:05:12]File name is /storage/ofd_packets/00139676 [14:05:12]Write 334 bytes [14:05:12]NVStorageSaveData done [14:05:12]OFDSenderStorePacket done [14:05:12]KKMCreateOFDPacket done [14:05:12]NVStorageSaveData kkm_last_timestamp [14:05:12]File name is /storage/kkm_last_timestamp [14:05:12]Write 4 bytes [14:05:12]NVStorageSaveData done [14:05:12]ExternCall_PrintAddStr [14:05:12]wPrintStart [14:05:12]Write to MH i2c: 01 00 00 5C 08 64 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 FF 0F 79 [14:05:12]RasterBufferAndPrint [14:05:12]line Счет N : (3)335530 [14:05:12]line ИНН: 02508201610067 [14:05:12]line Контрольно-Кассовый Чек [14:05:12]line ПРОДАЖА [14:05:12]line Товар: 2000036190018 [14:05:12]line Кофе Американо XL(GABB TRADE) [14:05:12]line 4.000 * 125.00 [14:05:12]line = 500.00 [14:05:12]line НДС 12% НСП 1% [14:05:12]line > о реализуемом товаре [14:05:12]line ИТОГО: 500.00 [14:05:12]line НСП 1% : 4.42 [14:05:12]line НДС 12% : 53.10 [14:05:12]line Наличными: 500.00 [14:05:12]line Безнал.: 0.00 [14:05:12]line Место: АЗС № 101 "Партнер Нефть" [14:05:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:05:12]line СНО: Общий режим [14:05:12]line Чек 153 31.10.2024 14:05 [14:05:12]line Смена: 557 ФФД: 1.0 [14:05:12]line ЗНМ: 0300000081 [14:05:12]line РНМ: 0000000000091631 [14:05:12]line Версия ККМ: 001 [14:05:12]line ФМ: 0000000000874669 [14:05:12]line ФД: 139676 [14:05:12]line ФПД: 2587793149894 [14:05:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T140511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139676&fm=2587793149894&tin=02508201610067®Number=0000000000091631&sum=50000 [14:05:12]line 0 [14:05:12]written 0, free lines is 4095 [14:05:12]OFD Sender: Processing packet 139676 [packets to send 34, broken 33] [14:05:12]ProducePacketName [14:05:12]name=ofd_packets/00139676 [14:05:12]OFD Sender: To server: pG, [14:05:12]CommunicateWithHost lk.salyk.kg:30040 [14:05:12]ConnectInit lk.salyk.kg [14:05:12]Connected sock=10 [14:05: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 30 01 00 00 92 9C 28 01 D9 2F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 97 8E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 02 5A 84 7D CF C6 37 A4 AF 70 E9 18 54 41 [14:05: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 61 6A 47 00 52 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 9C 21 02 00 F4 03 04 00 44 3A 23 67 B6 04 01 00 00 6D A3 05 E6 1E A8 04 8E [14:05:12]CommunicateWithHost err = 0 [14:05:12]CheckOFDResponse [14:05:12]1017 (14) - 77093643461234 [14:05:12]1041 (16) - 0000000000874669 [14:05:12]1040 (4) - 139676 [14:05:12]1012 (4) - 31.10.2024 08:05 [14:05:12]1206 (1) - 0 [14:05:12]OFD Sender: Remove packet 139676 [14:05:12]ProducePacketName [14:05:12]name=ofd_packets/00139676 [14:05:12]NVStorageDeleteData [14:05:12]Write to MH i2c: 01 00 00 85 08 8D [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 85 08 00 00 00 00 00 11 0D B2 [14:05:12]RasterBufferAndPrint [14:05:12]line [14:05:12]line [14:05:12]line [14:05:12]line [14:05:12]line [14:05:12]written 0, free lines is 3357 [14:05:12]MH_Cut [14:05:12]Write to MH i2c: D1 01 00 8C 08 01 66 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: D1 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: D1 01 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: D1 01 00 8C 08 00 65 [14:05:12]Write to MH i2c: 01 00 00 8D 08 95 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]OFD Sender: No OFD packet to send [14:05:13]*** Cut start [14:05:13]*** Partial cut [14:05:13]*** CUTSNS_PIN = 1 [14:05:13]*** CUTSNS_PIN = 0 [14:05:13]*** Brake cut motor [14:05:13]Read from MH i2c: 01 [14:05:13]MH_I2C_Read... [14:05:13]*** Stop cut motor [14:05:13]*** Cut end [14:05:13]Read from MH i2c: 01 07 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: 01 07 00 8D 08 00 00 00 00 00 FF 0F AA [14:05:13]process_action close_receipt done [14:05:13]requested_data is exist [14:05:13]produce_requested_data [14:05:13]requested_item fm.sn is exist - process it [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 11 00 00 [14:05:13]Write to MH i2c: E2 08 00 8E 08 80 11 00 00 00 00 00 00 10 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 17 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 17 00 8E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6B [14:05: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:05:13]wFMCommunicate OK [14:05:13]requested_item fd.num is exist - process it [14:05:13]SAM_PROTO_GetFieldsCounters [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 13 00 00 [14:05:13]Write to MH i2c: E2 08 00 8F 08 80 13 00 00 00 00 00 00 13 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 62 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 62 00 8F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 F0 [14:05: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 9C 21 02 00 0E 04 04 00 2D 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:05:13]wFMCommunicate OK [14:05:13]SAM_PROTO_GetFieldsCounters done [14:05:13]requested_item shift.num is exist - process it [14:05:13]requested_item shift.opened is exist - process it [14:05:13]req_shift_opened [14:05:13]FM_GetShiftState [14:05:13]SAM_PROTO_GetShiftState [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 13 01 00 [14:05:13]Write to MH i2c: E2 08 00 90 08 80 13 01 00 00 00 00 00 15 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:14]Read from MH i2c: E2 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 0E 00 [14:05:14]MH_I2C_Read... [14:05:14]Read from MH i2c: E2 0E 00 90 08 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3E [14:05:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:05:14]wFMCommunicate OK [14:05:14]SAM_PROTO_GetShiftState done [14:05:14]FM_GetShiftState done [14:05:14]req_shift_opened done [14:05:14]requested_item shift.open_date is exist - process it [14:05:14]req_shift_open_date [14:05:14]req_shift_open_date done [14:05:14]produce_requested_data done [14:05:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139676,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:05:14]process_action_free close_receipt [14:05:14]json_value_free [14:05:14]json_value_free done [14:05:14]process_json_proto returns [14:05:14]Send response to host [14:05:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139676,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:05:14]free response buf [14:05:14]execute_script done [14:05:14]execute_script returns [14:05:14]free content buf [14:05:14]Sock 7.Close socket [14:05:14]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:06]accept exits with 9 [14:12:06]New connection [14:12:06]New thread 3066510692 created [14:12:06]Thread 3066654052 joined [14:12:06]Waiting for new connection... [14:12:06] Sock 9.Parse request [14:12:06]Sock 9.Check first char [14:12:06]Sock 9.First char is OK [14:12:06]request: POST /json_proto HTTP/1.0 [14:12:06]Method: POST [14:12:06]URL: /json_proto [14:12:06]Method is POST - this is cgi request [14:12:06]url: /json_proto [14:12:06]query_string will be loaded in cgi processing [14:12:06]execute_cgi json_proto POST (null) [14:12:06]execute_cgi path=json_proto method=POST [14:12:06]POST find Content-Length [14:12:06]Host: 172.17.50.196:8080 [14:12:06]Content-Length: 678 [14:12:06]Content-Type: application/json [14:12:06] [14:12:06]POST finish read [14:12:06]Found Content-Length = 678 [14:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095205", "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" : 6.310, "sum" : 422.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 422.00, "total" : 422.00, "payments": [ { "type": 0, "sum" : 422.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:06]execute_script... [14:12: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)1095205", "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" : 6.310, "sum" : 422.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 422.00, "total" : 422.00, "payments": [ { "type": 0, "sum" : 422.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:06]POST & json_proto [14:12:06]process_json_proto [14:12:06]json parsed OK: [14:12:06]protocol is kg_v1.0 [14:12:06]action value=close_receipt [14:12:06]process_action close_receipt [14:12:06]cmd_close_receipt [14:12:06]MH_GetDate [14:12:06]Write to MH i2c: F0 00 00 91 08 88 [14:12:06]Write i2c OK [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: F0 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: F0 09 00 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: F0 09 00 91 08 00 37 90 23 67 72 0D 1C 67 E4 [14:12:06]GetLastDocTimeStamp 1730383511 [14:12:06]current date 1730383927 [14:12:06]FM_GetShiftState [14:12:06]SAM_PROTO_GetShiftState [14:12:06]wFMCommunicate request_size=4 [14:12:06]MH_SAM_APDU [14:12:06]CAPDU: 80 13 01 00 [14:12:06]Write to MH i2c: E2 08 00 92 08 80 13 01 00 00 00 00 00 17 [14:12:06]Write i2c OK [14:12:06]MH_I2C_Read... [14:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:06]Read from MH i2c: E2 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: E2 0E 00 [14:12:06]MH_I2C_Read... [14:12:06]Read from MH i2c: E2 0E 00 92 08 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 40 [14:12:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:12:06]wFMCommunicate OK [14:12:06]SAM_PROTO_GetShiftState done [14:12:06]FM_GetShiftState done [14:12:06]opened in 1730332621 [14:12:06]opened+sec_in_day 1730419021 [14:12:06]quantity*price = 42213 [14:12:06]sum+1 = 42215 [14:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 422.00 Внесено: 422.00 СДАЧА: 0.00 НСП 1% : 3.74 НДС 12% : 44.83 Наличными: 422.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 154 31.10.2024 14:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139677 ФПД: 152020793278650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141207&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139677&fm=152020793278650&tin=02508201610067®Number=0000000000091631&sum=42200 [14:12:07]StoreToDocumentArchive [14:12:07]shift 557 fd 139677 [14:12:07]save to /storage/0557/doc_00139677 [14:12:07]save last doc name /storage/0557/doc_00139677 to /storage/kkm_last_doc_name [14:12:07]save OK [14:12:07]Clear old archive folders... [14:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:07]tlvbuf is 00A648C0 [14:12:07]SAM_PROTO_ClearQueue [14:12:07]wFMCommunicate request_size=4 [14:12:07]MH_SAM_APDU [14:12:07]CAPDU: 80 09 00 00 [14:12:07]Write to MH i2c: E2 08 00 9F 08 80 09 00 00 00 00 00 00 19 [14:12:07]Write i2c OK [14:12:07]MH_I2C_Read... [14:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:07]Read from MH i2c: E2 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 03 00 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [14:12:07]RAPDU: 90 00 [14:12:07]wFMCommunicate OK [14:12:07]SAM_PROTO_ClearQueue done [14:12:07]KKMCreateOFDPacket [14:12:07]OFDProtocolAddRootSTLVToBuf [14:12:07]FM_MakeSignedData [14:12:07]FM_MakeSignedData [14:12:07]SAM_PROTO_SignData [14:12:07]wFMCommunicate request_size=4 [14:12:07]MH_SAM_APDU [14:12:07]CAPDU: 80 0D 01 02 [14:12:07]Write to MH i2c: E2 08 00 A0 08 80 0D 01 02 00 00 00 00 21 [14:12:07]Write i2c OK [14:12:07]MH_I2C_Read... [14:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:07]Read from MH i2c: E2 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 03 00 [14:12:07]MH_I2C_Read... [14:12:07]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [14:12:07]RAPDU: 90 00 [14:12:07]wFMCommunicate OK [14:12:07]wFMCommunicate request_size=255 [14:12:07]MH_SAM_APDU [14:12:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 11 00 00 00 00 07 04 06 00 D8 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 37 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8A [14:12:07]Write to MH i2c: E2 02 01 A1 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 11 00 00 00 00 07 04 06 00 D8 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 37 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8A 00 00 16 [14:12:07]Write i2c OK [14:12:07]MH_I2C_Read... [14:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:08]Read from MH i2c: E2 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 03 00 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [14:12:08]RAPDU: 90 00 [14:12:08]wFMCommunicate OK [14:12:08]wFMCommunicate request_size=10 [14:12:08]MH_SAM_APDU [14:12:08]CAPDU: 80 0D 02 02 05 43 19 61 C0 BA [14:12:08]Write to MH i2c: E2 0D 00 A2 08 80 0D 02 02 05 00 43 19 61 C0 BA 00 00 65 [14:12:08]Write i2c OK [14:12:08]MH_I2C_Read... [14:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:08]Read from MH i2c: E2 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 03 00 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [14:12:08]RAPDU: 90 00 [14:12:08]wFMCommunicate OK [14:12:08]wFMCommunicate request_size=4 [14:12:08]MH_SAM_APDU [14:12:08]CAPDU: 80 0D 03 02 [14:12:08]Write to MH i2c: E2 08 00 A3 08 80 0D 03 02 00 00 00 00 26 [14:12:08]Write i2c OK [14:12:08]MH_I2C_Read... [14:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:08]Read from MH i2c: E2 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 0B 00 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 0B 00 A3 08 00 2E 8E 3E 31 62 EC 87 A4 90 00 CB [14:12:08]RAPDU: 2E 8E 3E 31 62 EC 87 A4 90 00 [14:12:08]wFMCommunicate OK [14:12:08]SAM_PROTO_SignData done [14:12:08]FM_MakeSignedData done [14:12:08]CreateOFDProtocolMessage [14:12:08]wFMCommunicate request_size=4 [14:12:08]MH_SAM_APDU [14:12:08]CAPDU: 80 11 00 00 [14:12:08]Write to MH i2c: E2 08 00 A4 08 80 11 00 00 00 00 00 00 26 [14:12:08]Write i2c OK [14:12:08]MH_I2C_Read... [14:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:08]Read from MH i2c: E2 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 17 00 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: E2 17 00 A4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 81 [14:12: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:12:08]wFMCommunicate OK [14:12:08]CreateOFDProtocolMessage done [14:12:08]OFDSenderStorePacket 139677 [14:12:08]StoreOFDPacket docnum=139677 [14:12: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 0F 01 00 00 C0 38 07 01 A3 33 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 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 11 00 00 00 00 07 04 06 00 D8 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 37 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8A 43 19 61 C0 BA 2E 8E 3E 31 62 EC 87 A4 [14:12:08]CheckFolder [14:12:08]dirname=/storage/ofd_packets [14:12:08]CheckFolder done [14:12:08]ProducePacketName [14:12:08]name=ofd_packets/00139677 [14:12:08]NVStorageSaveData ofd_packets/00139677 [14:12:08]File name is /storage/ofd_packets/00139677 [14:12:08]Write 301 bytes [14:12:08]NVStorageSaveData done [14:12:08]OFDSenderStorePacket done [14:12:08]KKMCreateOFDPacket done [14:12:08]NVStorageSaveData kkm_last_timestamp [14:12:08]File name is /storage/kkm_last_timestamp [14:12:08]Write 4 bytes [14:12:08]NVStorageSaveData done [14:12:08]ExternCall_PrintAddStr [14:12:08]wPrintStart [14:12:08]Write to MH i2c: 01 00 00 A5 08 AD [14:12:08]Write i2c OK [14:12:08]MH_I2C_Read... [14:12:08]OFD Sender: Processing packet 139677 [packets to send 34, broken 33] [14:12:08]ProducePacketName [14:12:08]name=ofd_packets/00139677 [14:12:08]OFD Sender: To server: pG, [14:12:08]CommunicateWithHost lk.salyk.kg:30040 [14:12:08]ConnectInit lk.salyk.kg [14:12:08]Read from MH i2c: 01 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: 01 07 00 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: 01 07 00 A5 08 00 00 00 00 00 FF 0F C2 [14:12:08]RasterBufferAndPrint [14:12:08]line Счет N : (1)1095205 [14:12:08]line ИНН: 02508201610067 [14:12:08]line Контрольно-Кассовый Чек [14:12:08]line ПРОДАЖА [14:12:08]line ТРК (МРК, ГНК) : 53 [14:12:08]line Товар: 2710124130 [14:12:08]line Аи-92-К-2 [14:12:08]line 6.310 * 66.90 [14:12:08]line = 422.14 [14:12:08]line НДС 12% НСП 1% [14:12:08]line > о реализуемом товаре [14:12:08]line ОКРУГЛЕНИЕ: -0.14 [14:12:08]line ИТОГО: 422.00 [14:12:08]line Внесено: 422.00 [14:12:08]line СДАЧА: 0.00 [14:12:08]line НСП 1% : 3.74 [14:12:08]line НДС 12% : 44.83 [14:12:08]line Наличными: 422.00 [14:12:08]line Безнал.: 0.00 [14:12:08]line Место: АЗС № 101 "Партнер Нефть" [14:12:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:12:08]line СНО: Общий режим [14:12:08]line Чек 154 31.10.2024 14:12 [14:12:08]line Смена: 557 ФФД: 1.0 [14:12:08]line ЗНМ: 0300000081 [14:12:08]line РНМ: 0000000000091631 [14:12:08]line Версия ККМ: 001 [14:12:08]line ФМ: 0000000000874669 [14:12:08]line ФД: 139677 [14:12:08]line ФПД: 152020793278650 [14:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141207&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139677&fm=152020793278650&tin=02508201610067®Number=0000000000091631&sum=42200 [14:12:08]written 0, free lines is 4095 [14:12:08]Connected sock=11 [14:12: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 0F 01 00 00 C0 38 07 01 A3 33 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 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 11 00 00 00 00 07 04 06 00 D8 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 37 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8A 43 19 61 C0 BA 2E 8E 3E 31 62 EC 87 A4 [14:12: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 C7 39 47 00 9C 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 9D 21 02 00 F4 03 04 00 E4 3B 23 67 B6 04 01 00 00 E3 9F 1B AC 7F 71 EC 58 [14:12:08]CommunicateWithHost err = 0 [14:12:08]CheckOFDResponse [14:12:08]1017 (14) - 77093643461234 [14:12:08]1041 (16) - 0000000000874669 [14:12:08]1040 (4) - 139677 [14:12:08]1012 (4) - 31.10.2024 08:12 [14:12:08]1206 (1) - 0 [14:12:08]OFD Sender: Remove packet 139677 [14:12:08]ProducePacketName [14:12:08]name=ofd_packets/00139677 [14:12:08]NVStorageDeleteData [14:12:08]Write to MH i2c: 01 00 00 D0 08 D8 [14:12:08]Write i2c OK [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: 01 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: 01 07 00 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: 01 07 00 D0 08 00 00 00 00 00 E0 0C CB [14:12:08]RasterBufferAndPrint [14:12:08]line [14:12:08]line [14:12:08]line [14:12:08]line [14:12:08]line [14:12:08]written 0, free lines is 3302 [14:12:08]MH_Cut [14:12:08]Write to MH i2c: D1 01 00 D7 08 01 B1 [14:12:08]Write i2c OK [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: D1 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: D1 01 00 [14:12:08]MH_I2C_Read... [14:12:08]Read from MH i2c: D1 01 00 D7 08 00 B0 [14:12:08]Write to MH i2c: 01 00 00 D8 08 E0 [14:12:08]Write i2c OK [14:12:08]MH_I2C_Read... [14:12:08]OFD Sender: No OFD packet to send [14:12:09]*** Cut start [14:12:09]*** Partial cut [14:12:09]*** CUTSNS_PIN = 1 [14:12:09]*** CUTSNS_PIN = 0 [14:12:09]*** Brake cut motor [14:12:09]Read from MH i2c: 01 [14:12:09]MH_I2C_Read... [14:12:09]*** Stop cut motor [14:12:09]*** Cut end [14:12:09]Read from MH i2c: 01 07 00 [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [14:12:09]process_action close_receipt done [14:12:09]requested_data is exist [14:12:09]produce_requested_data [14:12:09]requested_item fm.sn is exist - process it [14:12:09]wFMCommunicate request_size=4 [14:12:09]MH_SAM_APDU [14:12:09]CAPDU: 80 11 00 00 [14:12:09]Write to MH i2c: E2 08 00 D9 08 80 11 00 00 00 00 00 00 5B [14:12:09]Write i2c OK [14:12:09]MH_I2C_Read... [14:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:09]Read from MH i2c: E2 [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: E2 17 00 [14:12:09]MH_I2C_Read... [14:12:09]Read from MH i2c: E2 17 00 D9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B6 [14:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:12:09]wFMCommunicate OK [14:12:09]requested_item fd.num is exist - process it [14:12:09]SAM_PROTO_GetFieldsCounters [14:12:09]wFMCommunicate request_size=4 [14:12:09]MH_SAM_APDU [14:12:09]CAPDU: 80 13 00 00 [14:12:09]Write to MH i2c: E2 08 00 DA 08 80 13 00 00 00 00 00 00 5E [14:12:09]Write i2c OK [14:12:09]MH_I2C_Read... [14:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:10]Read from MH i2c: E2 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 62 00 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 62 00 DA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 3F [14:12: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 9D 21 02 00 0E 04 04 00 2D 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:12:10]wFMCommunicate OK [14:12:10]SAM_PROTO_GetFieldsCounters done [14:12:10]requested_item shift.num is exist - process it [14:12:10]requested_item shift.opened is exist - process it [14:12:10]req_shift_opened [14:12:10]FM_GetShiftState [14:12:10]SAM_PROTO_GetShiftState [14:12:10]wFMCommunicate request_size=4 [14:12:10]MH_SAM_APDU [14:12:10]CAPDU: 80 13 01 00 [14:12:10]Write to MH i2c: E2 08 00 DB 08 80 13 01 00 00 00 00 00 60 [14:12:10]Write i2c OK [14:12:10]MH_I2C_Read... [14:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:10]Read from MH i2c: E2 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 0E 00 [14:12:10]MH_I2C_Read... [14:12:10]Read from MH i2c: E2 0E 00 DB 08 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 89 [14:12:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:12:10]wFMCommunicate OK [14:12:10]SAM_PROTO_GetShiftState done [14:12:10]FM_GetShiftState done [14:12:10]req_shift_opened done [14:12:10]requested_item shift.open_date is exist - process it [14:12:10]req_shift_open_date [14:12:10]req_shift_open_date done [14:12:10]produce_requested_data done [14:12:10]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139677,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:12:10]process_action_free close_receipt [14:12:10]json_value_free [14:12:10]json_value_free done [14:12:10]process_json_proto returns [14:12:10]Send response to host [14:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139677,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:12:10]free response buf [14:12:10]execute_script done [14:12:10]execute_script returns [14:12:10]free content buf [14:12:10]Sock 9.Close socket [14:12:10]Sock 9.Thread stoped [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:40]accept exits with 7 [14:12:40]New connection [14:12:40]New thread 3066654052 created [14:12:40]Thread 3066510692 joined [14:12:40]Waiting for new connection... [14:12:40] Sock 7.Parse request [14:12:40]Sock 7.Check first char [14:12:40]Sock 7.First char is OK [14:12:40]request: POST /json_proto HTTP/1.0 [14:12:40]Method: POST [14:12:40]URL: /json_proto [14:12:40]Method is POST - this is cgi request [14:12:40]url: /json_proto [14:12:40]query_string will be loaded in cgi processing [14:12:40]execute_cgi json_proto POST (null) [14:12:40]execute_cgi path=json_proto method=POST [14:12:40]POST find Content-Length [14:12:40]Host: 172.17.50.196:8080 [14:12:40]Content-Length: 760 [14:12:40]Content-Type: application/json [14:12:40] [14:12:40]POST finish read [14:12:40]Found Content-Length = 760 [14:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095204", "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" : 0.00, "quantity" : 15.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30156915", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:40]execute_script... [14:12:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095204", "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" : 0.00, "quantity" : 15.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30156915", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:40]POST & json_proto [14:12:40]process_json_proto [14:12:40]json parsed OK: [14:12:40]protocol is kg_v1.0 [14:12:40]action value=close_receipt [14:12:40]process_action close_receipt [14:12:40]cmd_close_receipt [14:12:40]MH_GetDate [14:12:40]Write to MH i2c: F0 00 00 DC 08 D3 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: F0 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: F0 09 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: F0 09 00 DC 08 00 59 90 23 67 72 0D 1C 67 51 [14:12:40]GetLastDocTimeStamp 1730383927 [14:12:40]current date 1730383961 [14:12:40]FM_GetShiftState [14:12:40]SAM_PROTO_GetShiftState [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 13 01 00 [14:12:40]Write to MH i2c: E2 08 00 DD 08 80 13 01 00 00 00 00 00 62 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 0E 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 0E 00 DD 08 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8B [14:12:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:12:40]wFMCommunicate OK [14:12:40]SAM_PROTO_GetShiftState done [14:12:40]FM_GetShiftState done [14:12:40]opened in 1730332621 [14:12:40]opened+sec_in_day 1730419021 [14:12:40]quantity*price = 0 [14:12:40]sum+1 = 1 [14:12:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 155 31.10.2024 14:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: ТК ГПНА Online 30156915 ФМ: 0000000000874669 ФД: 139678 ФПД: 196122506412952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141241&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139678&fm=196122506412952&tin=02508201610067®Number=0000000000091631&sum=0 [14:12:42]StoreToDocumentArchive [14:12:42]shift 557 fd 139678 [14:12:42]save to /storage/0557/doc_00139678 [14:12:42]save last doc name /storage/0557/doc_00139678 to /storage/kkm_last_doc_name [14:12:42]save OK [14:12:42]Clear old archive folders... [14:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:12:42]tlvbuf is 00A65D40 [14:12:42]SAM_PROTO_ClearQueue [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 09 00 00 [14:12:42]Write to MH i2c: E2 08 00 EA 08 80 09 00 00 00 00 00 00 64 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [14:12:42]RAPDU: 90 00 [14:12:42]wFMCommunicate OK [14:12:42]SAM_PROTO_ClearQueue done [14:12:42]KKMCreateOFDPacket [14:12:42]OFDProtocolAddRootSTLVToBuf [14:12:42]FM_MakeSignedData [14:12:42]FM_MakeSignedData [14:12:42]SAM_PROTO_SignData [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 0D 01 02 [14:12:42]Write to MH i2c: E2 08 00 EB 08 80 0D 01 02 00 00 00 00 6C [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [14:12:42]RAPDU: 90 00 [14:12:42]wFMCommunicate OK [14:12:42]wFMCommunicate request_size=255 [14:12:42]MH_SAM_APDU [14:12:42]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 98 3A 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 9B 00 00 00 F4 03 04 00 59 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [14:12:42]Write to MH i2c: E2 02 01 EC 08 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 98 3A 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 9B 00 00 00 F4 03 04 00 59 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 81 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [14:12:42]RAPDU: 90 00 [14:12:42]wFMCommunicate OK [14:12:42]wFMCommunicate request_size=11 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 0D 02 02 06 B2 5F 54 53 C3 98 [14:12:42]Write to MH i2c: E2 0E 00 ED 08 80 0D 02 02 06 00 B2 5F 54 53 C3 98 00 00 8E [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [14:12:42]RAPDU: 90 00 [14:12:42]wFMCommunicate OK [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 0D 03 02 [14:12:42]Write to MH i2c: E2 08 00 EE 08 80 0D 03 02 00 00 00 00 71 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 0B 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 0B 00 EE 08 00 F8 CB 20 F6 EE 49 37 80 90 00 39 [14:12:42]RAPDU: F8 CB 20 F6 EE 49 37 80 90 00 [14:12:42]wFMCommunicate OK [14:12:42]SAM_PROTO_SignData done [14:12:42]FM_MakeSignedData done [14:12:42]CreateOFDProtocolMessage [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 11 00 00 [14:12:42]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [14:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:12:42]wFMCommunicate OK [14:12:42]CreateOFDProtocolMessage done [14:12:42]OFDSenderStorePacket 139678 [14:12:42]StoreOFDPacket docnum=139678 [14:12:42]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 5E 5D 08 01 E9 CE 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 98 3A 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 9B 00 00 00 F4 03 04 00 59 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B2 5F 54 53 C3 98 F8 CB 20 F6 EE 49 37 80 [14:12:42]CheckFolder [14:12:42]dirname=/storage/ofd_packets [14:12:42]CheckFolder done [14:12:42]ProducePacketName [14:12:42]name=ofd_packets/00139678 [14:12:42]NVStorageSaveData ofd_packets/00139678 [14:12:42]File name is /storage/ofd_packets/00139678 [14:12:42]Write 302 bytes [14:12:42]NVStorageSaveData done [14:12:42]OFDSenderStorePacket done [14:12:42]KKMCreateOFDPacket done [14:12:42]NVStorageSaveData kkm_last_timestamp [14:12:42]File name is /storage/kkm_last_timestamp [14:12:42]Write 4 bytes [14:12:42]NVStorageSaveData done [14:12:42]ExternCall_PrintAddStr [14:12:42]wPrintStart [14:12:42]Write to MH i2c: 01 00 00 F0 08 F8 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 FF 0F 0D [14:12:42]RasterBufferAndPrint [14:12:42]line Счет N : (1)1095204 [14:12:42]line ИНН: 02508201610067 [14:12:42]line Контрольно-Кассовый Чек [14:12:42]line ПРОДАЖА [14:12:42]line ТРК (МРК, ГНК) : 21 [14:12:42]line Товар: 2710194210 [14:12:42]line ДТ(л)-К-2 [14:12:42]line 15.000 * 0.00 [14:12:42]line = 0.00 [14:12:42]line НДС 12% НСП 1% [14:12:42]line > о реализуемом товаре [14:12:42]line ИТОГО: 0.00 [14:12:42]line НСП 1% : 0.00 [14:12:42]line НДС 12% : 0.00 [14:12:42]line Наличными: 0.00 [14:12:42]line Безнал.: 0.00 [14:12:42]line Место: АЗС № 101 "Партнер Нефть" [14:12:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:12:42]line СНО: Общий режим [14:12:42]line Чек 155 31.10.2024 14:12 [14:12:42]line Смена: 557 ФФД: 1.0 [14:12:42]line ЗНМ: 0300000081 [14:12:42]line РНМ: 0000000000091631 [14:12:42]line Версия ККМ: 001 [14:12:42]line Талоны: ТК ГПНА Online [14:12:42]line 30156915 [14:12:42]line ФМ: 0000000000874669 [14:12:42]line ФД: 139678 [14:12:42]line ФПД: 196122506412952 [14:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141241&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139678&fm=196122506412952&tin=02508201610067®Number=0000000000091631&sum=0 [14:12:42]written 0, free lines is 4095 [14:12:42]OFD Sender: Processing packet 139678 [packets to send 34, broken 33] [14:12:42]ProducePacketName [14:12:42]name=ofd_packets/00139678 [14:12:42]OFD Sender: To server: pG, [14:12:42]CommunicateWithHost lk.salyk.kg:30040 [14:12:42]ConnectInit lk.salyk.kg [14:12:43]Connected sock=10 [14:12: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 10 01 00 00 5E 5D 08 01 E9 CE 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 98 3A 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 9B 00 00 00 F4 03 04 00 59 90 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B2 5F 54 53 C3 98 F8 CB 20 F6 EE 49 37 80 [14:12:43]Write to MH i2c: 01 00 00 1A 09 23 [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: 01 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: 01 07 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 ED 0C 23 [14:12:43]RasterBufferAndPrint [14:12:43]line [14:12:43]line [14:12:43]line [14:12:43]line [14:12:43]line [14:12:43]written 0, free lines is 3315 [14:12:43]MH_Cut [14:12:43]Write to MH i2c: D1 01 00 21 09 01 FC [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: D1 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: D1 01 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: D1 01 00 21 09 00 FB [14:12:43]Write to MH i2c: 01 00 00 22 09 2B [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]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 34 47 00 E1 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 21 02 00 F4 03 04 00 07 3C 23 67 B6 04 01 00 00 D7 7A 1D 78 48 FB F3 2B [14:12:43]CommunicateWithHost err = 0 [14:12:43]CheckOFDResponse [14:12:43]1017 (14) - 77093643461234 [14:12:43]1041 (16) - 0000000000874669 [14:12:43]1040 (4) - 139678 [14:12:43]1012 (4) - 31.10.2024 08:12 [14:12:43]1206 (1) - 0 [14:12:43]OFD Sender: Remove packet 139678 [14:12:43]ProducePacketName [14:12:43]name=ofd_packets/00139678 [14:12:43]NVStorageDeleteData [14:12:43]OFD Sender: No OFD packet to send [14:12:43]*** Cut start [14:12:43]*** Partial cut [14:12:43]*** CUTSNS_PIN = 1 [14:12:43]*** CUTSNS_PIN = 0 [14:12:43]*** Brake cut motor [14:12:44]Read from MH i2c: 01 [14:12:44]MH_I2C_Read... [14:12:44]*** Stop cut motor [14:12:44]*** Cut end [14:12:44]Read from MH i2c: 01 07 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [14:12:44]process_action close_receipt done [14:12:44]requested_data is exist [14:12:44]produce_requested_data [14:12:44]requested_item fm.sn is exist - process it [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 11 00 00 [14:12:44]Write to MH i2c: E2 08 00 23 09 80 11 00 00 00 00 00 00 A6 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 17 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 17 00 23 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 01 [14:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:12:44]wFMCommunicate OK [14:12:44]requested_item fd.num is exist - process it [14:12:44]SAM_PROTO_GetFieldsCounters [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 13 00 00 [14:12:44]Write to MH i2c: E2 08 00 24 09 80 13 00 00 00 00 00 00 A9 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 62 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 62 00 24 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 8E [14:12: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 9E 21 02 00 0E 04 04 00 2D 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:12:44]wFMCommunicate OK [14:12:44]SAM_PROTO_GetFieldsCounters done [14:12:44]requested_item shift.num is exist - process it [14:12:44]requested_item shift.opened is exist - process it [14:12:44]req_shift_opened [14:12:44]FM_GetShiftState [14:12:44]SAM_PROTO_GetShiftState [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 13 01 00 [14:12:44]Write to MH i2c: E2 08 00 25 09 80 13 01 00 00 00 00 00 AB [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 0E 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 0E 00 25 09 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D4 [14:12:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:12:44]wFMCommunicate OK [14:12:44]SAM_PROTO_GetShiftState done [14:12:44]FM_GetShiftState done [14:12:44]req_shift_opened done [14:12:44]requested_item shift.open_date is exist - process it [14:12:44]req_shift_open_date [14:12:44]req_shift_open_date done [14:12:44]produce_requested_data done [14:12:44]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139678,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:12:44]process_action_free close_receipt [14:12:44]json_value_free [14:12:44]json_value_free done [14:12:44]process_json_proto returns [14:12:44]Send response to host [14:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139678,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:12:44]free response buf [14:12:44]execute_script done [14:12:44]execute_script returns [14:12:44]free content buf [14:12:44]Sock 7.Close socket [14:12:44]Sock 7.Thread stoped [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:09]accept exits with 9 [14:16:09]New connection [14:16:09]New thread 3066510692 created [14:16:09]Thread 3066654052 joined [14:16:09]Waiting for new connection... [14:16:09] Sock 9.Parse request [14:16:09]Sock 9.Check first char [14:16:09]Sock 9.First char is OK [14:16:09]request: POST /json_proto HTTP/1.0 [14:16:09]Method: POST [14:16:09]URL: /json_proto [14:16:09]Method is POST - this is cgi request [14:16:09]url: /json_proto [14:16:09]query_string will be loaded in cgi processing [14:16:09]execute_cgi json_proto POST (null) [14:16:09]execute_cgi path=json_proto method=POST [14:16:09]POST find Content-Length [14:16:09]Host: 172.17.50.196:8080 [14:16:09]Content-Length: 678 [14:16:09]Content-Type: application/json [14:16:09] [14:16:09]POST finish read [14:16:09]Found Content-Length = 678 [14:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095206", "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" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:09]execute_script... [14:16:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095206", "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" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:09]POST & json_proto [14:16:09]process_json_proto [14:16:09]json parsed OK: [14:16:09]protocol is kg_v1.0 [14:16:09]action value=close_receipt [14:16:09]process_action close_receipt [14:16:09]cmd_close_receipt [14:16:09]MH_GetDate [14:16:09]Write to MH i2c: F0 00 00 26 09 1E [14:16:09]Write i2c OK [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: F0 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: F0 09 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: F0 09 00 26 09 00 2A 91 23 67 72 0D 1C 67 6E [14:16:09]GetLastDocTimeStamp 1730383961 [14:16:09]current date 1730384170 [14:16:09]FM_GetShiftState [14:16:09]SAM_PROTO_GetShiftState [14:16:09]wFMCommunicate request_size=4 [14:16:09]MH_SAM_APDU [14:16:09]CAPDU: 80 13 01 00 [14:16:09]Write to MH i2c: E2 08 00 27 09 80 13 01 00 00 00 00 00 AD [14:16:09]Write i2c OK [14:16:09]MH_I2C_Read... [14:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:09]Read from MH i2c: E2 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 0E 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 0E 00 27 09 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D6 [14:16:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:16:09]wFMCommunicate OK [14:16:09]SAM_PROTO_GetShiftState done [14:16:09]FM_GetShiftState done [14:16:09]opened in 1730332621 [14:16:09]opened+sec_in_day 1730419021 [14:16:09]quantity*price = 55058 [14:16:09]sum+1 = 55060 [14:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 156 31.10.2024 14:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139679 ФПД: 255546833921115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141610&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139679&fm=255546833921115&tin=02508201610067®Number=0000000000091631&sum=55000 [14:16:10]StoreToDocumentArchive [14:16:10]shift 557 fd 139679 [14:16:10]save to /storage/0557/doc_00139679 [14:16:10]save last doc name /storage/0557/doc_00139679 to /storage/kkm_last_doc_name [14:16:10]save OK [14:16:10]Clear old archive folders... [14:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:10]tlvbuf is 00A6ADA0 [14:16:10]SAM_PROTO_ClearQueue [14:16:10]wFMCommunicate request_size=4 [14:16:10]MH_SAM_APDU [14:16:10]CAPDU: 80 09 00 00 [14:16:10]Write to MH i2c: E2 08 00 34 09 80 09 00 00 00 00 00 00 AF [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [14:16:10]RAPDU: 90 00 [14:16:10]wFMCommunicate OK [14:16:10]SAM_PROTO_ClearQueue done [14:16:10]KKMCreateOFDPacket [14:16:10]OFDProtocolAddRootSTLVToBuf [14:16:10]FM_MakeSignedData [14:16:10]FM_MakeSignedData [14:16:10]SAM_PROTO_SignData [14:16:10]wFMCommunicate request_size=4 [14:16:10]MH_SAM_APDU [14:16:10]CAPDU: 80 0D 01 02 [14:16:10]Write to MH i2c: E2 08 00 35 09 80 0D 01 02 00 00 00 00 B7 [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [14:16:10]RAPDU: 90 00 [14:16:10]wFMCommunicate OK [14:16:10]wFMCommunicate request_size=255 [14:16:10]MH_SAM_APDU [14:16: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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2A 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E8 [14:16:10]Write to MH i2c: E2 02 01 36 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2A 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E8 00 00 18 [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [14:16:10]RAPDU: 90 00 [14:16:10]wFMCommunicate OK [14:16:10]wFMCommunicate request_size=10 [14:16:10]MH_SAM_APDU [14:16:10]CAPDU: 80 0D 02 02 05 6B 22 42 64 5B [14:16:10]Write to MH i2c: E2 0D 00 37 09 80 0D 02 02 05 00 6B 22 42 64 5B 00 00 52 [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [14:16:10]RAPDU: 90 00 [14:16:10]wFMCommunicate OK [14:16:10]wFMCommunicate request_size=4 [14:16:10]MH_SAM_APDU [14:16:10]CAPDU: 80 0D 03 02 [14:16:10]Write to MH i2c: E2 08 00 38 09 80 0D 03 02 00 00 00 00 BC [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 0B 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 0B 00 38 09 00 F6 C4 AE 2E AA 56 8E 5D 90 00 3E [14:16:10]RAPDU: F6 C4 AE 2E AA 56 8E 5D 90 00 [14:16:10]wFMCommunicate OK [14:16:10]SAM_PROTO_SignData done [14:16:10]FM_MakeSignedData done [14:16:10]CreateOFDProtocolMessage [14:16:10]wFMCommunicate request_size=4 [14:16:10]MH_SAM_APDU [14:16:10]CAPDU: 80 11 00 00 [14:16:10]Write to MH i2c: E2 08 00 39 09 80 11 00 00 00 00 00 00 BC [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 17 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 17 00 39 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 17 [14:16:10]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:10]wFMCommunicate OK [14:16:10]CreateOFDProtocolMessage done [14:16:10]OFDSenderStorePacket 139679 [14:16:10]StoreOFDPacket docnum=139679 [14:16: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 94 7E 07 01 2D F3 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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2A 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E8 6B 22 42 64 5B F6 C4 AE 2E AA 56 8E 5D [14:16:10]CheckFolder [14:16:10]dirname=/storage/ofd_packets [14:16:10]CheckFolder done [14:16:10]ProducePacketName [14:16:10]name=ofd_packets/00139679 [14:16:10]NVStorageSaveData ofd_packets/00139679 [14:16:10]File name is /storage/ofd_packets/00139679 [14:16:10]Write 301 bytes [14:16:10]NVStorageSaveData done [14:16:10]OFDSenderStorePacket done [14:16:10]KKMCreateOFDPacket done [14:16:10]NVStorageSaveData kkm_last_timestamp [14:16:10]File name is /storage/kkm_last_timestamp [14:16:10]Write 4 bytes [14:16:10]NVStorageSaveData done [14:16:10]ExternCall_PrintAddStr [14:16:10]wPrintStart [14:16:10]Write to MH i2c: 01 00 00 3A 09 43 [14:16:10]OFD Sender: Processing packet 139679 [packets to send 34, broken 33] [14:16:10]ProducePacketName [14:16:10]name=ofd_packets/00139679 [14:16:10]OFD Sender: To server: pG, [14:16:10]CommunicateWithHost lk.salyk.kg:30040 [14:16:10]ConnectInit lk.salyk.kg [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: 01 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: 01 07 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 FF 0F 58 [14:16:10]RasterBufferAndPrint [14:16:10]line Счет N : (1)1095206 [14:16:10]line ИНН: 02508201610067 [14:16:10]line Контрольно-Кассовый Чек [14:16:10]line ПРОДАЖА [14:16:10]line ТРК (МРК, ГНК) : 53 [14:16:10]line Товар: 2710124130 [14:16:10]line Аи-92-К-2 [14:16:10]line 8.230 * 66.90 [14:16:10]line = 550.59 [14:16:10]line НДС 12% НСП 1% [14:16:10]line > о реализуемом товаре [14:16:10]line ОКРУГЛЕНИЕ: -0.59 [14:16:10]line ИТОГО: 550.00 [14:16:10]line Внесено: 550.00 [14:16:10]line СДАЧА: 0.00 [14:16:10]line НСП 1% : 4.87 [14:16:10]line НДС 12% : 58.47 [14:16:10]line Наличными: 550.00 [14:16:10]line Безнал.: 0.00 [14:16:10]line Место: АЗС № 101 "Партнер Нефть" [14:16:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:16:10]line СНО: Общий режим [14:16:10]line Чек 156 31.10.2024 14:16 [14:16:10]line Смена: 557 ФФД: 1.0 [14:16:10]line ЗНМ: 0300000081 [14:16:10]line РНМ: 0000000000091631 [14:16:10]line Версия ККМ: 001 [14:16:10]line ФМ: 0000000000874669 [14:16:10]line ФД: 139679 [14:16:10]line ФПД: 255546833921115 [14:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141610&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139679&fm=255546833921115&tin=02508201610067®Number=0000000000091631&sum=55000 [14:16:11]Connected sock=7 [14:16: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 94 7E 07 01 2D F3 5A 03 written 0, free lines is 4095 [14:16:11]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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 2A 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E8 6B 22 42 64 5B F6 C4 AE 2E AA 56 8E 5D [14:16: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 46 A0 47 00 B0 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 21 02 00 F4 03 04 00 D7 3C 23 67 B6 04 01 00 00 3E 40 C4 7F 8A FE 4C 78 [14:16:11]CommunicateWithHost err = 0 [14:16:11]CheckOFDResponse [14:16:11]1017 (14) - 77093643461234 [14:16:11]1041 (16) - 0000000000874669 [14:16:11]1040 (4) - 139679 [14:16:11]1012 (4) - 31.10.2024 08:16 [14:16:11]1206 (1) - 0 [14:16:11]OFD Sender: Remove packet 139679 [14:16:11]ProducePacketName [14:16:11]name=ofd_packets/00139679 [14:16:11]NVStorageDeleteData [14:16:11]Write to MH i2c: 01 00 00 65 09 6E [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: 01 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: 01 07 00 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 E8 0C 69 [14:16:11]RasterBufferAndPrint [14:16:11]line [14:16:11]line [14:16:11]line [14:16:11]line [14:16:11]line [14:16:11]written 0, free lines is 3311 [14:16:11]MH_Cut [14:16:11]Write to MH i2c: D1 01 00 6C 09 01 47 [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: D1 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: D1 01 00 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: D1 01 00 6C 09 00 46 [14:16:11]Write to MH i2c: 01 00 00 6D 09 76 [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]OFD Sender: No OFD packet to send [14:16:12]*** Cut start [14:16:12]*** Partial cut [14:16:12]*** CUTSNS_PIN = 1 [14:16:12]*** CUTSNS_PIN = 0 [14:16:12]*** Brake cut motor [14:16:12]Read from MH i2c: 01 [14:16:12]MH_I2C_Read... [14:16:12]*** Stop cut motor [14:16:13]*** Cut end [14:16:13]Read from MH i2c: 01 07 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [14:16:13]process_action close_receipt done [14:16:13]requested_data is exist [14:16:13]produce_requested_data [14:16:13]requested_item fm.sn is exist - process it [14:16:13]wFMCommunicate request_size=4 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 11 00 00 [14:16:13]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 17 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 17 00 6E 09 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: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:16:13]wFMCommunicate OK [14:16:13]requested_item fd.num is exist - process it [14:16:13]SAM_PROTO_GetFieldsCounters [14:16:13]wFMCommunicate request_size=4 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 13 00 00 [14:16:13]Write to MH i2c: E2 08 00 6F 09 80 13 00 00 00 00 00 00 F4 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 62 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 62 00 6F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 DD [14:16: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 9F 21 02 00 0E 04 04 00 2D 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:16:13]wFMCommunicate OK [14:16:13]SAM_PROTO_GetFieldsCounters done [14:16:13]requested_item shift.num is exist - process it [14:16:13]requested_item shift.opened is exist - process it [14:16:13]req_shift_opened [14:16:13]FM_GetShiftState [14:16:13]SAM_PROTO_GetShiftState [14:16:13]wFMCommunicate request_size=4 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 13 01 00 [14:16:13]Write to MH i2c: E2 08 00 70 09 80 13 01 00 00 00 00 00 F6 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 0E 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 0E 00 70 09 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1F [14:16:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:16:13]wFMCommunicate OK [14:16:13]SAM_PROTO_GetShiftState done [14:16:13]FM_GetShiftState done [14:16:13]req_shift_opened done [14:16:13]requested_item shift.open_date is exist - process it [14:16:13]req_shift_open_date [14:16:13]req_shift_open_date done [14:16:13]produce_requested_data done [14:16:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139679,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:16:13]process_action_free close_receipt [14:16:13]json_value_free [14:16:13]json_value_free done [14:16:13]process_json_proto returns [14:16:13]Send response to host [14:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139679,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:16:13]free response buf [14:16:13]execute_script done [14:16:13]execute_script returns [14:16:13]free content buf [14:16:13]Sock 9.Close socket [14:16:13]Sock 9.Thread stoped [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]accept exits with 10 [14:16:56]New connection [14:16:56]New thread 3066654052 created [14:16:56]Thread 3066510692 joined [14:16:56]Waiting for new connection... [14:16:56] Sock 10.Parse request [14:16:56]Sock 10.Check first char [14:16:56]Sock 10.First char is OK [14:16:56]request: POST /json_proto HTTP/1.0 [14:16:56]Method: POST [14:16:56]URL: /json_proto [14:16:56]Method is POST - this is cgi request [14:16:56]url: /json_proto [14:16:56]query_string will be loaded in cgi processing [14:16:56]execute_cgi json_proto POST (null) [14:16:56]execute_cgi path=json_proto method=POST [14:16:56]POST find Content-Length [14:16:56]Host: 172.17.50.196:8080 [14:16:56]Content-Length: 683 [14:16:56]Content-Type: application/json [14:16:56] [14:16:56]POST finish read [14:16:56]Found Content-Length = 683 [14:16:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:16:56]execute_script... [14:16:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:16:56]POST & json_proto [14:16:56]process_json_proto [14:16:56]json parsed OK: [14:16:56]protocol is kg_v1.0 [14:16:56]action value=close_receipt [14:16:56]process_action close_receipt [14:16:56]cmd_close_receipt [14:16:56]MH_GetDate [14:16:56]Write to MH i2c: F0 00 00 71 09 69 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: F0 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: F0 09 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: F0 09 00 71 09 00 59 91 23 67 72 0D 1C 67 E8 [14:16:56]GetLastDocTimeStamp 1730384170 [14:16:56]current date 1730384217 [14:16:56]FM_GetShiftState [14:16:56]SAM_PROTO_GetShiftState [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 13 01 00 [14:16:56]Write to MH i2c: E2 08 00 72 09 80 13 01 00 00 00 00 00 F8 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 0E 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 0E 00 72 09 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 21 [14:16:56]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:16:56]wFMCommunicate OK [14:16:56]SAM_PROTO_GetShiftState done [14:16:56]FM_GetShiftState done [14:16:56]opened in 1730332621 [14:16:56]opened+sec_in_day 1730419021 [14:16:56]quantity*price = 50063 [14:16:56]sum+1 = 50064 [14:16:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 157 31.10.2024 14:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139680 ФПД: 119716437697873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141657&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139680&fm=119716437697873&tin=02508201610067®Number=0000000000091631&sum=50000 [14:16:57]StoreToDocumentArchive [14:16:57]shift 557 fd 139680 [14:16:57]save to /storage/0557/doc_00139680 [14:16:57]save last doc name /storage/0557/doc_00139680 to /storage/kkm_last_doc_name [14:16:57]save OK [14:16:57]Clear old archive folders... [14:16:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:16:57]tlvbuf is 00ADDD80 [14:16:57]SAM_PROTO_ClearQueue [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 09 00 00 [14:16:57]Write to MH i2c: E2 08 00 7F 09 80 09 00 00 00 00 00 00 FA [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 03 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [14:16:57]RAPDU: 90 00 [14:16:57]wFMCommunicate OK [14:16:57]SAM_PROTO_ClearQueue done [14:16:57]KKMCreateOFDPacket [14:16:57]OFDProtocolAddRootSTLVToBuf [14:16:57]FM_MakeSignedData [14:16:57]FM_MakeSignedData [14:16:57]SAM_PROTO_SignData [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 0D 01 02 [14:16:57]Write to MH i2c: E2 08 00 80 09 80 0D 01 02 00 00 00 00 02 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 03 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [14:16:57]RAPDU: 90 00 [14:16:57]wFMCommunicate OK [14:16:57]wFMCommunicate request_size=255 [14:16:57]MH_SAM_APDU [14:16:57]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 9D 00 00 00 F4 03 04 00 59 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [14:16:57]Write to MH i2c: E2 02 01 81 09 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 9D 00 00 00 F4 03 04 00 59 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 FA [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [14:16:58]RAPDU: 90 00 [14:16:58]wFMCommunicate OK [14:16:58]wFMCommunicate request_size=11 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 0D 02 02 06 6C E1 A7 BE 25 51 [14:16:58]Write to MH i2c: E2 0E 00 82 09 80 0D 02 02 06 00 6C E1 A7 BE 25 51 00 00 39 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [14:16:58]RAPDU: 90 00 [14:16:58]wFMCommunicate OK [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 0D 03 02 [14:16:58]Write to MH i2c: E2 08 00 83 09 80 0D 03 02 00 00 00 00 07 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0B 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0B 00 83 09 00 E5 34 A0 A1 2A E0 5A 42 90 00 08 [14:16:58]RAPDU: E5 34 A0 A1 2A E0 5A 42 90 00 [14:16:58]wFMCommunicate OK [14:16:58]SAM_PROTO_SignData done [14:16:58]FM_MakeSignedData done [14:16:58]CreateOFDProtocolMessage [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 11 00 00 [14:16:58]Write to MH i2c: E2 08 00 84 09 80 11 00 00 00 00 00 00 07 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 84 09 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:16:58]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:58]wFMCommunicate OK [14:16:58]CreateOFDProtocolMessage done [14:16:58]OFDSenderStorePacket 139680 [14:16:58]StoreOFDPacket docnum=139680 [14:16: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 10 01 00 00 6C 93 08 01 B7 72 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 9D 00 00 00 F4 03 04 00 59 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6C E1 A7 BE 25 51 E5 34 A0 A1 2A E0 5A 42 [14:16:58]CheckFolder [14:16:58]dirname=/storage/ofd_packets [14:16:58]CheckFolder done [14:16:58]ProducePacketName [14:16:58]name=ofd_packets/00139680 [14:16:58]NVStorageSaveData ofd_packets/00139680 [14:16:58]File name is /storage/ofd_packets/00139680 [14:16:58]Write 302 bytes [14:16:58]NVStorageSaveData done [14:16:58]OFDSenderStorePacket done [14:16:58]KKMCreateOFDPacket done [14:16:58]NVStorageSaveData kkm_last_timestamp [14:16:58]File name is /storage/kkm_last_timestamp [14:16:58]Write 4 bytes [14:16:58]NVStorageSaveData done [14:16:58]ExternCall_PrintAddStr [14:16:58]wPrintStart [14:16:58]Write to MH i2c: 01 00 00 85 09 8E [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: 01 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: 01 07 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 FF 0F A3 [14:16:58]RasterBufferAndPrint [14:16:58]line Счет N : (1)1095208 [14:16:58]line ИНН: 02508201610067 [14:16:58]line Контрольно-Кассовый Чек [14:16:58]line ПРОДАЖА [14:16:58]line ТРК (МРК, ГНК) : 61 [14:16:58]line Товар: 2710194210 [14:16:58]line ДТ(л)-К-2 [14:16:58]line 6.570 * 76.20 [14:16:58]line = 500.63 [14:16:58]line НДС 12% НСП 1% [14:16:58]line > о реализуемом товаре [14:16:58]line ОКРУГЛЕНИЕ: -0.63 [14:16:58]line ИТОГО: 500.00 [14:16:58]line Внесено: 500.00 [14:16:58]line СДАЧА: 0.00 [14:16:58]line НСП 1% : 4.43 [14:16:58]line НДС 12% : 53.16 [14:16:58]line Наличными: 500.00 [14:16:58]line Безнал.: 0.00 [14:16:58]line Место: АЗС № 101 "Партнер Нефть" [14:16:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:16:58]line СНО: Общий режим [14:16:58]line Чек 157 31.10.2024 14:16 [14:16:58]line Смена: 557 ФФД: 1.0 [14:16:58]line ЗНМ: 0300000081 [14:16:58]line РНМ: 0000000000091631 [14:16:58]line Версия ККМ: 001 [14:16:58]line ФМ: 0000000000874669 [14:16:58]line ФД: 139680 [14:16:58]line ФПД: 119716437697873 [14:16:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141657&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139680&fm=119716437697873&tin=02508201610067®Number=0000000000091631&sum=50000 [14:16:58]OFD Sender: Processing packet 139680 [packets to send 34, broken 33] [14:16:58]ProducePacketName [14:16:58]name=ofd_packets/00139680 [14:16:58]OFD Sender: To server: pG, [14:16:58]CommunicateWithHost lk.salyk.kg:30040 [14:16:58]ConnectInit lk.salyk.kg [14:16:58]written 0, free lines is 4095 [14:16:58]Connected sock=9 [14:16: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 10 01 00 00 6C 93 08 01 B7 72 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 9D 00 00 00 F4 03 04 00 59 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6C E1 A7 BE 25 51 E5 34 A0 A1 2A E0 5A 42 [14:16: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 9C AD 47 00 EB 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 21 02 00 F4 03 04 00 07 3D 23 67 B6 04 01 00 00 70 05 12 3C 10 31 C7 F4 [14:16:58]CommunicateWithHost err = 0 [14:16:58]CheckOFDResponse [14:16:58]1017 (14) - 77093643461234 [14:16:58]1041 (16) - 0000000000874669 [14:16:58]1040 (4) - 139680 [14:16:58]1012 (4) - 31.10.2024 08:17 [14:16:58]1206 (1) - 0 [14:16:58]OFD Sender: Remove packet 139680 [14:16:58]ProducePacketName [14:16:58]name=ofd_packets/00139680 [14:16:58]NVStorageDeleteData [14:16:59]Write to MH i2c: 01 00 00 B0 09 B9 [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: 01 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: 01 07 00 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 E8 0C B4 [14:16:59]RasterBufferAndPrint [14:16:59]line [14:16:59]line [14:16:59]line [14:16:59]line [14:16:59]line [14:16:59]written 0, free lines is 3310 [14:16:59]MH_Cut [14:16:59]Write to MH i2c: D1 01 00 B7 09 01 92 [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: D1 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: D1 01 00 [14:16:59]MH_I2C_Read... [14:16:59]Read from MH i2c: D1 01 00 B7 09 00 91 [14:16:59]Write to MH i2c: 01 00 00 B8 09 C1 [14:16:59]Write i2c OK [14:16:59]MH_I2C_Read... [14:16:59]OFD Sender: No OFD packet to send [14:16:59]*** Cut start [14:16:59]*** Partial cut [14:16:59]*** CUTSNS_PIN = 1 [14:16:59]*** CUTSNS_PIN = 0 [14:17:00]*** Brake cut motor [14:17:00]Read from MH i2c: 01 [14:17:00]MH_I2C_Read... [14:17:00]*** Stop cut motor [14:17:00]*** Cut end [14:17:00]Read from MH i2c: 01 07 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 FF 0F D6 [14:17:00]process_action close_receipt done [14:17:00]requested_data is exist [14:17:00]produce_requested_data [14:17:00]requested_item fm.sn is exist - process it [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 11 00 00 [14:17:00]Write to MH i2c: E2 08 00 B9 09 80 11 00 00 00 00 00 00 3C [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 17 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 17 00 B9 09 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:00]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:00]wFMCommunicate OK [14:17:00]requested_item fd.num is exist - process it [14:17:00]SAM_PROTO_GetFieldsCounters [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 13 00 00 [14:17:00]Write to MH i2c: E2 08 00 BA 09 80 13 00 00 00 00 00 00 3F [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 62 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 62 00 BA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 2C [14:17: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 A0 21 02 00 0E 04 04 00 2D 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:17:00]wFMCommunicate OK [14:17:00]SAM_PROTO_GetFieldsCounters done [14:17:00]requested_item shift.num is exist - process it [14:17:00]requested_item shift.opened is exist - process it [14:17:00]req_shift_opened [14:17:00]FM_GetShiftState [14:17:00]SAM_PROTO_GetShiftState [14:17:00]wFMCommunicate request_size=4 [14:17:00]MH_SAM_APDU [14:17:00]CAPDU: 80 13 01 00 [14:17:00]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [14:17:00]Write i2c OK [14:17:00]MH_I2C_Read... [14:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:00]Read from MH i2c: E2 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 0E 00 [14:17:00]MH_I2C_Read... [14:17:00]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6A [14:17:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:17:00]wFMCommunicate OK [14:17:00]SAM_PROTO_GetShiftState done [14:17:00]FM_GetShiftState done [14:17:00]req_shift_opened done [14:17:00]requested_item shift.open_date is exist - process it [14:17:00]req_shift_open_date [14:17:00]req_shift_open_date done [14:17:00]produce_requested_data done [14:17:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139680,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:17:00]process_action_free close_receipt [14:17:00]json_value_free [14:17:00]json_value_free done [14:17:00]process_json_proto returns [14:17:00]Send response to host [14:17:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139680,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:17:00]free response buf [14:17:00]execute_script done [14:17:00]execute_script returns [14:17:00]free content buf [14:17:00]Sock 10.Close socket [14:17:00]Sock 10.Thread stoped [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:37]accept exits with 7 [14:17:37]New connection [14:17:37]New thread 3066510692 created [14:17:37]Thread 3066654052 joined [14:17:37]Waiting for new connection... [14:17:37] Sock 7.Parse request [14:17:37]Sock 7.Check first char [14:17:37]Sock 7.First char is OK [14:17:37]request: POST /json_proto HTTP/1.0 [14:17:37]Method: POST [14:17:37]URL: /json_proto [14:17:37]Method is POST - this is cgi request [14:17:37]url: /json_proto [14:17:37]query_string will be loaded in cgi processing [14:17:37]execute_cgi json_proto POST (null) [14:17:37]execute_cgi path=json_proto method=POST [14:17:37]POST find Content-Length [14:17:37]Host: 172.17.50.196:8080 [14:17:37]Content-Length: 1142 [14:17:37]Content-Type: application/json [14:17:37] [14:17:37]POST finish read [14:17:37]Found Content-Length = 1142 [14:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335531", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:37]execute_script... [14:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335531", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:37]POST & json_proto [14:17:37]process_json_proto [14:17:37]json parsed OK: [14:17:37]protocol is kg_v1.0 [14:17:37]action value=close_receipt [14:17:37]process_action close_receipt [14:17:37]cmd_close_receipt [14:17:37]MH_GetDate [14:17:37]Write to MH i2c: F0 00 00 BC 09 B4 [14:17:37]Write i2c OK [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: F0 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: F0 09 00 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: F0 09 00 BC 09 00 82 91 23 67 72 0D 1C 67 5C [14:17:37]GetLastDocTimeStamp 1730384217 [14:17:37]current date 1730384258 [14:17:37]FM_GetShiftState [14:17:37]SAM_PROTO_GetShiftState [14:17:37]wFMCommunicate request_size=4 [14:17:37]MH_SAM_APDU [14:17:37]CAPDU: 80 13 01 00 [14:17:37]Write to MH i2c: E2 08 00 BD 09 80 13 01 00 00 00 00 00 43 [14:17:37]Write i2c OK [14:17:37]MH_I2C_Read... [14:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:37]Read from MH i2c: E2 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 0E 00 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 0E 00 BD 09 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6C [14:17:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:17:37]wFMCommunicate OK [14:17:37]SAM_PROTO_GetShiftState done [14:17:37]FM_GetShiftState done [14:17:37]opened in 1730332621 [14:17:37]opened+sec_in_day 1730419021 [14:17:37]quantity*price = 7500 [14:17:37]sum+1 = 7501 [14:17:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003730039 Снек Возд пшеница Бадырак сладкая 30гр 1.000 * 20.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.08 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 158 31.10.2024 14:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139681 ФПД: 43747207925255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141738&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139681&fm=43747207925255&tin=02508201610067®Number=0000000000091631&sum=9500 0 [14:17:38]StoreToDocumentArchive [14:17:38]shift 557 fd 139681 [14:17:38]save to /storage/0557/doc_00139681 [14:17:38]save last doc name /storage/0557/doc_00139681 to /storage/kkm_last_doc_name [14:17:38]save OK [14:17:38]Clear old archive folders... [14:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=426 [14:17:38]tlvbuf is 00A18520 [14:17:38]SAM_PROTO_ClearQueue [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 09 00 00 [14:17:38]Write to MH i2c: E2 08 00 CA 09 80 09 00 00 00 00 00 00 45 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]SAM_PROTO_ClearQueue done [14:17:38]KKMCreateOFDPacket [14:17:38]OFDProtocolAddRootSTLVToBuf [14:17:38]FM_MakeSignedData [14:17:38]FM_MakeSignedData [14:17:38]SAM_PROTO_SignData [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 01 02 [14:17:38]Write to MH i2c: E2 08 00 CB 09 80 0D 01 02 00 00 00 00 4D [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]wFMCommunicate request_size=255 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 02 02 FA 03 00 AA 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [14:17:38]Write to MH i2c: E2 02 01 CC 09 80 0D 02 02 FA 00 03 00 AA 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 0C [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]wFMCommunicate request_size=185 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 02 02 B4 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 F0 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 27 C9 B0 C9 CE 07 [14:17:38]Write to MH i2c: E2 BC 00 CD 09 80 0D 02 02 B4 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 F0 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 27 C9 B0 C9 CE 07 00 00 E6 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [14:17:39]RAPDU: 90 00 [14:17:39]wFMCommunicate OK [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 0D 03 02 [14:17:39]Write to MH i2c: E2 08 00 CE 09 80 0D 03 02 00 00 00 00 52 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 0B 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 0B 00 CE 09 00 8A D0 29 91 89 C7 45 19 90 00 15 [14:17:39]RAPDU: 8A D0 29 91 89 C7 45 19 90 00 [14:17:39]wFMCommunicate OK [14:17:39]SAM_PROTO_SignData done [14:17:39]FM_MakeSignedData done [14:17:39]CreateOFDProtocolMessage [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 11 00 00 [14:17:39]Write to MH i2c: E2 08 00 CF 09 80 11 00 00 00 00 00 00 52 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 17 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 17 00 CF 09 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:17:39]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:39]wFMCommunicate OK [14:17:39]CreateOFDProtocolMessage done [14:17:39]OFDSenderStorePacket 139681 [14:17:39]StoreOFDPacket docnum=139681 [14:17: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 BE 01 00 00 16 F5 B6 01 CA BC 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 F0 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 27 C9 B0 C9 CE 07 8A D0 29 91 89 C7 45 19 [14:17:39]CheckFolder [14:17:39]dirname=/storage/ofd_packets [14:17:39]CheckFolder done [14:17:39]ProducePacketName [14:17:39]name=ofd_packets/00139681 [14:17:39]NVStorageSaveData ofd_packets/00139681 [14:17:39]File name is /storage/ofd_packets/00139681 [14:17:39]Write 476 bytes [14:17:39]NVStorageSaveData done [14:17:39]OFDSenderStorePacket done [14:17:39]KKMCreateOFDPacket done [14:17:39]NVStorageSaveData kkm_last_timestamp [14:17:39]File name is /storage/kkm_last_timestamp [14:17:39]Write 4 bytes [14:17:39]NVStorageSaveData done [14:17:39]ExternCall_PrintAddStr [14:17:39]wPrintStart [14:17:39]Write to MH i2c: 01 00 00 D0 09 D9 [14:17:39]OFD Sender: Processing packet 139681 [packets to send 34, broken 33] [14:17:39]ProducePacketName [14:17:39]name=ofd_packets/00139681 [14:17:39]OFD Sender: To server: pG, [14:17:39]CommunicateWithHost lk.salyk.kg:30040 [14:17:39]ConnectInit lk.salyk.kg [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 D0 09 00 00 00 00 00 FF 0F EE [14:17:39]RasterBufferAndPrint [14:17:39]line Счет N : (3)335531 [14:17:39]line ИНН: 02508201610067 [14:17:39]line Контрольно-Кассовый Чек [14:17:39]line ПРОДАЖА [14:17:39]line Товар: 4870112002775 [14:17:39]line Шок батончик ALBENI BITES 80гр [14:17:39]line 1.000 * 75.00 [14:17:39]line = 75.00 [14:17:39]line НДС 12% НСП 1% [14:17:39]line > о реализуемом товаре [14:17:39]line Товар: 4700003730039 [14:17:39]line Снек Возд пшеница Бадырак сладкая 30гр [14:17:39]line 1.000 * 20.00 [14:17:39]line = 20.00 [14:17:39]line НДС 12% НСП 1% [14:17:39]line > о реализуемом товаре [14:17:39]line ИТОГО: 95.00 [14:17:39]line НСП 1% : 0.84 [14:17:39]line НДС 12% : 10.08 [14:17:39]line Наличными: 0.00 [14:17:39]line Безнал.: 95.00 [14:17:39]line Место: АЗС № 101 "Партнер Нефть" [14:17:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:17:39]line СНО: Общий режим [14:17:39]line Чек 158 31.10.2024 14:17 [14:17:39]line Смена: 557 ФФД: 1.0 [14:17:39]line ЗНМ: 0300000081 [14:17:39]line РНМ: 0000000000091631 [14:17:39]line Версия ККМ: 001 [14:17:39]line Платежная система: Mbank [14:17:39]line ФМ: 0000000000874669 [14:17:39]line ФД: 139681 [14:17:39]line ФПД: 43747207925255 [14:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141738&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139681&fm=43747207925255&tin=02508201610067®Number=0000000000091631&sum=9500 [14:17:39]line 0 [14:17:39]written 0, free lines is 4095 [14:17:39]Connected sock=10 [14:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BE 01 00 00 16 F5 B6 01 CA BC 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 F0 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 27 C9 B0 C9 CE 07 8A D0 29 91 89 C7 45 19 [14:17: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 E6 F5 47 00 FD C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 21 02 00 F4 03 04 00 30 3D 23 67 B6 04 01 00 00 DA ED D1 52 7B AB 07 C6 [14:17:39]CommunicateWithHost err = 0 [14:17:39]CheckOFDResponse [14:17:39]1017 (14) - 77093643461234 [14:17:39]1041 (16) - 0000000000874669 [14:17:39]1040 (4) - 139681 [14:17:39]1012 (4) - 31.10.2024 08:17 [14:17:39]1206 (1) - 0 [14:17:39]OFD Sender: Remove packet 139681 [14:17:39]ProducePacketName [14:17:39]name=ofd_packets/00139681 [14:17:39]NVStorageDeleteData [14:17:40]Write to MH i2c: 01 00 00 01 0A 0B [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: 01 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: 01 07 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 7C 0C 9A [14:17:40]RasterBufferAndPrint [14:17:40]line [14:17:40]line [14:17:40]line [14:17:40]line [14:17:40]line [14:17:40]written 0, free lines is 3203 [14:17:40]MH_Cut [14:17:40]Write to MH i2c: D1 01 00 08 0A 01 E4 [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: D1 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: D1 01 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: D1 01 00 08 0A 00 E3 [14:17:40]Write to MH i2c: 01 00 00 09 0A 13 [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]OFD Sender: No OFD packet to send [14:17:40]*** Cut start [14:17:40]*** Partial cut [14:17:40]*** CUTSNS_PIN = 1 [14:17:40]*** CUTSNS_PIN = 0 [14:17:41]*** Brake cut motor [14:17:41]Read from MH i2c: 01 [14:17:41]MH_I2C_Read... [14:17:41]*** Stop cut motor [14:17:41]*** Cut end [14:17:41]Read from MH i2c: 01 07 00 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 FF 0F 28 [14:17:41]process_action close_receipt done [14:17:41]requested_data is exist [14:17:41]produce_requested_data [14:17:41]requested_item fm.sn is exist - process it [14:17:41]wFMCommunicate request_size=4 [14:17:41]MH_SAM_APDU [14:17:41]CAPDU: 80 11 00 00 [14:17:41]Write to MH i2c: E2 08 00 0A 0A 80 11 00 00 00 00 00 00 8E [14:17:41]Write i2c OK [14:17:41]MH_I2C_Read... [14:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:41]Read from MH i2c: E2 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 17 00 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 17 00 0A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E9 [14:17: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:17:41]wFMCommunicate OK [14:17:41]requested_item fd.num is exist - process it [14:17:41]SAM_PROTO_GetFieldsCounters [14:17:41]wFMCommunicate request_size=4 [14:17:41]MH_SAM_APDU [14:17:41]CAPDU: 80 13 00 00 [14:17:41]Write to MH i2c: E2 08 00 0B 0A 80 13 00 00 00 00 00 00 91 [14:17:41]Write i2c OK [14:17:41]MH_I2C_Read... [14:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:41]Read from MH i2c: E2 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 62 00 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 62 00 0B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 82 [14:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:17:41]wFMCommunicate OK [14:17:41]SAM_PROTO_GetFieldsCounters done [14:17:41]requested_item shift.num is exist - process it [14:17:41]requested_item shift.opened is exist - process it [14:17:41]req_shift_opened [14:17:41]FM_GetShiftState [14:17:41]SAM_PROTO_GetShiftState [14:17:41]wFMCommunicate request_size=4 [14:17:41]MH_SAM_APDU [14:17:41]CAPDU: 80 13 01 00 [14:17:41]Write to MH i2c: E2 08 00 0C 0A 80 13 01 00 00 00 00 00 93 [14:17:41]Write i2c OK [14:17:41]MH_I2C_Read... [14:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:41]Read from MH i2c: E2 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 0E 00 [14:17:41]MH_I2C_Read... [14:17:41]Read from MH i2c: E2 0E 00 0C 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BC [14:17:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:17:41]wFMCommunicate OK [14:17:41]SAM_PROTO_GetShiftState done [14:17:41]FM_GetShiftState done [14:17:41]req_shift_opened done [14:17:41]requested_item shift.open_date is exist - process it [14:17:41]req_shift_open_date [14:17:41]req_shift_open_date done [14:17:41]produce_requested_data done [14:17:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139681,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:17:41]process_action_free close_receipt [14:17:41]json_value_free [14:17:41]json_value_free done [14:17:41]process_json_proto returns [14:17:41]Send response to host [14:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139681,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:17:41]free response buf [14:17:41]execute_script done [14:17:41]execute_script returns [14:17:41]free content buf [14:17:41]Sock 7.Close socket [14:17:41]Sock 7.Thread stoped [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:25]accept exits with 9 [14:18:25]New connection [14:18:25]New thread 3066654052 created [14:18:25]Thread 3066510692 joined [14:18:25]Waiting for new connection... [14:18:25] Sock 9.Parse request [14:18:25]Sock 9.Check first char [14:18:25]Sock 9.First char is OK [14:18:25]request: POST /json_proto HTTP/1.0 [14:18:25]Method: POST [14:18:25]URL: /json_proto [14:18:25]Method is POST - this is cgi request [14:18:25]url: /json_proto [14:18:25]query_string will be loaded in cgi processing [14:18:25]execute_cgi json_proto POST (null) [14:18:25]execute_cgi path=json_proto method=POST [14:18:25]POST find Content-Length [14:18:25]Host: 172.17.50.196:8080 [14:18:25]Content-Length: 910 [14:18:25]Content-Type: application/json [14:18:25] [14:18:25]POST finish read [14:18:25]Found Content-Length = 910 [14:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335532", "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": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:25]execute_script... [14:18: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)335532", "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": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:25]POST & json_proto [14:18:25]process_json_proto [14:18:25]json parsed OK: [14:18:25]protocol is kg_v1.0 [14:18:25]action value=close_receipt [14:18:25]process_action close_receipt [14:18:25]cmd_close_receipt [14:18:25]MH_GetDate [14:18:25]Write to MH i2c: F0 00 00 0D 0A 06 [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: F0 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: F0 09 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: F0 09 00 0D 0A 00 B2 91 23 67 72 0D 1C 67 DE [14:18:25]GetLastDocTimeStamp 1730384258 [14:18:25]current date 1730384306 [14:18:25]FM_GetShiftState [14:18:25]SAM_PROTO_GetShiftState [14:18:25]wFMCommunicate request_size=4 [14:18:25]MH_SAM_APDU [14:18:25]CAPDU: 80 13 01 00 [14:18:25]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:25]Read from MH i2c: E2 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: E2 0E 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BE [14:18:25]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:18:25]wFMCommunicate OK [14:18:25]SAM_PROTO_GetShiftState done [14:18:25]FM_GetShiftState done [14:18:25]opened in 1730332621 [14:18:25]opened+sec_in_day 1730419021 [14:18:25]quantity*price = 11500 [14:18:25]sum+1 = 11501 [14:18:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.64 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 159 31.10.2024 14:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139682 ФПД: 116887155452829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141826&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139682&fm=116887155452829&tin=02508201610067®Number=0000000000091631&sum=18500 0 [14:18:26]StoreToDocumentArchive [14:18:26]shift 557 fd 139682 [14:18:26]save to /storage/0557/doc_00139682 [14:18:26]save last doc name /storage/0557/doc_00139682 to /storage/kkm_last_doc_name [14:18:26]save OK [14:18:26]Clear old archive folders... [14:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=389 [14:18:26]tlvbuf is B6E780E0 [14:18:26]SAM_PROTO_ClearQueue [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 09 00 00 [14:18:26]Write to MH i2c: E2 08 00 1B 0A 80 09 00 00 00 00 00 00 97 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [14:18:26]RAPDU: 90 00 [14:18:26]wFMCommunicate OK [14:18:26]SAM_PROTO_ClearQueue done [14:18:26]KKMCreateOFDPacket [14:18:26]OFDProtocolAddRootSTLVToBuf [14:18:26]FM_MakeSignedData [14:18:26]FM_MakeSignedData [14:18:26]SAM_PROTO_SignData [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 0D 01 02 [14:18:26]Write to MH i2c: E2 08 00 1C 0A 80 0D 01 02 00 00 00 00 9F [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [14:18:26]RAPDU: 90 00 [14:18:26]wFMCommunicate OK [14:18:26]wFMCommunicate request_size=255 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 0D 02 02 FA 03 00 85 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [14:18:26]Write to MH i2c: E2 02 01 1D 0A 80 0D 02 02 FA 00 03 00 85 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 24 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=148 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 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 B2 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6A 4E E9 61 2B 9D [14:18:27]Write to MH i2c: E2 97 00 1E 0A 80 0D 02 02 8F 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 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 B2 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6A 4E E9 61 2B 9D 00 00 FE [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 03 02 [14:18:27]Write to MH i2c: E2 08 00 1F 0A 80 0D 03 02 00 00 00 00 A4 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0B 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0B 00 1F 0A 00 4A D4 21 6C 6B 0A EB CC 90 00 7C [14:18:27]RAPDU: 4A D4 21 6C 6B 0A EB CC 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_SignData done [14:18:27]FM_MakeSignedData done [14:18:27]CreateOFDProtocolMessage [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 11 00 00 [14:18:27]Write to MH i2c: E2 08 00 20 0A 80 11 00 00 00 00 00 00 A4 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 17 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 17 00 20 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FF [14:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:18:27]wFMCommunicate OK [14:18:27]CreateOFDProtocolMessage done [14:18:27]OFDSenderStorePacket 139682 [14:18:27]StoreOFDPacket docnum=139682 [14:18: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 99 01 00 00 7B 98 91 01 2F 64 5A 03 01 00 03 00 85 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 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 B2 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6A 4E E9 61 2B 9D 4A D4 21 6C 6B 0A EB CC [14:18:27]CheckFolder [14:18:27]dirname=/storage/ofd_packets [14:18:27]CheckFolder done [14:18:27]ProducePacketName [14:18:27]name=ofd_packets/00139682 [14:18:27]NVStorageSaveData ofd_packets/00139682 [14:18:27]File name is /storage/ofd_packets/00139682 [14:18:27]Write 439 bytes [14:18:27]NVStorageSaveData done [14:18:27]OFDSenderStorePacket done [14:18:27]KKMCreateOFDPacket done [14:18:27]NVStorageSaveData kkm_last_timestamp [14:18:27]File name is /storage/kkm_last_timestamp [14:18:27]Write 4 bytes [14:18:27]NVStorageSaveData done [14:18:27]ExternCall_PrintAddStr [14:18:27]wPrintStart [14:18:27]Write to MH i2c: 01 00 00 21 0A 2B [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 07 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 07 00 21 0A 00 00 00 00 00 FF 0F 40 [14:18:27]RasterBufferAndPrint [14:18:27]line Счет N : (3)335532 [14:18:27]line ИНН: 02508201610067 [14:18:27]line Контрольно-Кассовый Чек [14:18:27]line ПРОДАЖА [14:18:27]line Товар: 2000036210013 [14:18:27]line Кофе Капучино (GABB TRADE) [14:18:27]line 1.000 * 115.00 [14:18:27]line = 115.00 [14:18:27]line НДС 12% НСП 1% [14:18:27]line > о реализуемом товаре [14:18:27]line Товар: 4607065000790 [14:18:27]line Шок M&M`s с арахисом 45г [14:18:27]line 1.000 * 70.00 [14:18:27]line = 70.00 [14:18:27]line НДС 12% НСП 1% [14:18:27]line > о реализуемом товаре [14:18:27]line ИТОГО: 185.00 [14:18:27]line НСП 1% : 1.64 [14:18:27]line НДС 12% : 19.64 [14:18:27]line Наличными: 185.00 [14:18:27]line Безнал.: 0.00 [14:18:27]line Место: АЗС № 101 "Партнер Нефть" [14:18:27]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:18:27]line СНО: Общий режим [14:18:27]line Чек 159 31.10.2024 14:18 [14:18:27]line Смена: 557 ФФД: 1.0 [14:18:27]line ЗНМ: 0300000081 [14:18:27]line РНМ: 0000000000091631 [14:18:27]line Версия ККМ: 001 [14:18:27]line ФМ: 0000000000874669 [14:18:27]line ФД: 139682 [14:18:27]line ФПД: 116887155452829 [14:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141826&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139682&fm=116887155452829&tin=02508201610067®Number=0000000000091631&sum=18500 [14:18:27]OFD Sender: Processing packet 139682 [packets to send 34, broken 33] [14:18:27]ProducePacketName [14:18:27]name=ofd_packets/00139682 [14:18:27]OFD Sender: To server: pG, [14:18:27]CommunicateWithHost lk.salyk.kg:30040 [14:18:27]ConnectInit lk.salyk.kg [14:18:27]line 0 [14:18:27]written 0, free lines is 4095 [14:18:27]Connected sock=10 [14:18: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 99 01 00 00 7B 98 91 01 2F 64 5A 03 01 00 03 00 85 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 48 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 B2 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6A 4E E9 61 2B 9D 4A D4 21 6C 6B 0A EB CC [14:18: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 B6 0C 47 00 83 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 21 02 00 F4 03 04 00 60 3D 23 67 B6 04 01 00 00 F2 F5 23 38 CA 9E 7E F9 [14:18:27]CommunicateWithHost err = 0 [14:18:27]CheckOFDResponse [14:18:27]1017 (14) - 77093643461234 [14:18:27]1041 (16) - 0000000000874669 [14:18:27]1040 (4) - 139682 [14:18:27]1012 (4) - 31.10.2024 08:18 [14:18:27]1206 (1) - 0 [14:18:27]OFD Sender: Remove packet 139682 [14:18:27]ProducePacketName [14:18:27]name=ofd_packets/00139682 [14:18:27]NVStorageDeleteData [14:18:28]Write to MH i2c: 01 00 00 4F 0A 59 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 E6 0C 52 [14:18:28]RasterBufferAndPrint [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]written 0, free lines is 3310 [14:18:28]MH_Cut [14:18:28]Write to MH i2c: D1 01 00 56 0A 01 32 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 01 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 01 00 56 0A 00 31 [14:18:28]Write to MH i2c: 01 00 00 57 0A 61 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]OFD Sender: No OFD packet to send [14:18:28]*** Cut start [14:18:28]*** Partial cut [14:18:28]*** CUTSNS_PIN = 1 [14:18:28]*** CUTSNS_PIN = 0 [14:18:29]*** Brake cut motor [14:18:29]Read from MH i2c: 01 [14:18:29]MH_I2C_Read... [14:18:29]*** Stop cut motor [14:18:29]*** Cut end [14:18:29]Read from MH i2c: 01 07 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: 01 07 00 57 0A 00 00 00 00 00 FF 0F 76 [14:18:29]process_action close_receipt done [14:18:29]requested_data is exist [14:18:29]produce_requested_data [14:18:29]requested_item fm.sn is exist - process it [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 11 00 00 [14:18:29]Write to MH i2c: E2 08 00 58 0A 80 11 00 00 00 00 00 00 DC [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:29]Read from MH i2c: E2 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 17 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 17 00 58 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 37 [14:18: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:18:29]wFMCommunicate OK [14:18:29]requested_item fd.num is exist - process it [14:18:29]SAM_PROTO_GetFieldsCounters [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 13 00 00 [14:18:29]Write to MH i2c: E2 08 00 59 0A 80 13 00 00 00 00 00 00 DF [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:29]Read from MH i2c: E2 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 62 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 62 00 59 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 D4 [14:18: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 A2 21 02 00 0E 04 04 00 2D 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:18:29]wFMCommunicate OK [14:18:29]SAM_PROTO_GetFieldsCounters done [14:18:29]requested_item shift.num is exist - process it [14:18:29]requested_item shift.opened is exist - process it [14:18:29]req_shift_opened [14:18:29]FM_GetShiftState [14:18:29]SAM_PROTO_GetShiftState [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 13 01 00 [14:18:29]Write to MH i2c: E2 08 00 5A 0A 80 13 01 00 00 00 00 00 E1 [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:29]Read from MH i2c: E2 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 0E 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 0E 00 5A 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0A [14:18:29]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:18:29]wFMCommunicate OK [14:18:29]SAM_PROTO_GetShiftState done [14:18:29]FM_GetShiftState done [14:18:29]req_shift_opened done [14:18:29]requested_item shift.open_date is exist - process it [14:18:29]req_shift_open_date [14:18:29]req_shift_open_date done [14:18:29]produce_requested_data done [14:18:29]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139682,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:18:29]process_action_free close_receipt [14:18:29]json_value_free [14:18:29]json_value_free done [14:18:29]process_json_proto returns [14:18:29]Send response to host [14:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139682,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:18:29]free response buf [14:18:29]execute_script done [14:18:29]execute_script returns [14:18:29]free content buf [14:18:29]Sock 9.Close socket [14:18:29]Sock 9.Thread stoped [14:18:33]accept exits with 7 [14:18:33]New connection [14:18:33]New thread 3066510692 created [14:18:33]Thread 3066654052 joined [14:18:33]Waiting for new connection... [14:18:33] Sock 7.Parse request [14:18:33]Sock 7.Check first char [14:18:33]Sock 7.First char is OK [14:18:33]request: POST /json_proto HTTP/1.0 [14:18:33]Method: POST [14:18:33]URL: /json_proto [14:18:33]Method is POST - this is cgi request [14:18:33]url: /json_proto [14:18:33]query_string will be loaded in cgi processing [14:18:33]execute_cgi json_proto POST (null) [14:18:33]execute_cgi path=json_proto method=POST [14:18:33]POST find Content-Length [14:18:33]Host: 172.17.50.196:8080 [14:18:33]Content-Length: 770 [14:18:33]Content-Type: application/json [14:18:33] [14:18:33]POST finish read [14:18:33]Found Content-Length = 770 [14:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095210", "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 }]} ], "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.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:33]execute_script... [14:18:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095210", "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 }]} ], "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.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:33]POST & json_proto [14:18:33]process_json_proto [14:18:33]json parsed OK: [14:18:33]protocol is kg_v1.0 [14:18:33]action value=close_receipt [14:18:33]process_action close_receipt [14:18:33]cmd_close_receipt [14:18:33]MH_GetDate [14:18:33]Write to MH i2c: F0 00 00 5B 0A 54 [14:18:33]Write i2c OK [14:18:33]MH_I2C_Read... [14:18:33]Read from MH i2c: F0 [14:18:33]MH_I2C_Read... [14:18:33]Read from MH i2c: F0 09 00 [14:18:33]MH_I2C_Read... [14:18:33]Read from MH i2c: F0 09 00 5B 0A 00 B9 91 23 67 72 0D 1C 67 33 [14:18:33]GetLastDocTimeStamp 1730384306 [14:18:33]current date 1730384313 [14:18:33]FM_GetShiftState [14:18:33]SAM_PROTO_GetShiftState [14:18:33]wFMCommunicate request_size=4 [14:18:33]MH_SAM_APDU [14:18:33]CAPDU: 80 13 01 00 [14:18:33]Write to MH i2c: E2 08 00 5C 0A 80 13 01 00 00 00 00 00 E3 [14:18:33]Write i2c OK [14:18:33]MH_I2C_Read... [14:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:33]Read from MH i2c: E2 [14:18:33]MH_I2C_Read... [14:18:33]Read from MH i2c: E2 0E 00 [14:18:33]MH_I2C_Read... [14:18:33]Read from MH i2c: E2 0E 00 5C 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0C [14:18:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:18:33]wFMCommunicate OK [14:18:33]SAM_PROTO_GetShiftState done [14:18:33]FM_GetShiftState done [14:18:33]opened in 1730332621 [14:18:33]opened+sec_in_day 1730419021 [14:18:33]quantity*price = 100021 [14:18:33]sum+1 = 100023 [14:18:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 160 31.10.2024 14:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139683 ФПД: 277267740777713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141833&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139683&fm=277267740777713&tin=02508201610067®Number=0000000000091631&sum=100022 [14:18:34]StoreToDocumentArchive [14:18:34]shift 557 fd 139683 [14:18:34]save to /storage/0557/doc_00139683 [14:18:34]save last doc name /storage/0557/doc_00139683 to /storage/kkm_last_doc_name [14:18:34]save OK [14:18:34]Clear old archive folders... [14:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:34]tlvbuf is 00A6A410 [14:18:34]SAM_PROTO_ClearQueue [14:18:34]wFMCommunicate request_size=4 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 09 00 00 [14:18:34]Write to MH i2c: E2 08 00 69 0A 80 09 00 00 00 00 00 00 E5 [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [14:18:34]RAPDU: 90 00 [14:18:34]wFMCommunicate OK [14:18:34]SAM_PROTO_ClearQueue done [14:18:34]KKMCreateOFDPacket [14:18:34]OFDProtocolAddRootSTLVToBuf [14:18:34]FM_MakeSignedData [14:18:34]FM_MakeSignedData [14:18:34]SAM_PROTO_SignData [14:18:34]wFMCommunicate request_size=4 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 0D 01 02 [14:18:34]Write to MH i2c: E2 08 00 6A 0A 80 0D 01 02 00 00 00 00 ED [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 6A 0A 00 90 00 E8 [14:18:34]RAPDU: 90 00 [14:18:34]wFMCommunicate OK [14:18:34]wFMCommunicate request_size=255 [14:18:34]MH_SAM_APDU [14:18:34]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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B9 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FC [14:18:34]Write to MH i2c: E2 02 01 6B 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B9 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FC 00 00 2B [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 6B 0A 00 90 00 E9 [14:18:34]RAPDU: 90 00 [14:18:34]wFMCommunicate OK [14:18:34]wFMCommunicate request_size=10 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 0D 02 02 05 2C 6D 32 5C F1 [14:18:34]Write to MH i2c: E2 0D 00 6C 0A 80 0D 02 02 05 00 2C 6D 32 5C F1 00 00 12 [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [14:18:34]RAPDU: 90 00 [14:18:34]wFMCommunicate OK [14:18:34]wFMCommunicate request_size=4 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 0D 03 02 [14:18:34]Write to MH i2c: E2 08 00 6D 0A 80 0D 03 02 00 00 00 00 F2 [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 0B 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 0B 00 6D 0A 00 96 05 95 9F CB 54 9D E5 90 00 63 [14:18:34]RAPDU: 96 05 95 9F CB 54 9D E5 90 00 [14:18:34]wFMCommunicate OK [14:18:34]SAM_PROTO_SignData done [14:18:34]FM_MakeSignedData done [14:18:34]CreateOFDProtocolMessage [14:18:34]wFMCommunicate request_size=4 [14:18:34]MH_SAM_APDU [14:18:34]CAPDU: 80 11 00 00 [14:18:34]Write to MH i2c: E2 08 00 6E 0A 80 11 00 00 00 00 00 00 F2 [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:34]Read from MH i2c: E2 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 17 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: E2 17 00 6E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [14:18: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:18:34]wFMCommunicate OK [14:18:34]CreateOFDProtocolMessage done [14:18:34]OFDSenderStorePacket 139683 [14:18:34]StoreOFDPacket docnum=139683 [14:18: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 2F 60 07 01 CB F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B9 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FC 2C 6D 32 5C F1 96 05 95 9F CB 54 9D E5 [14:18:34]CheckFolder [14:18:34]dirname=/storage/ofd_packets [14:18:34]CheckFolder done [14:18:34]ProducePacketName [14:18:34]name=ofd_packets/00139683 [14:18:34]NVStorageSaveData ofd_packets/00139683 [14:18:34]File name is /storage/ofd_packets/00139683 [14:18:34]Write 301 bytes [14:18:34]NVStorageSaveData done [14:18:34]OFDSenderStorePacket done [14:18:34]KKMCreateOFDPacket done [14:18:34]NVStorageSaveData kkm_last_timestamp [14:18:34]File name is /storage/kkm_last_timestamp [14:18:34]Write 4 bytes [14:18:34]NVStorageSaveData done [14:18:34]ExternCall_PrintAddStr [14:18:34]wPrintStart [14:18:34]Write to MH i2c: 01 00 00 6F 0A 79 [14:18:34]Write i2c OK [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: 01 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: 01 07 00 [14:18:34]MH_I2C_Read... [14:18:34]Read from MH i2c: 01 07 00 6F 0A 00 00 00 00 00 FF 0F 8E [14:18:34]RasterBufferAndPrint [14:18:34]line Счет N : (1)1095210 [14:18:34]line ИНН: 02508201610067 [14:18:34]line Контрольно-Кассовый Чек [14:18:34]line ПРОДАЖА [14:18:34]line ТРК (МРК, ГНК) : 44 [14:18:34]line Товар: 2710124500 [14:18:34]line Аи-95-К-3 [14:18:34]line 13.480 * 74.20 [14:18:34]line = 1000.22 [14:18:34]line НДС 12% НСП 1% [14:18:34]line > о реализуемом товаре [14:18:34]line ИТОГО: 1000.22 [14:18:34]line НСП 1% : 8.85 [14:18:34]line НДС 12% : 106.22 [14:18:34]line Наличными: 0.00 [14:18:34]line Безнал.: 1000.22 [14:18:34]line Место: АЗС № 101 "Партнер Нефть" [14:18:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:18:34]line СНО: Общий режим [14:18:34]line Чек 160 31.10.2024 14:18 [14:18:34]line Смена: 557 ФФД: 1.0 [14:18:34]line ЗНМ: 0300000081 [14:18:34]line РНМ: 0000000000091631 [14:18:34]line Версия ККМ: 001 [14:18:34]line Платежная система: Mbank [14:18:34]line ФМ: 0000000000874669 [14:18:34]line ФД: 139683 [14:18:34]line ФПД: 277267740777713 [14:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T141833&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139683&fm=277267740777713&tin=02508201610067®Number=0000000000091631&sum=100022 [14:18:34]written 0, free lines is 4095 [14:18:34]OFD Sender: Processing packet 139683 [packets to send 34, broken 33] [14:18:34]ProducePacketName [14:18:34]name=ofd_packets/00139683 [14:18:34]OFD Sender: To server: pG, [14:18:34]CommunicateWithHost lk.salyk.kg:30040 [14:18:34]ConnectInit lk.salyk.kg [14:18:35]Connected sock=10 [14:18: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 0F 01 00 00 2F 60 07 01 CB F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B9 91 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FC 2C 6D 32 5C F1 96 05 95 9F CB 54 9D E5 [14:18: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 09 49 47 00 4D BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 21 02 00 F4 03 04 00 67 3D 23 67 B6 04 01 00 00 B6 C7 CE C3 A8 90 C1 0B [14:18:35]CommunicateWithHost err = 0 [14:18:35]CheckOFDResponse [14:18:35]1017 (14) - 77093643461234 [14:18:35]1041 (16) - 0000000000874669 [14:18:35]1040 (4) - 139683 [14:18:35]1012 (4) - 31.10.2024 08:18 [14:18:35]1206 (1) - 0 [14:18:35]OFD Sender: Remove packet 139683 [14:18:35]ProducePacketName [14:18:35]name=ofd_packets/00139683 [14:18:35]NVStorageDeleteData [14:18:35]Write to MH i2c: 01 00 00 98 0A A2 [14:18:35]Write i2c OK [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: 01 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: 01 07 00 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: 01 07 00 98 0A 00 00 00 00 00 14 0D CA [14:18:35]RasterBufferAndPrint [14:18:35]line [14:18:35]line [14:18:35]line [14:18:35]line [14:18:35]line [14:18:35]written 0, free lines is 3363 [14:18:35]MH_Cut [14:18:35]Write to MH i2c: D1 01 00 9F 0A 01 7B [14:18:35]Write i2c OK [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: D1 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: D1 01 00 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: D1 01 00 9F 0A 00 7A [14:18:35]Write to MH i2c: 01 00 00 A0 0A AA [14:18:35]Write i2c OK [14:18:35]MH_I2C_Read... [14:18:35]OFD Sender: No OFD packet to send [14:18:36]*** Cut start [14:18:36]*** Partial cut [14:18:36]*** CUTSNS_PIN = 1 [14:18:36]*** CUTSNS_PIN = 0 [14:18:36]*** Brake cut motor [14:18:36]Read from MH i2c: 01 [14:18:36]MH_I2C_Read... [14:18:36]*** Stop cut motor [14:18:36]*** Cut end [14:18:36]Read from MH i2c: 01 07 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: 01 07 00 A0 0A 00 00 00 00 00 FF 0F BF [14:18:36]process_action close_receipt done [14:18:36]requested_data is exist [14:18:36]produce_requested_data [14:18:36]requested_item fm.sn is exist - process it [14:18:36]wFMCommunicate request_size=4 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 11 00 00 [14:18:36]Write to MH i2c: E2 08 00 A1 0A 80 11 00 00 00 00 00 00 25 [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 17 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 17 00 A1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 80 [14:18: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:18:36]wFMCommunicate OK [14:18:36]requested_item fd.num is exist - process it [14:18:36]SAM_PROTO_GetFieldsCounters [14:18:36]wFMCommunicate request_size=4 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 13 00 00 [14:18:36]Write to MH i2c: E2 08 00 A2 0A 80 13 00 00 00 00 00 00 28 [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 62 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 62 00 A2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 21 [14:18: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 A3 21 02 00 0E 04 04 00 2D 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:18:36]wFMCommunicate OK [14:18:36]SAM_PROTO_GetFieldsCounters done [14:18:36]requested_item shift.num is exist - process it [14:18:36]requested_item shift.opened is exist - process it [14:18:36]req_shift_opened [14:18:36]FM_GetShiftState [14:18:36]SAM_PROTO_GetShiftState [14:18:36]wFMCommunicate request_size=4 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 13 01 00 [14:18:36]Write to MH i2c: E2 08 00 A3 0A 80 13 01 00 00 00 00 00 2A [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 0E 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 0E 00 A3 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 53 [14:18:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:18:36]wFMCommunicate OK [14:18:36]SAM_PROTO_GetShiftState done [14:18:36]FM_GetShiftState done [14:18:36]req_shift_opened done [14:18:36]requested_item shift.open_date is exist - process it [14:18:36]req_shift_open_date [14:18:36]req_shift_open_date done [14:18:36]produce_requested_data done [14:18:36]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139683,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:18:36]process_action_free close_receipt [14:18:36]json_value_free [14:18:36]json_value_free done [14:18:36]process_json_proto returns [14:18:36]Send response to host [14:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139683,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:18:36]free response buf [14:18:36]execute_script done [14:18:36]execute_script returns [14:18:36]free content buf [14:18:36]Sock 7.Close socket [14:18:36]Sock 7.Thread stoped [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:18]accept exits with 9 [14:20:18]New connection [14:20:18]New thread 3066654052 created [14:20:18]Thread 3066510692 joined [14:20:18]Waiting for new connection... [14:20:18] Sock 9.Parse request [14:20:18]Sock 9.Check first char [14:20:18]Sock 9.First char is OK [14:20:18]request: POST /json_proto HTTP/1.0 [14:20:18]Method: POST [14:20:18]URL: /json_proto [14:20:18]Method is POST - this is cgi request [14:20:18]url: /json_proto [14:20:18]query_string will be loaded in cgi processing [14:20:18]execute_cgi json_proto POST (null) [14:20:18]execute_cgi path=json_proto method=POST [14:20:18]POST find Content-Length [14:20:18]Host: 172.17.50.196:8080 [14:20:18]Content-Length: 626 [14:20:18]Content-Type: application/json [14:20:18] [14:20:18]POST finish read [14:20:18]Found Content-Length = 626 [14:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335533", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "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" ] } } [14:20:18]execute_script... [14:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335533", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "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" ] } } [14:20:18]POST & json_proto [14:20:18]process_json_proto [14:20:18]json parsed OK: [14:20:18]protocol is kg_v1.0 [14:20:18]action value=close_receipt [14:20:18]process_action close_receipt [14:20:18]cmd_close_receipt [14:20:18]MH_GetDate [14:20:18]Write to MH i2c: F0 00 00 A4 0A 9D [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: F0 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: F0 09 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: F0 09 00 A4 0A 00 23 92 23 67 72 0D 1C 67 E7 [14:20:18]GetLastDocTimeStamp 1730384313 [14:20:18]current date 1730384419 [14:20:18]FM_GetShiftState [14:20:18]SAM_PROTO_GetShiftState [14:20:18]wFMCommunicate request_size=4 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 13 01 00 [14:20:18]Write to MH i2c: E2 08 00 A5 0A 80 13 01 00 00 00 00 00 2C [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 0E 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 0E 00 A5 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 55 [14:20:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:20:18]wFMCommunicate OK [14:20:18]SAM_PROTO_GetShiftState done [14:20:18]FM_GetShiftState done [14:20:18]opened in 1730332621 [14:20:18]opened+sec_in_day 1730419021 [14:20:18]quantity*price = 27800 [14:20:18]sum+1 = 27801 [14:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 161 31.10.2024 14:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139684 ФПД: 89063555139393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T142019&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139684&fm=89063555139393&tin=02508201610067®Number=0000000000091631&sum=27800 0 [14:20:19]StoreToDocumentArchive [14:20:19]shift 557 fd 139684 [14:20:19]save to /storage/0557/doc_00139684 [14:20:19]save last doc name /storage/0557/doc_00139684 to /storage/kkm_last_doc_name [14:20:19]save OK [14:20:19]Clear old archive folders... [14:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:20:19]tlvbuf is 00A64940 [14:20:19]SAM_PROTO_ClearQueue [14:20:19]wFMCommunicate request_size=4 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 09 00 00 [14:20:19]Write to MH i2c: E2 08 00 B2 0A 80 09 00 00 00 00 00 00 2E [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]SAM_PROTO_ClearQueue done [14:20:19]KKMCreateOFDPacket [14:20:19]OFDProtocolAddRootSTLVToBuf [14:20:19]FM_MakeSignedData [14:20:19]FM_MakeSignedData [14:20:19]SAM_PROTO_SignData [14:20:19]wFMCommunicate request_size=4 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 0D 01 02 [14:20:19]Write to MH i2c: E2 08 00 B3 0A 80 0D 01 02 00 00 00 00 36 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]wFMCommunicate request_size=255 [14:20:19]MH_SAM_APDU [14:20:19]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 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 A1 00 00 00 F4 03 04 00 23 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [14:20:19]Write to MH i2c: E2 02 01 B4 0A 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 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 A1 00 00 00 F4 03 04 00 23 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 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 37 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]wFMCommunicate request_size=37 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 21 02 00 35 04 06 00 51 00 B9 91 07 41 [14:20:19]Write to MH i2c: E2 28 00 B5 0A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 21 02 00 35 04 06 00 51 00 B9 91 07 41 00 00 42 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]wFMCommunicate request_size=4 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 0D 03 02 [14:20:19]Write to MH i2c: E2 08 00 B6 0A 80 0D 03 02 00 00 00 00 3B [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 0B 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 0B 00 B6 0A 00 C0 88 D3 02 C0 07 28 C4 90 00 0C [14:20:19]RAPDU: C0 88 D3 02 C0 07 28 C4 90 00 [14:20:19]wFMCommunicate OK [14:20:19]SAM_PROTO_SignData done [14:20:19]FM_MakeSignedData done [14:20:19]CreateOFDProtocolMessage [14:20:19]wFMCommunicate request_size=4 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 11 00 00 [14:20:19]Write to MH i2c: E2 08 00 B7 0A 80 11 00 00 00 00 00 00 3B [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 17 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 17 00 B7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 96 [14:20: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:20:19]wFMCommunicate OK [14:20:19]CreateOFDProtocolMessage done [14:20:19]OFDSenderStorePacket 139684 [14:20:19]StoreOFDPacket docnum=139684 [14:20:19]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 A2 31 22 01 B9 69 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 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 A1 00 00 00 F4 03 04 00 23 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 51 00 B9 91 07 41 C0 88 D3 02 C0 07 28 C4 [14:20:19]CheckFolder [14:20:19]dirname=/storage/ofd_packets [14:20:19]CheckFolder done [14:20:19]ProducePacketName [14:20:19]name=ofd_packets/00139684 [14:20:19]NVStorageSaveData ofd_packets/00139684 [14:20:19]File name is /storage/ofd_packets/00139684 [14:20:19]Write 328 bytes [14:20:19]NVStorageSaveData done [14:20:19]OFDSenderStorePacket done [14:20:19]KKMCreateOFDPacket done [14:20:19]NVStorageSaveData kkm_last_timestamp [14:20:19]File name is /storage/kkm_last_timestamp [14:20:19]Write 4 bytes [14:20:19]NVStorageSaveData done [14:20:19]ExternCall_PrintAddStr [14:20:19]wPrintStart [14:20:19]Write to MH i2c: 01 00 00 B8 0A C2 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 07 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 07 00 B8 0A 00 00 00 00 00 FF 0F D7 [14:20:19]RasterBufferAndPrint [14:20:19]line Счет N : (3)335533 [14:20:19]line ИНН: 02508201610067 [14:20:19]line Контрольно-Кассовый Чек [14:20:19]line ПРОДАЖА [14:20:19]line Товар: 48741224 [14:20:19]line Сигареты Winston Super Slims Blue [14:20:19]line 2.000 * 139.00 [14:20:19]line = 278.00 [14:20:19]line НДС 12% НСП 1% [14:20:19]line > о реализуемом товаре [14:20:19]line ИТОГО: 278.00 [14:20:19]line НСП 1% : 2.46 [14:20:19]line НДС 12% : 29.52 [14:20:19]line Наличными: 278.00 [14:20:19]line Безнал.: 0.00 [14:20:19]line Место: АЗС № 101 "Партнер Нефть" [14:20:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:20:19]line СНО: Общий режим [14:20:19]line Чек 161 31.10.2024 14:20 [14:20:19]line Смена: 557 ФФД: 1.0 [14:20:19]line ЗНМ: 0300000081 [14:20:19]line РНМ: 0000000000091631 [14:20:19]line Версия ККМ: 001 [14:20:19]line ФМ: 0000000000874669 [14:20:19]line ФД: 139684 [14:20:19]line ФПД: 89063555139393 [14:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T142019&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139684&fm=89063555139393&tin=02508201610067®Number=0000000000091631&sum=27800 [14:20:20]line 0 [14:20:20]OFD Sender: Processing packet 139684 [packets to send 34, broken 33] [14:20:20]ProducePacketName [14:20:20]name=ofd_packets/00139684 [14:20:20]OFD Sender: To server: pG, [14:20:20]CommunicateWithHost lk.salyk.kg:30040 [14:20:20]ConnectInit lk.salyk.kg [14:20:20]written 0, free lines is 4095 [14:20:20]Connected sock=10 [14:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 A2 31 22 01 B9 69 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 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 A1 00 00 00 F4 03 04 00 23 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 51 00 B9 91 07 41 C0 88 D3 02 C0 07 28 C4 [14:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E4 01 47 00 8A AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 21 02 00 F4 03 04 00 D0 3D 23 67 B6 04 01 00 00 73 46 02 A4 60 03 44 83 [14:20:20]CommunicateWithHost err = 0 [14:20:20]CheckOFDResponse [14:20:20]1017 (14) - 77093643461234 [14:20:20]1041 (16) - 0000000000874669 [14:20:20]1040 (4) - 139684 [14:20:20]1012 (4) - 31.10.2024 08:20 [14:20:20]1206 (1) - 0 [14:20:20]OFD Sender: Remove packet 139684 [14:20:20]ProducePacketName [14:20:20]name=ofd_packets/00139684 [14:20:20]NVStorageDeleteData [14:20:20]Write to MH i2c: 01 00 00 E1 0A EB [14:20:20]Write i2c OK [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: 01 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: 01 07 00 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 E8 0C E6 [14:20:20]RasterBufferAndPrint [14:20:20]line [14:20:20]line [14:20:20]line [14:20:20]line [14:20:20]line [14:20:20]written 0, free lines is 3310 [14:20:20]MH_Cut [14:20:20]Write to MH i2c: D1 01 00 E8 0A 01 C4 [14:20:20]Write i2c OK [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: D1 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: D1 01 00 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: D1 01 00 E8 0A 00 C3 [14:20:20]Write to MH i2c: 01 00 00 E9 0A F3 [14:20:20]Write i2c OK [14:20:20]MH_I2C_Read... [14:20:21]OFD Sender: No OFD packet to send [14:20:21]*** Cut start [14:20:21]*** Partial cut [14:20:21]*** CUTSNS_PIN = 1 [14:20:21]*** CUTSNS_PIN = 0 [14:20:21]*** Brake cut motor [14:20:21]Read from MH i2c: 01 [14:20:21]MH_I2C_Read... [14:20:21]*** Stop cut motor [14:20:22]*** Cut end [14:20:22]Read from MH i2c: 01 07 00 [14:20:22]MH_I2C_Read... [14:20:22]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 FF 0F 08 [14:20:22]process_action close_receipt done [14:20:22]requested_data is exist [14:20:22]produce_requested_data [14:20:22]requested_item fm.sn is exist - process it [14:20:22]wFMCommunicate request_size=4 [14:20:22]MH_SAM_APDU [14:20:22]CAPDU: 80 11 00 00 [14:20:22]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [14:20:22]Write i2c OK [14:20:22]MH_I2C_Read... [14:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:22]Read from MH i2c: E2 [14:20:22]MH_I2C_Read... [14:20:22]Read from MH i2c: E2 17 00 [14:20:22]MH_I2C_Read... [14:20:22]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C9 [14:20:22]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:22]wFMCommunicate OK [14:20:22]requested_item fd.num is exist - process it [14:20:22]SAM_PROTO_GetFieldsCounters [14:20:22]wFMCommunicate request_size=4 [14:20:22]MH_SAM_APDU [14:20:22]CAPDU: 80 13 00 00 [14:20:22]Write to MH i2c: E2 08 00 EB 0A 80 13 00 00 00 00 00 00 71 [14:20:22]Write i2c OK [14:20:22]MH_I2C_Read... [14:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:22]Read from MH i2c: E2 [14:20:22]MH_I2C_Read... [14:20:22]Read from MH i2c: E2 62 00 [14:20:22]MH_I2C_Read... [14:20:22]Read from MH i2c: E2 62 00 EB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 6E [14:20: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 A4 21 02 00 0E 04 04 00 2D 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:20:22]wFMCommunicate OK [14:20:22]SAM_PROTO_GetFieldsCounters done [14:20:22]requested_item shift.num is exist - process it [14:20:22]requested_item shift.opened is exist - process it [14:20:22]req_shift_opened [14:20:22]FM_GetShiftState [14:20:22]SAM_PROTO_GetShiftState [14:20:22]wFMCommunicate request_size=4 [14:20:22]MH_SAM_APDU [14:20:22]CAPDU: 80 13 01 00 [14:20:22]Write to MH i2c: E2 08 00 EC 0A 80 13 01 00 00 00 00 00 73 [14:20:22]Write i2c OK [14:20:22]MH_I2C_Read... [14:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:22]Read from MH i2c: E2 [14:20:22]MH_I2C_Read... [14:20:22]Read from MH i2c: E2 0E 00 [14:20:22]MH_I2C_Read... [14:20:22]Read from MH i2c: E2 0E 00 EC 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9C [14:20:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:20:22]wFMCommunicate OK [14:20:22]SAM_PROTO_GetShiftState done [14:20:22]FM_GetShiftState done [14:20:22]req_shift_opened done [14:20:22]requested_item shift.open_date is exist - process it [14:20:22]req_shift_open_date [14:20:22]req_shift_open_date done [14:20:22]produce_requested_data done [14:20:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139684,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:20:22]process_action_free close_receipt [14:20:22]json_value_free [14:20:22]json_value_free done [14:20:22]process_json_proto returns [14:20:22]Send response to host [14:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139684,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:20:22]free response buf [14:20:22]execute_script done [14:20:22]execute_script returns [14:20:22]free content buf [14:20:22]Sock 9.Close socket [14:20:22]Sock 9.Thread stoped [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:02]accept exits with 7 [14:21:02]New connection [14:21:02]New thread 3066510692 created [14:21:02]Thread 3066654052 joined [14:21:02]Waiting for new connection... [14:21:02] Sock 7.Parse request [14:21:02]Sock 7.Check first char [14:21:02]Sock 7.First char is OK [14:21:02]request: POST /json_proto HTTP/1.0 [14:21:02]Method: POST [14:21:02]URL: /json_proto [14:21:02]Method is POST - this is cgi request [14:21:02]url: /json_proto [14:21:02]query_string will be loaded in cgi processing [14:21:02]execute_cgi json_proto POST (null) [14:21:02]execute_cgi path=json_proto method=POST [14:21:02]POST find Content-Length [14:21:02]Host: 172.17.50.196:8080 [14:21:02]Content-Length: 767 [14:21:02]Content-Type: application/json [14:21:02] [14:21:02]POST finish read [14:21:02]Found Content-Length = 767 [14:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095212", "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" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:02]execute_script... [14:21:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095212", "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" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:02]POST & json_proto [14:21:02]process_json_proto [14:21:02]json parsed OK: [14:21:02]protocol is kg_v1.0 [14:21:02]action value=close_receipt [14:21:02]process_action close_receipt [14:21:02]cmd_close_receipt [14:21:02]MH_GetDate [14:21:02]Write to MH i2c: F0 00 00 ED 0A E6 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: F0 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: F0 09 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: F0 09 00 ED 0A 00 4F 92 23 67 72 0D 1C 67 5C [14:21:02]GetLastDocTimeStamp 1730384419 [14:21:02]current date 1730384463 [14:21:02]FM_GetShiftState [14:21:02]SAM_PROTO_GetShiftState [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 13 01 00 [14:21:02]Write to MH i2c: E2 08 00 EE 0A 80 13 01 00 00 00 00 00 75 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0E 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0E 00 EE 0A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9E [14:21:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:21:02]wFMCommunicate OK [14:21:02]SAM_PROTO_GetShiftState done [14:21:02]FM_GetShiftState done [14:21:02]opened in 1730332621 [14:21:02]opened+sec_in_day 1730419021 [14:21:02]quantity*price = 26024 [14:21:02]sum+1 = 26025 [14:21:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.24 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 0.00 Безнал.: 260.24 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 162 31.10.2024 14:21 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139685 ФПД: 23223706885275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T142103&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139685&fm=23223706885275&tin=02508201610067®Number=0000000000091631&sum=26024 [14:21:03]StoreToDocumentArchive [14:21:03]shift 557 fd 139685 [14:21:03]save to /storage/0557/doc_00139685 [14:21:03]save last doc name /storage/0557/doc_00139685 to /storage/kkm_last_doc_name [14:21:03]save OK [14:21:03]Clear old archive folders... [14:21:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:03]tlvbuf is 00A1B730 [14:21:03]SAM_PROTO_ClearQueue [14:21:03]wFMCommunicate request_size=4 [14:21:03]MH_SAM_APDU [14:21:03]CAPDU: 80 09 00 00 [14:21:03]Write to MH i2c: E2 08 00 FB 0A 80 09 00 00 00 00 00 00 77 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:03]Read from MH i2c: E2 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 03 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [14:21:03]RAPDU: 90 00 [14:21:03]wFMCommunicate OK [14:21:03]SAM_PROTO_ClearQueue done [14:21:03]KKMCreateOFDPacket [14:21:03]OFDProtocolAddRootSTLVToBuf [14:21:03]FM_MakeSignedData [14:21:03]FM_MakeSignedData [14:21:03]SAM_PROTO_SignData [14:21:03]wFMCommunicate request_size=4 [14:21:03]MH_SAM_APDU [14:21:03]CAPDU: 80 0D 01 02 [14:21:03]Write to MH i2c: E2 08 00 FC 0A 80 0D 01 02 00 00 00 00 7F [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:03]Read from MH i2c: E2 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 03 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [14:21:03]RAPDU: 90 00 [14:21:03]wFMCommunicate OK [14:21:03]wFMCommunicate request_size=255 [14:21:03]MH_SAM_APDU [14:21:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 4F 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 15 [14:21:04]Write to MH i2c: E2 02 01 FD 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 4F 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 15 00 00 02 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [14:21:04]RAPDU: 90 00 [14:21:04]wFMCommunicate OK [14:21:04]wFMCommunicate request_size=10 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 0D 02 02 05 1F 30 CC 9C 9B [14:21:04]Write to MH i2c: E2 0D 00 FE 0A 80 0D 02 02 05 00 1F 30 CC 9C 9B 00 00 DE [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [14:21:04]RAPDU: 90 00 [14:21:04]wFMCommunicate OK [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 0D 03 02 [14:21:04]Write to MH i2c: E2 08 00 FF 0A 80 0D 03 02 00 00 00 00 84 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 0B 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 0B 00 FF 0A 00 77 BA C6 95 52 62 AB CF 90 00 3F [14:21:04]RAPDU: 77 BA C6 95 52 62 AB CF 90 00 [14:21:04]wFMCommunicate OK [14:21:04]SAM_PROTO_SignData done [14:21:04]FM_MakeSignedData done [14:21:04]CreateOFDProtocolMessage [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 11 00 00 [14:21:04]Write to MH i2c: E2 08 00 00 0B 80 11 00 00 00 00 00 00 85 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 00 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E0 [14:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:21:04]wFMCommunicate OK [14:21:04]CreateOFDProtocolMessage done [14:21:04]OFDSenderStorePacket 139685 [14:21:04]StoreOFDPacket docnum=139685 [14:21:04]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 4B 10 07 01 CD D9 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 4F 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 15 1F 30 CC 9C 9B 77 BA C6 95 52 62 AB CF [14:21:04]CheckFolder [14:21:04]dirname=/storage/ofd_packets [14:21:04]CheckFolder done [14:21:04]ProducePacketName [14:21:04]name=ofd_packets/00139685 [14:21:04]NVStorageSaveData ofd_packets/00139685 [14:21:04]File name is /storage/ofd_packets/00139685 [14:21:04]Write 301 bytes [14:21:04]NVStorageSaveData done [14:21:04]OFDSenderStorePacket done [14:21:04]KKMCreateOFDPacket done [14:21:04]NVStorageSaveData kkm_last_timestamp [14:21:04]File name is /storage/kkm_last_timestamp [14:21:04]Write 4 bytes [14:21:04]NVStorageSaveData done [14:21:04]ExternCall_PrintAddStr [14:21:04]wPrintStart [14:21:04]Write to MH i2c: 01 00 00 01 0B 0C [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: 01 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: 01 07 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 FF 0F 21 [14:21:04]RasterBufferAndPrint [14:21:04]line Счет N : (1)1095212 [14:21:04]line ИНН: 02508201610067 [14:21:04]line Контрольно-Кассовый Чек [14:21:04]line ПРОДАЖА [14:21:04]line ТРК (МРК, ГНК) : 43 [14:21:04]line Товар: 2710124130 [14:21:04]line Аи-92-К-2 [14:21:04]line 3.890 * 66.90 [14:21:04]line = 260.24 [14:21:04]line НДС 12% НСП 1% [14:21:04]line > о реализуемом товаре [14:21:04]line ИТОГО: 260.24 [14:21:04]line НСП 1% : 2.30 [14:21:04]line НДС 12% : 27.64 [14:21:04]line Наличными: 0.00 [14:21:04]line Безнал.: 260.24 [14:21:04]line Место: АЗС № 101 "Партнер Нефть" [14:21:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:21:04]line СНО: Общий режим [14:21:04]line Чек 162 31.10.2024 14:21 [14:21:04]line Смена: 557 ФФД: 1.0 [14:21:04]line ЗНМ: 0300000081 [14:21:04]line РНМ: 0000000000091631 [14:21:04]line Версия ККМ: 001 [14:21:04]line Платежная система: Mbank [14:21:04]line ФМ: 0000000000874669 [14:21:04]line ФД: 139685 [14:21:04]line ФПД: 23223706885275 [14:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T142103&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139685&fm=23223706885275&tin=02508201610067®Number=0000000000091631&sum=26024 [14:21:04]OFD Sender: Processing packet 139685 [packets to send 34, broken 33] [14:21:04]ProducePacketName [14:21:04]name=ofd_packets/00139685 [14:21:04]OFD Sender: To server: pG, [14:21:04]CommunicateWithHost lk.salyk.kg:30040 [14:21:04]ConnectInit lk.salyk.kg [14:21:04]written 0, free lines is 4095 [14:21:04]Connected sock=10 [14:21: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 0F 01 00 00 4B 10 07 01 CD D9 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 4F 92 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 15 1F 30 CC 9C 9B 77 BA C6 95 52 62 AB CF [14:21: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 46 56 47 00 A7 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 21 02 00 F4 03 04 00 FD 3D 23 67 B6 04 01 00 00 FC F1 88 72 78 84 4E 7E [14:21:05]CommunicateWithHost err = 0 [14:21:05]CheckOFDResponse [14:21:05]1017 (14) - 77093643461234 [14:21:05]1041 (16) - 0000000000874669 [14:21:05]1040 (4) - 139685 [14:21:05]1012 (4) - 31.10.2024 08:21 [14:21:05]1206 (1) - 0 [14:21:05]OFD Sender: Remove packet 139685 [14:21:05]ProducePacketName [14:21:05]name=ofd_packets/00139685 [14:21:05]NVStorageDeleteData [14:21:05]Write to MH i2c: 01 00 00 2A 0B 35 [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 07 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 0B 0D 54 [14:21:05]RasterBufferAndPrint [14:21:05]line [14:21:05]line [14:21:05]line [14:21:05]line [14:21:05]line [14:21:05]written 0, free lines is 3345 [14:21:05]MH_Cut [14:21:05]Write to MH i2c: D1 01 00 31 0B 01 0E [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: D1 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: D1 01 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: D1 01 00 31 0B 00 0D [14:21:05]Write to MH i2c: 01 00 00 32 0B 3D [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:05]OFD Sender: No OFD packet to send [14:21:05]*** Cut start [14:21:05]*** Partial cut [14:21:05]*** CUTSNS_PIN = 1 [14:21:05]*** CUTSNS_PIN = 0 [14:21:06]*** Brake cut motor [14:21:06]Read from MH i2c: 01 [14:21:06]MH_I2C_Read... [14:21:06]*** Stop cut motor [14:21:06]*** Cut end [14:21:06]Read from MH i2c: 01 07 00 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 FF 0F 52 [14:21:06]process_action close_receipt done [14:21:06]requested_data is exist [14:21:06]produce_requested_data [14:21:06]requested_item fm.sn is exist - process it [14:21:06]wFMCommunicate request_size=4 [14:21:06]MH_SAM_APDU [14:21:06]CAPDU: 80 11 00 00 [14:21:06]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [14:21:06]Write i2c OK [14:21:06]MH_I2C_Read... [14:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:06]Read from MH i2c: E2 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 17 00 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 13 [14:21: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:21:06]wFMCommunicate OK [14:21:06]requested_item fd.num is exist - process it [14:21:06]SAM_PROTO_GetFieldsCounters [14:21:06]wFMCommunicate request_size=4 [14:21:06]MH_SAM_APDU [14:21:06]CAPDU: 80 13 00 00 [14:21:06]Write to MH i2c: E2 08 00 34 0B 80 13 00 00 00 00 00 00 BB [14:21:06]Write i2c OK [14:21:06]MH_I2C_Read... [14:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:06]Read from MH i2c: E2 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 62 00 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 62 00 34 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 BC [14:21: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 A5 21 02 00 0E 04 04 00 2D 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 [14:21:06]wFMCommunicate OK [14:21:06]SAM_PROTO_GetFieldsCounters done [14:21:06]requested_item shift.num is exist - process it [14:21:06]requested_item shift.opened is exist - process it [14:21:06]req_shift_opened [14:21:06]FM_GetShiftState [14:21:06]SAM_PROTO_GetShiftState [14:21:06]wFMCommunicate request_size=4 [14:21:06]MH_SAM_APDU [14:21:06]CAPDU: 80 13 01 00 [14:21:06]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [14:21:06]Write i2c OK [14:21:06]MH_I2C_Read... [14:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:06]Read from MH i2c: E2 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 0E 00 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E6 [14:21:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:21:06]wFMCommunicate OK [14:21:06]SAM_PROTO_GetShiftState done [14:21:06]FM_GetShiftState done [14:21:06]req_shift_opened done [14:21:06]requested_item shift.open_date is exist - process it [14:21:06]req_shift_open_date [14:21:06]req_shift_open_date done [14:21:06]produce_requested_data done [14:21:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139685,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:21:06]process_action_free close_receipt [14:21:06]json_value_free [14:21:06]json_value_free done [14:21:06]process_json_proto returns [14:21:06]Send response to host [14:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139685,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:21:06]free response buf [14:21:06]execute_script done [14:21:06]execute_script returns [14:21:06]free content buf [14:21:06]Sock 7.Close socket [14:21:06]Sock 7.Thread stoped [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:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:32]accept exits with 9 [14:33:32]New connection [14:33:32]New thread 3066654052 created [14:33:32]Thread 3066510692 joined [14:33:32]Waiting for new connection... [14:33:32] Sock 9.Parse request [14:33:32]Sock 9.Check first char [14:33:32]Sock 9.First char is OK [14:33:32]request: POST /json_proto HTTP/1.0 [14:33:32]Method: POST [14:33:32]URL: /json_proto [14:33:32]Method is POST - this is cgi request [14:33:32]url: /json_proto [14:33:32]query_string will be loaded in cgi processing [14:33:32]execute_cgi json_proto POST (null) [14:33:32]execute_cgi path=json_proto method=POST [14:33:32]POST find Content-Length [14:33:32]Host: 172.17.50.196:8080 [14:33:32]Content-Length: 628 [14:33:32]Content-Type: application/json [14:33:32] [14:33:32]POST finish read [14:33:32]Found Content-Length = 628 [14:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335534", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "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" ] } } [14:33:32]execute_script... [14: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 : (3)335534", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "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" ] } } [14:33:32]POST & json_proto [14:33:32]process_json_proto [14:33:32]json parsed OK: [14:33:32]protocol is kg_v1.0 [14:33:32]action value=close_receipt [14:33:32]process_action close_receipt [14:33:32]cmd_close_receipt [14:33:32]MH_GetDate [14:33:32]Write to MH i2c: F0 00 00 36 0B 30 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: F0 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: F0 09 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: F0 09 00 36 0B 00 3D 95 23 67 72 0D 1C 67 97 [14:33:32]GetLastDocTimeStamp 1730384463 [14:33:32]current date 1730385213 [14:33:32]FM_GetShiftState [14:33:32]SAM_PROTO_GetShiftState [14:33:32]wFMCommunicate request_size=4 [14:33:32]MH_SAM_APDU [14:33:32]CAPDU: 80 13 01 00 [14:33:32]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E8 [14:33:32]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:33:32]wFMCommunicate OK [14:33:32]SAM_PROTO_GetShiftState done [14:33:32]FM_GetShiftState done [14:33:32]opened in 1730332621 [14:33:32]opened+sec_in_day 1730419021 [14:33:32]quantity*price = 27800 [14:33:32]sum+1 = 27801 [14:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 163 31.10.2024 14:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139686 ФПД: 141317874961350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143333&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139686&fm=141317874961350&tin=02508201610067®Number=0000000000091631&sum=27800 0 [14:33:33]StoreToDocumentArchive [14:33:33]shift 557 fd 139686 [14:33:33]save to /storage/0557/doc_00139686 [14:33:33]save last doc name /storage/0557/doc_00139686 to /storage/kkm_last_doc_name [14:33:33]save OK [14:33:33]Clear old archive folders... [14:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:33:33]tlvbuf is 00AE1880 [14:33:33]SAM_PROTO_ClearQueue [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 09 00 00 [14:33:33]Write to MH i2c: E2 08 00 44 0B 80 09 00 00 00 00 00 00 C1 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [14:33:33]RAPDU: 90 00 [14:33:33]wFMCommunicate OK [14:33:33]SAM_PROTO_ClearQueue done [14:33:33]KKMCreateOFDPacket [14:33:33]OFDProtocolAddRootSTLVToBuf [14:33:33]FM_MakeSignedData [14:33:33]FM_MakeSignedData [14:33:33]SAM_PROTO_SignData [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 0D 01 02 [14:33:33]Write to MH i2c: E2 08 00 45 0B 80 0D 01 02 00 00 00 00 C9 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [14:33:33]RAPDU: 90 00 [14:33:33]wFMCommunicate OK [14:33:33]wFMCommunicate request_size=255 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 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 53 69 6C 76 65 72 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 A3 00 00 00 F4 03 04 00 3D 95 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [14:33:33]Write to MH i2c: E2 02 01 46 0B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 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 53 69 6C 76 65 72 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 A3 00 00 00 F4 03 04 00 3D 95 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 7A [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [14:33:33]RAPDU: 90 00 [14:33:33]wFMCommunicate OK [14:33:33]wFMCommunicate request_size=39 [14:33:33]MH_SAM_APDU [14:33:33]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 A6 21 02 00 35 04 06 00 80 87 21 BC CB C6 [14:33:33]Write to MH i2c: E2 2A 00 47 0B 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 A6 21 02 00 35 04 06 00 80 87 21 BC CB C6 00 00 CD [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [14:33:33]RAPDU: 90 00 [14:33:33]wFMCommunicate OK [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 0D 03 02 [14:33:33]Write to MH i2c: E2 08 00 48 0B 80 0D 03 02 00 00 00 00 CE [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 0B 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 0B 00 48 0B 00 B9 6D 8D C6 86 BD C8 88 90 00 DB [14:33:33]RAPDU: B9 6D 8D C6 86 BD C8 88 90 00 [14:33:33]wFMCommunicate OK [14:33:33]SAM_PROTO_SignData done [14:33:33]FM_MakeSignedData done [14:33:33]CreateOFDProtocolMessage [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 11 00 00 [14:33:33]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 17 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 17 00 49 0B 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: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 [14:33:33]wFMCommunicate OK [14:33:33]CreateOFDProtocolMessage done [14:33:33]OFDSenderStorePacket 139686 [14:33:33]StoreOFDPacket docnum=139686 [14:33: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 2C 01 00 00 06 5F 24 01 4C F0 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 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 53 69 6C 76 65 72 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 A3 00 00 00 F4 03 04 00 3D 95 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 80 87 21 BC CB C6 B9 6D 8D C6 86 BD C8 88 [14:33:33]CheckFolder [14:33:33]dirname=/storage/ofd_packets [14:33:33]CheckFolder done [14:33:33]ProducePacketName [14:33:33]name=ofd_packets/00139686 [14:33:33]NVStorageSaveData ofd_packets/00139686 [14:33:33]File name is /storage/ofd_packets/00139686 [14:33:33]Write 330 bytes [14:33:33]NVStorageSaveData done [14:33:33]OFDSenderStorePacket done [14:33:33]KKMCreateOFDPacket done [14:33:33]NVStorageSaveData kkm_last_timestamp [14:33:33]File name is /storage/kkm_last_timestamp [14:33:33]Write 4 bytes [14:33:33]NVStorageSaveData done [14:33:33]ExternCall_PrintAddStr [14:33:33]wPrintStart [14:33:33]Write to MH i2c: 01 00 00 4A 0B 55 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [14:33:33]RasterBufferAndPrint [14:33:33]line Счет N : (3)335534 [14:33:33]line ИНН: 02508201610067 [14:33:33]line Контрольно-Кассовый Чек [14:33:33]line ПРОДАЖА [14:33:33]line Товар: 48741231 [14:33:33]line Сигареты Winston Super Slims Silver [14:33:33]line 2.000 * 139.00 [14:33:33]line = 278.00 [14:33:33]line НДС 12% НСП 1% [14:33:33]line > о реализуемом товаре [14:33:33]line ИТОГО: 278.00 [14:33:33]line НСП 1% : 2.46 [14:33:33]line НДС 12% : 29.52 [14:33:33]line Наличными: 278.00 [14:33:33]line Безнал.: 0.00 [14:33:33]line Место: АЗС № 101 "Партнер Нефть" [14:33:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:33:33]line СНО: Общий режим [14:33:33]line Чек 163 31.10.2024 14:33 [14:33:33]line Смена: 557 ФФД: 1.0 [14:33:33]line ЗНМ: 0300000081 [14:33:33]line РНМ: 0000000000091631 [14:33:33]line Версия ККМ: 001 [14:33:33]line ФМ: 0000000000874669 [14:33:33]line ФД: 139686 [14:33:33]line ФПД: 141317874961350 [14:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143333&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139686&fm=141317874961350&tin=02508201610067®Number=0000000000091631&sum=27800 [14:33:34]line 0 [14:33:34]OFD Sender: Processing packet 139686 [packets to send 34, broken 33] [14:33:34]ProducePacketName [14:33:34]name=ofd_packets/00139686 [14:33:34]OFD Sender: To server: pG, [14:33:34]CommunicateWithHost lk.salyk.kg:30040 [14:33:34]ConnectInit lk.salyk.kg [14:33:34]written 0, free lines is 4095 [14:33:34]Connected sock=10 [14: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 2C 01 00 00 06 5F 24 01 4C F0 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 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 53 69 6C 76 65 72 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 A3 00 00 00 F4 03 04 00 3D 95 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 80 87 21 BC CB C6 B9 6D 8D C6 86 BD C8 88 [14: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 ED 25 47 00 95 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 21 02 00 F4 03 04 00 EA 40 23 67 B6 04 01 00 00 05 C2 DF 53 77 FE E8 3A [14:33:34]CommunicateWithHost err = 0 [14:33:34]CheckOFDResponse [14:33:34]1017 (14) - 77093643461234 [14:33:34]1041 (16) - 0000000000874669 [14:33:34]1040 (4) - 139686 [14:33:34]1012 (4) - 31.10.2024 08:33 [14:33:34]1206 (1) - 0 [14:33:34]OFD Sender: Remove packet 139686 [14:33:34]ProducePacketName [14:33:34]name=ofd_packets/00139686 [14:33:34]NVStorageDeleteData [14:33:34]Write to MH i2c: 01 00 00 73 0B 7E [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 F5 0C 86 [14:33:34]RasterBufferAndPrint [14:33:34]line [14:33:34]line [14:33:34]line [14:33:34]line [14:33:34]line [14:33:34]written 0, free lines is 3327 [14:33:34]MH_Cut [14:33:34]Write to MH i2c: D1 01 00 7A 0B 01 57 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: D1 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: D1 01 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: D1 01 00 7A 0B 00 56 [14:33:34]Write to MH i2c: 01 00 00 7B 0B 86 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]OFD Sender: No OFD packet to send [14:33:35]*** Cut start [14:33:35]*** Partial cut [14:33:35]*** CUTSNS_PIN = 1 [14:33:35]*** CUTSNS_PIN = 0 [14:33:35]*** Brake cut motor [14:33:35]Read from MH i2c: 01 [14:33:35]MH_I2C_Read... [14:33:35]*** Stop cut motor [14:33:35]*** Cut end [14:33:35]Read from MH i2c: 01 07 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [14:33:35]process_action close_receipt done [14:33:35]requested_data is exist [14:33:35]produce_requested_data [14:33:35]requested_item fm.sn is exist - process it [14:33:35]wFMCommunicate request_size=4 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 11 00 00 [14:33:35]Write to MH i2c: E2 08 00 7C 0B 80 11 00 00 00 00 00 00 01 [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:35]Read from MH i2c: E2 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 17 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 17 00 7C 0B 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:33:35]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:35]wFMCommunicate OK [14:33:35]requested_item fd.num is exist - process it [14:33:35]SAM_PROTO_GetFieldsCounters [14:33:35]wFMCommunicate request_size=4 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 13 00 00 [14:33:35]Write to MH i2c: E2 08 00 7D 0B 80 13 00 00 00 00 00 00 04 [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:36]Read from MH i2c: E2 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 62 00 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 62 00 7D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 09 [14: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 A6 21 02 00 0E 04 04 00 2D 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 [14:33:36]wFMCommunicate OK [14:33:36]SAM_PROTO_GetFieldsCounters done [14:33:36]requested_item shift.num is exist - process it [14:33:36]requested_item shift.opened is exist - process it [14:33:36]req_shift_opened [14:33:36]FM_GetShiftState [14:33:36]SAM_PROTO_GetShiftState [14:33:36]wFMCommunicate request_size=4 [14:33:36]MH_SAM_APDU [14:33:36]CAPDU: 80 13 01 00 [14:33:36]Write to MH i2c: E2 08 00 7E 0B 80 13 01 00 00 00 00 00 06 [14:33:36]Write i2c OK [14:33:36]MH_I2C_Read... [14:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:36]Read from MH i2c: E2 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 0E 00 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: E2 0E 00 7E 0B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2F [14:33:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:33:36]wFMCommunicate OK [14:33:36]SAM_PROTO_GetShiftState done [14:33:36]FM_GetShiftState done [14:33:36]req_shift_opened done [14:33:36]requested_item shift.open_date is exist - process it [14:33:36]req_shift_open_date [14:33:36]req_shift_open_date done [14:33:36]produce_requested_data done [14:33:36]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139686,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:33:36]process_action_free close_receipt [14:33:36]json_value_free [14:33:36]json_value_free done [14:33:36]process_json_proto returns [14:33:36]Send response to host [14:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139686,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:33:36]free response buf [14:33:36]execute_script done [14:33:36]execute_script returns [14:33:36]free content buf [14:33:36]Sock 9.Close socket [14:33:36]Sock 9.Thread stoped [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]accept exits with 7 [14:39:00]New connection [14:39:00]New thread 3066510692 created [14:39:00]Thread 3066654052 joined [14:39:00]Waiting for new connection... [14:39:00] Sock 7.Parse request [14:39:00]Sock 7.Check first char [14:39:00]Sock 7.First char is OK [14:39:00]request: POST /json_proto HTTP/1.0 [14:39:00]Method: POST [14:39:00]URL: /json_proto [14:39:00]Method is POST - this is cgi request [14:39:00]url: /json_proto [14:39:00]query_string will be loaded in cgi processing [14:39:00]execute_cgi json_proto POST (null) [14:39:00]execute_cgi path=json_proto method=POST [14:39:00]POST find Content-Length [14:39:00]Host: 172.17.50.196:8080 [14:39:00]Content-Length: 632 [14:39:00]Content-Type: application/json [14:39:00] [14:39:00]POST finish read [14:39:00]Found Content-Length = 632 [14:39:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335535", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:00]execute_script... [14:39:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335535", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:00]POST & json_proto [14:39:00]process_json_proto [14:39:00]json parsed OK: [14:39:00]protocol is kg_v1.0 [14:39:00]action value=close_receipt [14:39:00]process_action close_receipt [14:39:00]cmd_close_receipt [14:39:00]MH_GetDate [14:39:00]Write to MH i2c: F0 00 00 7F 0B 79 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: F0 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: F0 09 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: F0 09 00 7F 0B 00 85 96 23 67 72 0D 1C 67 29 [14:39:00]GetLastDocTimeStamp 1730385213 [14:39:00]current date 1730385541 [14:39:00]FM_GetShiftState [14:39:00]SAM_PROTO_GetShiftState [14:39:00]wFMCommunicate request_size=4 [14:39:00]MH_SAM_APDU [14:39:00]CAPDU: 80 13 01 00 [14:39:00]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:00]Read from MH i2c: E2 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 0E 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 31 [14:39:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:39:00]wFMCommunicate OK [14:39:00]SAM_PROTO_GetShiftState done [14:39:00]FM_GetShiftState done [14:39:00]opened in 1730332621 [14:39:00]opened+sec_in_day 1730419021 [14:39:00]quantity*price = 8000 [14:39:00]sum+1 = 8001 [14:39:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 164 31.10.2024 14:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139687 ФПД: 123426957918981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143901&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139687&fm=123426957918981&tin=02508201610067®Number=0000000000091631&sum=8000 0 [14:39:01]StoreToDocumentArchive [14:39:01]shift 557 fd 139687 [14:39:01]save to /storage/0557/doc_00139687 [14:39:01]save last doc name /storage/0557/doc_00139687 to /storage/kkm_last_doc_name [14:39:01]save OK [14:39:01]Clear old archive folders... [14:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:39:01]tlvbuf is 009F7F10 [14:39:01]SAM_PROTO_ClearQueue [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 09 00 00 [14:39:01]Write to MH i2c: E2 08 00 8D 0B 80 09 00 00 00 00 00 00 0A [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_ClearQueue done [14:39:01]KKMCreateOFDPacket [14:39:01]OFDProtocolAddRootSTLVToBuf [14:39:01]FM_MakeSignedData [14:39:01]FM_MakeSignedData [14:39:01]SAM_PROTO_SignData [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 01 02 [14:39:01]Write to MH i2c: E2 08 00 8E 0B 80 0D 01 02 00 00 00 00 12 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]wFMCommunicate request_size=255 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:39:01]Write to MH i2c: E2 02 01 8F 0B 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 35 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]wFMCommunicate request_size=30 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 A7 21 02 00 35 04 06 00 70 41 93 FB 83 05 [14:39:01]Write to MH i2c: E2 21 00 90 0B 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 A7 21 02 00 35 04 06 00 70 41 93 FB 83 05 00 00 A7 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [14:39:01]RAPDU: 90 00 [14:39:01]wFMCommunicate OK [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 0D 03 02 [14:39:01]Write to MH i2c: E2 08 00 91 0B 80 0D 03 02 00 00 00 00 17 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0B 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0B 00 91 0B 00 63 1B 5B 46 24 7C 9F DC 90 00 52 [14:39:01]RAPDU: 63 1B 5B 46 24 7C 9F DC 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_SignData done [14:39:01]FM_MakeSignedData done [14:39:01]CreateOFDProtocolMessage [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 11 00 00 [14:39:01]Write to MH i2c: E2 08 00 92 0B 80 11 00 00 00 00 00 00 17 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 17 00 92 0B 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:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:39:01]wFMCommunicate OK [14:39:01]CreateOFDProtocolMessage done [14:39:01]OFDSenderStorePacket 139687 [14:39:01]StoreOFDPacket docnum=139687 [14:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 47 3F 1B 01 51 08 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 41 93 FB 83 05 63 1B 5B 46 24 7C 9F DC [14:39:01]CheckFolder [14:39:01]dirname=/storage/ofd_packets [14:39:01]CheckFolder done [14:39:01]ProducePacketName [14:39:01]name=ofd_packets/00139687 [14:39:01]NVStorageSaveData ofd_packets/00139687 [14:39:01]File name is /storage/ofd_packets/00139687 [14:39:01]Write 321 bytes [14:39:01]NVStorageSaveData done [14:39:01]OFDSenderStorePacket done [14:39:01]KKMCreateOFDPacket done [14:39:01]NVStorageSaveData kkm_last_timestamp [14:39:01]File name is /storage/kkm_last_timestamp [14:39:01]Write 4 bytes [14:39:01]NVStorageSaveData done [14:39:01]ExternCall_PrintAddStr [14:39:01]wPrintStart [14:39:01]Write to MH i2c: 01 00 00 93 0B 9E [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: 01 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: 01 07 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: 01 07 00 93 0B 00 00 00 00 00 FF 0F B3 [14:39:01]RasterBufferAndPrint [14:39:01]line Счет N : (3)335535 [14:39:01]line ИНН: 02508201610067 [14:39:01]line Контрольно-Кассовый Чек [14:39:01]line ПРОДАЖА [14:39:01]line Товар: 4700000160211 [14:39:01]line Вода Легенда 0,5л [14:39:01]line 2.000 * 40.00 [14:39:01]line = 80.00 [14:39:01]line НДС 12% НСП 1% [14:39:01]line > о реализуемом товаре [14:39:01]line ИТОГО: 80.00 [14:39:01]line НСП 1% : 0.71 [14:39:01]line НДС 12% : 8.50 [14:39:01]line Наличными: 80.00 [14:39:01]line Безнал.: 0.00 [14:39:01]line Место: АЗС № 101 "Партнер Нефть" [14:39:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:39:01]line СНО: Общий режим [14:39:01]line Чек 164 31.10.2024 14:39 [14:39:01]line Смена: 557 ФФД: 1.0 [14:39:01]line ЗНМ: 0300000081 [14:39:01]line РНМ: 0000000000091631 [14:39:01]line Версия ККМ: 001 [14:39:01]line ФМ: 0000000000874669 [14:39:01]line ФД: 139687 [14:39:01]line ФПД: 123426957918981 [14:39:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143901&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139687&fm=123426957918981&tin=02508201610067®Number=0000000000091631&sum=8000 [14:39:02]OFD Sender: Processing packet 139687 [packets to send 34, broken 33] [14:39:02]ProducePacketName [14:39:02]name=ofd_packets/00139687 [14:39:02]OFD Sender: To server: pG, [14:39:02]CommunicateWithHost lk.salyk.kg:30040 [14:39:02]ConnectInit lk.salyk.kg [14:39:02]line 0 [14:39:02]written 0, free lines is 4095 [14:39:02]Connected sock=10 [14:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 47 3F 1B 01 51 08 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 41 93 FB 83 05 63 1B 5B 46 24 7C 9F DC [14:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 89 18 47 00 83 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 21 02 00 F4 03 04 00 32 42 23 67 B6 04 01 00 00 74 6C DE D0 1F 2C B8 87 [14:39:02]CommunicateWithHost err = 0 [14:39:02]CheckOFDResponse [14:39:02]1017 (14) - 77093643461234 [14:39:02]1041 (16) - 0000000000874669 [14:39:02]1040 (4) - 139687 [14:39:02]1012 (4) - 31.10.2024 08:39 [14:39:02]1206 (1) - 0 [14:39:02]OFD Sender: Remove packet 139687 [14:39:02]ProducePacketName [14:39:02]name=ofd_packets/00139687 [14:39:02]NVStorageDeleteData [14:39:02]Write to MH i2c: 01 00 00 BB 0B C6 [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 07 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: 01 07 00 BB 0B 00 00 00 00 00 0C 0D E6 [14:39:02]RasterBufferAndPrint [14:39:02]line [14:39:02]line [14:39:02]line [14:39:02]line [14:39:02]line [14:39:02]written 0, free lines is 3346 [14:39:02]MH_Cut [14:39:02]Write to MH i2c: D1 01 00 C2 0B 01 9F [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: D1 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: D1 01 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: D1 01 00 C2 0B 00 9E [14:39:02]Write to MH i2c: 01 00 00 C3 0B CE [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]OFD Sender: No OFD packet to send [14:39:03]*** Cut start [14:39:03]*** Partial cut [14:39:03]*** CUTSNS_PIN = 1 [14:39:03]*** CUTSNS_PIN = 0 [14:39:03]*** Brake cut motor [14:39:03]Read from MH i2c: 01 [14:39:03]MH_I2C_Read... [14:39:03]*** Stop cut motor [14:39:03]*** Cut end [14:39:03]Read from MH i2c: 01 07 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 FF 0F E3 [14:39:03]process_action close_receipt done [14:39:03]requested_data is exist [14:39:03]produce_requested_data [14:39:03]requested_item fm.sn is exist - process it [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 11 00 00 [14:39:03]Write to MH i2c: E2 08 00 C4 0B 80 11 00 00 00 00 00 00 49 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 C4 0B 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:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:39:03]wFMCommunicate OK [14:39:03]requested_item fd.num is exist - process it [14:39:03]SAM_PROTO_GetFieldsCounters [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 13 00 00 [14:39:03]Write to MH i2c: E2 08 00 C5 0B 80 13 00 00 00 00 00 00 4C [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:04]Read from MH i2c: E2 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 62 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 62 00 C5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 55 [14:39:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 [14:39:04]wFMCommunicate OK [14:39:04]SAM_PROTO_GetFieldsCounters done [14:39:04]requested_item shift.num is exist - process it [14:39:04]requested_item shift.opened is exist - process it [14:39:04]req_shift_opened [14:39:04]FM_GetShiftState [14:39:04]SAM_PROTO_GetShiftState [14:39:04]wFMCommunicate request_size=4 [14:39:04]MH_SAM_APDU [14:39:04]CAPDU: 80 13 01 00 [14:39:04]Write to MH i2c: E2 08 00 C6 0B 80 13 01 00 00 00 00 00 4E [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 [14:39:04]MH_I2C_Read... [14:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:04]Read from MH i2c: E2 0E 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 0E 00 C6 0B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 77 [14:39:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:39:04]wFMCommunicate OK [14:39:04]SAM_PROTO_GetShiftState done [14:39:04]FM_GetShiftState done [14:39:04]req_shift_opened done [14:39:04]requested_item shift.open_date is exist - process it [14:39:04]req_shift_open_date [14:39:04]req_shift_open_date done [14:39:04]produce_requested_data done [14:39:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139687,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:39:04]process_action_free close_receipt [14:39:04]json_value_free [14:39:04]json_value_free done [14:39:04]process_json_proto returns [14:39:04]Send response to host [14:39:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139687,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:39:04]free response buf [14:39:04]execute_script done [14:39:04]execute_script returns [14:39:04]free content buf [14:39:04]Sock 7.Close socket [14:39:04]Sock 7.Thread stoped [14:39:06]accept exits with 9 [14:39:06]New connection [14:39:06]New thread 3066654052 created [14:39:06]Thread 3066510692 joined [14:39:06]Waiting for new connection... [14:39:06] Sock 9.Parse request [14:39:06]Sock 9.Check first char [14:39:06]Sock 9.First char is OK [14:39:06]request: POST /json_proto HTTP/1.0 [14:39:06]Method: POST [14:39:06]URL: /json_proto [14:39:06]Method is POST - this is cgi request [14:39:06]url: /json_proto [14:39:06]query_string will be loaded in cgi processing [14:39:06]execute_cgi json_proto POST (null) [14:39:06]execute_cgi path=json_proto method=POST [14:39:06]POST find Content-Length [14:39:06]Host: 172.17.50.196:8080 [14:39:06]Content-Length: 644 [14:39:06]Content-Type: application/json [14:39:06] [14:39:06]POST finish read [14:39:06]Found Content-Length = 644 [14:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335536", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:06]execute_script... [14:39: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)335536", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:06]POST & json_proto [14:39:06]process_json_proto [14:39:06]json parsed OK: [14:39:06]protocol is kg_v1.0 [14:39:06]action value=close_receipt [14:39:06]process_action close_receipt [14:39:06]cmd_close_receipt [14:39:06]MH_GetDate [14:39:06]Write to MH i2c: F0 00 00 C7 0B C1 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: F0 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: F0 09 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: F0 09 00 C7 0B 00 8B 96 23 67 72 0D 1C 67 77 [14:39:06]GetLastDocTimeStamp 1730385541 [14:39:06]current date 1730385547 [14:39:06]FM_GetShiftState [14:39:06]SAM_PROTO_GetShiftState [14:39:06]wFMCommunicate request_size=4 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 13 01 00 [14:39:06]Write to MH i2c: E2 08 00 C8 0B 80 13 01 00 00 00 00 00 50 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0E 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0E 00 C8 0B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 79 [14:39:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:39:06]wFMCommunicate OK [14:39:06]SAM_PROTO_GetShiftState done [14:39:06]FM_GetShiftState done [14:39:06]opened in 1730332621 [14:39:06]opened+sec_in_day 1730419021 [14:39:06]quantity*price = 11800 [14:39:06]sum+1 = 11801 [14:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 165 31.10.2024 14:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139688 ФПД: 134830848404538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143907&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139688&fm=134830848404538&tin=02508201610067®Number=0000000000091631&sum=11800 0 [14:39:07]StoreToDocumentArchive [14:39:07]shift 557 fd 139688 [14:39:07]save to /storage/0557/doc_00139688 [14:39:07]save last doc name /storage/0557/doc_00139688 to /storage/kkm_last_doc_name [14:39:07]save OK [14:39:07]Clear old archive folders... [14:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=281 [14:39:07]tlvbuf is 00A8D000 [14:39:07]SAM_PROTO_ClearQueue [14:39:07]wFMCommunicate request_size=4 [14:39:07]MH_SAM_APDU [14:39:07]CAPDU: 80 09 00 00 [14:39:07]Write to MH i2c: E2 08 00 D5 0B 80 09 00 00 00 00 00 00 52 [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:07]Read from MH i2c: E2 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 D5 0B 00 90 00 54 [14:39:07]RAPDU: 90 00 [14:39:07]wFMCommunicate OK [14:39:07]SAM_PROTO_ClearQueue done [14:39:07]KKMCreateOFDPacket [14:39:07]OFDProtocolAddRootSTLVToBuf [14:39:07]FM_MakeSignedData [14:39:07]FM_MakeSignedData [14:39:07]SAM_PROTO_SignData [14:39:07]wFMCommunicate request_size=4 [14:39:07]MH_SAM_APDU [14:39:07]CAPDU: 80 0D 01 02 [14:39:07]Write to MH i2c: E2 08 00 D6 0B 80 0D 01 02 00 00 00 00 5A [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:07]Read from MH i2c: E2 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 D6 0B 00 90 00 55 [14:39:07]RAPDU: 90 00 [14:39:07]wFMCommunicate OK [14:39:07]wFMCommunicate request_size=255 [14:39:07]MH_SAM_APDU [14:39:07]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 8B 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 [14:39:07]Write to MH i2c: E2 02 01 D7 0B 80 0D 02 02 FA 00 03 00 19 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 8B 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 5F [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:07]Read from MH i2c: E2 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [14:39:07]RAPDU: 90 00 [14:39:07]wFMCommunicate OK [14:39:07]wFMCommunicate request_size=40 [14:39:07]MH_SAM_APDU [14:39:07]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 A8 21 02 00 35 04 06 00 7A A0 C0 D2 EC 3A [14:39:07]Write to MH i2c: E2 2B 00 D8 0B 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 A8 21 02 00 35 04 06 00 7A A0 C0 D2 EC 3A 00 00 BF [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:07]Read from MH i2c: E2 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [14:39:07]RAPDU: 90 00 [14:39:07]wFMCommunicate OK [14:39:07]wFMCommunicate request_size=4 [14:39:07]MH_SAM_APDU [14:39:07]CAPDU: 80 0D 03 02 [14:39:07]Write to MH i2c: E2 08 00 D9 0B 80 0D 03 02 00 00 00 00 5F [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:07]Read from MH i2c: E2 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 0B 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 0B 00 D9 0B 00 D6 B9 AA 31 48 3E D8 D4 90 00 FC [14:39:07]RAPDU: D6 B9 AA 31 48 3E D8 D4 90 00 [14:39:07]wFMCommunicate OK [14:39:07]SAM_PROTO_SignData done [14:39:07]FM_MakeSignedData done [14:39:07]CreateOFDProtocolMessage [14:39:07]wFMCommunicate request_size=4 [14:39:07]MH_SAM_APDU [14:39:07]CAPDU: 80 11 00 00 [14:39:07]Write to MH i2c: E2 08 00 DA 0B 80 11 00 00 00 00 00 00 5F [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]OFD Sender: No OFD packet to send [14:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:07]Read from MH i2c: E2 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 17 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 17 00 DA 0B 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:39: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:39:07]wFMCommunicate OK [14:39:07]CreateOFDProtocolMessage done [14:39:07]OFDSenderStorePacket 139688 [14:39:07]StoreOFDPacket docnum=139688 [14:39: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 2D 01 00 00 2F 1B 25 01 FA D4 5A 03 01 00 03 00 19 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 8B 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7A A0 C0 D2 EC 3A D6 B9 AA 31 48 3E D8 D4 [14:39:07]CheckFolder [14:39:07]dirname=/storage/ofd_packets [14:39:07]CheckFolder done [14:39:07]ProducePacketName [14:39:07]name=ofd_packets/00139688 [14:39:07]NVStorageSaveData ofd_packets/00139688 [14:39:07]File name is /storage/ofd_packets/00139688 [14:39:07]Write 331 bytes [14:39:07]NVStorageSaveData done [14:39:07]OFDSenderStorePacket done [14:39:07]KKMCreateOFDPacket done [14:39:07]NVStorageSaveData kkm_last_timestamp [14:39:07]File name is /storage/kkm_last_timestamp [14:39:07]Write 4 bytes [14:39:07]NVStorageSaveData done [14:39:07]ExternCall_PrintAddStr [14:39:07]wPrintStart [14:39:07]Write to MH i2c: 01 00 00 DB 0B E6 [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: 01 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: 01 07 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: 01 07 00 DB 0B 00 00 00 00 00 FF 0F FB [14:39:07]RasterBufferAndPrint [14:39:07]line Счет N : (3)335536 [14:39:08]line ИНН: 02508201610067 [14:39:08]line Контрольно-Кассовый Чек [14:39:08]line ПРОДАЖА [14:39:08]line Товар: 4607065001445 [14:39:08]line Шок батончик Snickers 50,5г [14:39:08]line 2.000 * 59.00 [14:39:08]line = 118.00 [14:39:08]line НДС 12% НСП 1% [14:39:08]line > о реализуемом товаре [14:39:08]line ИТОГО: 118.00 [14:39:08]line НСП 1% : 1.04 [14:39:08]line НДС 12% : 12.53 [14:39:08]line Наличными: 118.00 [14:39:08]line Безнал.: 0.00 [14:39:08]line Место: АЗС № 101 "Партнер Нефть" [14:39:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:39:08]line СНО: Общий режим [14:39:08]line Чек 165 31.10.2024 14:39 [14:39:08]line Смена: 557 ФФД: 1.0 [14:39:08]line ЗНМ: 0300000081 [14:39:08]line РНМ: 0000000000091631 [14:39:08]line Версия ККМ: 001 [14:39:08]line ФМ: 0000000000874669 [14:39:08]line ФД: 139688 [14:39:08]line ФПД: 134830848404538 [14:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T143907&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139688&fm=134830848404538&tin=02508201610067®Number=0000000000091631&sum=11800 [14:39:08]line 0 [14:39:08]written 0, free lines is 4095 [14:39:08]OFD Sender: Processing packet 139688 [packets to send 34, broken 33] [14:39:08]ProducePacketName [14:39:08]name=ofd_packets/00139688 [14:39:08]OFD Sender: To server: pG, [14:39:08]CommunicateWithHost lk.salyk.kg:30040 [14:39:08]ConnectInit lk.salyk.kg [14:39:08]Connected sock=10 [14:39: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 2D 01 00 00 2F 1B 25 01 FA D4 5A 03 01 00 03 00 19 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 8B 96 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7A A0 C0 D2 EC 3A D6 B9 AA 31 48 3E D8 D4 [14:39: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 EF C6 47 00 3B 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 A8 21 02 00 F4 03 04 00 38 42 23 67 B6 04 01 00 00 AE FA 2A 6B 34 AE 03 FD [14:39:08]CommunicateWithHost err = 0 [14:39:08]CheckOFDResponse [14:39:08]1017 (14) - 77093643461234 [14:39:08]1041 (16) - 0000000000874669 [14:39:08]1040 (4) - 139688 [14:39:08]1012 (4) - 31.10.2024 08:39 [14:39:08]1206 (1) - 0 [14:39:08]OFD Sender: Remove packet 139688 [14:39:08]ProducePacketName [14:39:08]name=ofd_packets/00139688 [14:39:08]NVStorageDeleteData [14:39:08]Write to MH i2c: 01 00 00 03 0C 0F [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: 01 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: 01 07 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 23 0D 46 [14:39:08]RasterBufferAndPrint [14:39:08]line [14:39:08]line [14:39:08]line [14:39:08]line [14:39:08]line [14:39:08]written 0, free lines is 3376 [14:39:08]MH_Cut [14:39:08]Write to MH i2c: D1 01 00 0A 0C 01 E8 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: D1 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: D1 01 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: D1 01 00 0A 0C 00 E7 [14:39:08]Write to MH i2c: 01 00 00 0B 0C 17 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]OFD Sender: No OFD packet to send [14:39:09]*** Cut start [14:39:09]*** Partial cut [14:39:09]*** CUTSNS_PIN = 1 [14:39:09]*** CUTSNS_PIN = 0 [14:39:09]*** Brake cut motor [14:39:09]Read from MH i2c: 01 [14:39:09]MH_I2C_Read... [14:39:09]*** Stop cut motor [14:39:09]*** Cut end [14:39:09]Read from MH i2c: 01 07 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 FF 0F 2C [14:39:09]process_action close_receipt done [14:39:09]requested_data is exist [14:39:09]produce_requested_data [14:39:09]requested_item fm.sn is exist - process it [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 11 00 00 [14:39:09]Write to MH i2c: E2 08 00 0C 0C 80 11 00 00 00 00 00 00 92 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 17 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 17 00 0C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 ED [14:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:39:09]wFMCommunicate OK [14:39:09]requested_item fd.num is exist - process it [14:39:09]SAM_PROTO_GetFieldsCounters [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 13 00 00 [14:39:09]Write to MH i2c: E2 08 00 0D 0C 80 13 00 00 00 00 00 00 95 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 62 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 62 00 0D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 A2 [14:39: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 A8 21 02 00 0E 04 04 00 2D 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 [14:39:09]wFMCommunicate OK [14:39:09]SAM_PROTO_GetFieldsCounters done [14:39:09]requested_item shift.num is exist - process it [14:39:09]requested_item shift.opened is exist - process it [14:39:09]req_shift_opened [14:39:09]FM_GetShiftState [14:39:09]SAM_PROTO_GetShiftState [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 13 01 00 [14:39:09]Write to MH i2c: E2 08 00 0E 0C 80 13 01 00 00 00 00 00 97 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 0E 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 0E 00 0E 0C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C0 [14:39:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:39:10]wFMCommunicate OK [14:39:10]SAM_PROTO_GetShiftState done [14:39:10]FM_GetShiftState done [14:39:10]req_shift_opened done [14:39:10]requested_item shift.open_date is exist - process it [14:39:10]req_shift_open_date [14:39:10]req_shift_open_date done [14:39:10]produce_requested_data done [14:39:10]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139688,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:39:10]process_action_free close_receipt [14:39:10]json_value_free [14:39:10]json_value_free done [14:39:10]process_json_proto returns [14:39:10]Send response to host [14:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139688,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:39:10]free response buf [14:39:10]execute_script done [14:39:10]execute_script returns [14:39:10]free content buf [14:39:10]Sock 9.Close socket [14:39:10]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [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:26]accept exits with 7 [14:48:26]New connection [14:48:26]New thread 3066510692 created [14:48:26]Thread 3066654052 joined [14:48:26]Waiting for new connection... [14:48:26] Sock 7.Parse request [14:48:26]Sock 7.Check first char [14:48:26]Sock 7.First char is OK [14:48:26]request: POST /json_proto HTTP/1.0 [14:48:26]Method: POST [14:48:26]URL: /json_proto [14:48:26]Method is POST - this is cgi request [14:48:26]url: /json_proto [14:48:26]query_string will be loaded in cgi processing [14:48:26]execute_cgi json_proto POST (null) [14:48:26]execute_cgi path=json_proto method=POST [14:48:26]POST find Content-Length [14:48:26]Host: 172.17.50.196:8080 [14:48:26]Content-Length: 812 [14:48:26]Content-Type: application/json [14:48:26] [14:48:26]POST finish read [14:48:26]Found Content-Length = 812 [14:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335537", "tax_sys" : 0, "items" : [ { "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:26]execute_script... [14:48:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335537", "tax_sys" : 0, "items" : [ { "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:26]POST & json_proto [14:48:26]process_json_proto [14:48:26]json parsed OK: [14:48:26]protocol is kg_v1.0 [14:48:26]action value=close_receipt [14:48:26]process_action close_receipt [14:48:26]cmd_close_receipt [14:48:26]MH_GetDate [14:48:26]Write to MH i2c: F0 00 00 0F 0C 0A [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: F0 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: F0 09 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: F0 09 00 0F 0C 00 BB 98 23 67 72 0D 1C 67 F2 [14:48:26]GetLastDocTimeStamp 1730385547 [14:48:26]current date 1730386107 [14:48:26]FM_GetShiftState [14:48:26]SAM_PROTO_GetShiftState [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 13 01 00 [14:48:26]Write to MH i2c: E2 08 00 10 0C 80 13 01 00 00 00 00 00 99 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0E 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0E 00 10 0C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C2 [14:48:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_GetShiftState done [14:48:26]FM_GetShiftState done [14:48:26]opened in 1730332621 [14:48:26]opened+sec_in_day 1730419021 [14:48:26]quantity*price = 18000 [14:48:26]sum+1 = 18001 [14:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 0.00 Безнал.: 180.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 166 31.10.2024 14:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139689 ФПД: 280887526779197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144827&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139689&fm=280887526779197&tin=02508201610067®Number=0000000000091631&sum=18000 0 [14:48:27]StoreToDocumentArchive [14:48:27]shift 557 fd 139689 [14:48:27]save to /storage/0557/doc_00139689 [14:48:27]save last doc name /storage/0557/doc_00139689 to /storage/kkm_last_doc_name [14:48:27]save OK [14:48:27]Clear old archive folders... [14:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:48:27]tlvbuf is 00A297F0 [14:48:27]SAM_PROTO_ClearQueue [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 09 00 00 [14:48:27]Write to MH i2c: E2 08 00 1D 0C 80 09 00 00 00 00 00 00 9B [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [14:48:27]RAPDU: 90 00 [14:48:27]wFMCommunicate OK [14:48:27]SAM_PROTO_ClearQueue done [14:48:27]KKMCreateOFDPacket [14:48:27]OFDProtocolAddRootSTLVToBuf [14:48:27]FM_MakeSignedData [14:48:27]FM_MakeSignedData [14:48:27]SAM_PROTO_SignData [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 0D 01 02 [14:48:27]Write to MH i2c: E2 08 00 1E 0C 80 0D 01 02 00 00 00 00 A3 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [14:48:27]RAPDU: 90 00 [14:48:27]wFMCommunicate OK [14:48:27]wFMCommunicate request_size=255 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 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 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 BB 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:48:27]Write to MH i2c: E2 02 01 1F 0C 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 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 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 BB 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 DE [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [14:48:27]RAPDU: 90 00 [14:48:27]wFMCommunicate OK [14:48:27]wFMCommunicate request_size=53 [14:48:27]MH_SAM_APDU [14:48:27]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 A9 21 02 00 35 04 06 00 FF 77 39 41 69 3D [14:48:27]Write to MH i2c: E2 38 00 20 0C 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 A9 21 02 00 35 04 06 00 FF 77 39 41 69 3D 00 00 00 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [14:48:27]RAPDU: 90 00 [14:48:27]wFMCommunicate OK [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 0D 03 02 [14:48:27]Write to MH i2c: E2 08 00 21 0C 80 0D 03 02 00 00 00 00 A8 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 0B 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 0B 00 21 0C 00 79 8A FF 95 73 D7 25 60 90 00 0F [14:48:27]RAPDU: 79 8A FF 95 73 D7 25 60 90 00 [14:48:27]wFMCommunicate OK [14:48:27]SAM_PROTO_SignData done [14:48:27]FM_MakeSignedData done [14:48:27]CreateOFDProtocolMessage [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 11 00 00 [14:48:27]Write to MH i2c: E2 08 00 22 0C 80 11 00 00 00 00 00 00 A8 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 17 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 17 00 22 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [14:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:48:27]wFMCommunicate OK [14:48:27]CreateOFDProtocolMessage done [14:48:27]OFDSenderStorePacket 139689 [14:48:27]StoreOFDPacket docnum=139689 [14:48: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 3A 01 00 00 57 96 32 01 0E F3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 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 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 BB 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FF 77 39 41 69 3D 79 8A FF 95 73 D7 25 60 [14:48:27]CheckFolder [14:48:27]dirname=/storage/ofd_packets [14:48:27]CheckFolder done [14:48:27]ProducePacketName [14:48:27]name=ofd_packets/00139689 [14:48:27]NVStorageSaveData ofd_packets/00139689 [14:48:27]File name is /storage/ofd_packets/00139689 [14:48:27]Write 344 bytes [14:48:27]NVStorageSaveData done [14:48:27]OFDSenderStorePacket done [14:48:27]KKMCreateOFDPacket done [14:48:27]NVStorageSaveData kkm_last_timestamp [14:48:27]File name is /storage/kkm_last_timestamp [14:48:27]Write 4 bytes [14:48:27]NVStorageSaveData done [14:48:27]ExternCall_PrintAddStr [14:48:27]wPrintStart [14:48:27]Write to MH i2c: 01 00 00 23 0C 2F [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 FF 0F 44 [14:48:27]RasterBufferAndPrint [14:48:27]line Счет N : (3)335537 [14:48:27]line ИНН: 02508201610067 [14:48:27]line Контрольно-Кассовый Чек [14:48:27]line ПРОДАЖА [14:48:27]line Товар: 5449000002952 [14:48:27]line Холодный чай Fuse персик 0,33 ж/б [14:48:27]line 2.000 * 90.00 [14:48:27]line = 180.00 [14:48:27]line НДС 12% НСП 1% [14:48:27]line > о реализуемом товаре [14:48:27]line ИТОГО: 180.00 [14:48:27]line НСП 1% : 1.59 [14:48:27]line НДС 12% : 19.11 [14:48:27]line Наличными: 0.00 [14:48:27]line Безнал.: 180.00 [14:48:27]line Место: АЗС № 101 "Партнер Нефть" [14:48:27]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:48:27]line СНО: Общий режим [14:48:27]line Чек 166 31.10.2024 14:48 [14:48:27]line Смена: 557 ФФД: 1.0 [14:48:27]line ЗНМ: 0300000081 [14:48:27]line РНМ: 0000000000091631 [14:48:27]line Версия ККМ: 001 [14:48:27]line Платежная система: Mbank [14:48:27]line ФМ: 0000000000874669 [14:48:27]line ФД: 139689 [14:48:27]line ФПД: 280887526779197 [14:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T144827&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139689&fm=280887526779197&tin=02508201610067®Number=0000000000091631&sum=18000 [14:48:28]line 0 [14:48:28]OFD Sender: Processing packet 139689 [packets to send 34, broken 33] [14:48:28]ProducePacketName [14:48:28]name=ofd_packets/00139689 [14:48:28]OFD Sender: To server: pG, [14:48:28]CommunicateWithHost lk.salyk.kg:30040 [14:48:28]ConnectInit lk.salyk.kg [14:48:28]written 0, free lines is 4095 [14:48:28]Connected sock=9 [14:48: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 3A 01 00 00 57 96 32 01 0E F3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 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 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 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 BB 98 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FF 77 39 41 69 3D 79 8A FF 95 73 D7 25 60 [14:48: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 73 12 47 00 E9 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 21 02 00 F4 03 04 00 68 44 23 67 B6 04 01 00 00 EF D9 3C 22 66 33 ED A0 [14:48:28]CommunicateWithHost err = 0 [14:48:28]CheckOFDResponse [14:48:28]1017 (14) - 77093643461234 [14:48:28]1041 (16) - 0000000000874669 [14:48:28]1040 (4) - 139689 [14:48:28]1012 (4) - 31.10.2024 08:48 [14:48:28]1206 (1) - 0 [14:48:28]OFD Sender: Remove packet 139689 [14:48:28]ProducePacketName [14:48:28]name=ofd_packets/00139689 [14:48:28]NVStorageDeleteData [14:48:28]Write to MH i2c: 01 00 00 4D 0C 59 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: 01 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: 01 07 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: 01 07 00 4D 0C 00 00 00 00 00 F6 0C 62 [14:48:28]RasterBufferAndPrint [14:48:28]line [14:48:28]line [14:48:28]line [14:48:28]line [14:48:28]line [14:48:28]written 0, free lines is 3324 [14:48:28]MH_Cut [14:48:28]Write to MH i2c: D1 01 00 54 0C 01 32 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: D1 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: D1 01 00 [14:48:28]MH_I2C_Read... [14:48:28]Read from MH i2c: D1 01 00 54 0C 00 31 [14:48:28]Write to MH i2c: 01 00 00 55 0C 61 [14:48:28]Write i2c OK [14:48:28]MH_I2C_Read... [14:48:29]OFD Sender: No OFD packet to send [14:48:29]*** Cut start [14:48:29]*** Partial cut [14:48:29]*** CUTSNS_PIN = 1 [14:48:29]*** CUTSNS_PIN = 0 [14:48:29]*** Brake cut motor [14:48:30]Read from MH i2c: 01 [14:48:30]MH_I2C_Read... [14:48:30]*** Stop cut motor [14:48:30]*** Cut end [14:48:30]Read from MH i2c: 01 07 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 FF 0F 76 [14:48:30]process_action close_receipt done [14:48:30]requested_data is exist [14:48:30]produce_requested_data [14:48:30]requested_item fm.sn is exist - process it [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 11 00 00 [14:48:30]Write to MH i2c: E2 08 00 56 0C 80 11 00 00 00 00 00 00 DC [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 17 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 17 00 56 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 37 [14:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:48:30]wFMCommunicate OK [14:48:30]requested_item fd.num is exist - process it [14:48:30]SAM_PROTO_GetFieldsCounters [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 13 00 00 [14:48:30]Write to MH i2c: E2 08 00 57 0C 80 13 00 00 00 00 00 00 DF [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 62 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 62 00 57 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 F0 [14:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 [14:48:30]wFMCommunicate OK [14:48:30]SAM_PROTO_GetFieldsCounters done [14:48:30]requested_item shift.num is exist - process it [14:48:30]requested_item shift.opened is exist - process it [14:48:30]req_shift_opened [14:48:30]FM_GetShiftState [14:48:30]SAM_PROTO_GetShiftState [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 13 01 00 [14:48:30]Write to MH i2c: E2 08 00 58 0C 80 13 01 00 00 00 00 00 E1 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 0E 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 0E 00 58 0C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0A [14:48:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:48:30]wFMCommunicate OK [14:48:30]SAM_PROTO_GetShiftState done [14:48:30]FM_GetShiftState done [14:48:30]req_shift_opened done [14:48:30]requested_item shift.open_date is exist - process it [14:48:30]req_shift_open_date [14:48:30]req_shift_open_date done [14:48:30]produce_requested_data done [14:48:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139689,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:48:30]process_action_free close_receipt [14:48:30]json_value_free [14:48:30]json_value_free done [14:48:30]process_json_proto returns [14:48:30]Send response to host [14:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139689,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:48:30]free response buf [14:48:30]execute_script done [14:48:30]execute_script returns [14:48:30]free content buf [14:48:30]Sock 7.Close socket [14:48:30]Sock 7.Thread stoped [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]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:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:08]accept exits with 10 [14:54:08]New connection [14:54:08]New thread 3066654052 created [14:54:08]Thread 3066510692 joined [14:54:08]Waiting for new connection... [14:54:08] Sock 10.Parse request [14:54:08]Sock 10.Check first char [14:54:08]Sock 10.First char is OK [14:54:08]request: POST /json_proto HTTP/1.0 [14:54:08]Method: POST [14:54:08]URL: /json_proto [14:54:08]Method is POST - this is cgi request [14:54:08]url: /json_proto [14:54:08]query_string will be loaded in cgi processing [14:54:08]execute_cgi json_proto POST (null) [14:54:08]execute_cgi path=json_proto method=POST [14:54:08]POST find Content-Length [14:54:08]Host: 172.17.50.196:8080 [14:54:08]Content-Length: 911 [14:54:08]Content-Type: application/json [14:54:08] [14:54:08]POST finish read [14:54:08]Found Content-Length = 911 [14:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335538", "tax_sys" : 0, "items" : [ { "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:08]execute_script... [14:54: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)335538", "tax_sys" : 0, "items" : [ { "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:08]POST & json_proto [14:54:08]process_json_proto [14:54:08]json parsed OK: [14:54:08]protocol is kg_v1.0 [14:54:08]action value=close_receipt [14:54:08]process_action close_receipt [14:54:08]cmd_close_receipt [14:54:08]MH_GetDate [14:54:08]Write to MH i2c: F0 00 00 59 0C 54 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: F0 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: F0 09 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: F0 09 00 59 0C 00 11 9A 23 67 72 0D 1C 67 94 [14:54:08]GetLastDocTimeStamp 1730386107 [14:54:08]current date 1730386449 [14:54:08]FM_GetShiftState [14:54:08]SAM_PROTO_GetShiftState [14:54:08]wFMCommunicate request_size=4 [14:54:08]MH_SAM_APDU [14:54:08]CAPDU: 80 13 01 00 [14:54:08]Write to MH i2c: E2 08 00 5A 0C 80 13 01 00 00 00 00 00 E3 [14:54:08]Write i2c OK [14:54:08]MH_I2C_Read... [14:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:08]Read from MH i2c: E2 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 0E 00 [14:54:08]MH_I2C_Read... [14:54:08]Read from MH i2c: E2 0E 00 5A 0C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0C [14:54:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:54:08]wFMCommunicate OK [14:54:08]SAM_PROTO_GetShiftState done [14:54:08]FM_GetShiftState done [14:54:08]opened in 1730332621 [14:54:08]opened+sec_in_day 1730419021 [14:54:08]quantity*price = 9000 [14:54:08]sum+1 = 9001 [14:54:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 167 31.10.2024 14:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139690 ФПД: 206013030753320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T145409&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139690&fm=206013030753320&tin=02508201610067®Number=0000000000091631&sum=35000 0 [14:54:09]StoreToDocumentArchive [14:54:09]shift 557 fd 139690 [14:54:09]save to /storage/0557/doc_00139690 [14:54:09]save last doc name /storage/0557/doc_00139690 to /storage/kkm_last_doc_name [14:54:09]save OK [14:54:09]Clear old archive folders... [14:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=391 [14:54:09]tlvbuf is 00A293C0 [14:54:09]SAM_PROTO_ClearQueue [14:54:09]wFMCommunicate request_size=4 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 09 00 00 [14:54:09]Write to MH i2c: E2 08 00 67 0C 80 09 00 00 00 00 00 00 E5 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]SAM_PROTO_ClearQueue done [14:54:09]KKMCreateOFDPacket [14:54:09]OFDProtocolAddRootSTLVToBuf [14:54:09]FM_MakeSignedData [14:54:09]FM_MakeSignedData [14:54:09]SAM_PROTO_SignData [14:54:09]wFMCommunicate request_size=4 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 01 02 [14:54:09]Write to MH i2c: E2 08 00 68 0C 80 0D 01 02 00 00 00 00 ED [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 68 0C 00 90 00 E8 [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]wFMCommunicate request_size=255 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [14:54:09]Write to MH i2c: E2 02 01 69 0C 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 77 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 69 0C 00 90 00 E9 [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]wFMCommunicate request_size=150 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 9A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 BB 5E 25 84 64 28 [14:54:09]Write to MH i2c: E2 99 00 6A 0C 80 0D 02 02 91 00 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 9A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 BB 5E 25 84 64 28 00 00 74 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:09]Read from MH i2c: E2 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 [14:54:09]MH_I2C_Read... [14:54:09]Read from MH i2c: E2 03 00 6A 0C 00 90 00 EA [14:54:09]RAPDU: 90 00 [14:54:09]wFMCommunicate OK [14:54:09]wFMCommunicate request_size=4 [14:54:09]MH_SAM_APDU [14:54:09]CAPDU: 80 0D 03 02 [14:54:09]Write to MH i2c: E2 08 00 6B 0C 80 0D 03 02 00 00 00 00 F2 [14:54:09]Write i2c OK [14:54:09]MH_I2C_Read... [14:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:10]Read from MH i2c: E2 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: E2 0B 00 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: E2 0B 00 6B 0C 00 CF E0 8C 15 B9 64 E7 0E 90 00 55 [14:54:10]RAPDU: CF E0 8C 15 B9 64 E7 0E 90 00 [14:54:10]wFMCommunicate OK [14:54:10]SAM_PROTO_SignData done [14:54:10]FM_MakeSignedData done [14:54:10]CreateOFDProtocolMessage [14:54:10]wFMCommunicate request_size=4 [14:54:10]MH_SAM_APDU [14:54:10]CAPDU: 80 11 00 00 [14:54:10]Write to MH i2c: E2 08 00 6C 0C 80 11 00 00 00 00 00 00 F2 [14:54:10]Write i2c OK [14:54:10]MH_I2C_Read... [14:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:10]Read from MH i2c: E2 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: E2 17 00 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: E2 17 00 6C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [14:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:54:10]wFMCommunicate OK [14:54:10]CreateOFDProtocolMessage done [14:54:10]OFDSenderStorePacket 139690 [14:54:10]StoreOFDPacket docnum=139690 [14:54: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 9B 01 00 00 3E 5D 93 01 99 86 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 9A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 BB 5E 25 84 64 28 CF E0 8C 15 B9 64 E7 0E [14:54:10]CheckFolder [14:54:10]dirname=/storage/ofd_packets [14:54:10]CheckFolder done [14:54:10]ProducePacketName [14:54:10]name=ofd_packets/00139690 [14:54:10]NVStorageSaveData ofd_packets/00139690 [14:54:10]File name is /storage/ofd_packets/00139690 [14:54:10]Write 441 bytes [14:54:10]NVStorageSaveData done [14:54:10]OFDSenderStorePacket done [14:54:10]KKMCreateOFDPacket done [14:54:10]NVStorageSaveData kkm_last_timestamp [14:54:10]File name is /storage/kkm_last_timestamp [14:54:10]Write 4 bytes [14:54:10]NVStorageSaveData done [14:54:10]ExternCall_PrintAddStr [14:54:10]wPrintStart [14:54:10]Write to MH i2c: 01 00 00 6D 0C 79 [14:54:10]Write i2c OK [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: 01 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: 01 07 00 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: 01 07 00 6D 0C 00 00 00 00 00 FF 0F 8E [14:54:10]RasterBufferAndPrint [14:54:10]line Счет N : (3)335538 [14:54:10]line ИНН: 02508201610067 [14:54:10]line Контрольно-Кассовый Чек [14:54:10]line ПРОДАЖА [14:54:10]line Товар: 4607015235777 [14:54:10]line Печ. сд. Яшкино вишня 137г [14:54:10]line 1.000 * 90.00 [14:54:10]line = 90.00 [14:54:10]line НДС 12% НСП 1% [14:54:10]line > о реализуемом товаре [14:54:10]line Товар: 2000036230011 [14:54:10]line Кофе Латте XL(GABB TRADE) [14:54:10]line 2.000 * 130.00 [14:54:10]line = 260.00 [14:54:10]line НДС 12% НСП 1% [14:54:10]line > о реализуемом товаре [14:54:10]line ИТОГО: 350.00 [14:54:10]line НСП 1% : 3.10 [14:54:10]line НДС 12% : 37.17 [14:54:10]line Наличными: 350.00 [14:54:10]line Безнал.: 0.00 [14:54:10]line Место: АЗС № 101 "Партнер Нефть" [14:54:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:54:10]line СНО: Общий режим [14:54:10]line Чек 167 31.10.2024 14:54 [14:54:10]line Смена: 557 ФФД: 1.0 [14:54:10]line ЗНМ: 0300000081 [14:54:10]line РНМ: 0000000000091631 [14:54:10]line Версия ККМ: 001 [14:54:10]line ФМ: 0000000000874669 [14:54:10]line ФД: 139690 [14:54:10]line ФПД: 206013030753320 [14:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T145409&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139690&fm=206013030753320&tin=02508201610067®Number=0000000000091631&sum=35000 [14:54:10]line 0 [14:54:10]OFD Sender: Processing packet 139690 [packets to send 34, broken 33] [14:54:10]ProducePacketName [14:54:10]name=ofd_packets/00139690 [14:54:10]OFD Sender: To server: pG, [14:54:10]CommunicateWithHost lk.salyk.kg:30040 [14:54:10]ConnectInit lk.salyk.kg [14:54:10]written 0, free lines is 4095 [14:54:10]Connected sock=9 [14:54: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 9B 01 00 00 3E 5D 93 01 99 86 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 9A 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 BB 5E 25 84 64 28 CF E0 8C 15 B9 64 E7 0E [14:54: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 F3 6B 47 00 18 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 AA 21 02 00 F4 03 04 00 BF 45 23 67 B6 04 01 00 00 7C 7D A4 2C 75 79 E5 18 [14:54:10]CommunicateWithHost err = 0 [14:54:10]CheckOFDResponse [14:54:10]1017 (14) - 77093643461234 [14:54:10]1041 (16) - 0000000000874669 [14:54:10]1040 (4) - 139690 [14:54:10]1012 (4) - 31.10.2024 08:54 [14:54:10]1206 (1) - 0 [14:54:10]OFD Sender: Remove packet 139690 [14:54:10]ProducePacketName [14:54:10]name=ofd_packets/00139690 [14:54:10]NVStorageDeleteData [14:54:10]Write to MH i2c: 01 00 00 9B 0C A7 [14:54:10]Write i2c OK [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: 01 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: 01 07 00 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: 01 07 00 9B 0C 00 00 00 00 00 D9 0C 93 [14:54:10]RasterBufferAndPrint [14:54:10]line [14:54:10]line [14:54:10]line [14:54:10]line [14:54:10]line [14:54:10]written 0, free lines is 3298 [14:54:10]MH_Cut [14:54:10]Write to MH i2c: D1 01 00 A2 0C 01 80 [14:54:10]Write i2c OK [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: D1 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: D1 01 00 [14:54:10]MH_I2C_Read... [14:54:10]Read from MH i2c: D1 01 00 A2 0C 00 7F [14:54:10]Write to MH i2c: 01 00 00 A3 0C AF [14:54:10]Write i2c OK [14:54:10]MH_I2C_Read... [14:54:11]OFD Sender: No OFD packet to send [14:54:11]*** Cut start [14:54:11]*** Partial cut [14:54:11]*** CUTSNS_PIN = 1 [14:54:11]*** CUTSNS_PIN = 0 [14:54:11]*** Brake cut motor [14:54:12]Read from MH i2c: 01 [14:54:12]MH_I2C_Read... [14:54:12]*** Stop cut motor [14:54:12]*** Cut end [14:54:12]Read from MH i2c: 01 07 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: 01 07 00 A3 0C 00 00 00 00 00 FF 0F C4 [14:54:12]process_action close_receipt done [14:54:12]requested_data is exist [14:54:12]produce_requested_data [14:54:12]requested_item fm.sn is exist - process it [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 11 00 00 [14:54:12]Write to MH i2c: E2 08 00 A4 0C 80 11 00 00 00 00 00 00 2A [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 17 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 17 00 A4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 85 [14:54: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:54:12]wFMCommunicate OK [14:54:12]requested_item fd.num is exist - process it [14:54:12]SAM_PROTO_GetFieldsCounters [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 13 00 00 [14:54:12]Write to MH i2c: E2 08 00 A5 0C 80 13 00 00 00 00 00 00 2D [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 62 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 62 00 A5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 42 [14:54: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 AA 21 02 00 0E 04 04 00 2D 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 [14:54:12]wFMCommunicate OK [14:54:12]SAM_PROTO_GetFieldsCounters done [14:54:12]requested_item shift.num is exist - process it [14:54:12]requested_item shift.opened is exist - process it [14:54:12]req_shift_opened [14:54:12]FM_GetShiftState [14:54:12]SAM_PROTO_GetShiftState [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 13 01 00 [14:54:12]Write to MH i2c: E2 08 00 A6 0C 80 13 01 00 00 00 00 00 2F [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:12]Read from MH i2c: E2 0E 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 0E 00 A6 0C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 58 [14:54:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [14:54:12]wFMCommunicate OK [14:54:12]SAM_PROTO_GetShiftState done [14:54:12]FM_GetShiftState done [14:54:12]req_shift_opened done [14:54:12]requested_item shift.open_date is exist - process it [14:54:12]req_shift_open_date [14:54:12]req_shift_open_date done [14:54:12]produce_requested_data done [14:54:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139690,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [14:54:12]process_action_free close_receipt [14:54:12]json_value_free [14:54:12]json_value_free done [14:54:12]process_json_proto returns [14:54:12]Send response to host [14:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139690,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [14:54:12]free response buf [14:54:12]execute_script done [14:54:12]execute_script returns [14:54:12]free content buf [14:54:12]Sock 10.Close socket [14:54:12]Sock 10.Thread stoped [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]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:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:28]ConnectInit Can't connect to host [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:05]accept exits with 7 [15:01:05]New connection [15:01:05]New thread 3066510692 created [15:01:05]Thread 3066654052 joined [15:01:05]Waiting for new connection... [15:01:05] Sock 7.Parse request [15:01:05]Sock 7.Check first char [15:01:05]Sock 7.First char is OK [15:01:05]request: POST /json_proto HTTP/1.0 [15:01:05]Method: POST [15:01:05]URL: /json_proto [15:01:05]Method is POST - this is cgi request [15:01:05]url: /json_proto [15:01:05]query_string will be loaded in cgi processing [15:01:05]execute_cgi json_proto POST (null) [15:01:05]execute_cgi path=json_proto method=POST [15:01:05]POST find Content-Length [15:01:05]Host: 172.17.50.196:8080 [15:01:05]Content-Length: 705 [15:01:05]Content-Type: application/json [15:01:05] [15:01:05]POST finish read [15:01:05]Found Content-Length = 705 [15:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335540", "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 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:05]execute_script... [15:01:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335540", "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 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:05]POST & json_proto [15:01:05]process_json_proto [15:01:05]json parsed OK: [15:01:05]protocol is kg_v1.0 [15:01:05]action value=close_receipt [15:01:05]process_action close_receipt [15:01:05]cmd_close_receipt [15:01:05]MH_GetDate [15:01:05]Write to MH i2c: F0 00 00 A7 0C A2 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: F0 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: F0 09 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: F0 09 00 A7 0C 00 B2 9B 23 67 72 0D 1C 67 84 [15:01:05]GetLastDocTimeStamp 1730386449 [15:01:05]current date 1730386866 [15:01:05]FM_GetShiftState [15:01:05]SAM_PROTO_GetShiftState [15:01:05]wFMCommunicate request_size=4 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 13 01 00 [15:01:05]Write to MH i2c: E2 08 00 A8 0C 80 13 01 00 00 00 00 00 31 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 0E 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 0E 00 A8 0C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5A [15:01:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:01:05]wFMCommunicate OK [15:01:05]SAM_PROTO_GetShiftState done [15:01:05]FM_GetShiftState done [15:01:05]opened in 1730332621 [15:01:05]opened+sec_in_day 1730419021 [15:01:05]quantity*price = 7500 [15:01:05]sum+1 = 7501 [15:01:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 168 31.10.2024 15:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139691 ФПД: 39418554068227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T150106&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139691&fm=39418554068227&tin=02508201610067®Number=0000000000091631&sum=7500 0 [15:01:06]StoreToDocumentArchive [15:01:06]shift 557 fd 139691 [15:01:06]save to /storage/0557/doc_00139691 [15:01:06]save last doc name /storage/0557/doc_00139691 to /storage/kkm_last_doc_name [15:01:06]save OK [15:01:06]Clear old archive folders... [15:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=300 [15:01:06]tlvbuf is 00A65950 [15:01:06]SAM_PROTO_ClearQueue [15:01:06]wFMCommunicate request_size=4 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 09 00 00 [15:01:06]Write to MH i2c: E2 08 00 B5 0C 80 09 00 00 00 00 00 00 33 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 B5 0C 00 90 00 35 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]SAM_PROTO_ClearQueue done [15:01:06]KKMCreateOFDPacket [15:01:06]OFDProtocolAddRootSTLVToBuf [15:01:06]FM_MakeSignedData [15:01:06]FM_MakeSignedData [15:01:06]SAM_PROTO_SignData [15:01:06]wFMCommunicate request_size=4 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 01 02 [15:01:06]Write to MH i2c: E2 08 00 B6 0C 80 0D 01 02 00 00 00 00 3B [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]wFMCommunicate request_size=255 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 02 02 FA 03 00 2C 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 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 A8 00 00 00 F4 03 04 00 B2 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 [15:01:06]Write to MH i2c: E2 02 01 B7 0C 80 0D 02 02 FA 00 03 00 2C 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 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 A8 00 00 00 F4 03 04 00 B2 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 00 00 54 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]wFMCommunicate request_size=59 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 23 D9 D8 E9 AD 03 [15:01:06]Write to MH i2c: E2 3E 00 B8 0C 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 23 D9 D8 E9 AD 03 00 00 9D [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]OFD Sender: No OFD packet to send [15:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [15:01:06]RAPDU: 90 00 [15:01:06]wFMCommunicate OK [15:01:06]wFMCommunicate request_size=4 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 0D 03 02 [15:01:06]Write to MH i2c: E2 08 00 B9 0C 80 0D 03 02 00 00 00 00 40 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 0B 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 0B 00 B9 0C 00 84 12 9B A8 09 87 DC 07 90 00 8D [15:01:06]RAPDU: 84 12 9B A8 09 87 DC 07 90 00 [15:01:06]wFMCommunicate OK [15:01:06]SAM_PROTO_SignData done [15:01:06]FM_MakeSignedData done [15:01:06]CreateOFDProtocolMessage [15:01:06]wFMCommunicate request_size=4 [15:01:06]MH_SAM_APDU [15:01:06]CAPDU: 80 11 00 00 [15:01:06]Write to MH i2c: E2 08 00 BA 0C 80 11 00 00 00 00 00 00 40 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:06]Read from MH i2c: E2 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 17 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: E2 17 00 BA 0C 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:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:01:06]wFMCommunicate OK [15:01:06]CreateOFDProtocolMessage done [15:01:06]OFDSenderStorePacket 139691 [15:01:06]StoreOFDPacket docnum=139691 [15:01: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 40 01 00 00 0A BE 38 01 8B 16 5A 03 01 00 03 00 2C 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 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 A8 00 00 00 F4 03 04 00 B2 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 23 D9 D8 E9 AD 03 84 12 9B A8 09 87 DC 07 [15:01:06]CheckFolder [15:01:06]dirname=/storage/ofd_packets [15:01:06]CheckFolder done [15:01:06]ProducePacketName [15:01:06]name=ofd_packets/00139691 [15:01:06]NVStorageSaveData ofd_packets/00139691 [15:01:06]File name is /storage/ofd_packets/00139691 [15:01:06]Write 350 bytes [15:01:06]NVStorageSaveData done [15:01:06]OFDSenderStorePacket done [15:01:06]KKMCreateOFDPacket done [15:01:06]NVStorageSaveData kkm_last_timestamp [15:01:06]File name is /storage/kkm_last_timestamp [15:01:06]Write 4 bytes [15:01:06]NVStorageSaveData done [15:01:06]ExternCall_PrintAddStr [15:01:06]wPrintStart [15:01:06]Write to MH i2c: 01 00 00 BB 0C C7 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: 01 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: 01 07 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: 01 07 00 BB 0C 00 00 00 00 00 FF 0F DC [15:01:06]RasterBufferAndPrint [15:01:06]line Счет N : (3)335540 [15:01:06]line ИНН: 02508201610067 [15:01:06]line Контрольно-Кассовый Чек [15:01:06]line ПРОДАЖА [15:01:06]line Товар: 5449000189349 [15:01:06]line Холодный чай Fuse манго ананас 0,5л [15:01:06]line 1.000 * 75.00 [15:01:06]line = 75.00 [15:01:06]line НДС 12% НСП 1% [15:01:06]line > о реализуемом товаре [15:01:06]line ИТОГО: 75.00 [15:01:06]line НСП 1% : 0.66 [15:01:06]line НДС 12% : 7.96 [15:01:06]line Наличными: 75.00 [15:01:06]line Безнал.: 0.00 [15:01:06]line Место: АЗС № 101 "Партнер Нефть" [15:01:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:01:06]line СНО: Общий режим [15:01:06]line Чек 168 31.10.2024 15:01 [15:01:06]line Смена: 557 ФФД: 1.0 [15:01:06]line ЗНМ: 0300000081 [15:01:06]line РНМ: 0000000000091631 [15:01:06]line Версия ККМ: 001 [15:01:06]line ФМ: 0000000000874669 [15:01:06]line ФД: 139691 [15:01:06]line ФПД: 39418554068227 [15:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T150106&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139691&fm=39418554068227&tin=02508201610067®Number=0000000000091631&sum=7500 [15:01:07]line 0 [15:01:07]OFD Sender: Processing packet 139691 [packets to send 34, broken 33] [15:01:07]ProducePacketName [15:01:07]name=ofd_packets/00139691 [15:01:07]OFD Sender: To server: pG, [15:01:07]CommunicateWithHost lk.salyk.kg:30040 [15:01:07]ConnectInit lk.salyk.kg [15:01:07]written 0, free lines is 4095 [15:01:07]Connected sock=11 [15:01:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 40 01 00 00 0A BE 38 01 8B 16 5A 03 01 00 03 00 2C 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 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 A8 00 00 00 F4 03 04 00 B2 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 23 D9 D8 E9 AD 03 84 12 9B A8 09 87 DC 07 [15:01: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 C5 64 47 00 E1 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 AB 21 02 00 F4 03 04 00 5F 47 23 67 B6 04 01 00 00 BB 1E 49 A3 CC 65 BF 44 [15:01:07]CommunicateWithHost err = 0 [15:01:07]CheckOFDResponse [15:01:07]1017 (14) - 77093643461234 [15:01:07]1041 (16) - 0000000000874669 [15:01:07]1040 (4) - 139691 [15:01:07]1012 (4) - 31.10.2024 09:01 [15:01:07]1206 (1) - 0 [15:01:07]OFD Sender: Remove packet 139691 [15:01:07]ProducePacketName [15:01:07]name=ofd_packets/00139691 [15:01:07]NVStorageDeleteData [15:01:07]Write to MH i2c: 01 00 00 E4 0C F0 [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 07 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 EA 0C ED [15:01:07]RasterBufferAndPrint [15:01:07]line [15:01:07]line [15:01:07]line [15:01:07]line [15:01:07]line [15:01:07]written 0, free lines is 3312 [15:01:07]MH_Cut [15:01:07]Write to MH i2c: D1 01 00 EB 0C 01 C9 [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: D1 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: D1 01 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: D1 01 00 EB 0C 00 C8 [15:01:07]Write to MH i2c: 01 00 00 EC 0C F8 [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]OFD Sender: No OFD packet to send [15:01:08]*** Cut start [15:01:08]*** Partial cut [15:01:08]*** CUTSNS_PIN = 1 [15:01:08]*** CUTSNS_PIN = 0 [15:01:08]*** Brake cut motor [15:01:08]Read from MH i2c: 01 [15:01:08]MH_I2C_Read... [15:01:08]*** Stop cut motor [15:01:08]*** Cut end [15:01:08]Read from MH i2c: 01 07 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 FF 0F 0D [15:01:08]process_action close_receipt done [15:01:08]requested_data is exist [15:01:08]produce_requested_data [15:01:08]requested_item fm.sn is exist - process it [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 11 00 00 [15:01:08]Write to MH i2c: E2 08 00 ED 0C 80 11 00 00 00 00 00 00 73 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 17 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 17 00 ED 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [15:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:01:08]wFMCommunicate OK [15:01:08]requested_item fd.num is exist - process it [15:01:08]SAM_PROTO_GetFieldsCounters [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 13 00 00 [15:01:08]Write to MH i2c: E2 08 00 EE 0C 80 13 00 00 00 00 00 00 76 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:09]Read from MH i2c: E2 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 62 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 62 00 EE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 8F [15:01: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 AB 21 02 00 0E 04 04 00 2D 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:01:09]wFMCommunicate OK [15:01:09]SAM_PROTO_GetFieldsCounters done [15:01:09]requested_item shift.num is exist - process it [15:01:09]requested_item shift.opened is exist - process it [15:01:09]req_shift_opened [15:01:09]FM_GetShiftState [15:01:09]SAM_PROTO_GetShiftState [15:01:09]wFMCommunicate request_size=4 [15:01:09]MH_SAM_APDU [15:01:09]CAPDU: 80 13 01 00 [15:01:09]Write to MH i2c: E2 08 00 EF 0C 80 13 01 00 00 00 00 00 78 [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:09]Read from MH i2c: E2 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 0E 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 0E 00 EF 0C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [15:01:52]Write to MH i2c: E2 12 00 F5 0C 80 15 02 00 0A 00 FC 03 06 00 5C 5D 00 00 00 00 00 00 53 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=47 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 [15:01:52]Write to MH i2c: E2 32 00 F6 0C 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 00 00 9F [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=15 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 15 02 00 0A 07 04 06 00 5C 5D 00 00 00 00 [15:01:52]Write to MH i2c: E2 12 00 F7 0C 80 15 02 00 0A 00 07 04 06 00 5C 5D 00 00 00 00 00 00 61 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=15 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [15:01:52]Write to MH i2c: E2 12 00 F8 0C 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 DB [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:53]OFD Sender: No OFD packet to send [15:01:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=11 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [15:01:53]Write to MH i2c: E2 0E 00 F9 0C 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 B7 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=13 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 15 02 00 08 F4 03 04 00 E1 9B 23 67 [15:01:53]Write to MH i2c: E2 10 00 FA 0C 80 15 02 00 08 00 F4 03 04 00 E1 9B 23 67 00 00 97 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=25 [15:01:53]MH_SAM_APDU [15:01:53]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 [15:01:53]Write to MH i2c: E2 1C 00 FB 0C 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 E4 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 15 03 00 [15:01:53]Write to MH i2c: E2 08 00 FC 0C 80 15 03 00 00 00 00 00 89 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 40 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 40 00 FC 0C 00 3B 00 B9 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 AC 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A9 00 00 00 35 04 06 00 95 30 16 7A B0 15 90 00 48 [15:01:53]RAPDU: 3B 00 B9 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 AC 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A9 00 00 00 35 04 06 00 95 30 16 7A B0 15 90 00 [15:01:53]wFMCommunicate OK [15:01:53]SAM_PROTO_ProcessDocument answer len = 59 [15:01:53]SAM_PROTO_ProcessDocument done [15:01:53]SetTLVBufToDocument [15:01:53]Processing tag 1209 (04B9) [15:01:53]Malloc new data [15:01:53]Processing tag 1041 (0411) [15:01:53]Processing tag 1040 (0410) [15:01:53]Malloc new data [15:01:53]Processing tag 1038 (040E) [15:01:53]Malloc new data [15:01:53]Processing tag 1042 (0412) [15:01:53]Malloc new data [15:01:53]Processing tag 1077 (0435) [15:01:53]Malloc new data [15:01:53]SetTLVBufToDocument err=0 [15:01:53]KKMLoadAndSignReceiptData store KKM data [15:01:53]KKMLoadAndSignReceiptData err=0 [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 11 00 00 [15:01:53]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [15:01: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:01:53]wFMCommunicate OK [15:01:53]Счет N : (3)335541 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.11 НДС 12% : 25.38 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 169 31.10.2024 15:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139692 ФПД: 164033768108053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T150153&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139692&fm=164033768108053&tin=02508201610067®Number=0000000000091631&sum=23900 0 [15:01:53]StoreToDocumentArchive [15:01:53]shift 557 fd 139692 [15:01:53]save to /storage/0557/doc_00139692 [15:01:53]save last doc name /storage/0557/doc_00139692 to /storage/kkm_last_doc_name [15:01:53]save OK [15:01:53]Clear old archive folders... [15:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=402 [15:01:53]tlvbuf is 00AA0320 [15:01:53]SAM_PROTO_ClearQueue [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 09 00 00 [15:01:53]Write to MH i2c: E2 08 00 FE 0C 80 09 00 00 00 00 00 00 7C [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]SAM_PROTO_ClearQueue done [15:01:53]KKMCreateOFDPacket [15:01:53]OFDProtocolAddRootSTLVToBuf [15:01:53]FM_MakeSignedData [15:01:53]FM_MakeSignedData [15:01:53]SAM_PROTO_SignData [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 0D 01 02 [15:01:53]Write to MH i2c: E2 08 00 FF 0C 80 0D 01 02 00 00 00 00 84 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=255 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 0D 02 02 FA 03 00 92 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 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 5D 00 00 00 [15:01:53]Write to MH i2c: E2 02 01 00 0D 80 0D 02 02 FA 00 03 00 92 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 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 5D 00 00 00 00 00 06 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=161 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 95 30 16 7A B0 15 [15:01:53]Write to MH i2c: E2 A4 00 01 0D 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 95 30 16 7A B0 15 00 00 46 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:54]Read from MH i2c: E2 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 03 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [15:01:54]RAPDU: 90 00 [15:01:54]wFMCommunicate OK [15:01:54]wFMCommunicate request_size=4 [15:01:54]MH_SAM_APDU [15:01:54]CAPDU: 80 0D 03 02 [15:01:54]Write to MH i2c: E2 08 00 02 0D 80 0D 03 02 00 00 00 00 8A [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:54]Read from MH i2c: E2 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 0B 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 0B 00 02 0D 00 6E B3 AB 83 E6 E4 6F 96 90 00 A9 [15:01:54]RAPDU: 6E B3 AB 83 E6 E4 6F 96 90 00 [15:01:54]wFMCommunicate OK [15:01:54]SAM_PROTO_SignData done [15:01:54]FM_MakeSignedData done [15:01:54]CreateOFDProtocolMessage [15:01:54]wFMCommunicate request_size=4 [15:01:54]MH_SAM_APDU [15:01:54]CAPDU: 80 11 00 00 [15:01:54]Write to MH i2c: E2 08 00 03 0D 80 11 00 00 00 00 00 00 8A [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:54]Read from MH i2c: E2 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 17 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 17 00 03 0D 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:01: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:01:54]wFMCommunicate OK [15:01:54]CreateOFDProtocolMessage done [15:01:54]OFDSenderStorePacket 139692 [15:01:54]StoreOFDPacket docnum=139692 [15:01: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 A6 01 00 00 22 F8 9E 01 FA 1C 5A 03 01 00 03 00 92 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 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 95 30 16 7A B0 15 6E B3 AB 83 E6 E4 6F 96 [15:01:54]CheckFolder [15:01:54]dirname=/storage/ofd_packets [15:01:54]CheckFolder done [15:01:54]ProducePacketName [15:01:54]name=ofd_packets/00139692 [15:01:54]NVStorageSaveData ofd_packets/00139692 [15:01:54]File name is /storage/ofd_packets/00139692 [15:01:54]Write 452 bytes [15:01:54]NVStorageSaveData done [15:01:54]OFDSenderStorePacket done [15:01:54]KKMCreateOFDPacket done [15:01:54]NVStorageSaveData kkm_last_timestamp [15:01:54]File name is /storage/kkm_last_timestamp [15:01:54]Write 4 bytes [15:01:54]NVStorageSaveData done [15:01:54]ExternCall_PrintAddStr [15:01:54]wPrintStart [15:01:54]Write to MH i2c: 01 00 00 04 0D 11 [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: 01 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: 01 07 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: 01 07 00 04 0D 00 00 00 00 00 FF 0F 26 [15:01:54]RasterBufferAndPrint [15:01:54]line Счет N : (3)335541 [15:01:54]line ИНН: 02508201610067 [15:01:54]line Контрольно-Кассовый Чек [15:01:54]line ПРОДАЖА [15:01:54]line Товар: 48743570 [15:01:54]line Сигареты Winston XStyle Blue [15:01:54]line 1.000 * 144.00 [15:01:54]line = 144.00 [15:01:54]line НДС 12% НСП 1% [15:01:54]line > о реализуемом товаре [15:01:54]line Товар: 4700000480364 [15:01:54]line Напиток энерг Nitro экзотик 0.45 ж/б [15:01:54]line 1.000 * 95.00 [15:01:54]line = 95.00 [15:01:54]line НДС 12% НСП 1% [15:01:54]line > о реализуемом товаре [15:01:54]line ИТОГО: 239.00 [15:01:54]line НСП 1% : 2.11 [15:01:54]line НДС 12% : 25.38 [15:01:54]line Наличными: 239.00 [15:01:54]line Безнал.: 0.00 [15:01:54]line Место: АЗС № 101 "Партнер Нефть" [15:01:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:01:54]line СНО: Общий режим [15:01:54]line Чек 169 31.10.2024 15:01 [15:01:54]line Смена: 557 ФФД: 1.0 [15:01:54]line ЗНМ: 0300000081 [15:01:54]line РНМ: 0000000000091631 [15:01:54]line Версия ККМ: 001 [15:01:54]line ФМ: 0000000000874669 [15:01:54]line ФД: 139692 [15:01:54]line ФПД: 164033768108053 [15:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T150153&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139692&fm=164033768108053&tin=02508201610067®Number=0000000000091631&sum=23900 [15:01:54]line 0 [15:01:54]OFD Sender: Processing packet 139692 [packets to send 34, broken 33] [15:01:54]ProducePacketName [15:01:54]name=ofd_packets/00139692 [15:01:54]OFD Sender: To server: pG, [15:01:54]CommunicateWithHost lk.salyk.kg:30040 [15:01:54]ConnectInit lk.salyk.kg [15:01:54]written 0, free lines is 4095 [15:01:54]Connected sock=11 [15:01: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 A6 01 00 00 22 F8 9E 01 FA 1C 5A 03 01 00 03 00 92 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 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E1 9B 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 95 30 16 7A B0 15 6E B3 AB 83 E6 E4 6F 96 [15:01: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 C9 CB 47 00 F7 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 AC 21 02 00 F4 03 04 00 8F 47 23 67 B6 04 01 00 00 69 4E 26 C1 9B 43 0E E4 [15:01:54]CommunicateWithHost err = 0 [15:01:54]CheckOFDResponse [15:01:54]1017 (14) - 77093643461234 [15:01:54]1041 (16) - 0000000000874669 [15:01:54]1040 (4) - 139692 [15:01:54]1012 (4) - 31.10.2024 09:02 [15:01:54]1206 (1) - 0 [15:01:54]OFD Sender: Remove packet 139692 [15:01:54]ProducePacketName [15:01:54]name=ofd_packets/00139692 [15:01:54]NVStorageDeleteData [15:01:55]Write to MH i2c: 01 00 00 33 0D 40 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 B0 0C 03 [15:01:55]RasterBufferAndPrint [15:01:55]line [15:01:55]line [15:01:55]line [15:01:55]line [15:01:55]line [15:01:55]written 0, free lines is 3257 [15:01:55]MH_Cut [15:01:55]Write to MH i2c: D1 01 00 3A 0D 01 19 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: D1 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: D1 01 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: D1 01 00 3A 0D 00 18 [15:01:55]Write to MH i2c: 01 00 00 3B 0D 48 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]OFD Sender: No OFD packet to send [15:01:55]*** Cut start [15:01:55]*** Partial cut [15:01:55]*** CUTSNS_PIN = 1 [15:01:55]*** CUTSNS_PIN = 0 [15:01:55]*** Brake cut motor [15:01:56]Read from MH i2c: 01 [15:01:56]MH_I2C_Read... [15:01:56]*** Stop cut motor [15:01:56]*** Cut end [15:01:56]Read from MH i2c: 01 07 00 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: 01 07 00 3B 0D 00 00 00 00 00 FF 0F 5D [15:01:56]process_action close_receipt done [15:01:56]requested_data is exist [15:01:56]produce_requested_data [15:01:56]requested_item fm.sn is exist - process it [15:01:56]wFMCommunicate request_size=4 [15:01:56]MH_SAM_APDU [15:01:56]CAPDU: 80 11 00 00 [15:01:56]Write to MH i2c: E2 08 00 3C 0D 80 11 00 00 00 00 00 00 C3 [15:01:56]Write i2c OK [15:01:56]MH_I2C_Read... [15:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:56]Read from MH i2c: E2 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: E2 17 00 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: E2 17 00 3C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1E [15:01: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:01:56]wFMCommunicate OK [15:01:56]requested_item fd.num is exist - process it [15:01:56]SAM_PROTO_GetFieldsCounters [15:01:56]wFMCommunicate request_size=4 [15:01:56]MH_SAM_APDU [15:01:56]CAPDU: 80 13 00 00 [15:01:56]Write to MH i2c: E2 08 00 3D 0D 80 13 00 00 00 00 00 00 C6 [15:01:56]Write i2c OK [15:01:56]MH_I2C_Read... [15:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:56]Read from MH i2c: E2 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: E2 62 00 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: E2 62 00 3D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 E3 [15:01: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 AC 21 02 00 0E 04 04 00 2D 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:01:56]wFMCommunicate OK [15:01:56]SAM_PROTO_GetFieldsCounters done [15:01:56]requested_item shift.num is exist - process it [15:01:56]requested_item shift.opened is exist - process it [15:01:56]req_shift_opened [15:01:56]FM_GetShiftState [15:01:56]SAM_PROTO_GetShiftState [15:01:56]wFMCommunicate request_size=4 [15:01:56]MH_SAM_APDU [15:01:56]CAPDU: 80 13 01 00 [15:01:56]Write to MH i2c: E2 08 00 3E 0D 80 13 01 00 00 00 00 00 C8 [15:01:56]Write i2c OK [15:01:56]MH_I2C_Read... [15:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:56]Read from MH i2c: E2 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: E2 0E 00 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: E2 0E 00 3E 0D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F1 [15:01:56]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:01:56]wFMCommunicate OK [15:01:56]SAM_PROTO_GetShiftState done [15:01:56]FM_GetShiftState done [15:01:56]req_shift_opened done [15:01:56]requested_item shift.open_date is exist - process it [15:01:56]req_shift_open_date [15:01:56]req_shift_open_date done [15:01:56]produce_requested_data done [15:01:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139692,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:01:56]process_action_free close_receipt [15:01:56]json_value_free [15:01:56]json_value_free done [15:01:56]process_json_proto returns [15:01:56]Send response to host [15:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139692,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:01:56]free response buf [15:01:56]execute_script done [15:01:56]execute_script returns [15:01:56]free content buf [15:01:56]Sock 10.Close socket [15:01:56]Sock 10.Thread stoped [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:01]ConnectInit Can't connect to host [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:09]accept exits with 9 [15:15:09]New connection [15:15:09]New thread 3066510692 created [15:15:09]Thread 3066654052 joined [15:15:09]Waiting for new connection... [15:15:09] Sock 9.Parse request [15:15:09]Sock 9.Check first char [15:15:09]Sock 9.First char is OK [15:15:09]request: POST /json_proto HTTP/1.0 [15:15:09]Method: POST [15:15:09]URL: /json_proto [15:15:09]Method is POST - this is cgi request [15:15:09]url: /json_proto [15:15:09]query_string will be loaded in cgi processing [15:15:09]execute_cgi json_proto POST (null) [15:15:09]execute_cgi path=json_proto method=POST [15:15:09]POST find Content-Length [15:15:09]Host: 172.17.50.196:8080 [15:15:09]Content-Length: 613 [15:15:09]Content-Type: application/json [15:15:09] [15:15:09]POST finish read [15:15:09]Found Content-Length = 613 [15:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335542", "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" ] } } [15:15:09]execute_script... [15:15:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335542", "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" ] } } [15:15:09]POST & json_proto [15:15:09]process_json_proto [15:15:09]json parsed OK: [15:15:09]protocol is kg_v1.0 [15:15:09]action value=close_receipt [15:15:09]process_action close_receipt [15:15:09]cmd_close_receipt [15:15:09]MH_GetDate [15:15:09]Write to MH i2c: F0 00 00 3F 0D 3B [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: F0 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: F0 09 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: F0 09 00 3F 0D 00 FF 9E 23 67 72 0D 1C 67 6D [15:15:09]GetLastDocTimeStamp 1730386913 [15:15:09]current date 1730387711 [15:15:09]FM_GetShiftState [15:15:09]SAM_PROTO_GetShiftState [15:15:09]wFMCommunicate request_size=4 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 13 01 00 [15:15:09]Write to MH i2c: E2 08 00 40 0D 80 13 01 00 00 00 00 00 CA [15:15:10]Write i2c OK [15:15:10]MH_I2C_Read... [15:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:10]Read from MH i2c: E2 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 0E 00 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 0E 00 40 0D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F3 [15:15:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:15:10]wFMCommunicate OK [15:15:10]SAM_PROTO_GetShiftState done [15:15:10]FM_GetShiftState done [15:15:10]opened in 1730332621 [15:15:10]opened+sec_in_day 1730419021 [15:15:10]quantity*price = 15900 [15:15:10]sum+1 = 15901 [15:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 170 31.10.2024 15:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139693 ФПД: 229615798397694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139693&fm=229615798397694&tin=02508201610067®Number=0000000000091631&sum=15900 0 [15:15:11]StoreToDocumentArchive [15:15:11]shift 557 fd 139693 [15:15:11]save to /storage/0557/doc_00139693 [15:15:11]save last doc name /storage/0557/doc_00139693 to /storage/kkm_last_doc_name [15:15:11]save OK [15:15:11]Clear old archive folders... [15:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=265 [15:15:11]tlvbuf is 00A28F80 [15:15:11]SAM_PROTO_ClearQueue [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 09 00 00 [15:15:11]Write to MH i2c: E2 08 00 4D 0D 80 09 00 00 00 00 00 00 CC [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_ClearQueue done [15:15:11]KKMCreateOFDPacket [15:15:11]OFDProtocolAddRootSTLVToBuf [15:15:11]FM_MakeSignedData [15:15:11]FM_MakeSignedData [15:15:11]SAM_PROTO_SignData [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 0D 01 02 [15:15:11]Write to MH i2c: E2 08 00 4E 0D 80 0D 01 02 00 00 00 00 D4 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]wFMCommunicate request_size=255 [15:15:11]MH_SAM_APDU [15:15:11]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 AA 00 00 00 F4 03 04 00 FF 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [15:15:11]Write to MH i2c: E2 02 01 4F 0D 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 AA 00 00 00 F4 03 04 00 FF 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 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 00 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]wFMCommunicate request_size=24 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 0D 02 02 13 39 10 04 04 00 AD 21 02 00 35 04 06 00 D0 D5 98 19 2A FE [15:15:11]Write to MH i2c: E2 1B 00 50 0D 80 0D 02 02 13 00 39 10 04 04 00 AD 21 02 00 35 04 06 00 D0 D5 98 19 2A FE 00 00 DB [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 0D 03 02 [15:15:11]Write to MH i2c: E2 08 00 51 0D 80 0D 03 02 00 00 00 00 D9 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0B 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0B 00 51 0D 00 72 87 3A D8 8B C8 B6 F6 90 00 E4 [15:15:11]RAPDU: 72 87 3A D8 8B C8 B6 F6 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_SignData done [15:15:11]FM_MakeSignedData done [15:15:11]CreateOFDProtocolMessage [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 11 00 00 [15:15:11]Write to MH i2c: E2 08 00 52 0D 80 11 00 00 00 00 00 00 D9 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 17 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 17 00 52 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 34 [15:15:11]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:11]wFMCommunicate OK [15:15:11]CreateOFDProtocolMessage done [15:15:11]OFDSenderStorePacket 139693 [15:15:11]StoreOFDPacket docnum=139693 [15:15: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 1D 01 00 00 F4 CF 15 01 F6 CF 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 AA 00 00 00 F4 03 04 00 FF 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D0 D5 98 19 2A FE 72 87 3A D8 8B C8 B6 F6 [15:15:11]CheckFolder [15:15:11]dirname=/storage/ofd_packets [15:15:11]CheckFolder done [15:15:11]ProducePacketName [15:15:11]name=ofd_packets/00139693 [15:15:11]NVStorageSaveData ofd_packets/00139693 [15:15:11]File name is /storage/ofd_packets/00139693 [15:15:11]Write 315 bytes [15:15:11]NVStorageSaveData done [15:15:11]OFDSenderStorePacket done [15:15:11]KKMCreateOFDPacket done [15:15:11]NVStorageSaveData kkm_last_timestamp [15:15:11]File name is /storage/kkm_last_timestamp [15:15:11]Write 4 bytes [15:15:11]NVStorageSaveData done [15:15:11]ExternCall_PrintAddStr [15:15:11]wPrintStart [15:15:11]Write to MH i2c: 01 00 00 53 0D 60 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: 01 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: 01 07 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: 01 07 00 53 0D 00 00 00 00 00 FF 0F 75 [15:15:11]RasterBufferAndPrint [15:15:11]line Счет N : (3)335542 [15:15:11]line ИНН: 02508201610067 [15:15:11]line Контрольно-Кассовый Чек [15:15:11]line ПРОДАЖА [15:15:11]line Товар: 47803152 [15:15:11]line Сигареты Mevius Revo [15:15:11]line 1.000 * 159.00 [15:15:11]line = 159.00 [15:15:11]line НДС 12% НСП 1% [15:15:11]line > о реализуемом товаре [15:15:11]line ИТОГО: 159.00 [15:15:11]line НСП 1% : 1.41 [15:15:11]line НДС 12% : 16.88 [15:15:11]line Наличными: 159.00 [15:15:11]line Безнал.: 0.00 [15:15:11]line Место: АЗС № 101 "Партнер Нефть" [15:15:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:15:11]line СНО: Общий режим [15:15:11]line Чек 170 31.10.2024 15:15 [15:15:11]line Смена: 557 ФФД: 1.0 [15:15:11]line ЗНМ: 0300000081 [15:15:11]line РНМ: 0000000000091631 [15:15:11]line Версия ККМ: 001 [15:15:11]line ФМ: 0000000000874669 [15:15:11]line ФД: 139693 [15:15:11]line ФПД: 229615798397694 [15:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139693&fm=229615798397694&tin=02508201610067®Number=0000000000091631&sum=15900 [15:15:11]line 0 [15:15:11]written 0, free lines is 4095 [15:15:11]OFD Sender: Processing packet 139693 [packets to send 34, broken 33] [15:15:11]ProducePacketName [15:15:11]name=ofd_packets/00139693 [15:15:11]OFD Sender: To server: pG, [15:15:11]CommunicateWithHost lk.salyk.kg:30040 [15:15:11]ConnectInit lk.salyk.kg [15:15:12]Connected sock=11 [15:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 F4 CF 15 01 F6 CF 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 AA 00 00 00 F4 03 04 00 FF 9E 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D0 D5 98 19 2A FE 72 87 3A D8 8B C8 B6 F6 [15:15:12]Write to MH i2c: 01 00 00 7B 0D 88 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 07 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 19 0D B5 [15:15:12]RasterBufferAndPrint [15:15:12]line [15:15:12]line [15:15:12]line [15:15:12]line [15:15:12]line [15:15:12]written 0, free lines is 3357 [15:15:12]MH_Cut [15:15:12]Write to MH i2c: D1 01 00 82 0D 01 61 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: D1 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: D1 01 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: D1 01 00 82 0D 00 60 [15:15:12]Write to MH i2c: 01 00 00 83 0D 90 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E6 99 47 00 5B 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 AD 21 02 00 F4 03 04 00 AC 4A 23 67 B6 04 01 00 00 B7 98 56 5B 43 F2 5D 23 [15:15:12]CommunicateWithHost err = 0 [15:15:12]CheckOFDResponse [15:15:12]1017 (14) - 77093643461234 [15:15:12]1041 (16) - 0000000000874669 [15:15:12]1040 (4) - 139693 [15:15:12]1012 (4) - 31.10.2024 09:15 [15:15:12]1206 (1) - 0 [15:15:12]OFD Sender: Remove packet 139693 [15:15:12]ProducePacketName [15:15:12]name=ofd_packets/00139693 [15:15:12]NVStorageDeleteData [15:15:12]*** Cut start [15:15:12]*** Partial cut [15:15:12]*** CUTSNS_PIN = 1 [15:15:12]OFD Sender: No OFD packet to send [15:15:12]*** CUTSNS_PIN = 0 [15:15:12]*** Brake cut motor [15:15:13]Read from MH i2c: 01 [15:15:13]MH_I2C_Read... [15:15:13]*** Stop cut motor [15:15:13]*** Cut end [15:15:13]Read from MH i2c: 01 07 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 83 0D 00 00 00 00 00 FF 0F A5 [15:15:13]process_action close_receipt done [15:15:13]requested_data is exist [15:15:13]produce_requested_data [15:15:13]requested_item fm.sn is exist - process it [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 11 00 00 [15:15:13]Write to MH i2c: E2 08 00 84 0D 80 11 00 00 00 00 00 00 0B [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 84 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [15:15:13]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:13]wFMCommunicate OK [15:15:13]requested_item fd.num is exist - process it [15:15:13]SAM_PROTO_GetFieldsCounters [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 13 00 00 [15:15:13]Write to MH i2c: E2 08 00 85 0D 80 13 00 00 00 00 00 00 0E [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 62 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 62 00 85 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 2F [15:15: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 AD 21 02 00 0E 04 04 00 2D 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:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_GetFieldsCounters done [15:15:13]requested_item shift.num is exist - process it [15:15:13]requested_item shift.opened is exist - process it [15:15:13]req_shift_opened [15:15:13]FM_GetShiftState [15:15:13]SAM_PROTO_GetShiftState [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 13 01 00 [15:15:13]Write to MH i2c: E2 08 00 86 0D 80 13 01 00 00 00 00 00 10 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0E 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0E 00 86 0D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 39 [15:15:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_GetShiftState done [15:15:13]FM_GetShiftState done [15:15:13]req_shift_opened done [15:15:13]requested_item shift.open_date is exist - process it [15:15:13]req_shift_open_date [15:15:13]req_shift_open_date done [15:15:13]produce_requested_data done [15:15:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139693,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:15:13]process_action_free close_receipt [15:15:13]json_value_free [15:15:13]json_value_free done [15:15:13]process_json_proto returns [15:15:13]Send response to host [15:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139693,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:15:13]free response buf [15:15:13]execute_script done [15:15:13]execute_script returns [15:15:13]free content buf [15:15:13]Sock 9.Close socket [15:15:13]Sock 9.Thread stoped [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:53]accept exits with 7 [15:15:53]New connection [15:15:53]New thread 3066654052 created [15:15:53]Thread 3066510692 joined [15:15:53]Waiting for new connection... [15:15:53] Sock 7.Parse request [15:15:53]Sock 7.Check first char [15:15:53]Sock 7.First char is OK [15:15:53]request: POST /json_proto HTTP/1.0 [15:15:53]Method: POST [15:15:53]URL: /json_proto [15:15:53]Method is POST - this is cgi request [15:15:53]url: /json_proto [15:15:53]query_string will be loaded in cgi processing [15:15:53]execute_cgi json_proto POST (null) [15:15:53]execute_cgi path=json_proto method=POST [15:15:53]POST find Content-Length [15:15:53]Host: 172.17.50.196:8080 [15:15:53]Content-Length: 749 [15:15:53]Content-Type: application/json [15:15:53] [15:15:53]POST finish read [15:15:53]Found Content-Length = 749 [15:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335543", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:53]execute_script... [15:15:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335543", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:53]POST & json_proto [15:15:53]process_json_proto [15:15:53]json parsed OK: [15:15:53]protocol is kg_v1.0 [15:15:53]action value=close_receipt [15:15:53]process_action close_receipt [15:15:53]cmd_close_receipt [15:15:53]MH_GetDate [15:15:53]Write to MH i2c: F0 00 00 87 0D 83 [15:15:53]Write i2c OK [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: F0 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: F0 09 00 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: F0 09 00 87 0D 00 2A 9F 23 67 72 0D 1C 67 E1 [15:15:53]GetLastDocTimeStamp 1730387711 [15:15:53]current date 1730387754 [15:15:53]FM_GetShiftState [15:15:53]SAM_PROTO_GetShiftState [15:15:53]wFMCommunicate request_size=4 [15:15:53]MH_SAM_APDU [15:15:53]CAPDU: 80 13 01 00 [15:15:53]Write to MH i2c: E2 08 00 88 0D 80 13 01 00 00 00 00 00 12 [15:15:53]Write i2c OK [15:15:53]MH_I2C_Read... [15:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:53]Read from MH i2c: E2 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: E2 0E 00 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: E2 0E 00 88 0D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3B [15:15:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:15:53]wFMCommunicate OK [15:15:53]SAM_PROTO_GetShiftState done [15:15:53]FM_GetShiftState done [15:15:53]opened in 1730332621 [15:15:53]opened+sec_in_day 1730419021 [15:15:53]quantity*price = 15900 [15:15:53]sum+1 = 15901 [15:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 171 31.10.2024 15:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139694 ФПД: 232900169559134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151554&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139694&fm=232900169559134&tin=02508201610067®Number=0000000000091631&sum=15900 0 [15:15:54]StoreToDocumentArchive [15:15:54]shift 557 fd 139694 [15:15:54]save to /storage/0557/doc_00139694 [15:15:54]save last doc name /storage/0557/doc_00139694 to /storage/kkm_last_doc_name [15:15:54]save OK [15:15:54]Clear old archive folders... [15:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:15:54]tlvbuf is 00A28BA0 [15:15:54]SAM_PROTO_ClearQueue [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 09 00 00 [15:15:54]Write to MH i2c: E2 08 00 95 0D 80 09 00 00 00 00 00 00 14 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [15:15:54]RAPDU: 90 00 [15:15:54]wFMCommunicate OK [15:15:54]SAM_PROTO_ClearQueue done [15:15:54]KKMCreateOFDPacket [15:15:54]OFDProtocolAddRootSTLVToBuf [15:15:54]FM_MakeSignedData [15:15:54]FM_MakeSignedData [15:15:54]SAM_PROTO_SignData [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 0D 01 02 [15:15:54]Write to MH i2c: E2 08 00 96 0D 80 0D 01 02 00 00 00 00 1C [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [15:15:54]RAPDU: 90 00 [15:15:54]wFMCommunicate OK [15:15:54]wFMCommunicate request_size=255 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2A 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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:15:54]Write to MH i2c: E2 02 01 97 0D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2A 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 68 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [15:15:54]RAPDU: 90 00 [15:15:54]wFMCommunicate OK [15:15:54]wFMCommunicate request_size=33 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 21 02 00 35 04 06 00 D3 D2 4B DF EC 5E [15:15:54]Write to MH i2c: E2 24 00 98 0D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 21 02 00 35 04 06 00 D3 D2 4B DF EC 5E 00 00 A0 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 98 0D 00 90 00 19 [15:15:54]RAPDU: 90 00 [15:15:54]wFMCommunicate OK [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 0D 03 02 [15:15:54]Write to MH i2c: E2 08 00 99 0D 80 0D 03 02 00 00 00 00 21 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 0B 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 0B 00 99 0D 00 B2 3D B4 E3 C7 DB FB 6E 90 00 B3 [15:15:54]RAPDU: B2 3D B4 E3 C7 DB FB 6E 90 00 [15:15:54]wFMCommunicate OK [15:15:54]SAM_PROTO_SignData done [15:15:54]FM_MakeSignedData done [15:15:54]CreateOFDProtocolMessage [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 11 00 00 [15:15:54]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 17 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7C [15:15: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:15:54]wFMCommunicate OK [15:15:54]CreateOFDProtocolMessage done [15:15:54]OFDSenderStorePacket 139694 [15:15:54]StoreOFDPacket docnum=139694 [15:15: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 1C 31 1E 01 F0 94 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2A 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D3 D2 4B DF EC 5E B2 3D B4 E3 C7 DB FB 6E [15:15:54]CheckFolder [15:15:54]dirname=/storage/ofd_packets [15:15:54]CheckFolder done [15:15:54]ProducePacketName [15:15:54]name=ofd_packets/00139694 [15:15:54]NVStorageSaveData ofd_packets/00139694 [15:15:54]File name is /storage/ofd_packets/00139694 [15:15:54]Write 324 bytes [15:15:54]NVStorageSaveData done [15:15:54]OFDSenderStorePacket done [15:15:54]KKMCreateOFDPacket done [15:15:54]NVStorageSaveData kkm_last_timestamp [15:15:54]File name is /storage/kkm_last_timestamp [15:15:54]Write 4 bytes [15:15:54]NVStorageSaveData done [15:15:54]ExternCall_PrintAddStr [15:15:54]wPrintStart [15:15:54]Write to MH i2c: 01 00 00 9B 0D A8 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: 01 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: 01 07 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: 01 07 00 9B 0D 00 00 00 00 00 FF 0F BD [15:15:54]RasterBufferAndPrint [15:15:54]line Счет N : (3)335543 [15:15:54]line ИНН: 02508201610067 [15:15:54]line Контрольно-Кассовый Чек [15:15:54]line ПРОДАЖА [15:15:54]line Товар: 4640030091645 [15:15:54]line Сигареты ESSE Exchange M [15:15:54]line 1.000 * 159.00 [15:15:54]line = 159.00 [15:15:54]line НДС 12% НСП 1% [15:15:54]line > о реализуемом товаре [15:15:54]line ИТОГО: 159.00 [15:15:54]line НСП 1% : 1.41 [15:15:54]line НДС 12% : 16.88 [15:15:54]line Наличными: 0.00 [15:15:54]line Безнал.: 159.00 [15:15:54]line Место: АЗС № 101 "Партнер Нефть" [15:15:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:15:54]line СНО: Общий режим [15:15:54]line Чек 171 31.10.2024 15:15 [15:15:54]line Смена: 557 ФФД: 1.0 [15:15:54]line ЗНМ: 0300000081 [15:15:54]line РНМ: 0000000000091631 [15:15:54]line Версия ККМ: 001 [15:15:54]line Платежная система: Mbank [15:15:54]line ФМ: 0000000000874669 [15:15:54]line ФД: 139694 [15:15:54]line ФПД: 232900169559134 [15:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151554&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139694&fm=232900169559134&tin=02508201610067®Number=0000000000091631&sum=15900 [15:15:55]line 0 [15:15:55]OFD Sender: Processing packet 139694 [packets to send 34, broken 33] [15:15:55]ProducePacketName [15:15:55]name=ofd_packets/00139694 [15:15:55]OFD Sender: To server: pG, [15:15:55]CommunicateWithHost lk.salyk.kg:30040 [15:15:55]ConnectInit lk.salyk.kg [15:15:55]written 0, free lines is 4095 [15:15:55]Connected sock=10 [15:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 1C 31 1E 01 F0 94 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 2A 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D3 D2 4B DF EC 5E B2 3D B4 E3 C7 DB FB 6E [15:15: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 81 AB 47 00 63 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 21 02 00 F4 03 04 00 D7 4A 23 67 B6 04 01 00 00 31 D4 89 AD E2 B4 3F B1 [15:15:55]CommunicateWithHost err = 0 [15:15:55]CheckOFDResponse [15:15:55]1017 (14) - 77093643461234 [15:15:55]1041 (16) - 0000000000874669 [15:15:55]1040 (4) - 139694 [15:15:55]1012 (4) - 31.10.2024 09:16 [15:15:55]1206 (1) - 0 [15:15:55]OFD Sender: Remove packet 139694 [15:15:55]ProducePacketName [15:15:55]name=ofd_packets/00139694 [15:15:55]NVStorageDeleteData [15:15:55]Write to MH i2c: 01 00 00 C4 0D D1 [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: 01 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: 01 07 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 09 0D EE [15:15:55]RasterBufferAndPrint [15:15:55]line [15:15:55]line [15:15:55]line [15:15:55]line [15:15:55]line [15:15:55]written 0, free lines is 3343 [15:15:55]MH_Cut [15:15:55]Write to MH i2c: D1 01 00 CB 0D 01 AA [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: D1 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: D1 01 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: D1 01 00 CB 0D 00 A9 [15:15:55]Write to MH i2c: 01 00 00 CC 0D D9 [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]OFD Sender: No OFD packet to send [15:15:56]*** Cut start [15:15:56]*** Partial cut [15:15:56]*** CUTSNS_PIN = 1 [15:15:56]*** CUTSNS_PIN = 0 [15:15:56]*** Brake cut motor [15:15:56]Read from MH i2c: 01 [15:15:56]MH_I2C_Read... [15:15:56]*** Stop cut motor [15:15:56]Read from MH i2c: *** Cut end [15:15:56]01 07 00 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [15:15:56]process_action close_receipt done [15:15:56]requested_data is exist [15:15:56]produce_requested_data [15:15:56]requested_item fm.sn is exist - process it [15:15:56]wFMCommunicate request_size=4 [15:15:56]MH_SAM_APDU [15:15:56]CAPDU: 80 11 00 00 [15:15:56]Write to MH i2c: E2 08 00 CD 0D 80 11 00 00 00 00 00 00 54 [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:56]Read from MH i2c: E2 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: E2 17 00 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: E2 17 00 CD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AF [15:15: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:15:56]wFMCommunicate OK [15:15:56]requested_item fd.num is exist - process it [15:15:56]SAM_PROTO_GetFieldsCounters [15:15:56]wFMCommunicate request_size=4 [15:15:56]MH_SAM_APDU [15:15:56]CAPDU: 80 13 00 00 [15:15:56]Write to MH i2c: E2 08 00 CE 0D 80 13 00 00 00 00 00 00 57 [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:56]Read from MH i2c: E2 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: E2 62 00 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: E2 62 00 CE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 7C [15:15:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:56]wFMCommunicate OK [15:15:56]SAM_PROTO_GetFieldsCounters done [15:15:56]requested_item shift.num is exist - process it [15:15:56]requested_item shift.opened is exist - process it [15:15:56]req_shift_opened [15:15:56]FM_GetShiftState [15:15:56]SAM_PROTO_GetShiftState [15:15:56]wFMCommunicate request_size=4 [15:15:56]MH_SAM_APDU [15:15:56]CAPDU: 80 13 01 00 [15:15:56]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:57]Read from MH i2c: E2 [15:15:57]MH_I2C_Read... [15:15:57]Read from MH i2c: E2 0E 00 [15:15:57]MH_I2C_Read... [15:15:57]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 82 [15:15:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:15:57]wFMCommunicate OK [15:15:57]SAM_PROTO_GetShiftState done [15:15:57]FM_GetShiftState done [15:15:57]req_shift_opened done [15:15:57]requested_item shift.open_date is exist - process it [15:15:57]req_shift_open_date [15:15:57]req_shift_open_date done [15:15:57]produce_requested_data done [15:15:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139694,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:15:57]process_action_free close_receipt [15:15:57]json_value_free [15:15:57]json_value_free done [15:15:57]process_json_proto returns [15:15:57]Send response to host [15:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139694,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:15:57]free response buf [15:15:57]execute_script done [15:15:57]execute_script returns [15:15:57]free content buf [15:15:57]Sock 7.Close socket [15:15:57]Sock 7.Thread stoped [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:16]accept exits with 9 [15:16:16]New connection [15:16:16]New thread 3066510692 created [15:16:16]Thread 3066654052 joined [15:16:16]Waiting for new connection... [15:16:16] Sock 9.Parse request [15:16:16]Sock 9.Check first char [15:16:16]Sock 9.First char is OK [15:16:16]request: POST /json_proto HTTP/1.0 [15:16:16]Method: POST [15:16:16]URL: /json_proto [15:16:16]Method is POST - this is cgi request [15:16:16]url: /json_proto [15:16:16]query_string will be loaded in cgi processing [15:16:16]execute_cgi json_proto POST (null) [15:16:16]execute_cgi path=json_proto method=POST [15:16:16]POST find Content-Length [15:16:16]Host: 172.17.50.196:8080 [15:16:16]Content-Length: 628 [15:16:16]Content-Type: application/json [15:16:16] [15:16:16]POST finish read [15:16:16]Found Content-Length = 628 [15:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335544", "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:16:16]execute_script... [15:16: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)335544", "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:16:16]POST & json_proto [15:16:16]process_json_proto [15:16:16]json parsed OK: [15:16:16]protocol is kg_v1.0 [15:16:16]action value=close_receipt [15:16:16]process_action close_receipt [15:16:16]cmd_close_receipt [15:16:16]MH_GetDate [15:16:16]Write to MH i2c: F0 00 00 D0 0D CC [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 D0 0D 00 41 9F 23 67 72 0D 1C 67 41 [15:16:16]GetLastDocTimeStamp 1730387754 [15:16:16]current date 1730387777 [15:16:16]FM_GetShiftState [15:16:16]SAM_PROTO_GetShiftState [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 13 01 00 [15:16:16]Write to MH i2c: E2 08 00 D1 0D 80 13 01 00 00 00 00 00 5B [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 D1 0D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 84 [15:16:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_GetShiftState done [15:16:16]FM_GetShiftState done [15:16:16]opened in 1730332621 [15:16:16]opened+sec_in_day 1730419021 [15:16:16]quantity*price = 13000 [15:16:16]sum+1 = 13001 [15:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 172 31.10.2024 15:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139695 ФПД: 48792796712107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151617&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139695&fm=48792796712107&tin=02508201610067®Number=0000000000091631&sum=13000 0 [15:16:17]StoreToDocumentArchive [15:16:17]shift 557 fd 139695 [15:16:17]save to /storage/0557/doc_00139695 [15:16:17]save last doc name /storage/0557/doc_00139695 to /storage/kkm_last_doc_name [15:16:17]save OK [15:16:17]Clear old archive folders... [15:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:16:17]tlvbuf is 009F8C40 [15:16:17]SAM_PROTO_ClearQueue [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 09 00 00 [15:16:17]Write to MH i2c: E2 08 00 DE 0D 80 09 00 00 00 00 00 00 5D [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]SAM_PROTO_ClearQueue done [15:16:17]KKMCreateOFDPacket [15:16:17]OFDProtocolAddRootSTLVToBuf [15:16:17]FM_MakeSignedData [15:16:17]FM_MakeSignedData [15:16:17]SAM_PROTO_SignData [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 0D 01 02 [15:16:17]Write to MH i2c: E2 08 00 DF 0D 80 0D 01 02 00 00 00 00 65 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]wFMCommunicate request_size=255 [15:16:17]MH_SAM_APDU [15:16:17]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 AC 00 00 00 F4 03 04 00 41 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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:16:17]Write to MH i2c: E2 02 01 E0 0D 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 AC 00 00 00 F4 03 04 00 41 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 C0 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]wFMCommunicate request_size=35 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 21 02 00 35 04 06 00 2C 60 75 50 CC AB [15:16:17]Write to MH i2c: E2 26 00 E1 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 21 02 00 35 04 06 00 2C 60 75 50 CC AB 00 00 FD [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 0D 03 02 [15:16:17]Write to MH i2c: E2 08 00 E2 0D 80 0D 03 02 00 00 00 00 6A [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 0B 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 0B 00 E2 0D 00 E4 A8 E0 7B B0 4F B1 1B 90 00 1D [15:16:17]RAPDU: E4 A8 E0 7B B0 4F B1 1B 90 00 [15:16:17]wFMCommunicate OK [15:16:17]SAM_PROTO_SignData done [15:16:17]FM_MakeSignedData done [15:16:17]CreateOFDProtocolMessage [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 11 00 00 [15:16:17]Write to MH i2c: E2 08 00 E3 0D 80 11 00 00 00 00 00 00 6A [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 17 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 17 00 E3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C5 [15:16:17]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:17]wFMCommunicate OK [15:16:17]CreateOFDProtocolMessage done [15:16:17]OFDSenderStorePacket 139695 [15:16:17]StoreOFDPacket docnum=139695 [15:16: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 28 01 00 00 D3 0F 20 01 D5 5A 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 AC 00 00 00 F4 03 04 00 41 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2C 60 75 50 CC AB E4 A8 E0 7B B0 4F B1 1B [15:16:17]CheckFolder [15:16:17]dirname=/storage/ofd_packets [15:16:17]CheckFolder done [15:16:17]ProducePacketName [15:16:17]name=ofd_packets/00139695 [15:16:17]NVStorageSaveData ofd_packets/00139695 [15:16:17]File name is /storage/ofd_packets/00139695 [15:16:17]Write 326 bytes [15:16:17]NVStorageSaveData done [15:16:17]OFDSenderStorePacket done [15:16:17]KKMCreateOFDPacket done [15:16:17]NVStorageSaveData kkm_last_timestamp [15:16:17]File name is /storage/kkm_last_timestamp [15:16:17]Write 4 bytes [15:16:17]NVStorageSaveData done [15:16:17]ExternCall_PrintAddStr [15:16:17]wPrintStart [15:16:17]Write to MH i2c: 01 00 00 E4 0D F1 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 07 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [15:16:17]RasterBufferAndPrint [15:16:17]line Счет N : (3)335544 [15:16:17]line ИНН: 02508201610067 [15:16:17]line Контрольно-Кассовый Чек [15:16:17]line ПРОДАЖА [15:16:17]line Товар: 2000036230011 [15:16:17]line Кофе Латте XL(GABB TRADE) [15:16:17]line 1.000 * 130.00 [15:16:17]line = 130.00 [15:16:17]line НДС 12% НСП 1% [15:16:17]line > о реализуемом товаре [15:16:17]line ИТОГО: 130.00 [15:16:17]line НСП 1% : 1.15 [15:16:17]line НДС 12% : 13.80 [15:16:17]line Наличными: 130.00 [15:16:17]line Безнал.: 0.00 [15:16:17]line Место: АЗС № 101 "Партнер Нефть" [15:16:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:16:17]line СНО: Общий режим [15:16:17]line Чек 172 31.10.2024 15:16 [15:16:17]line Смена: 557 ФФД: 1.0 [15:16:17]line ЗНМ: 0300000081 [15:16:17]line РНМ: 0000000000091631 [15:16:17]line Версия ККМ: 001 [15:16:17]line ФМ: 0000000000874669 [15:16:17]line ФД: 139695 [15:16:17]line ФПД: 48792796712107 [15:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T151617&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139695&fm=48792796712107&tin=02508201610067®Number=0000000000091631&sum=13000 [15:16:18]OFD Sender: Processing packet 139695 [packets to send 34, broken 33] [15:16:18]ProducePacketName [15:16:18]name=ofd_packets/00139695 [15:16:18]OFD Sender: To server: pG, [15:16:18]CommunicateWithHost lk.salyk.kg:30040 [15:16:18]ConnectInit lk.salyk.kg [15:16:18]line 0 [15:16:18]written 0, free lines is 4095 [15:16:18]Connected sock=10 [15:16: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 28 01 00 00 D3 0F 20 01 D5 5A 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 AC 00 00 00 F4 03 04 00 41 9F 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2C 60 75 50 CC AB E4 A8 E0 7B B0 4F B1 1B [15:16: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 7A D8 47 00 D7 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 AF 21 02 00 F4 03 04 00 EE 4A 23 67 B6 04 01 00 00 44 A1 0D 59 A4 45 F1 DF [15:16:18]CommunicateWithHost err = 0 [15:16:18]CheckOFDResponse [15:16:18]1017 (14) - 77093643461234 [15:16:18]1041 (16) - 0000000000874669 [15:16:18]1040 (4) - 139695 [15:16:18]1012 (4) - 31.10.2024 09:16 [15:16:18]1206 (1) - 0 [15:16:18]OFD Sender: Remove packet 139695 [15:16:18]ProducePacketName [15:16:18]name=ofd_packets/00139695 [15:16:18]NVStorageDeleteData [15:16:18]Write to MH i2c: 01 00 00 0C 0E 1A [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 1A 0D 48 [15:16:18]RasterBufferAndPrint [15:16:18]line [15:16:18]line [15:16:18]line [15:16:18]line [15:16:18]line [15:16:18]written 0, free lines is 3363 [15:16:18]MH_Cut [15:16:18]Write to MH i2c: D1 01 00 13 0E 01 F3 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: D1 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: D1 01 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: D1 01 00 13 0E 00 F2 [15:16:18]Write to MH i2c: 01 00 00 14 0E 22 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]OFD Sender: No OFD packet to send [15:16:19]*** Cut start [15:16:19]*** Partial cut [15:16:19]*** CUTSNS_PIN = 1 [15:16:19]*** CUTSNS_PIN = 0 [15:16:19]*** Brake cut motor [15:16:19]Read from MH i2c: 01 [15:16:19]MH_I2C_Read... [15:16:19]*** Stop cut motor [15:16:19]*** Cut end [15:16:19]Read from MH i2c: 01 07 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 07 00 14 0E 00 00 00 00 00 FF 0F 37 [15:16:19]process_action close_receipt done [15:16:19]requested_data is exist [15:16:19]produce_requested_data [15:16:19]requested_item fm.sn is exist - process it [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 11 00 00 [15:16:19]Write to MH i2c: E2 08 00 15 0E 80 11 00 00 00 00 00 00 9D [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:19]Read from MH i2c: E2 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 17 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 17 00 15 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F8 [15:16:19]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:19]wFMCommunicate OK [15:16:19]requested_item fd.num is exist - process it [15:16:19]SAM_PROTO_GetFieldsCounters [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 13 00 00 [15:16:19]Write to MH i2c: E2 08 00 16 0E 80 13 00 00 00 00 00 00 A0 [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 62 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 62 00 16 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 C9 [15:16: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 AF 21 02 00 0E 04 04 00 2D 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:20]wFMCommunicate OK [15:16:20]SAM_PROTO_GetFieldsCounters done [15:16:20]requested_item shift.num is exist - process it [15:16:20]requested_item shift.opened is exist - process it [15:16:20]req_shift_opened [15:16:20]FM_GetShiftState [15:16:20]SAM_PROTO_GetShiftState [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 13 01 00 [15:16:20]Write to MH i2c: E2 08 00 17 0E 80 13 01 00 00 00 00 00 A2 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 0E 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 0E 00 17 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CB [15:16:20]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:16:20]wFMCommunicate OK [15:16:20]SAM_PROTO_GetShiftState done [15:16:20]FM_GetShiftState done [15:16:20]req_shift_opened done [15:16:20]requested_item shift.open_date is exist - process it [15:16:20]req_shift_open_date [15:16:20]req_shift_open_date done [15:16:20]produce_requested_data done [15:16:20]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139695,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:16:20]process_action_free close_receipt [15:16:20]json_value_free [15:16:20]json_value_free done [15:16:20]process_json_proto returns [15:16:20]Send response to host [15:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139695,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:16:20]free response buf [15:16:20]execute_script done [15:16:20]execute_script returns [15:16:20]free content buf [15:16:20]Sock 9.Close socket [15:16:20]Sock 9.Thread stoped [15:16:23]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:44]accept exits with 7 [15:21:44]New connection [15:21:44]New thread 3066654052 created [15:21:44]Thread 3066510692 joined [15:21:44]Waiting for new connection... [15:21:44] Sock 7.Parse request [15:21:44]Sock 7.Check first char [15:21:44]Sock 7.First char is OK [15:21:44]request: POST /json_proto HTTP/1.0 [15:21:44]Method: POST [15:21:44]URL: /json_proto [15:21:44]Method is POST - this is cgi request [15:21:44]url: /json_proto [15:21:44]query_string will be loaded in cgi processing [15:21:44]execute_cgi json_proto POST (null) [15:21:44]execute_cgi path=json_proto method=POST [15:21:44]POST find Content-Length [15:21:44]Host: 172.17.50.196:8080 [15:21:44]Content-Length: 678 [15:21:44]Content-Type: application/json [15:21:44] [15:21:44]POST finish read [15:21:44]Found Content-Length = 678 [15:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095259", "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" : 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" ] } } [15:21:44]execute_script... [15:21:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095259", "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" : 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" ] } } [15:21:44]POST & json_proto [15:21:44]process_json_proto [15:21:44]json parsed OK: [15:21:44]protocol is kg_v1.0 [15:21:44]action value=close_receipt [15:21:44]process_action close_receipt [15:21:44]cmd_close_receipt [15:21:44]MH_GetDate [15:21:44]Write to MH i2c: F0 00 00 18 0E 15 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: F0 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: F0 09 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: F0 09 00 18 0E 00 89 A0 23 67 72 0D 1C 67 D3 [15:21:44]GetLastDocTimeStamp 1730387777 [15:21:44]current date 1730388105 [15:21:44]FM_GetShiftState [15:21:44]SAM_PROTO_GetShiftState [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 13 01 00 [15:21:44]Write to MH i2c: E2 08 00 19 0E 80 13 01 00 00 00 00 00 A4 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0E 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0E 00 19 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CD [15:21:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:21:44]wFMCommunicate OK [15:21:44]SAM_PROTO_GetShiftState done [15:21:44]FM_GetShiftState done [15:21:44]opened in 1730332621 [15:21:44]opened+sec_in_day 1730419021 [15:21:44]quantity*price = 40068 [15:21:44]sum+1 = 40069 [15:21:44]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 СНО: Общий режим Чек 173 31.10.2024 15:21 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139696 ФПД: 201716109640083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152145&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139696&fm=201716109640083&tin=02508201610067®Number=0000000000091631&sum=40000 [15:21:45]StoreToDocumentArchive [15:21:45]shift 557 fd 139696 [15:21:45]save to /storage/0557/doc_00139696 [15:21:45]save last doc name /storage/0557/doc_00139696 to /storage/kkm_last_doc_name [15:21:45]save OK [15:21:45]Clear old archive folders... [15:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:45]tlvbuf is 00A652A0 [15:21:45]SAM_PROTO_ClearQueue [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 09 00 00 [15:21:45]Write to MH i2c: E2 08 00 26 0E 80 09 00 00 00 00 00 00 A6 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [15:21:45]RAPDU: 90 00 [15:21:45]wFMCommunicate OK [15:21:45]SAM_PROTO_ClearQueue done [15:21:45]KKMCreateOFDPacket [15:21:45]OFDProtocolAddRootSTLVToBuf [15:21:45]FM_MakeSignedData [15:21:45]FM_MakeSignedData [15:21:45]SAM_PROTO_SignData [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 0D 01 02 [15:21:45]Write to MH i2c: E2 08 00 27 0E 80 0D 01 02 00 00 00 00 AE [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [15:21:45]RAPDU: 90 00 [15:21:45]wFMCommunicate OK [15:21:45]wFMCommunicate request_size=255 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 89 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B7 [15:21:45]Write to MH i2c: E2 02 01 28 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AD 00 00 00 F4 03 04 00 89 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B7 00 00 06 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [15:21:45]RAPDU: 90 00 [15:21:45]wFMCommunicate OK [15:21:45]wFMCommunicate request_size=10 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 0D 02 02 05 75 B1 0F 81 93 [15:21:45]Write to MH i2c: E2 0D 00 29 0E 80 0D 02 02 05 00 75 B1 0F 81 93 00 00 04 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [15:21:45]RAPDU: 90 00 [15:21:45]wFMCommunicate OK [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 0D 03 02 [15:21:45]Write to MH i2c: E2 08 00 2A 0E 80 0D 03 02 00 00 00 00 B3 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0B 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0B 00 2A 0E 00 9A F6 7A A4 B2 96 52 36 90 00 32 [15:21:46]RAPDU: 9A F6 7A A4 B2 96 52 36 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_SignData done [15:21:46]FM_MakeSignedData done [15:21:46]CreateOFDProtocolMessage [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 11 00 00 [15:21:46]Write to MH i2c: E2 08 00 2B 0E 80 11 00 00 00 00 00 00 B3 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 17 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 17 00 2B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [15:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:21:46]wFMCommunicate OK [15:21:46]CreateOFDProtocolMessage done [15:21:46]OFDSenderStorePacket 139696 [15:21:46]StoreOFDPacket docnum=139696 [15:21: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 0F 01 00 00 0D 35 07 01 E6 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AD 00 00 00 F4 03 04 00 89 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B7 75 B1 0F 81 93 9A F6 7A A4 B2 96 52 36 [15:21:46]CheckFolder [15:21:46]dirname=/storage/ofd_packets [15:21:46]CheckFolder done [15:21:46]ProducePacketName [15:21:46]name=ofd_packets/00139696 [15:21:46]NVStorageSaveData ofd_packets/00139696 [15:21:46]File name is /storage/ofd_packets/00139696 [15:21:46]Write 301 bytes [15:21:46]NVStorageSaveData done [15:21:46]OFDSenderStorePacket done [15:21:46]KKMCreateOFDPacket done [15:21:46]NVStorageSaveData kkm_last_timestamp [15:21:46]File name is /storage/kkm_last_timestamp [15:21:46]Write 4 bytes [15:21:46]NVStorageSaveData done [15:21:46]ExternCall_PrintAddStr [15:21:46]wPrintStart [15:21:46]Write to MH i2c: 01 00 00 2C 0E 3A [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 07 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 07 00 2C 0E 00 00 00 00 00 FF 0F 4F [15:21:46]RasterBufferAndPrint [15:21:46]line Счет N : (1)1095259 [15:21:46]line ИНН: 02508201610067 [15:21:46]line Контрольно-Кассовый Чек [15:21:46]line ПРОДАЖА [15:21:46]line ТРК (МРК, ГНК) : 64 [15:21:46]line Товар: 2710124500 [15:21:46]line Аи-95-К-3 [15:21:46]line 5.400 * 74.20 [15:21:46]line = 400.68 [15:21:46]line НДС 12% НСП 1% [15:21:46]line > о реализуемом товаре [15:21:46]line ОКРУГЛЕНИЕ: -0.68 [15:21:46]line ИТОГО: 400.00 [15:21:46]line Внесено: 400.00 [15:21:46]line СДАЧА: 0.00 [15:21:46]line НСП 1% : 3.55 [15:21:46]line НДС 12% : 42.55 [15:21:46]line Наличными: 400.00 [15:21:46]line Безнал.: 0.00 [15:21:46]line Место: АЗС № 101 "Партнер Нефть" [15:21:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:21:46]line СНО: Общий режим [15:21:46]line Чек 173 31.10.2024 15:21 [15:21:46]line Смена: 557 ФФД: 1.0 [15:21:46]line ЗНМ: 0300000081 [15:21:46]line РНМ: 0000000000091631 [15:21:46]line Версия ККМ: 001 [15:21:46]line ФМ: 0000000000874669 [15:21:46]line ФД: 139696 [15:21:46]line ФПД: 201716109640083 [15:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152145&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139696&fm=201716109640083&tin=02508201610067®Number=0000000000091631&sum=40000 [15:21:46]OFD Sender: Processing packet 139696 [packets to send 34, broken 33] [15:21:46]ProducePacketName [15:21:46]name=ofd_packets/00139696 [15:21:46]OFD Sender: To server: pG, [15:21:46]CommunicateWithHost lk.salyk.kg:30040 [15:21:46]ConnectInit lk.salyk.kg [15:21:46]written 0, free lines is 4095 [15:21:46]Connected sock=10 [15:21: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 0F 01 00 00 0D 35 07 01 E6 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AD 00 00 00 F4 03 04 00 89 A0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B7 75 B1 0F 81 93 9A F6 7A A4 B2 96 52 36 [15:21: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 E1 5B 47 00 44 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 B0 21 02 00 F4 03 04 00 37 4C 23 67 B6 04 01 00 00 6A 6C 17 A5 22 53 83 C6 [15:21:46]CommunicateWithHost err = 0 [15:21:46]CheckOFDResponse [15:21:46]1017 (14) - 77093643461234 [15:21:46]1041 (16) - 0000000000874669 [15:21:46]1040 (4) - 139696 [15:21:46]1012 (4) - 31.10.2024 09:21 [15:21:46]1206 (1) - 0 [15:21:46]OFD Sender: Remove packet 139696 [15:21:46]ProducePacketName [15:21:46]name=ofd_packets/00139696 [15:21:46]NVStorageDeleteData [15:21:46]Write to MH i2c: 01 00 00 57 0E 65 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 07 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 F7 0C 6F [15:21:46]RasterBufferAndPrint [15:21:46]line [15:21:46]line [15:21:46]line [15:21:46]line [15:21:46]line [15:21:46]written 0, free lines is 3326 [15:21:46]MH_Cut [15:21:46]Write to MH i2c: D1 01 00 5E 0E 01 3E [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: D1 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: D1 01 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: D1 01 00 5E 0E 00 3D [15:21:46]Write to MH i2c: 01 00 00 5F 0E 6D [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:47]OFD Sender: No OFD packet to send [15:21:47]*** Cut start [15:21:47]*** Partial cut [15:21:47]*** CUTSNS_PIN = 1 [15:21:47]*** CUTSNS_PIN = 0 [15:21:47]*** Brake cut motor [15:21:48]Read from MH i2c: 01 [15:21:48]MH_I2C_Read... [15:21:48]*** Stop cut motor [15:21:48]*** Cut end [15:21:48]Read from MH i2c: 01 07 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 FF 0F 82 [15:21:48]process_action close_receipt done [15:21:48]requested_data is exist [15:21:48]produce_requested_data [15:21:48]requested_item fm.sn is exist - process it [15:21:48]wFMCommunicate request_size=4 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 11 00 00 [15:21:48]Write to MH i2c: E2 08 00 60 0E 80 11 00 00 00 00 00 00 E8 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 17 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 17 00 60 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 43 [15:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:21:48]wFMCommunicate OK [15:21:48]requested_item fd.num is exist - process it [15:21:48]SAM_PROTO_GetFieldsCounters [15:21:48]wFMCommunicate request_size=4 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 13 00 00 [15:21:48]Write to MH i2c: E2 08 00 61 0E 80 13 00 00 00 00 00 00 EB [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 62 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 62 00 61 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 18 [15:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:21:48]wFMCommunicate OK [15:21:48]SAM_PROTO_GetFieldsCounters done [15:21:48]requested_item shift.num is exist - process it [15:21:48]requested_item shift.opened is exist - process it [15:21:48]req_shift_opened [15:21:48]FM_GetShiftState [15:21:48]SAM_PROTO_GetShiftState [15:21:48]wFMCommunicate request_size=4 [15:21:48]MH_SAM_APDU [15:21:48]CAPDU: 80 13 01 00 [15:21:48]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:48]Read from MH i2c: E2 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 0E 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 16 [15:21:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:21:48]wFMCommunicate OK [15:21:48]SAM_PROTO_GetShiftState done [15:21:48]FM_GetShiftState done [15:21:48]req_shift_opened done [15:21:48]requested_item shift.open_date is exist - process it [15:21:48]req_shift_open_date [15:21:48]req_shift_open_date done [15:21:48]produce_requested_data done [15:21:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139696,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:21:48]process_action_free close_receipt [15:21:48]json_value_free [15:21:48]json_value_free done [15:21:48]process_json_proto returns [15:21:48]Send response to host [15:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139696,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:21:48]free response buf [15:21:48]execute_script done [15:21:48]execute_script returns [15:21:48]free content buf [15:21:48]Sock 7.Close socket [15:21:48]Sock 7.Thread stoped [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:43]accept exits with 9 [15:23:43]New connection [15:23:43]New thread 3066510692 created [15:23:43]Thread 3066654052 joined [15:23:43]Waiting for new connection... [15:23:43] Sock 9.Parse request [15:23:43]Sock 9.Check first char [15:23:43]Sock 9.First char is OK [15:23:43]request: POST /json_proto HTTP/1.0 [15:23:43]Method: POST [15:23:43]URL: /json_proto [15:23:43]Method is POST - this is cgi request [15:23:43]url: /json_proto [15:23:43]query_string will be loaded in cgi processing [15:23:43]execute_cgi json_proto POST (null) [15:23:43]execute_cgi path=json_proto method=POST [15:23:43]POST find Content-Length [15:23:43]Host: 172.17.50.196:8080 [15:23:43]Content-Length: 1033 [15:23:43]Content-Type: application/json [15:23:43] [15:23:43]POST finish read [15:23:43]Found Content-Length = 1033 [15:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335545", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:43]execute_script... [15:23:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335545", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:43]POST & json_proto [15:23:43]process_json_proto [15:23:43]json parsed OK: [15:23:43]protocol is kg_v1.0 [15:23:43]action value=close_receipt [15:23:43]process_action close_receipt [15:23:43]cmd_close_receipt [15:23:43]MH_GetDate [15:23:43]Write to MH i2c: F0 00 00 63 0E 60 [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: F0 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: F0 09 00 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: F0 09 00 63 0E 00 00 A1 23 67 72 0D 1C 67 96 [15:23:43]GetLastDocTimeStamp 1730388105 [15:23:43]current date 1730388224 [15:23:43]FM_GetShiftState [15:23:43]SAM_PROTO_GetShiftState [15:23:43]wFMCommunicate request_size=4 [15:23:43]MH_SAM_APDU [15:23:43]CAPDU: 80 13 01 00 [15:23:43]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:43]Read from MH i2c: E2 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: E2 0E 00 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 18 [15:23:43]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:23:43]wFMCommunicate OK [15:23:43]SAM_PROTO_GetShiftState done [15:23:43]FM_GetShiftState done [15:23:43]opened in 1730332621 [15:23:43]opened+sec_in_day 1730419021 [15:23:43]quantity*price = 26000 [15:23:43]sum+1 = 26001 [15:23:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.32 НДС 12% : 39.82 Наличными: 0.00 Безнал.: 375.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 174 31.10.2024 15:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139697 ФПД: 58886411624869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152344&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139697&fm=58886411624869&tin=02508201610067®Number=0000000000091631&sum=37500 0 [15:23:44]StoreToDocumentArchive [15:23:44]shift 557 fd 139697 [15:23:44]save to /storage/0557/doc_00139697 [15:23:44]save last doc name /storage/0557/doc_00139697 to /storage/kkm_last_doc_name [15:23:44]save OK [15:23:44]Clear old archive folders... [15:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=392 [15:23:44]tlvbuf is 00A1D660 [15:23:44]SAM_PROTO_ClearQueue [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 09 00 00 [15:23:44]Write to MH i2c: E2 08 00 71 0E 80 09 00 00 00 00 00 00 F1 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [15:23:44]RAPDU: 90 00 [15:23:44]wFMCommunicate OK [15:23:44]SAM_PROTO_ClearQueue done [15:23:44]KKMCreateOFDPacket [15:23:44]OFDProtocolAddRootSTLVToBuf [15:23:44]FM_MakeSignedData [15:23:44]FM_MakeSignedData [15:23:44]SAM_PROTO_SignData [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 0D 01 02 [15:23:44]Write to MH i2c: E2 08 00 72 0E 80 0D 01 02 00 00 00 00 F9 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [15:23:44]RAPDU: 90 00 [15:23:44]wFMCommunicate OK [15:23:44]wFMCommunicate request_size=255 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [15:23:44]Write to MH i2c: E2 02 01 73 0E 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 CF [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [15:23:44]RAPDU: 90 00 [15:23:44]wFMCommunicate OK [15:23:44]wFMCommunicate request_size=151 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 00 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 8E 8F A5 A1 A5 [15:23:44]Write to MH i2c: E2 9A 00 74 0E 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 00 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 8E 8F A5 A1 A5 00 00 66 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [15:23:44]RAPDU: 90 00 [15:23:44]wFMCommunicate OK [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 0D 03 02 [15:23:44]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 0B 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 0B 00 75 0E 00 F7 A6 52 D0 FC 67 43 25 90 00 89 [15:23:44]RAPDU: F7 A6 52 D0 FC 67 43 25 90 00 [15:23:44]wFMCommunicate OK [15:23:44]SAM_PROTO_SignData done [15:23:44]FM_MakeSignedData done [15:23:44]CreateOFDProtocolMessage [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 11 00 00 [15:23:44]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:45]Read from MH i2c: E2 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: E2 17 00 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 59 [15:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:23:45]wFMCommunicate OK [15:23:45]CreateOFDProtocolMessage done [15:23:45]OFDSenderStorePacket 139697 [15:23:45]StoreOFDPacket docnum=139697 [15:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9C 01 00 00 60 F2 94 01 74 EA 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 00 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 8E 8F A5 A1 A5 F7 A6 52 D0 FC 67 43 25 [15:23:45]CheckFolder [15:23:45]dirname=/storage/ofd_packets [15:23:45]CheckFolder done [15:23:45]ProducePacketName [15:23:45]name=ofd_packets/00139697 [15:23:45]NVStorageSaveData ofd_packets/00139697 [15:23:45]File name is /storage/ofd_packets/00139697 [15:23:45]Write 442 bytes [15:23:45]NVStorageSaveData done [15:23:45]OFDSenderStorePacket done [15:23:45]KKMCreateOFDPacket done [15:23:45]NVStorageSaveData kkm_last_timestamp [15:23:45]File name is /storage/kkm_last_timestamp [15:23:45]Write 4 bytes [15:23:45]NVStorageSaveData done [15:23:45]ExternCall_PrintAddStr [15:23:45]wPrintStart [15:23:45]Write to MH i2c: 01 00 00 77 0E 85 [15:23:45]Write i2c OK [15:23:45]MH_I2C_Read... [15:23:45]OFD Sender: Processing packet 139697 [packets to send 34, broken 33] [15:23:45]ProducePacketName [15:23:45]name=ofd_packets/00139697 [15:23:45]OFD Sender: To server: pG, [15:23:45]CommunicateWithHost lk.salyk.kg:30040 [15:23:45]ConnectInit lk.salyk.kg [15:23:45]Read from MH i2c: 01 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 07 00 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [15:23:45]RasterBufferAndPrint [15:23:45]line Счет N : (3)335545 [15:23:45]line ИНН: 02508201610067 [15:23:45]line Контрольно-Кассовый Чек [15:23:45]line ПРОДАЖА [15:23:45]line Товар: 2000036220012 [15:23:45]line Кофе Капучино XL(GABB TRADE) [15:23:45]line 2.000 * 130.00 [15:23:45]line = 260.00 [15:23:45]line НДС 12% НСП 1% [15:23:45]line > о реализуемом товаре [15:23:45]line Товар: 2000036210013 [15:23:45]line Кофе Капучино (GABB TRADE) [15:23:45]line 1.000 * 115.00 [15:23:45]line = 115.00 [15:23:45]line НДС 12% НСП 1% [15:23:45]line > о реализуемом товаре [15:23:45]line ИТОГО: 375.00 [15:23:45]line НСП 1% : 3.32 [15:23:45]line НДС 12% : 39.82 [15:23:45]line Наличными: 0.00 [15:23:45]line Безнал.: 375.00 [15:23:45]line Место: АЗС № 101 "Партнер Нефть" [15:23:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:23:45]line СНО: Общий режим [15:23:45]line Чек 174 31.10.2024 15:23 [15:23:45]line Смена: 557 ФФД: 1.0 [15:23:45]line ЗНМ: 0300000081 [15:23:45]line РНМ: 0000000000091631 [15:23:45]line Версия ККМ: 001 [15:23:45]line Платежная система: Mbank [15:23:45]line ФМ: 0000000000874669 [15:23:45]line ФД: 139697 [15:23:45]line ФПД: 58886411624869 [15:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T152344&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139697&fm=58886411624869&tin=02508201610067®Number=0000000000091631&sum=37500 [15:23:45]line 0 [15:23:45]written 0, free lines is 4095 [15:23:45]Connected sock=10 [15:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9C 01 00 00 60 F2 94 01 74 EA 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 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 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 00 A1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 8E 8F A5 A1 A5 F7 A6 52 D0 FC 67 43 25 [15:23:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 97 7D 47 00 E6 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 21 02 00 F4 03 04 00 AD 4C 23 67 B6 04 01 00 00 50 C1 E4 E2 06 47 BC DE [15:23:45]CommunicateWithHost err = 0 [15:23:45]CheckOFDResponse [15:23:45]1017 (14) - 77093643461234 [15:23:45]1041 (16) - 0000000000874669 [15:23:45]1040 (4) - 139697 [15:23:45]1012 (4) - 31.10.2024 09:23 [15:23:45]1206 (1) - 0 [15:23:45]OFD Sender: Remove packet 139697 [15:23:45]ProducePacketName [15:23:45]name=ofd_packets/00139697 [15:23:45]NVStorageDeleteData [15:23:45]Write to MH i2c: 01 00 00 A7 0E B5 [15:23:45]Write i2c OK [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 07 00 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 07 00 A7 0E 00 00 00 00 00 DB 0C A3 [15:23:45]RasterBufferAndPrint [15:23:45]line [15:23:45]line [15:23:45]line [15:23:45]line [15:23:45]line [15:23:45]written 0, free lines is 3300 [15:23:45]MH_Cut [15:23:45]Write to MH i2c: D1 01 00 AE 0E 01 8E [15:23:45]Write i2c OK [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: D1 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: D1 01 00 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: D1 01 00 AE 0E 00 8D [15:23:45]Write to MH i2c: 01 00 00 AF 0E BD [15:23:45]Write i2c OK [15:23:45]MH_I2C_Read... [15:23:46]OFD Sender: No OFD packet to send [15:23:46]*** Cut start [15:23:46]*** Partial cut [15:23:46]*** CUTSNS_PIN = 1 [15:23:46]*** CUTSNS_PIN = 0 [15:23:46]*** Brake cut motor [15:23:47]Read from MH i2c: 01 [15:23:47]MH_I2C_Read... [15:23:47]*** Stop cut motor [15:23:47]*** Cut end [15:23:47]Read from MH i2c: 01 07 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: 01 07 00 AF 0E 00 00 00 00 00 FF 0F D2 [15:23:47]process_action close_receipt done [15:23:47]requested_data is exist [15:23:47]produce_requested_data [15:23:47]requested_item fm.sn is exist - process it [15:23:47]wFMCommunicate request_size=4 [15:23:47]MH_SAM_APDU [15:23:47]CAPDU: 80 11 00 00 [15:23:47]Write to MH i2c: E2 08 00 B0 0E 80 11 00 00 00 00 00 00 38 [15:23:47]Write i2c OK [15:23:47]MH_I2C_Read... [15:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:47]Read from MH i2c: E2 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 17 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 17 00 B0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 93 [15:23: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:23:47]wFMCommunicate OK [15:23:47]requested_item fd.num is exist - process it [15:23:47]SAM_PROTO_GetFieldsCounters [15:23:47]wFMCommunicate request_size=4 [15:23:47]MH_SAM_APDU [15:23:47]CAPDU: 80 13 00 00 [15:23:47]Write to MH i2c: E2 08 00 B1 0E 80 13 00 00 00 00 00 00 3B [15:23:47]Write i2c OK [15:23:47]MH_I2C_Read... [15:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:47]Read from MH i2c: E2 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 62 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 62 00 B1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 6C [15:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:23:47]wFMCommunicate OK [15:23:47]SAM_PROTO_GetFieldsCounters done [15:23:47]requested_item shift.num is exist - process it [15:23:47]requested_item shift.opened is exist - process it [15:23:47]req_shift_opened [15:23:47]FM_GetShiftState [15:23:47]SAM_PROTO_GetShiftState [15:23:47]wFMCommunicate request_size=4 [15:23:47]MH_SAM_APDU [15:23:47]CAPDU: 80 13 01 00 [15:23:47]Write to MH i2c: E2 08 00 B2 0E 80 13 01 00 00 00 00 00 3D [15:23:47]Write i2c OK [15:23:47]MH_I2C_Read... [15:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:47]Read from MH i2c: E2 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 0E 00 [15:23:47]MH_I2C_Read... [15:23:47]Read from MH i2c: E2 0E 00 B2 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 66 [15:23:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:23:47]wFMCommunicate OK [15:23:47]SAM_PROTO_GetShiftState done [15:23:47]FM_GetShiftState done [15:23:47]req_shift_opened done [15:23:47]requested_item shift.open_date is exist - process it [15:23:47]req_shift_open_date [15:23:47]req_shift_open_date done [15:23:47]produce_requested_data done [15:23:47]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139697,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:23:47]process_action_free close_receipt [15:23:47]json_value_free [15:23:47]json_value_free done [15:23:47]process_json_proto returns [15:23:47]Send response to host [15:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139697,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:23:47]free response buf [15:23:47]execute_script done [15:23:47]execute_script returns [15:23:47]free content buf [15:23:47]Sock 9.Close socket [15:23:47]Sock 9.Thread stoped [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]accept exits with 7 [15:32:36]New connection [15:32:36]New thread 3066654052 created [15:32:36]Thread 3066510692 joined [15:32:36]Waiting for new connection... [15:32:36] Sock 7.Parse request [15:32:36]Sock 7.Check first char [15:32:36]Sock 7.First char is OK [15:32:36]request: POST /json_proto HTTP/1.0 [15:32:36]Method: POST [15:32:36]URL: /json_proto [15:32:36]Method is POST - this is cgi request [15:32:36]url: /json_proto [15:32:36]query_string will be loaded in cgi processing [15:32:36]execute_cgi json_proto POST (null) [15:32:36]execute_cgi path=json_proto method=POST [15:32:36]POST find Content-Length [15:32:36]Host: 172.17.50.196:8080 [15:32:36]Content-Length: 678 [15:32:36]Content-Type: application/json [15:32:36] [15:32:36]POST finish read [15:32:36]Found Content-Length = 678 [15:32:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095264", "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" : 5.980, "sum" : 400.06, "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" ] } } [15:32:36]execute_script... [15:32:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095264", "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" : 5.980, "sum" : 400.06, "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" ] } } [15:32:36]POST & json_proto [15:32:36]process_json_proto [15:32:36]json parsed OK: [15:32:36]protocol is kg_v1.0 [15:32:36]action value=close_receipt [15:32:36]process_action close_receipt [15:32:36]cmd_close_receipt [15:32:36]MH_GetDate [15:32:36]Write to MH i2c: F0 00 00 B3 0E B0 [15:32:36]Write i2c OK [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: F0 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: F0 09 00 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: F0 09 00 B3 0E 00 15 A3 23 67 72 0D 1C 67 FD [15:32:36]GetLastDocTimeStamp 1730388224 [15:32:36]current date 1730388757 [15:32:36]FM_GetShiftState [15:32:36]SAM_PROTO_GetShiftState [15:32:36]wFMCommunicate request_size=4 [15:32:36]MH_SAM_APDU [15:32:36]CAPDU: 80 13 01 00 [15:32:36]Write to MH i2c: E2 08 00 B4 0E 80 13 01 00 00 00 00 00 3F [15:32:36]Write i2c OK [15:32:36]MH_I2C_Read... [15:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:36]Read from MH i2c: E2 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: E2 0E 00 [15:32:36]MH_I2C_Read... [15:32:36]Read from MH i2c: E2 0E 00 B4 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 68 [15:32:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:32:36]wFMCommunicate OK [15:32:36]SAM_PROTO_GetShiftState done [15:32:36]FM_GetShiftState done [15:32:36]opened in 1730332621 [15:32:36]opened+sec_in_day 1730419021 [15:32:36]quantity*price = 40006 [15:32:36]sum+1 = 40007 [15:32:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 175 31.10.2024 15:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139698 ФПД: 199902109240281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153237&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139698&fm=199902109240281&tin=02508201610067®Number=0000000000091631&sum=40000 [15:32:37]StoreToDocumentArchive [15:32:37]shift 557 fd 139698 [15:32:37]save to /storage/0557/doc_00139698 [15:32:37]save last doc name /storage/0557/doc_00139698 to /storage/kkm_last_doc_name [15:32:37]save OK [15:32:37]Clear old archive folders... [15:32:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:37]tlvbuf is 00A28740 [15:32:37]SAM_PROTO_ClearQueue [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 09 00 00 [15:32:37]Write to MH i2c: E2 08 00 C1 0E 80 09 00 00 00 00 00 00 41 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]SAM_PROTO_ClearQueue done [15:32:37]KKMCreateOFDPacket [15:32:37]OFDProtocolAddRootSTLVToBuf [15:32:37]FM_MakeSignedData [15:32:37]FM_MakeSignedData [15:32:37]SAM_PROTO_SignData [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 01 02 [15:32:37]Write to MH i2c: E2 08 00 C2 0E 80 0D 01 02 00 00 00 00 49 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]wFMCommunicate request_size=255 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 15 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B5 [15:32:37]Write to MH i2c: E2 02 01 C3 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 15 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B5 00 00 51 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]wFMCommunicate request_size=10 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 02 02 05 CF 56 36 0B D9 [15:32:37]Write to MH i2c: E2 0D 00 C4 0E 80 0D 02 02 05 00 CF 56 36 0B D9 00 00 95 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 03 00 C4 0E 00 90 00 46 [15:32:37]RAPDU: 90 00 [15:32:37]wFMCommunicate OK [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 0D 03 02 [15:32:37]Write to MH i2c: E2 08 00 C5 0E 80 0D 03 02 00 00 00 00 4E [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 0B 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 0B 00 C5 0E 00 2F EE 7A 4C B3 1F 57 E8 90 00 43 [15:32:37]RAPDU: 2F EE 7A 4C B3 1F 57 E8 90 00 [15:32:37]wFMCommunicate OK [15:32:37]SAM_PROTO_SignData done [15:32:37]FM_MakeSignedData done [15:32:37]CreateOFDProtocolMessage [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 11 00 00 [15:32:37]Write to MH i2c: E2 08 00 C6 0E 80 11 00 00 00 00 00 00 4E [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:38]Read from MH i2c: E2 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 17 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 17 00 C6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A9 [15:32:38]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:38]wFMCommunicate OK [15:32:38]CreateOFDProtocolMessage done [15:32:38]OFDSenderStorePacket 139698 [15:32:38]StoreOFDPacket docnum=139698 [15:32: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 0F 01 00 00 8B DF 07 01 E0 A7 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 15 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B5 CF 56 36 0B D9 2F EE 7A 4C B3 1F 57 E8 [15:32:38]CheckFolder [15:32:38]dirname=/storage/ofd_packets [15:32:38]CheckFolder done [15:32:38]ProducePacketName [15:32:38]name=ofd_packets/00139698 [15:32:38]NVStorageSaveData ofd_packets/00139698 [15:32:38]File name is /storage/ofd_packets/00139698 [15:32:38]Write 301 bytes [15:32:38]NVStorageSaveData done [15:32:38]OFDSenderStorePacket done [15:32:38]KKMCreateOFDPacket done [15:32:38]NVStorageSaveData kkm_last_timestamp [15:32:38]File name is /storage/kkm_last_timestamp [15:32:38]Write 4 bytes [15:32:38]NVStorageSaveData done [15:32:38]ExternCall_PrintAddStr [15:32:38]wPrintStart [15:32:38]Write to MH i2c: 01 00 00 C7 0E D5 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 07 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 07 00 C7 0E 00 00 00 00 00 FF 0F EA [15:32:38]RasterBufferAndPrint [15:32:38]line Счет N : (1)1095264 [15:32:38]line ИНН: 02508201610067 [15:32:38]line Контрольно-Кассовый Чек [15:32:38]line ПРОДАЖА [15:32:38]line ТРК (МРК, ГНК) : 33 [15:32:38]line Товар: 2710124130 [15:32:38]line Аи-92-К-2 [15:32:38]line 5.980 * 66.90 [15:32:38]line = 400.06 [15:32:38]line НДС 12% НСП 1% [15:32:38]line > о реализуемом товаре [15:32:38]line ОКРУГЛЕНИЕ: -0.06 [15:32:38]line ИТОГО: 400.00 [15:32:38]line Внесено: 400.00 [15:32:38]line СДАЧА: 0.00 [15:32:38]line НСП 1% : 3.54 [15:32:38]line НДС 12% : 42.48 [15:32:38]line Наличными: 400.00 [15:32:38]line Безнал.: 0.00 [15:32:38]line Место: АЗС № 101 "Партнер Нефть" [15:32:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:32:38]line СНО: Общий режим [15:32:38]line Чек 175 31.10.2024 15:32 [15:32:38]line Смена: 557 ФФД: 1.0 [15:32:38]line ЗНМ: 0300000081 [15:32:38]line РНМ: 0000000000091631 [15:32:38]line Версия ККМ: 001 [15:32:38]line ФМ: 0000000000874669 [15:32:38]line ФД: 139698 [15:32:38]line ФПД: 199902109240281 [15:32:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153237&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139698&fm=199902109240281&tin=02508201610067®Number=0000000000091631&sum=40000 [15:32:38]OFD Sender: Processing packet 139698 [packets to send 34, broken 33] [15:32:38]ProducePacketName [15:32:38]name=ofd_packets/00139698 [15:32:38]OFD Sender: To server: pG, [15:32:38]CommunicateWithHost lk.salyk.kg:30040 [15:32:38]ConnectInit lk.salyk.kg [15:32:38]written 0, free lines is 4095 [15:32:38]Connected sock=10 [15:32:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 8B DF 07 01 E0 A7 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 15 A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B5 CF 56 36 0B D9 2F EE 7A 4C B3 1F 57 E8 [15:32:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BF D1 47 00 64 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 B2 21 02 00 F4 03 04 00 C3 4E 23 67 B6 04 01 00 00 E1 52 34 84 45 AC 3D 15 [15:32:38]CommunicateWithHost err = 0 [15:32:38]CheckOFDResponse [15:32:38]1017 (14) - 77093643461234 [15:32:38]1041 (16) - 0000000000874669 [15:32:38]1040 (4) - 139698 [15:32:38]1012 (4) - 31.10.2024 09:32 [15:32:38]1206 (1) - 0 [15:32:38]OFD Sender: Remove packet 139698 [15:32:38]ProducePacketName [15:32:38]name=ofd_packets/00139698 [15:32:38]NVStorageDeleteData [15:32:38]Write to MH i2c: 01 00 00 F2 0E 00 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 07 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: 01 07 00 F2 0E 00 00 00 00 00 E1 0C F4 [15:32:38]RasterBufferAndPrint [15:32:38]line [15:32:38]line [15:32:38]line [15:32:38]line [15:32:38]line [15:32:38]written 0, free lines is 3302 [15:32:38]MH_Cut [15:32:38]Write to MH i2c: D1 01 00 F9 0E 01 D9 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: D1 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: D1 01 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: D1 01 00 F9 0E 00 D8 [15:32:38]Write to MH i2c: 01 00 00 FA 0E 08 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:39]OFD Sender: No OFD packet to send [15:32:39]*** Cut start [15:32:39]*** Partial cut [15:32:39]*** CUTSNS_PIN = 1 [15:32:39]*** CUTSNS_PIN = 0 [15:32:39]*** Brake cut motor [15:32:40]Read from MH i2c: 01 [15:32:40]MH_I2C_Read... [15:32:40]*** Stop cut motor [15:32:40]*** Cut end [15:32:40]Read from MH i2c: 01 07 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 FA 0E 00 00 00 00 00 FF 0F 1D [15:32:40]process_action close_receipt done [15:32:40]requested_data is exist [15:32:40]produce_requested_data [15:32:40]requested_item fm.sn is exist - process it [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 11 00 00 [15:32:40]Write to MH i2c: E2 08 00 FB 0E 80 11 00 00 00 00 00 00 83 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 17 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 17 00 FB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [15:32: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:32:40]wFMCommunicate OK [15:32:40]requested_item fd.num is exist - process it [15:32:40]SAM_PROTO_GetFieldsCounters [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 13 00 00 [15:32:40]Write to MH i2c: E2 08 00 FC 0E 80 13 00 00 00 00 00 00 86 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 62 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 62 00 FC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 BB [15:32:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:32:40]wFMCommunicate OK [15:32:40]SAM_PROTO_GetFieldsCounters done [15:32:40]requested_item shift.num is exist - process it [15:32:40]requested_item shift.opened is exist - process it [15:32:40]req_shift_opened [15:32:40]FM_GetShiftState [15:32:40]SAM_PROTO_GetShiftState [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 13 01 00 [15:32:40]Write to MH i2c: E2 08 00 FD 0E 80 13 01 00 00 00 00 00 88 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 0E 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 0E 00 FD 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B1 [15:32:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:32:40]wFMCommunicate OK [15:32:40]SAM_PROTO_GetShiftState done [15:32:40]FM_GetShiftState done [15:32:40]req_shift_opened done [15:32:40]requested_item shift.open_date is exist - process it [15:32:40]req_shift_open_date [15:32:40]req_shift_open_date done [15:32:40]produce_requested_data done [15:32:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139698,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:32:40]process_action_free close_receipt [15:32:40]json_value_free [15:32:40]json_value_free done [15:32:40]process_json_proto returns [15:32:40]Send response to host [15:32:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139698,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:32:40]free response buf [15:32:40]execute_script done [15:32:40]execute_script returns [15:32:40]free content buf [15:32:40]Sock 7.Close socket [15:32:40]Sock 7.Thread stoped [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:57]accept exits with 9 [15:35:57]New connection [15:35:57]New thread 3066510692 created [15:35:57]Thread 3066654052 joined [15:35:57]Waiting for new connection... [15:35:57] Sock 9.Parse request [15:35:57]Sock 9.Check first char [15:35:57]Sock 9.First char is OK [15:35:57]request: POST /json_proto HTTP/1.0 [15:35:57]Method: POST [15:35:57]URL: /json_proto [15:35:57]Method is POST - this is cgi request [15:35:57]url: /json_proto [15:35:57]query_string will be loaded in cgi processing [15:35:57]execute_cgi json_proto POST (null) [15:35:57]execute_cgi path=json_proto method=POST [15:35:57]POST find Content-Length [15:35:57]Host: 172.17.50.196:8080 [15:35:57]Content-Length: 608 [15:35:57]Content-Type: application/json [15:35:57] [15:35:57]POST finish read [15:35:57]Found Content-Length = 608 [15:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335546", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:57]execute_script... [15:35: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)335546", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:57]POST & json_proto [15:35:57]process_json_proto [15:35:57]json parsed OK: [15:35:57]protocol is kg_v1.0 [15:35:57]action value=close_receipt [15:35:57]process_action close_receipt [15:35:57]cmd_close_receipt [15:35:57]MH_GetDate [15:35:57]Write to MH i2c: F0 00 00 FE 0E FB [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: F0 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: F0 09 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: F0 09 00 FE 0E 00 DF A3 23 67 72 0D 1C 67 12 [15:35:57]GetLastDocTimeStamp 1730388757 [15:35:57]current date 1730388959 [15:35:57]FM_GetShiftState [15:35:57]SAM_PROTO_GetShiftState [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 13 01 00 [15:35:57]Write to MH i2c: E2 08 00 FF 0E 80 13 01 00 00 00 00 00 8A [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 0E 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 0E 00 FF 0E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B3 [15:35:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:35:57]wFMCommunicate OK [15:35:57]SAM_PROTO_GetShiftState done [15:35:57]FM_GetShiftState done [15:35:57]opened in 1730332621 [15:35:57]opened+sec_in_day 1730419021 [15:35:57]quantity*price = 1000 [15:35:57]sum+1 = 1001 [15:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 176 31.10.2024 15:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139699 ФПД: 194926061526011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153559&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139699&fm=194926061526011&tin=02508201610067®Number=0000000000091631&sum=1000 0 [15:35:59]StoreToDocumentArchive [15:35:59]shift 557 fd 139699 [15:35:59]save to /storage/0557/doc_00139699 [15:35:59]save last doc name /storage/0557/doc_00139699 to /storage/kkm_last_doc_name [15:35:59]save OK [15:35:59]Clear old archive folders... [15:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=267 [15:35:59]tlvbuf is 00A64FD0 [15:35:59]SAM_PROTO_ClearQueue [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 09 00 00 [15:35:59]Write to MH i2c: E2 08 00 0C 0F 80 09 00 00 00 00 00 00 8D [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]SAM_PROTO_ClearQueue done [15:35:59]KKMCreateOFDPacket [15:35:59]OFDProtocolAddRootSTLVToBuf [15:35:59]FM_MakeSignedData [15:35:59]FM_MakeSignedData [15:35:59]SAM_PROTO_SignData [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 0D 01 02 [15:35:59]Write to MH i2c: E2 08 00 0D 0F 80 0D 01 02 00 00 00 00 95 [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]wFMCommunicate request_size=255 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DF A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [15:35:59]Write to MH i2c: E2 02 01 0E 0F 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DF A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 11 [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]OFD Sender: No OFD packet to send [15:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]wFMCommunicate request_size=26 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 B3 21 02 00 35 04 06 00 B1 48 C2 A7 9B FB [15:35:59]Write to MH i2c: E2 1D 00 0F 0F 80 0D 02 02 15 00 36 36 39 10 04 04 00 B3 21 02 00 35 04 06 00 B1 48 C2 A7 9B FB 00 00 8C [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 0D 03 02 [15:35:59]Write to MH i2c: E2 08 00 10 0F 80 0D 03 02 00 00 00 00 9A [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 0B 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 0B 00 10 0F 00 2C 95 60 59 FF 7D F0 D7 90 00 58 [15:35:59]RAPDU: 2C 95 60 59 FF 7D F0 D7 90 00 [15:35:59]wFMCommunicate OK [15:35:59]SAM_PROTO_SignData done [15:35:59]FM_MakeSignedData done [15:35:59]CreateOFDProtocolMessage [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 11 00 00 [15:35:59]Write to MH i2c: E2 08 00 11 0F 80 11 00 00 00 00 00 00 9A [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 17 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 17 00 11 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F5 [15:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:35:59]wFMCommunicate OK [15:35:59]CreateOFDProtocolMessage done [15:35:59]OFDSenderStorePacket 139699 [15:35:59]StoreOFDPacket docnum=139699 [15:35: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 1F 01 00 00 56 F0 17 01 E2 3E 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DF A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B1 48 C2 A7 9B FB 2C 95 60 59 FF 7D F0 D7 [15:35:59]CheckFolder [15:35:59]dirname=/storage/ofd_packets [15:35:59]CheckFolder done [15:35:59]ProducePacketName [15:35:59]name=ofd_packets/00139699 [15:35:59]NVStorageSaveData ofd_packets/00139699 [15:35:59]File name is /storage/ofd_packets/00139699 [15:35:59]Write 317 bytes [15:35:59]NVStorageSaveData done [15:35:59]OFDSenderStorePacket done [15:35:59]KKMCreateOFDPacket done [15:35:59]NVStorageSaveData kkm_last_timestamp [15:35:59]File name is /storage/kkm_last_timestamp [15:35:59]Write 4 bytes [15:35:59]NVStorageSaveData done [15:35:59]ExternCall_PrintAddStr [15:35:59]wPrintStart [15:35:59]Write to MH i2c: 01 00 00 12 0F 21 [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: 01 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: 01 07 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: 01 07 00 12 0F 00 00 00 00 00 FF 0F 36 [15:35:59]RasterBufferAndPrint [15:35:59]line Счет N : (3)335546 [15:35:59]line ИНН: 02508201610067 [15:35:59]line Контрольно-Кассовый Чек [15:35:59]line ПРОДАЖА [15:35:59]line Товар: 46231529 [15:35:59]line Mentos ПФ Арбуз 6*100*2 [15:35:59]line 1.000 * 10.00 [15:35:59]line = 10.00 [15:35:59]line НДС 12% НСП 1% [15:35:59]line > о реализуемом товаре [15:35:59]line ИТОГО: 10.00 [15:35:59]line НСП 1% : 0.09 [15:35:59]line НДС 12% : 1.06 [15:35:59]line Наличными: 10.00 [15:35:59]line Безнал.: 0.00 [15:35:59]line Место: АЗС № 101 "Партнер Нефть" [15:35:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:35:59]line СНО: Общий режим [15:35:59]line Чек 176 31.10.2024 15:35 [15:35:59]line Смена: 557 ФФД: 1.0 [15:35:59]line ЗНМ: 0300000081 [15:35:59]line РНМ: 0000000000091631 [15:35:59]line Версия ККМ: 001 [15:35:59]line ФМ: 0000000000874669 [15:35:59]line ФД: 139699 [15:35:59]line ФПД: 194926061526011 [15:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153559&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139699&fm=194926061526011&tin=02508201610067®Number=0000000000091631&sum=1000 [15:35:59]line 0 [15:35:59]OFD Sender: Processing packet 139699 [packets to send 34, broken 33] [15:35:59]ProducePacketName [15:35:59]name=ofd_packets/00139699 [15:35:59]OFD Sender: To server: pG, [15:35:59]CommunicateWithHost lk.salyk.kg:30040 [15:35:59]ConnectInit lk.salyk.kg [15:35:59]written 0, free lines is 4095 [15:36:00]Connected sock=10 [15:36: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 1F 01 00 00 56 F0 17 01 E2 3E 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DF A3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B1 48 C2 A7 9B FB 2C 95 60 59 FF 7D F0 D7 [15:36: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 0F FD 47 00 25 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 B3 21 02 00 F4 03 04 00 8C 4F 23 67 B6 04 01 00 00 BE 51 21 CA 0F 43 4F DF [15:36:00]CommunicateWithHost err = 0 [15:36:00]CheckOFDResponse [15:36:00]1017 (14) - 77093643461234 [15:36:00]1041 (16) - 0000000000874669 [15:36:00]1040 (4) - 139699 [15:36:00]1012 (4) - 31.10.2024 09:36 [15:36:00]1206 (1) - 0 [15:36:00]OFD Sender: Remove packet 139699 [15:36:00]ProducePacketName [15:36:00]name=ofd_packets/00139699 [15:36:00]NVStorageDeleteData [15:36:00]Write to MH i2c: 01 00 00 3A 0F 49 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 3A 0F 00 00 00 00 00 0F 0D 6C [15:36:00]RasterBufferAndPrint [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]written 0, free lines is 3349 [15:36:00]MH_Cut [15:36:00]Write to MH i2c: D1 01 00 41 0F 01 22 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 01 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 01 00 41 0F 00 21 [15:36:00]Write to MH i2c: 01 00 00 42 0F 51 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]OFD Sender: No OFD packet to send [15:36:01]*** Cut start [15:36:01]*** Partial cut [15:36:01]*** CUTSNS_PIN = 1 [15:36:01]*** CUTSNS_PIN = 0 [15:36:01]*** Brake cut motor [15:36:01]Read from MH i2c: 01 [15:36:01]MH_I2C_Read... [15:36:01]*** Stop cut motor [15:36:01]*** Cut end [15:36:01]Read from MH i2c: 01 07 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: 01 07 00 42 0F 00 00 00 00 00 FF 0F 66 [15:36:01]process_action close_receipt done [15:36:01]requested_data is exist [15:36:01]produce_requested_data [15:36:01]requested_item fm.sn is exist - process it [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 11 00 00 [15:36:01]Write to MH i2c: E2 08 00 43 0F 80 11 00 00 00 00 00 00 CC [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 17 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 17 00 43 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 27 [15:36: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:36:01]wFMCommunicate OK [15:36:01]requested_item fd.num is exist - process it [15:36:01]SAM_PROTO_GetFieldsCounters [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 13 00 00 [15:36:01]Write to MH i2c: E2 08 00 44 0F 80 13 00 00 00 00 00 00 CF [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 62 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 62 00 44 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 08 [15:36: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 B3 21 02 00 0E 04 04 00 2D 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:36:01]wFMCommunicate OK [15:36:01]SAM_PROTO_GetFieldsCounters done [15:36:01]requested_item shift.num is exist - process it [15:36:01]requested_item shift.opened is exist - process it [15:36:01]req_shift_opened [15:36:01]FM_GetShiftState [15:36:01]SAM_PROTO_GetShiftState [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 13 01 00 [15:36:01]Write to MH i2c: E2 08 00 45 0F 80 13 01 00 00 00 00 00 D1 [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 45 0F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FA [15:36:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:36:01]wFMCommunicate OK [15:36:01]SAM_PROTO_GetShiftState done [15:36:01]FM_GetShiftState done [15:36:01]req_shift_opened done [15:36:01]requested_item shift.open_date is exist - process it [15:36:01]req_shift_open_date [15:36:01]req_shift_open_date done [15:36:01]produce_requested_data done [15:36:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139699,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:36:01]process_action_free close_receipt [15:36:01]json_value_free [15:36:01]json_value_free done [15:36:01]process_json_proto returns [15:36:01]Send response to host [15:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139699,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:36:01]free response buf [15:36:01]execute_script done [15:36:01]execute_script returns [15:36:01]free content buf [15:36:01]Sock 9.Close socket [15:36:01]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:24]accept exits with 7 [15:38:24]New connection [15:38:24]New thread 3066654052 created [15:38:24]Thread 3066510692 joined [15:38:24]Waiting for new connection... [15:38:24] Sock 7.Parse request [15:38:24]Sock 7.Check first char [15:38:24]Sock 7.First char is OK [15:38:24]request: POST /json_proto HTTP/1.0 [15:38:24]Method: POST [15:38:24]URL: /json_proto [15:38:24]Method is POST - this is cgi request [15:38:24]url: /json_proto [15:38:24]query_string will be loaded in cgi processing [15:38:24]execute_cgi json_proto POST (null) [15:38:24]execute_cgi path=json_proto method=POST [15:38:24]POST find Content-Length [15:38:24]Host: 172.17.50.196:8080 [15:38:24]Content-Length: 890 [15:38:24]Content-Type: application/json [15:38:24] [15:38:24]POST finish read [15:38:24]Found Content-Length = 890 [15:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335547", "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": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 445.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:24]execute_script... [15:38:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335547", "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": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 445.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:24]POST & json_proto [15:38:24]process_json_proto [15:38:24]json parsed OK: [15:38:24]protocol is kg_v1.0 [15:38:24]action value=close_receipt [15:38:24]process_action close_receipt [15:38:24]cmd_close_receipt [15:38:24]MH_GetDate [15:38:24]Write to MH i2c: F0 00 00 46 0F 44 [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: F0 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: F0 09 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: F0 09 00 46 0F 00 71 A4 23 67 72 0D 1C 67 EE [15:38:24]GetLastDocTimeStamp 1730388959 [15:38:24]current date 1730389105 [15:38:24]FM_GetShiftState [15:38:24]SAM_PROTO_GetShiftState [15:38:24]wFMCommunicate request_size=4 [15:38:24]MH_SAM_APDU [15:38:24]CAPDU: 80 13 01 00 [15:38:24]Write to MH i2c: E2 08 00 47 0F 80 13 01 00 00 00 00 00 D3 [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:24]Read from MH i2c: E2 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 0E 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 0E 00 47 0F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FC [15:38:24]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:38:24]wFMCommunicate OK [15:38:24]SAM_PROTO_GetShiftState done [15:38:24]FM_GetShiftState done [15:38:24]opened in 1730332621 [15:38:24]opened+sec_in_day 1730419021 [15:38:24]quantity*price = 32000 [15:38:24]sum+1 = 32001 [15:38:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 445.00 НСП 1% : 3.94 НДС 12% : 47.25 Наличными: 445.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 177 31.10.2024 15:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139700 ФПД: 84609568898378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153825&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139700&fm=84609568898378&tin=02508201610067®Number=0000000000091631&sum=44500 0 [15:38:25]StoreToDocumentArchive [15:38:25]shift 557 fd 139700 [15:38:25]save to /storage/0557/doc_00139700 [15:38:25]save last doc name /storage/0557/doc_00139700 to /storage/kkm_last_doc_name [15:38:25]save OK [15:38:25]Clear old archive folders... [15:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=388 [15:38:25]tlvbuf is 009F7840 [15:38:25]SAM_PROTO_ClearQueue [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 09 00 00 [15:38:25]Write to MH i2c: E2 08 00 54 0F 80 09 00 00 00 00 00 00 D5 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [15:38:25]RAPDU: 90 00 [15:38:25]wFMCommunicate OK [15:38:25]SAM_PROTO_ClearQueue done [15:38:25]KKMCreateOFDPacket [15:38:25]OFDProtocolAddRootSTLVToBuf [15:38:25]FM_MakeSignedData [15:38:25]FM_MakeSignedData [15:38:25]SAM_PROTO_SignData [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 0D 01 02 [15:38:25]Write to MH i2c: E2 08 00 55 0F 80 0D 01 02 00 00 00 00 DD [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [15:38:25]RAPDU: 90 00 [15:38:25]wFMCommunicate OK [15:38:25]wFMCommunicate request_size=255 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 0D 02 02 FA 03 00 84 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [15:38:25]Write to MH i2c: E2 02 01 56 0F 80 0D 02 02 FA 00 03 00 84 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 59 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [15:38:25]RAPDU: 90 00 [15:38:25]wFMCommunicate OK [15:38:25]wFMCommunicate request_size=147 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 0D 02 02 8E F7 03 06 00 8A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 71 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C F3 B3 4C 7D 4A [15:38:25]Write to MH i2c: E2 96 00 57 0F 80 0D 02 02 8E 00 F7 03 06 00 8A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 71 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C F3 B3 4C 7D 4A 00 00 1A [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]OFD Sender: No OFD packet to send [15:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 03 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [15:38:26]RAPDU: 90 00 [15:38:26]wFMCommunicate OK [15:38:26]wFMCommunicate request_size=4 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 0D 03 02 [15:38:26]Write to MH i2c: E2 08 00 58 0F 80 0D 03 02 00 00 00 00 E2 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 0B 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 0B 00 58 0F 00 C2 A4 08 87 6F 6D 08 37 90 00 F3 [15:38:26]RAPDU: C2 A4 08 87 6F 6D 08 37 90 00 [15:38:26]wFMCommunicate OK [15:38:26]SAM_PROTO_SignData done [15:38:26]FM_MakeSignedData done [15:38:26]CreateOFDProtocolMessage [15:38:26]wFMCommunicate request_size=4 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 11 00 00 [15:38:26]Write to MH i2c: E2 08 00 59 0F 80 11 00 00 00 00 00 00 E2 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 17 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 17 00 59 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [15:38: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:38:26]wFMCommunicate OK [15:38:26]CreateOFDProtocolMessage done [15:38:26]OFDSenderStorePacket 139700 [15:38:26]StoreOFDPacket docnum=139700 [15:38: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 98 01 00 00 57 9B 90 01 C4 CD 5A 03 01 00 03 00 84 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 71 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C F3 B3 4C 7D 4A C2 A4 08 87 6F 6D 08 37 [15:38:26]CheckFolder [15:38:26]dirname=/storage/ofd_packets [15:38:26]CheckFolder done [15:38:26]ProducePacketName [15:38:26]name=ofd_packets/00139700 [15:38:26]NVStorageSaveData ofd_packets/00139700 [15:38:26]File name is /storage/ofd_packets/00139700 [15:38:26]Write 438 bytes [15:38:26]NVStorageSaveData done [15:38:26]OFDSenderStorePacket done [15:38:26]KKMCreateOFDPacket done [15:38:26]NVStorageSaveData kkm_last_timestamp [15:38:26]File name is /storage/kkm_last_timestamp [15:38:26]Write 4 bytes [15:38:26]NVStorageSaveData done [15:38:26]ExternCall_PrintAddStr [15:38:26]wPrintStart [15:38:26]Write to MH i2c: 01 00 00 5A 0F 69 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 5A 0F 00 00 00 00 00 FF 0F 7E [15:38:26]RasterBufferAndPrint [15:38:26]line Счет N : (3)335547 [15:38:26]line ИНН: 02508201610067 [15:38:26]line Контрольно-Кассовый Чек [15:38:26]line ПРОДАЖА [15:38:26]line Товар: 48741958 [15:38:26]line Сигареты Parliament Aqua Blue [15:38:26]line 2.000 * 160.00 [15:38:26]line = 320.00 [15:38:26]line НДС 12% НСП 1% [15:38:26]line > о реализуемом товаре [15:38:26]line Товар: 2000036190018 [15:38:26]line Кофе Американо XL(GABB TRADE) [15:38:26]line 1.000 * 125.00 [15:38:26]line = 125.00 [15:38:26]line НДС 12% НСП 1% [15:38:26]line > о реализуемом товаре [15:38:26]line ИТОГО: 445.00 [15:38:26]line НСП 1% : 3.94 [15:38:26]line НДС 12% : 47.25 [15:38:26]line Наличными: 445.00 [15:38:26]line Безнал.: 0.00 [15:38:26]line Место: АЗС № 101 "Партнер Нефть" [15:38:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:38:26]line СНО: Общий режим [15:38:26]line Чек 177 31.10.2024 15:38 [15:38:26]line Смена: 557 ФФД: 1.0 [15:38:26]line ЗНМ: 0300000081 [15:38:26]line РНМ: 0000000000091631 [15:38:26]line Версия ККМ: 001 [15:38:26]line ФМ: 0000000000874669 [15:38:26]line ФД: 139700 [15:38:26]line ФПД: 84609568898378 [15:38:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T153825&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139700&fm=84609568898378&tin=02508201610067®Number=0000000000091631&sum=44500 [15:38:26]line 0 [15:38:26]OFD Sender: Processing packet 139700 [packets to send 34, broken 33] [15:38:26]ProducePacketName [15:38:26]name=ofd_packets/00139700 [15:38:26]OFD Sender: To server: pG, [15:38:26]CommunicateWithHost lk.salyk.kg:30040 [15:38:26]ConnectInit lk.salyk.kg [15:38:26]written 0, free lines is 4095 [15:38:26]Connected sock=10 [15:38: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 98 01 00 00 57 9B 90 01 C4 CD 5A 03 01 00 03 00 84 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 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 12 00 00 00 00 07 04 06 00 D4 AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 71 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4C F3 B3 4C 7D 4A C2 A4 08 87 6F 6D 08 37 [15:38: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 6D F5 47 00 28 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 21 02 00 F4 03 04 00 1F 50 23 67 B6 04 01 00 00 5E 7E 3A B1 73 6E 62 5B [15:38:26]CommunicateWithHost err = 0 [15:38:26]CheckOFDResponse [15:38:26]1017 (14) - 77093643461234 [15:38:26]1041 (16) - 0000000000874669 [15:38:26]1040 (4) - 139700 [15:38:26]1012 (4) - 31.10.2024 09:38 [15:38:26]1206 (1) - 0 [15:38:26]OFD Sender: Remove packet 139700 [15:38:26]ProducePacketName [15:38:26]name=ofd_packets/00139700 [15:38:26]NVStorageDeleteData [15:38:26]Write to MH i2c: 01 00 00 8A 0F 99 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 8A 0F 00 00 00 00 00 8D 0C 39 [15:38:26]RasterBufferAndPrint [15:38:26]line [15:38:26]line [15:38:26]line [15:38:26]line [15:38:26]line [15:38:26]written 0, free lines is 3220 [15:38:26]MH_Cut [15:38:26]Write to MH i2c: D1 01 00 91 0F 01 72 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: D1 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: D1 01 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: D1 01 00 91 0F 00 71 [15:38:26]Write to MH i2c: 01 00 00 92 0F A1 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:27]OFD Sender: No OFD packet to send [15:38:27]*** Cut start [15:38:27]*** Partial cut [15:38:27]*** CUTSNS_PIN = 1 [15:38:27]*** CUTSNS_PIN = 0 [15:38:27]*** Brake cut motor [15:38:28]Read from MH i2c: 01 [15:38:28]MH_I2C_Read... [15:38:28]*** Stop cut motor [15:38:28]*** Cut end [15:38:28]Read from MH i2c: 01 07 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: 01 07 00 92 0F 00 00 00 00 00 FF 0F B6 [15:38:28]process_action close_receipt done [15:38:28]requested_data is exist [15:38:28]produce_requested_data [15:38:28]requested_item fm.sn is exist - process it [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 11 00 00 [15:38:28]Write to MH i2c: E2 08 00 93 0F 80 11 00 00 00 00 00 00 1C [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 17 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 17 00 93 0F 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:38:28]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:28]wFMCommunicate OK [15:38:28]requested_item fd.num is exist - process it [15:38:28]SAM_PROTO_GetFieldsCounters [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 13 00 00 [15:38:28]Write to MH i2c: E2 08 00 94 0F 80 13 00 00 00 00 00 00 1F [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 62 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 62 00 94 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 5C [15:38: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 B4 21 02 00 0E 04 04 00 2D 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:38:28]wFMCommunicate OK [15:38:28]SAM_PROTO_GetFieldsCounters done [15:38:28]requested_item shift.num is exist - process it [15:38:28]requested_item shift.opened is exist - process it [15:38:28]req_shift_opened [15:38:28]FM_GetShiftState [15:38:28]SAM_PROTO_GetShiftState [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 13 01 00 [15:38:28]Write to MH i2c: E2 08 00 95 0F 80 13 01 00 00 00 00 00 21 [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 0E 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 0E 00 95 0F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4A [15:38:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:38:28]wFMCommunicate OK [15:38:28]SAM_PROTO_GetShiftState done [15:38:28]FM_GetShiftState done [15:38:28]req_shift_opened done [15:38:28]requested_item shift.open_date is exist - process it [15:38:28]req_shift_open_date [15:38:28]req_shift_open_date done [15:38:28]produce_requested_data done [15:38:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139700,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:38:28]process_action_free close_receipt [15:38:28]json_value_free [15:38:28]json_value_free done [15:38:28]process_json_proto returns [15:38:28]Send response to host [15:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139700,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:38:28]free response buf [15:38:28]execute_script done [15:38:28]execute_script returns [15:38:28]free content buf [15:38:28]Sock 7.Close socket [15:38:28]Sock 7.Thread stoped [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:00]accept exits with 9 [15:40:00]New connection [15:40:00]New thread 3066510692 created [15:40:00]Thread 3066654052 joined [15:40:00]Waiting for new connection... [15:40:00] Sock 9.Parse request [15:40:00]Sock 9.Check first char [15:40:00]Sock 9.First char is OK [15:40:00]request: POST /json_proto HTTP/1.0 [15:40:00]Method: POST [15:40:00]URL: /json_proto [15:40:00]Method is POST - this is cgi request [15:40:00]url: /json_proto [15:40:00]query_string will be loaded in cgi processing [15:40:00]execute_cgi json_proto POST (null) [15:40:00]execute_cgi path=json_proto method=POST [15:40:00]POST find Content-Length [15:40:00]Host: 172.17.50.196:8080 [15:40:00]Content-Length: 907 [15:40:00]Content-Type: application/json [15:40:00] [15:40:00]POST finish read [15:40:00]Found Content-Length = 907 [15:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335548", "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": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 2.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 407.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:00]execute_script... [15:40:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335548", "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": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 2.000, "sum" : 308.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 407.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:00]POST & json_proto [15:40:00]process_json_proto [15:40:00]json parsed OK: [15:40:00]protocol is kg_v1.0 [15:40:00]action value=close_receipt [15:40:00]process_action close_receipt [15:40:00]cmd_close_receipt [15:40:00]MH_GetDate [15:40:00]Write to MH i2c: F0 00 00 96 0F 94 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: F0 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: F0 09 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: F0 09 00 96 0F 00 D1 A4 23 67 72 0D 1C 67 9E [15:40:00]GetLastDocTimeStamp 1730389105 [15:40:00]current date 1730389201 [15:40:00]FM_GetShiftState [15:40:00]SAM_PROTO_GetShiftState [15:40:00]wFMCommunicate request_size=4 [15:40:00]MH_SAM_APDU [15:40:00]CAPDU: 80 13 01 00 [15:40:00]Write to MH i2c: E2 08 00 97 0F 80 13 01 00 00 00 00 00 23 [15:40:00]Write i2c OK [15:40:00]MH_I2C_Read... [15:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:00]Read from MH i2c: E2 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 0E 00 [15:40:00]MH_I2C_Read... [15:40:00]Read from MH i2c: E2 0E 00 97 0F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4C [15:40:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:40:00]wFMCommunicate OK [15:40:00]SAM_PROTO_GetShiftState done [15:40:00]FM_GetShiftState done [15:40:00]opened in 1730332621 [15:40:00]opened+sec_in_day 1730419021 [15:40:00]quantity*price = 9900 [15:40:00]sum+1 = 9901 [15:40:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747073 Сигареты Richmond Royal Edition 2.000 * 154.00 = 308.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 407.00 НСП 1% : 3.61 НДС 12% : 43.22 Наличными: 407.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 178 31.10.2024 15:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139701 ФПД: 150973582895032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154001&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139701&fm=150973582895032&tin=02508201610067®Number=0000000000091631&sum=40700 0 [15:40:01]StoreToDocumentArchive [15:40:01]shift 557 fd 139701 [15:40:01]save to /storage/0557/doc_00139701 [15:40:01]save last doc name /storage/0557/doc_00139701 to /storage/kkm_last_doc_name [15:40:01]save OK [15:40:01]Clear old archive folders... [15:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=399 [15:40:01]tlvbuf is 009F7980 [15:40:01]SAM_PROTO_ClearQueue [15:40:01]wFMCommunicate request_size=4 [15:40:01]MH_SAM_APDU [15:40:01]CAPDU: 80 09 00 00 [15:40:01]Write to MH i2c: E2 08 00 A4 0F 80 09 00 00 00 00 00 00 25 [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:01]Read from MH i2c: E2 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 A4 0F 00 90 00 27 [15:40:01]RAPDU: 90 00 [15:40:01]wFMCommunicate OK [15:40:01]SAM_PROTO_ClearQueue done [15:40:01]KKMCreateOFDPacket [15:40:01]OFDProtocolAddRootSTLVToBuf [15:40:01]FM_MakeSignedData [15:40:01]FM_MakeSignedData [15:40:01]SAM_PROTO_SignData [15:40:01]wFMCommunicate request_size=4 [15:40:01]MH_SAM_APDU [15:40:01]CAPDU: 80 0D 01 02 [15:40:01]Write to MH i2c: E2 08 00 A5 0F 80 0D 01 02 00 00 00 00 2D [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:01]Read from MH i2c: E2 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [15:40:01]RAPDU: 90 00 [15:40:01]wFMCommunicate OK [15:40:01]wFMCommunicate request_size=255 [15:40:01]MH_SAM_APDU [15:40:01]CAPDU: 80 0D 02 02 FA 03 00 8F 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 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 00 EB 03 [15:40:01]Write to MH i2c: E2 02 01 A6 0F 80 0D 02 02 FA 00 03 00 8F 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 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 00 EB 03 00 00 8E [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:01]Read from MH i2c: E2 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [15:40:01]RAPDU: 90 00 [15:40:01]wFMCommunicate OK [15:40:01]wFMCommunicate request_size=158 [15:40:01]MH_SAM_APDU [15:40:01]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 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 B2 00 00 00 F4 03 04 00 D1 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 89 4F 46 C7 67 B8 [15:40:01]Write to MH i2c: E2 A1 00 A7 0F 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 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 B2 00 00 00 F4 03 04 00 D1 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 89 4F 46 C7 67 B8 00 00 66 [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:01]Read from MH i2c: E2 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 [15:40:01]MH_I2C_Read... [15:40:01]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [15:40:01]RAPDU: 90 00 [15:40:01]wFMCommunicate OK [15:40:01]wFMCommunicate request_size=4 [15:40:01]MH_SAM_APDU [15:40:01]CAPDU: 80 0D 03 02 [15:40:01]Write to MH i2c: E2 08 00 A8 0F 80 0D 03 02 00 00 00 00 32 [15:40:01]Write i2c OK [15:40:01]MH_I2C_Read... [15:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:02]Read from MH i2c: E2 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 0B 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 0B 00 A8 0F 00 5C 3D 51 7B 54 38 F1 03 90 00 18 [15:40:02]RAPDU: 5C 3D 51 7B 54 38 F1 03 90 00 [15:40:02]wFMCommunicate OK [15:40:02]SAM_PROTO_SignData done [15:40:02]FM_MakeSignedData done [15:40:02]CreateOFDProtocolMessage [15:40:02]wFMCommunicate request_size=4 [15:40:02]MH_SAM_APDU [15:40:02]CAPDU: 80 11 00 00 [15:40:02]Write to MH i2c: E2 08 00 A9 0F 80 11 00 00 00 00 00 00 32 [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:02]Read from MH i2c: E2 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 17 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 17 00 A9 0F 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:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:40:02]wFMCommunicate OK [15:40:02]CreateOFDProtocolMessage done [15:40:02]OFDSenderStorePacket 139701 [15:40:02]StoreOFDPacket docnum=139701 [15:40: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 A3 01 00 00 C9 AE 9B 01 DC 62 5A 03 01 00 03 00 8F 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 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 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 B2 00 00 00 F4 03 04 00 D1 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 89 4F 46 C7 67 B8 5C 3D 51 7B 54 38 F1 03 [15:40:02]CheckFolder [15:40:02]dirname=/storage/ofd_packets [15:40:02]CheckFolder done [15:40:02]ProducePacketName [15:40:02]name=ofd_packets/00139701 [15:40:02]NVStorageSaveData ofd_packets/00139701 [15:40:02]File name is /storage/ofd_packets/00139701 [15:40:02]Write 449 bytes [15:40:02]NVStorageSaveData done [15:40:02]OFDSenderStorePacket done [15:40:02]KKMCreateOFDPacket done [15:40:02]NVStorageSaveData kkm_last_timestamp [15:40:02]File name is /storage/kkm_last_timestamp [15:40:02]Write 4 bytes [15:40:02]NVStorageSaveData done [15:40:02]ExternCall_PrintAddStr [15:40:02]wPrintStart [15:40:02]Write to MH i2c: 01 00 00 AA 0F B9 [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: 01 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: 01 07 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: 01 07 00 AA 0F 00 00 00 00 00 FF 0F CE [15:40:02]RasterBufferAndPrint [15:40:02]line Счет N : (3)335548 [15:40:02]line ИНН: 02508201610067 [15:40:02]line Контрольно-Кассовый Чек [15:40:02]line ПРОДАЖА [15:40:02]line Товар: 4870022003305 [15:40:02]line Напиток Gorilla эн нат ж/б 0,5/0,45л [15:40:02]line 1.000 * 99.00 [15:40:02]line = 99.00 [15:40:02]line НДС 12% НСП 1% [15:40:02]line > о реализуемом товаре [15:40:02]line Товар: 48747073 [15:40:02]line Сигареты Richmond Royal Edition [15:40:02]line 2.000 * 154.00 [15:40:02]line = 308.00 [15:40:02]line НДС 12% НСП 1% [15:40:02]line > о реализуемом товаре [15:40:02]line ИТОГО: 407.00 [15:40:02]line НСП 1% : 3.61 [15:40:02]line НДС 12% : 43.22 [15:40:02]line Наличными: 407.00 [15:40:02]line Безнал.: 0.00 [15:40:02]line Место: АЗС № 101 "Партнер Нефть" [15:40:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:40:02]line СНО: Общий режим [15:40:02]line Чек 178 31.10.2024 15:40 [15:40:02]line Смена: 557 ФФД: 1.0 [15:40:02]line ЗНМ: 0300000081 [15:40:02]line РНМ: 0000000000091631 [15:40:02]line Версия ККМ: 001 [15:40:02]line ФМ: 0000000000874669 [15:40:02]line ФД: 139701 [15:40:02]line ФПД: 150973582895032 [15:40:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154001&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139701&fm=150973582895032&tin=02508201610067®Number=0000000000091631&sum=40700 [15:40:02]OFD Sender: Processing packet 139701 [packets to send 34, broken 33] [15:40:02]ProducePacketName [15:40:02]name=ofd_packets/00139701 [15:40:02]OFD Sender: To server: pG, [15:40:02]CommunicateWithHost lk.salyk.kg:30040 [15:40:02]ConnectInit lk.salyk.kg [15:40:02]line 0 [15:40:02]written 0, free lines is 4095 [15:40:02]Connected sock=10 [15:40: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 A3 01 00 00 C9 AE 9B 01 DC 62 5A 03 01 00 03 00 8F 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 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 50 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 10 00 00 00 00 07 04 06 00 FC 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 B2 00 00 00 F4 03 04 00 D1 A4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 89 4F 46 C7 67 B8 5C 3D 51 7B 54 38 F1 03 [15:40: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 E0 11 47 00 21 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 21 02 00 F4 03 04 00 7F 50 23 67 B6 04 01 00 00 D0 7B 69 61 03 50 4D 2F [15:40:02]CommunicateWithHost err = 0 [15:40:02]CheckOFDResponse [15:40:02]1017 (14) - 77093643461234 [15:40:02]1041 (16) - 0000000000874669 [15:40:02]1040 (4) - 139701 [15:40:02]1012 (4) - 31.10.2024 09:40 [15:40:02]1206 (1) - 0 [15:40:02]OFD Sender: Remove packet 139701 [15:40:02]ProducePacketName [15:40:02]name=ofd_packets/00139701 [15:40:02]NVStorageDeleteData [15:40:02]Write to MH i2c: 01 00 00 DA 0F E9 [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: 01 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: 01 07 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: 01 07 00 DA 0F 00 00 00 00 00 A2 0C 9E [15:40:02]RasterBufferAndPrint [15:40:02]line [15:40:02]line [15:40:02]line [15:40:02]line [15:40:02]line [15:40:02]written 0, free lines is 3240 [15:40:02]MH_Cut [15:40:02]Write to MH i2c: D1 01 00 E1 0F 01 C2 [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: D1 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: D1 01 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: D1 01 00 E1 0F 00 C1 [15:40:02]Write to MH i2c: 01 00 00 E2 0F F1 [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:03]OFD Sender: No OFD packet to send [15:40:03]*** Cut start [15:40:03]*** Partial cut [15:40:03]*** CUTSNS_PIN = 1 [15:40:03]*** CUTSNS_PIN = 0 [15:40:03]*** Brake cut motor [15:40:04]Read from MH i2c: 01 [15:40:04]MH_I2C_Read... [15:40:04]*** Stop cut motor [15:40:04]*** Cut end [15:40:04]Read from MH i2c: 01 07 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 FF 0F 06 [15:40:04]process_action close_receipt done [15:40:04]requested_data is exist [15:40:04]produce_requested_data [15:40:04]requested_item fm.sn is exist - process it [15:40:04]wFMCommunicate request_size=4 [15:40:04]MH_SAM_APDU [15:40:04]CAPDU: 80 11 00 00 [15:40:04]Write to MH i2c: E2 08 00 E3 0F 80 11 00 00 00 00 00 00 6C [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:04]Read from MH i2c: E2 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 17 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 17 00 E3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C7 [15:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:40:04]wFMCommunicate OK [15:40:04]requested_item fd.num is exist - process it [15:40:04]SAM_PROTO_GetFieldsCounters [15:40:04]wFMCommunicate request_size=4 [15:40:04]MH_SAM_APDU [15:40:04]CAPDU: 80 13 00 00 [15:40:04]Write to MH i2c: E2 08 00 E4 0F 80 13 00 00 00 00 00 00 6F [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:04]Read from MH i2c: E2 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 62 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 62 00 E4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 B0 [15:40:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:40:04]wFMCommunicate OK [15:40:04]SAM_PROTO_GetFieldsCounters done [15:40:04]requested_item shift.num is exist - process it [15:40:04]requested_item shift.opened is exist - process it [15:40:04]req_shift_opened [15:40:04]FM_GetShiftState [15:40:04]SAM_PROTO_GetShiftState [15:40:04]wFMCommunicate request_size=4 [15:40:04]MH_SAM_APDU [15:40:04]CAPDU: 80 13 01 00 [15:40:04]Write to MH i2c: E2 08 00 E5 0F 80 13 01 00 00 00 00 00 71 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:04]Read from MH i2c: E2 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 0E 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 0E 00 E5 0F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9A [15:40:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:40:04]wFMCommunicate OK [15:40:04]SAM_PROTO_GetShiftState done [15:40:04]FM_GetShiftState done [15:40:04]req_shift_opened done [15:40:04]requested_item shift.open_date is exist - process it [15:40:04]req_shift_open_date [15:40:04]req_shift_open_date done [15:40:04]produce_requested_data done [15:40:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139701,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:40:04]process_action_free close_receipt [15:40:04]json_value_free [15:40:04]json_value_free done [15:40:04]process_json_proto returns [15:40:04]Send response to host [15:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139701,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:40:04]free response buf [15:40:04]execute_script done [15:40:04]execute_script returns [15:40:04]free content buf [15:40:04]Sock 9.Close socket [15:40:04]Sock 9.Thread stoped [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:14]accept exits with 7 [15:43:14]New connection [15:43:14]New thread 3066654052 created [15:43:14]Thread 3066510692 joined [15:43:14]Waiting for new connection... [15:43:14] Sock 7.Parse request [15:43:14]Sock 7.Check first char [15:43:14]Sock 7.First char is OK [15:43:14]request: POST /json_proto HTTP/1.0 [15:43:14]Method: POST [15:43:14]URL: /json_proto [15:43:14]Method is POST - this is cgi request [15:43:14]url: /json_proto [15:43:14]query_string will be loaded in cgi processing [15:43:14]execute_cgi json_proto POST (null) [15:43:14]execute_cgi path=json_proto method=POST [15:43:14]POST find Content-Length [15:43:14]Host: 172.17.50.196:8080 [15:43:14]Content-Length: 683 [15:43:14]Content-Type: application/json [15:43:14] [15:43:14]POST finish read [15:43:14]Found Content-Length = 683 [15:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095271", "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" : 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" ] } } [15:43:14]execute_script... [15:43:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095271", "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" : 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" ] } } [15:43:14]POST & json_proto [15:43:14]process_json_proto [15:43:14]json parsed OK: [15:43:14]protocol is kg_v1.0 [15:43:14]action value=close_receipt [15:43:14]process_action close_receipt [15:43:14]cmd_close_receipt [15:43:14]MH_GetDate [15:43:14]Write to MH i2c: F0 00 00 E6 0F E4 [15:43:14]Write i2c OK [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: F0 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: F0 09 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: F0 09 00 E6 0F 00 94 A5 23 67 72 0D 1C 67 B2 [15:43:14]GetLastDocTimeStamp 1730389201 [15:43:14]current date 1730389396 [15:43:14]FM_GetShiftState [15:43:14]SAM_PROTO_GetShiftState [15:43:14]wFMCommunicate request_size=4 [15:43:14]MH_SAM_APDU [15:43:14]CAPDU: 80 13 01 00 [15:43:14]Write to MH i2c: E2 08 00 E7 0F 80 13 01 00 00 00 00 00 73 [15:43:14]Write i2c OK [15:43:14]MH_I2C_Read... [15:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:14]Read from MH i2c: E2 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 0E 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 0E 00 E7 0F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9C [15:43:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:43:14]wFMCommunicate OK [15:43:14]SAM_PROTO_GetShiftState done [15:43:14]FM_GetShiftState done [15:43:14]opened in 1730332621 [15:43:14]opened+sec_in_day 1730419021 [15:43:14]quantity*price = 100021 [15:43:14]sum+1 = 100023 [15:43:14]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 СНО: Общий режим Чек 179 31.10.2024 15:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139702 ФПД: 243423002566617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154316&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139702&fm=243423002566617&tin=02508201610067®Number=0000000000091631&sum=100000 [15:43:16]StoreToDocumentArchive [15:43:16]shift 557 fd 139702 [15:43:16]save to /storage/0557/doc_00139702 [15:43:16]save last doc name /storage/0557/doc_00139702 to /storage/kkm_last_doc_name [15:43:16]save OK [15:43:16]Clear old archive folders... [15:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:16]tlvbuf is 00A29950 [15:43:16]SAM_PROTO_ClearQueue [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 09 00 00 [15:43:16]Write to MH i2c: E2 08 00 F4 0F 80 09 00 00 00 00 00 00 75 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [15:43:16]RAPDU: 90 00 [15:43:16]wFMCommunicate OK [15:43:16]SAM_PROTO_ClearQueue done [15:43:16]KKMCreateOFDPacket [15:43:16]OFDProtocolAddRootSTLVToBuf [15:43:16]FM_MakeSignedData [15:43:16]FM_MakeSignedData [15:43:16]SAM_PROTO_SignData [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 0D 01 02 [15:43:16]Write to MH i2c: E2 08 00 F5 0F 80 0D 01 02 00 00 00 00 7D [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [15:43:16]RAPDU: 90 00 [15:43:16]wFMCommunicate OK [15:43:16]wFMCommunicate request_size=255 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B3 00 00 00 F4 03 04 00 94 A5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DD [15:43:16]Write to MH i2c: E2 02 01 F6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B3 00 00 00 F4 03 04 00 94 A5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DD 00 00 85 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [15:43:16]RAPDU: 90 00 [15:43:16]wFMCommunicate OK [15:43:16]wFMCommunicate request_size=10 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 0D 02 02 05 64 55 99 1F D9 [15:43:16]Write to MH i2c: E2 0D 00 F7 0F 80 0D 02 02 05 00 64 55 99 1F D9 00 00 D4 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [15:43:16]RAPDU: 90 00 [15:43:16]wFMCommunicate OK [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 0D 03 02 [15:43:16]Write to MH i2c: E2 08 00 F8 0F 80 0D 03 02 00 00 00 00 82 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 0B 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 0B 00 F8 0F 00 BA 51 15 4F AE 8E 87 EA 90 00 9F [15:43:16]RAPDU: BA 51 15 4F AE 8E 87 EA 90 00 [15:43:16]wFMCommunicate OK [15:43:16]SAM_PROTO_SignData done [15:43:16]FM_MakeSignedData done [15:43:16]CreateOFDProtocolMessage [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 11 00 00 [15:43:16]Write to MH i2c: E2 08 00 F9 0F 80 11 00 00 00 00 00 00 82 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 17 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 17 00 F9 0F 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:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:43:16]wFMCommunicate OK [15:43:16]CreateOFDProtocolMessage done [15:43:16]OFDSenderStorePacket 139702 [15:43:16]StoreOFDPacket docnum=139702 [15:43: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 0F 01 00 00 42 73 07 01 61 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B3 00 00 00 F4 03 04 00 94 A5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DD 64 55 99 1F D9 BA 51 15 4F AE 8E 87 EA [15:43:16]CheckFolder [15:43:16]dirname=/storage/ofd_packets [15:43:16]CheckFolder done [15:43:16]ProducePacketName [15:43:16]name=ofd_packets/00139702 [15:43:16]NVStorageSaveData ofd_packets/00139702 [15:43:16]File name is /storage/ofd_packets/00139702 [15:43:16]Write 301 bytes [15:43:16]NVStorageSaveData done [15:43:16]OFDSenderStorePacket done [15:43:16]KKMCreateOFDPacket done [15:43:16]NVStorageSaveData kkm_last_timestamp [15:43:16]File name is /storage/kkm_last_timestamp [15:43:16]Write 4 bytes [15:43:16]NVStorageSaveData done [15:43:16]ExternCall_PrintAddStr [15:43:16]wPrintStart [15:43:16]Write to MH i2c: 01 00 00 FA 0F 09 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: 01 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: 01 07 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 FF 0F 1E [15:43:16]RasterBufferAndPrint [15:43:16]line Счет N : (1)1095271 [15:43:16]line ИНН: 02508201610067 [15:43:16]line Контрольно-Кассовый Чек [15:43:16]line ПРОДАЖА [15:43:16]line ТРК (МРК, ГНК) : 54 [15:43:16]line Товар: 2710124500 [15:43:16]line Аи-95-К-3 [15:43:16]line 13.480 * 74.20 [15:43:16]line = 1000.22 [15:43:16]line НДС 12% НСП 1% [15:43:16]line > о реализуемом товаре [15:43:16]line ОКРУГЛЕНИЕ: -0.22 [15:43:16]line ИТОГО: 1000.00 [15:43:16]line Внесено: 1000.00 [15:43:16]line СДАЧА: 0.00 [15:43:16]line НСП 1% : 8.85 [15:43:16]line НДС 12% : 106.22 [15:43:16]line Наличными: 1000.00 [15:43:16]line Безнал.: 0.00 [15:43:16]line Место: АЗС № 101 "Партнер Нефть" [15:43:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:43:16]line СНО: Общий режим [15:43:16]line Чек 179 31.10.2024 15:43 [15:43:16]line Смена: 557 ФФД: 1.0 [15:43:16]line ЗНМ: 0300000081 [15:43:16]line РНМ: 0000000000091631 [15:43:16]line Версия ККМ: 001 [15:43:16]line ФМ: 0000000000874669 [15:43:16]line ФД: 139702 [15:43:16]line ФПД: 243423002566617 [15:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T154316&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139702&fm=243423002566617&tin=02508201610067®Number=0000000000091631&sum=100000 [15:43:16]OFD Sender: Processing packet 139702 [packets to send 34, broken 33] [15:43:16]ProducePacketName [15:43:16]name=ofd_packets/00139702 [15:43:16]OFD Sender: To server: pG, [15:43:16]CommunicateWithHost lk.salyk.kg:30040 [15:43:16]ConnectInit lk.salyk.kg [15:43:16]written 0, free lines is 4095 [15:43:17]Connected sock=10 [15:43: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 0F 01 00 00 42 73 07 01 61 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B3 00 00 00 F4 03 04 00 94 A5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DD 64 55 99 1F D9 BA 51 15 4F AE 8E 87 EA [15:43: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 87 6B 47 00 B8 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 21 02 00 F4 03 04 00 41 51 23 67 B6 04 01 00 00 A4 88 FA 61 4E 07 03 6D [15:43:17]CommunicateWithHost err = 0 [15:43:17]CheckOFDResponse [15:43:17]1017 (14) - 77093643461234 [15:43:17]1041 (16) - 0000000000874669 [15:43:17]1040 (4) - 139702 [15:43:17]1012 (4) - 31.10.2024 09:43 [15:43:17]1206 (1) - 0 [15:43:17]OFD Sender: Remove packet 139702 [15:43:17]ProducePacketName [15:43:17]name=ofd_packets/00139702 [15:43:17]NVStorageDeleteData [15:43:17]Write to MH i2c: 01 00 00 25 10 35 [15:43:17]Write i2c OK [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: 01 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: 01 07 00 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: 01 07 00 25 10 00 00 00 00 00 E4 0C 2C [15:43:17]RasterBufferAndPrint [15:43:17]line [15:43:17]line [15:43:17]line [15:43:17]line [15:43:17]line [15:43:17]written 0, free lines is 3306 [15:43:17]MH_Cut [15:43:17]Write to MH i2c: D1 01 00 2C 10 01 0E [15:43:17]Write i2c OK [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: D1 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: D1 01 00 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: D1 01 00 2C 10 00 0D [15:43:17]Write to MH i2c: 01 00 00 2D 10 3D [15:43:17]Write i2c OK [15:43:17]MH_I2C_Read... [15:43:17]OFD Sender: No OFD packet to send [15:43:18]*** Cut start [15:43:18]*** Partial cut [15:43:18]*** CUTSNS_PIN = 1 [15:43:18]*** CUTSNS_PIN = 0 [15:43:18]*** Brake cut motor [15:43:18]Read from MH i2c: 01 [15:43:18]MH_I2C_Read... [15:43:18]*** Stop cut motor [15:43:18]*** Cut end [15:43:18]Read from MH i2c: 01 07 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 FF 0F 52 [15:43:18]process_action close_receipt done [15:43:18]requested_data is exist [15:43:18]produce_requested_data [15:43:18]requested_item fm.sn is exist - process it [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 11 00 00 [15:43:18]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 17 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 13 [15:43: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:43:18]wFMCommunicate OK [15:43:18]requested_item fd.num is exist - process it [15:43:18]SAM_PROTO_GetFieldsCounters [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 13 00 00 [15:43:18]Write to MH i2c: E2 08 00 2F 10 80 13 00 00 00 00 00 00 BB [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 62 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 62 00 2F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 00 [15:43: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 B6 21 02 00 0E 04 04 00 2D 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:43:18]wFMCommunicate OK [15:43:18]SAM_PROTO_GetFieldsCounters done [15:43:18]requested_item shift.num is exist - process it [15:43:18]requested_item shift.opened is exist - process it [15:43:18]req_shift_opened [15:43:18]FM_GetShiftState [15:43:18]SAM_PROTO_GetShiftState [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 13 01 00 [15:43:18]Write to MH i2c: E2 08 00 30 10 80 13 01 00 00 00 00 00 BD [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 30 10 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E6 [15:43:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:43:18]wFMCommunicate OK [15:43:18]SAM_PROTO_GetShiftState done [15:43:18]FM_GetShiftState done [15:43:18]req_shift_opened done [15:43:18]requested_item shift.open_date is exist - process it [15:43:18]req_shift_open_date [15:43:18]req_shift_open_date done [15:43:18]produce_requested_data done [15:43:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139702,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:43:18]process_action_free close_receipt [15:43:18]json_value_free [15:43:18]json_value_free done [15:43:18]process_json_proto returns [15:43:18]Send response to host [15:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139702,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:43:18]free response buf [15:43:18]execute_script done [15:43:18]execute_script returns [15:43:18]free content buf [15:43:18]Sock 7.Close socket [15:43:18]Sock 7.Thread stoped [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:16]accept exits with 9 [15:51:16]New connection [15:51:16]New thread 3066510692 created [15:51:16]Thread 3066654052 joined [15:51:16]Waiting for new connection... [15:51:16] Sock 9.Parse request [15:51:16]Sock 9.Check first char [15:51:16]Sock 9.First char is OK [15:51:16]request: POST /json_proto HTTP/1.0 [15:51:16]Method: POST [15:51:16]URL: /json_proto [15:51:16]Method is POST - this is cgi request [15:51:16]url: /json_proto [15:51:16]query_string will be loaded in cgi processing [15:51:16]execute_cgi json_proto POST (null) [15:51:16]execute_cgi path=json_proto method=POST [15:51:16]POST find Content-Length [15:51:16]Host: 172.17.50.196:8080 [15:51:16]Content-Length: 747 [15:51:16]Content-Type: application/json [15:51:16] [15:51:16]POST finish read [15:51:16]Found Content-Length = 747 [15:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335549", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:16]execute_script... [15:51: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)335549", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:16]POST & json_proto [15:51:16]process_json_proto [15:51:16]json parsed OK: [15:51:16]protocol is kg_v1.0 [15:51:16]action value=close_receipt [15:51:16]process_action close_receipt [15:51:16]cmd_close_receipt [15:51:16]MH_GetDate [15:51:16]Write to MH i2c: F0 00 00 31 10 30 [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 09 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 09 00 31 10 00 76 A7 23 67 72 0D 1C 67 E2 [15:51:16]GetLastDocTimeStamp 1730389396 [15:51:16]current date 1730389878 [15:51:16]FM_GetShiftState [15:51:16]SAM_PROTO_GetShiftState [15:51:16]wFMCommunicate request_size=4 [15:51:16]MH_SAM_APDU [15:51:16]CAPDU: 80 13 01 00 [15:51:16]Write to MH i2c: E2 08 00 32 10 80 13 01 00 00 00 00 00 BF [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:16]Read from MH i2c: E2 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 32 10 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E8 [15:51:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:51:16]wFMCommunicate OK [15:51:16]SAM_PROTO_GetShiftState done [15:51:16]FM_GetShiftState done [15:51:16]opened in 1730332621 [15:51:16]opened+sec_in_day 1730419021 [15:51:16]quantity*price = 15900 [15:51:16]sum+1 = 15901 [15:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 180 31.10.2024 15:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139703 ФПД: 68640121331535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155118&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139703&fm=68640121331535&tin=02508201610067®Number=0000000000091631&sum=15900 0 [15:51:18]StoreToDocumentArchive [15:51:18]shift 557 fd 139703 [15:51:18]save to /storage/0557/doc_00139703 [15:51:18]save last doc name /storage/0557/doc_00139703 to /storage/kkm_last_doc_name [15:51:18]save OK [15:51:18]Clear old archive folders... [15:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=272 [15:51:18]tlvbuf is 00AA30F0 [15:51:18]SAM_PROTO_ClearQueue [15:51:18]wFMCommunicate request_size=4 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 09 00 00 [15:51:18]Write to MH i2c: E2 08 00 3F 10 80 09 00 00 00 00 00 00 C1 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 3F 10 00 90 00 C3 [15:51:18]RAPDU: 90 00 [15:51:18]wFMCommunicate OK [15:51:18]SAM_PROTO_ClearQueue done [15:51:18]KKMCreateOFDPacket [15:51:18]OFDProtocolAddRootSTLVToBuf [15:51:18]FM_MakeSignedData [15:51:18]FM_MakeSignedData [15:51:18]SAM_PROTO_SignData [15:51:18]wFMCommunicate request_size=4 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 0D 01 02 [15:51:18]Write to MH i2c: E2 08 00 40 10 80 0D 01 02 00 00 00 00 C9 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [15:51:18]RAPDU: 90 00 [15:51:18]wFMCommunicate OK [15:51:18]wFMCommunicate request_size=255 [15:51:18]MH_SAM_APDU [15:51:18]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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 76 A7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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:51:18]Write to MH i2c: E2 02 01 41 10 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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 76 A7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 5D [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]OFD Sender: No OFD packet to send [15:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 41 10 00 90 00 C5 [15:51:18]RAPDU: 90 00 [15:51:18]wFMCommunicate OK [15:51:18]wFMCommunicate request_size=31 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 B7 21 02 00 35 04 06 00 3E 6D 86 0C 9F 4F [15:51:18]Write to MH i2c: E2 22 00 42 10 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 B7 21 02 00 35 04 06 00 3E 6D 86 0C 9F 4F 00 00 04 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 42 10 00 90 00 C6 [15:51:18]RAPDU: 90 00 [15:51:18]wFMCommunicate OK [15:51:18]wFMCommunicate request_size=4 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 0D 03 02 [15:51:18]Write to MH i2c: E2 08 00 43 10 80 0D 03 02 00 00 00 00 CE [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 0B 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 0B 00 43 10 00 96 7C C2 22 F5 1F 6D E7 90 00 2D [15:51:18]RAPDU: 96 7C C2 22 F5 1F 6D E7 90 00 [15:51:18]wFMCommunicate OK [15:51:18]SAM_PROTO_SignData done [15:51:18]FM_MakeSignedData done [15:51:18]CreateOFDProtocolMessage [15:51:18]wFMCommunicate request_size=4 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 11 00 00 [15:51:18]Write to MH i2c: E2 08 00 44 10 80 11 00 00 00 00 00 00 CE [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 17 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 17 00 44 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 29 [15:51: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:51:18]wFMCommunicate OK [15:51:18]CreateOFDProtocolMessage done [15:51:18]OFDSenderStorePacket 139703 [15:51:18]StoreOFDPacket docnum=139703 [15:51: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 24 01 00 00 A4 E4 1C 01 60 FE 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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 76 A7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3E 6D 86 0C 9F 4F 96 7C C2 22 F5 1F 6D E7 [15:51:18]CheckFolder [15:51:18]dirname=/storage/ofd_packets [15:51:18]CheckFolder done [15:51:18]ProducePacketName [15:51:18]name=ofd_packets/00139703 [15:51:18]NVStorageSaveData ofd_packets/00139703 [15:51:18]File name is /storage/ofd_packets/00139703 [15:51:18]Write 322 bytes [15:51:18]NVStorageSaveData done [15:51:18]OFDSenderStorePacket done [15:51:18]KKMCreateOFDPacket done [15:51:18]NVStorageSaveData kkm_last_timestamp [15:51:18]File name is /storage/kkm_last_timestamp [15:51:18]Write 4 bytes [15:51:18]NVStorageSaveData done [15:51:18]ExternCall_PrintAddStr [15:51:18]wPrintStart [15:51:18]Write to MH i2c: 01 00 00 45 10 55 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 07 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 07 00 45 10 00 00 00 00 00 FF 0F 6A [15:51:18]RasterBufferAndPrint [15:51:18]line Счет N : (3)335549 [15:51:18]line ИНН: 02508201610067 [15:51:18]line Контрольно-Кассовый Чек [15:51:18]line ПРОДАЖА [15:51:18]line Товар: 4640030091607 [15:51:18]line Сигареты ESSE Exchange [15:51:18]line 1.000 * 159.00 [15:51:18]line = 159.00 [15:51:18]line НДС 12% НСП 1% [15:51:18]line > о реализуемом товаре [15:51:18]line ИТОГО: 159.00 [15:51:18]line НСП 1% : 1.41 [15:51:18]line НДС 12% : 16.88 [15:51:18]line Наличными: 0.00 [15:51:18]line Безнал.: 159.00 [15:51:18]line Место: АЗС № 101 "Партнер Нефть" [15:51:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:51:18]line СНО: Общий режим [15:51:18]line Чек 180 31.10.2024 15:51 [15:51:18]line Смена: 557 ФФД: 1.0 [15:51:18]line ЗНМ: 0300000081 [15:51:18]line РНМ: 0000000000091631 [15:51:18]line Версия ККМ: 001 [15:51:18]line Платежная система: Mbank [15:51:18]line ФМ: 0000000000874669 [15:51:18]line ФД: 139703 [15:51:18]line ФПД: 68640121331535 [15:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T155118&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139703&fm=68640121331535&tin=02508201610067®Number=0000000000091631&sum=15900 [15:51:18]OFD Sender: Processing packet 139703 [packets to send 34, broken 33] [15:51:18]ProducePacketName [15:51:18]name=ofd_packets/00139703 [15:51:18]OFD Sender: To server: pG, [15:51:18]CommunicateWithHost lk.salyk.kg:30040 [15:51:18]ConnectInit lk.salyk.kg [15:51:18]line 0 [15:51:18]written 0, free lines is 4095 [15:51:18]Connected sock=10 [15:51: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 24 01 00 00 A4 E4 1C 01 60 FE 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 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 76 A7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3E 6D 86 0C 9F 4F 96 7C C2 22 F5 1F 6D E7 [15:51: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 81 BC 47 00 99 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 21 02 00 F4 03 04 00 23 53 23 67 B6 04 01 00 00 55 76 D3 6E FD B0 0F 8F [15:51:19]CommunicateWithHost err = 0 [15:51:19]CheckOFDResponse [15:51:19]1017 (14) - 77093643461234 [15:51:19]1041 (16) - 0000000000874669 [15:51:19]1040 (4) - 139703 [15:51:19]1012 (4) - 31.10.2024 09:51 [15:51:19]1206 (1) - 0 [15:51:19]OFD Sender: Remove packet 139703 [15:51:19]ProducePacketName [15:51:19]name=ofd_packets/00139703 [15:51:19]NVStorageDeleteData [15:51:19]Write to MH i2c: 01 00 00 6E 10 7E [15:51:19]Write i2c OK [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: 01 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: 01 07 00 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: 01 07 00 6E 10 00 00 00 00 00 03 0D 95 [15:51:19]RasterBufferAndPrint [15:51:19]line [15:51:19]line [15:51:19]line [15:51:19]line [15:51:19]line [15:51:19]written 0, free lines is 3337 [15:51:19]MH_Cut [15:51:19]Write to MH i2c: D1 01 00 75 10 01 57 [15:51:19]Write i2c OK [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: D1 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: D1 01 00 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: D1 01 00 75 10 00 56 [15:51:19]Write to MH i2c: 01 00 00 76 10 86 [15:51:19]Write i2c OK [15:51:19]MH_I2C_Read... [15:51:19]OFD Sender: No OFD packet to send [15:51:20]*** Cut start [15:51:20]*** Partial cut [15:51:20]*** CUTSNS_PIN = 1 [15:51:20]*** CUTSNS_PIN = 0 [15:51:20]*** Brake cut motor [15:51:20]Read from MH i2c: 01 [15:51:20]MH_I2C_Read... [15:51:20]*** Stop cut motor [15:51:20]*** Cut end [15:51:20]Read from MH i2c: 01 07 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: 01 07 00 76 10 00 00 00 00 00 FF 0F 9B [15:51:20]process_action close_receipt done [15:51:20]requested_data is exist [15:51:20]produce_requested_data [15:51:20]requested_item fm.sn is exist - process it [15:51:20]wFMCommunicate request_size=4 [15:51:20]MH_SAM_APDU [15:51:20]CAPDU: 80 11 00 00 [15:51:20]Write to MH i2c: E2 08 00 77 10 80 11 00 00 00 00 00 00 01 [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:20]Read from MH i2c: E2 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 17 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 17 00 77 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5C [15:51: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:51:20]wFMCommunicate OK [15:51:20]requested_item fd.num is exist - process it [15:51:20]SAM_PROTO_GetFieldsCounters [15:51:20]wFMCommunicate request_size=4 [15:51:20]MH_SAM_APDU [15:51:20]CAPDU: 80 13 00 00 [15:51:20]Write to MH i2c: E2 08 00 78 10 80 13 00 00 00 00 00 00 04 [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:20]Read from MH i2c: E2 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 62 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 62 00 78 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 4D [15:51: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 B7 21 02 00 0E 04 04 00 2D 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:51:20]wFMCommunicate OK [15:51:20]SAM_PROTO_GetFieldsCounters done [15:51:20]requested_item shift.num is exist - process it [15:51:20]requested_item shift.opened is exist - process it [15:51:20]req_shift_opened [15:51:20]FM_GetShiftState [15:51:20]SAM_PROTO_GetShiftState [15:51:20]wFMCommunicate request_size=4 [15:51:20]MH_SAM_APDU [15:51:20]CAPDU: 80 13 01 00 [15:51:20]Write to MH i2c: E2 08 00 79 10 80 13 01 00 00 00 00 00 06 [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:20]Read from MH i2c: E2 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 0E 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 0E 00 79 10 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2F [15:51:20]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [15:51:20]wFMCommunicate OK [15:51:20]SAM_PROTO_GetShiftState done [15:51:20]FM_GetShiftState done [15:51:20]req_shift_opened done [15:51:20]requested_item shift.open_date is exist - process it [15:51:20]req_shift_open_date [15:51:20]req_shift_open_date done [15:51:20]produce_requested_data done [15:51:20]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139703,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [15:51:20]process_action_free close_receipt [15:51:20]json_value_free [15:51:20]json_value_free done [15:51:20]process_json_proto returns [15:51:20]Send response to host [15:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139703,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [15:51:20]free response buf [15:51:20]execute_script done [15:51:20]execute_script returns [15:51:20]free content buf [15:51:20]Sock 9.Close socket [15:51:20]Sock 9.Thread stoped [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]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:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [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:24]accept exits with 7 [16:19:24]New connection [16:19:24]New thread 3066654052 created [16:19:24]Thread 3066510692 joined [16:19:24]Waiting for new connection... [16:19:24] Sock 7.Parse request [16:19:24]Sock 7.Check first char [16:19:24]Sock 7.First char is OK [16:19:24]request: POST /json_proto HTTP/1.0 [16:19:24]Method: POST [16:19:24]URL: /json_proto [16:19:24]Method is POST - this is cgi request [16:19:24]url: /json_proto [16:19:24]query_string will be loaded in cgi processing [16:19:24]execute_cgi json_proto POST (null) [16:19:24]execute_cgi path=json_proto method=POST [16:19:24]POST find Content-Length [16:19:24]Host: 172.17.50.196:8080 [16:19:24]Content-Length: 570 [16:19:24]Content-Type: application/json [16:19:24] [16:19:24]POST finish read [16:19:24]Found Content-Length = 570 [16:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335550", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "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" ] } } [16:19:24]execute_script... [16:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335550", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "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" ] } } [16:19:24]POST & json_proto [16:19:24]process_json_proto [16:19:24]json parsed OK: [16:19:24]protocol is kg_v1.0 [16:19:24]action value=close_receipt [16:19:24]process_action close_receipt [16:19:24]cmd_close_receipt [16:19:24]MH_GetDate [16:19:24]Write to MH i2c: F0 00 00 7A 10 79 [16:19:24]Write i2c OK [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: F0 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: F0 09 00 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: F0 09 00 7A 10 00 0E AE 23 67 72 0D 1C 67 CA [16:19:24]GetLastDocTimeStamp 1730389878 [16:19:24]current date 1730391566 [16:19:24]FM_GetShiftState [16:19:24]SAM_PROTO_GetShiftState [16:19:24]wFMCommunicate request_size=4 [16:19:24]MH_SAM_APDU [16:19:24]CAPDU: 80 13 01 00 [16:19:24]Write to MH i2c: E2 08 00 7B 10 80 13 01 00 00 00 00 00 08 [16:19:24]Write i2c OK [16:19:24]MH_I2C_Read... [16:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:24]Read from MH i2c: E2 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 0E 00 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 0E 00 7B 10 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 31 [16:19:24]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:19:24]wFMCommunicate OK [16:19:24]SAM_PROTO_GetShiftState done [16:19:24]FM_GetShiftState done [16:19:24]opened in 1730332621 [16:19:24]opened+sec_in_day 1730419021 [16:19:24]quantity*price = 13400 [16:19:24]sum+1 = 13401 [16:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 181 31.10.2024 16:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139704 ФПД: 154483426904108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T161926&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139704&fm=154483426904108&tin=02508201610067®Number=0000000000091631&sum=13400 0 [16:19:25]StoreToDocumentArchive [16:19:25]shift 557 fd 139704 [16:19:25]save to /storage/0557/doc_00139704 [16:19:25]save last doc name /storage/0557/doc_00139704 to /storage/kkm_last_doc_name [16:19:25]save OK [16:19:25]Clear old archive folders... [16:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=254 [16:19:25]tlvbuf is 00A7CA60 [16:19:25]SAM_PROTO_ClearQueue [16:19:25]wFMCommunicate request_size=4 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 09 00 00 [16:19:25]Write to MH i2c: E2 08 00 88 10 80 09 00 00 00 00 00 00 0A [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 88 10 00 90 00 0C [16:19:26]RAPDU: 90 00 [16:19:26]wFMCommunicate OK [16:19:26]SAM_PROTO_ClearQueue done [16:19:26]KKMCreateOFDPacket [16:19:26]OFDProtocolAddRootSTLVToBuf [16:19:26]FM_MakeSignedData [16:19:26]FM_MakeSignedData [16:19:26]SAM_PROTO_SignData [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 0D 01 02 [16:19:26]Write to MH i2c: E2 08 00 89 10 80 0D 01 02 00 00 00 00 12 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 89 10 00 90 00 0D [16:19:26]RAPDU: 90 00 [16:19:26]wFMCommunicate OK [16:19:26]wFMCommunicate request_size=255 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B5 00 00 00 F4 03 04 00 0E AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 [16:19:26]Write to MH i2c: E2 02 01 8A 10 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B5 00 00 00 F4 03 04 00 0E AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 00 00 95 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]OFD Sender: No OFD packet to send [16:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 8A 10 00 90 00 0E [16:19:26]RAPDU: 90 00 [16:19:26]wFMCommunicate OK [16:19:26]wFMCommunicate request_size=13 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 0D 02 02 08 06 00 8C 80 79 C8 C8 2C [16:19:26]Write to MH i2c: E2 10 00 8B 10 80 0D 02 02 08 00 06 00 8C 80 79 C8 C8 2C 00 00 6C [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 8B 10 00 90 00 0F [16:19:26]RAPDU: 90 00 [16:19:26]wFMCommunicate OK [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 0D 03 02 [16:19:26]Write to MH i2c: E2 08 00 8C 10 80 0D 03 02 00 00 00 00 17 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0B 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0B 00 8C 10 00 FA A2 C2 6C B9 B6 B2 3C 90 00 3F [16:19:26]RAPDU: FA A2 C2 6C B9 B6 B2 3C 90 00 [16:19:26]wFMCommunicate OK [16:19:26]SAM_PROTO_SignData done [16:19:26]FM_MakeSignedData done [16:19:26]CreateOFDProtocolMessage [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 11 00 00 [16:19:26]Write to MH i2c: E2 08 00 8D 10 80 11 00 00 00 00 00 00 17 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 17 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 17 00 8D 10 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:26]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:26]wFMCommunicate OK [16:19:26]CreateOFDProtocolMessage done [16:19:26]OFDSenderStorePacket 139704 [16:19:26]StoreOFDPacket docnum=139704 [16:19: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 12 01 00 00 F5 B3 0A 01 62 7C 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B5 00 00 00 F4 03 04 00 0E AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8C 80 79 C8 C8 2C FA A2 C2 6C B9 B6 B2 3C [16:19:26]CheckFolder [16:19:26]dirname=/storage/ofd_packets [16:19:26]CheckFolder done [16:19:26]ProducePacketName [16:19:26]name=ofd_packets/00139704 [16:19:26]NVStorageSaveData ofd_packets/00139704 [16:19:26]File name is /storage/ofd_packets/00139704 [16:19:26]Write 304 bytes [16:19:26]NVStorageSaveData done [16:19:26]OFDSenderStorePacket done [16:19:26]KKMCreateOFDPacket done [16:19:26]NVStorageSaveData kkm_last_timestamp [16:19:26]File name is /storage/kkm_last_timestamp [16:19:26]Write 4 bytes [16:19:26]NVStorageSaveData done [16:19:26]ExternCall_PrintAddStr [16:19:26]wPrintStart [16:19:26]Write to MH i2c: 01 00 00 8E 10 9E [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 8E 10 00 00 00 00 00 FF 0F B3 [16:19:26]RasterBufferAndPrint [16:19:26]line Счет N : (3)335550 [16:19:26]line ИНН: 02508201610067 [16:19:26]line Контрольно-Кассовый Чек [16:19:26]line ПРОДАЖА [16:19:26]line Товар: 48744546 [16:19:26]line LD Compact Silver [16:19:26]line 1.000 * 134.00 [16:19:26]line = 134.00 [16:19:26]line НДС 12% НСП 1% [16:19:26]line > о реализуемом товаре [16:19:26]line ИТОГО: 134.00 [16:19:26]line НСП 1% : 1.19 [16:19:26]line НДС 12% : 14.23 [16:19:26]line Наличными: 134.00 [16:19:26]line Безнал.: 0.00 [16:19:26]line Место: АЗС № 101 "Партнер Нефть" [16:19:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:19:26]line СНО: Общий режим [16:19:26]line Чек 181 31.10.2024 16:19 [16:19:26]line Смена: 557 ФФД: 1.0 [16:19:26]line ЗНМ: 0300000081 [16:19:26]line РНМ: 0000000000091631 [16:19:26]line Версия ККМ: 001 [16:19:26]line ФМ: 0000000000874669 [16:19:26]line ФД: 139704 [16:19:26]line ФПД: 154483426904108 [16:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T161926&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139704&fm=154483426904108&tin=02508201610067®Number=0000000000091631&sum=13400 [16:19:26]line 0 [16:19:26]written 0, free lines is 4095 [16:19:26]OFD Sender: Processing packet 139704 [packets to send 34, broken 33] [16:19:26]ProducePacketName [16:19:26]name=ofd_packets/00139704 [16:19:26]OFD Sender: To server: pG, [16:19:26]CommunicateWithHost lk.salyk.kg:30040 [16:19:26]ConnectInit lk.salyk.kg [16:19:26]Connected sock=10 [16:19: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 12 01 00 00 F5 B3 0A 01 62 7C 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B5 00 00 00 F4 03 04 00 0E AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8C 80 79 C8 C8 2C FA A2 C2 6C B9 B6 B2 3C [16:19: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 64 CA 47 00 D6 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 B8 21 02 00 F4 03 04 00 BB 59 23 67 B6 04 01 00 00 5E F4 7C 51 30 16 B4 31 [16:19:26]CommunicateWithHost err = 0 [16:19:26]CheckOFDResponse [16:19:26]1017 (14) - 77093643461234 [16:19:26]1041 (16) - 0000000000874669 [16:19:26]1040 (4) - 139704 [16:19:26]1012 (4) - 31.10.2024 10:19 [16:19:26]1206 (1) - 0 [16:19:26]OFD Sender: Remove packet 139704 [16:19:26]ProducePacketName [16:19:26]name=ofd_packets/00139704 [16:19:26]NVStorageDeleteData [16:19:26]Write to MH i2c: 01 00 00 B6 10 C6 [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 B6 10 00 00 00 00 00 0C 0D E6 [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 3346 [16:19:26]MH_Cut [16:19:26]Write to MH i2c: D1 01 00 BD 10 01 9F [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 BD 10 00 9E [16:19:26]Write to MH i2c: 01 00 00 BE 10 CE [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:27]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:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]*** Stop cut motor [16:19:28]*** Cut end [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 FF 0F E3 [16:19:28]process_action close_receipt done [16:19:28]requested_data is exist [16:19:28]produce_requested_data [16:19:28]requested_item fm.sn is exist - process it [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 11 00 00 [16:19:28]Write to MH i2c: E2 08 00 BF 10 80 11 00 00 00 00 00 00 49 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 BF 10 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:28]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:28]wFMCommunicate OK [16:19:28]requested_item fd.num is exist - process it [16:19:28]SAM_PROTO_GetFieldsCounters [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 13 00 00 [16:19:28]Write to MH i2c: E2 08 00 C0 10 80 13 00 00 00 00 00 00 4C [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 62 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 62 00 C0 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 99 [16:19: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 B8 21 02 00 0E 04 04 00 2D 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 [16:19:28]wFMCommunicate OK [16:19:28]SAM_PROTO_GetFieldsCounters done [16:19:28]requested_item shift.num is exist - process it [16:19:28]requested_item shift.opened is exist - process it [16:19:28]req_shift_opened [16:19:28]FM_GetShiftState [16:19:28]SAM_PROTO_GetShiftState [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 13 01 00 [16:19:28]Write to MH i2c: E2 08 00 C1 10 80 13 01 00 00 00 00 00 4E [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 0E 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 0E 00 C1 10 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 77 [16:19:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:19:28]wFMCommunicate OK [16:19:28]SAM_PROTO_GetShiftState done [16:19:28]FM_GetShiftState done [16:19:28]req_shift_opened done [16:19:28]requested_item shift.open_date is exist - process it [16:19:28]req_shift_open_date [16:19:28]req_shift_open_date done [16:19:28]produce_requested_data done [16:19:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139704,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:19:28]process_action_free close_receipt [16:19:28]json_value_free [16:19:28]json_value_free done [16:19:28]process_json_proto returns [16:19:28]Send response to host [16:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139704,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:19:28]free response buf [16:19:28]execute_script done [16:19:28]execute_script returns [16:19:28]free content buf [16:19:28]Sock 7.Close socket [16:19:28]Sock 7.Thread stoped [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:08]accept exits with 9 [16:20:08]New connection [16:20:08]New thread 3066510692 created [16:20:08]Thread 3066654052 joined [16:20:08]Waiting for new connection... [16:20:08] Sock 9.Parse request [16:20:08]Sock 9.Check first char [16:20:08]Sock 9.First char is OK [16:20:08]request: POST /json_proto HTTP/1.0 [16:20:08]Method: POST [16:20:08]URL: /json_proto [16:20:08]Method is POST - this is cgi request [16:20:08]url: /json_proto [16:20:08]query_string will be loaded in cgi processing [16:20:08]execute_cgi json_proto POST (null) [16:20:08]execute_cgi path=json_proto method=POST [16:20:08]POST find Content-Length [16:20:08]Host: 172.17.50.196:8080 [16:20:08]Content-Length: 675 [16:20:08]Content-Type: application/json [16:20:08] [16:20:08]POST finish read [16:20:08]Found Content-Length = 675 [16:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335551", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 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" ] } } [16:20:08]execute_script... [16:20: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)335551", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 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" ] } } [16:20:08]POST & json_proto [16:20:08]process_json_proto [16:20:08]json parsed OK: [16:20:08]protocol is kg_v1.0 [16:20:08]action value=close_receipt [16:20:08]process_action close_receipt [16:20:08]cmd_close_receipt [16:20:08]MH_GetDate [16:20:08]Write to MH i2c: F0 00 00 C2 10 C1 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 09 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 09 00 C2 10 00 3A AE 23 67 72 0D 1C 67 3E [16:20:08]GetLastDocTimeStamp 1730391566 [16:20:08]current date 1730391610 [16:20:08]FM_GetShiftState [16:20:08]SAM_PROTO_GetShiftState [16:20:08]wFMCommunicate request_size=4 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 13 01 00 [16:20:08]Write to MH i2c: E2 08 00 C3 10 80 13 01 00 00 00 00 00 50 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0E 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0E 00 C3 10 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 79 [16:20:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:20:08]wFMCommunicate OK [16:20:08]SAM_PROTO_GetShiftState done [16:20:08]FM_GetShiftState done [16:20:08]opened in 1730332621 [16:20:08]opened+sec_in_day 1730419021 [16:20:08]quantity*price = 8900 [16:20:08]sum+1 = 8901 [16:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 182 31.10.2024 16:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139705 ФПД: 139898760254789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162010&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139705&fm=139898760254789&tin=02508201610067®Number=0000000000091631&sum=8900 0 [16:20:10]StoreToDocumentArchive [16:20:10]shift 557 fd 139705 [16:20:10]save to /storage/0557/doc_00139705 [16:20:10]save last doc name /storage/0557/doc_00139705 to /storage/kkm_last_doc_name [16:20:10]save OK [16:20:10]Clear old archive folders... [16:20:10]ProcessDocumentItem done err = 0, tmpTLVsize=286 [16:20:10]tlvbuf is B6F0CB50 [16:20:10]SAM_PROTO_ClearQueue [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 09 00 00 [16:20:10]Write to MH i2c: E2 08 00 D0 10 80 09 00 00 00 00 00 00 52 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 D0 10 00 90 00 54 [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]SAM_PROTO_ClearQueue done [16:20:10]KKMCreateOFDPacket [16:20:10]OFDProtocolAddRootSTLVToBuf [16:20:10]FM_MakeSignedData [16:20:10]FM_MakeSignedData [16:20:10]SAM_PROTO_SignData [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 01 02 [16:20:10]Write to MH i2c: E2 08 00 D1 10 80 0D 01 02 00 00 00 00 5A [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 D1 10 00 90 00 55 [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=255 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B6 00 00 00 F4 03 04 00 3A AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [16:20:10]Write to MH i2c: E2 02 01 D2 10 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B6 00 00 00 F4 03 04 00 3A AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 00 00 32 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 D2 10 00 90 00 56 [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=45 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 02 02 28 33 31 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 21 02 00 35 04 06 00 7F 3C B7 E8 D5 45 [16:20:10]Write to MH i2c: E2 30 00 D3 10 80 0D 02 02 28 00 33 31 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 21 02 00 35 04 06 00 7F 3C B7 E8 D5 45 00 00 05 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 D3 10 00 90 00 57 [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 03 02 [16:20:10]Write to MH i2c: E2 08 00 D4 10 80 0D 03 02 00 00 00 00 5F [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0B 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0B 00 D4 10 00 C4 AB E0 F5 B5 1B 29 A1 90 00 3E [16:20:10]RAPDU: C4 AB E0 F5 B5 1B 29 A1 90 00 [16:20:10]wFMCommunicate OK [16:20:10]SAM_PROTO_SignData done [16:20:10]FM_MakeSignedData done [16:20:10]CreateOFDProtocolMessage [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 11 00 00 [16:20:10]Write to MH i2c: E2 08 00 D5 10 80 11 00 00 00 00 00 00 5F [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 D5 10 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: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:20:10]wFMCommunicate OK [16:20:10]CreateOFDProtocolMessage done [16:20:10]OFDSenderStorePacket 139705 [16:20:10]StoreOFDPacket docnum=139705 [16:20: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 32 01 00 00 59 AC 2A 01 42 47 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B6 00 00 00 F4 03 04 00 3A AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F 3C B7 E8 D5 45 C4 AB E0 F5 B5 1B 29 A1 [16:20:10]CheckFolder [16:20:10]dirname=/storage/ofd_packets [16:20:10]CheckFolder done [16:20:10]ProducePacketName [16:20:10]name=ofd_packets/00139705 [16:20:10]NVStorageSaveData ofd_packets/00139705 [16:20:10]File name is /storage/ofd_packets/00139705 [16:20:10]Write 336 bytes [16:20:10]NVStorageSaveData done [16:20:10]OFDSenderStorePacket done [16:20:10]KKMCreateOFDPacket done [16:20:10]NVStorageSaveData kkm_last_timestamp [16:20:10]File name is /storage/kkm_last_timestamp [16:20:10]Write 4 bytes [16:20:10]NVStorageSaveData done [16:20:10]ExternCall_PrintAddStr [16:20:10]wPrintStart [16:20:10]Write to MH i2c: 01 00 00 D6 10 E6 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 07 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 07 00 D6 10 00 00 00 00 00 FF 0F FB [16:20:10]RasterBufferAndPrint [16:20:10]line Счет N : (3)335551 [16:20:10]line ИНН: 02508201610067 [16:20:10]line Контрольно-Кассовый Чек [16:20:10]line ПРОДАЖА [16:20:10]line Товар: 4700040114120 [16:20:10]line Султан чай 1л. чер персик [16:20:10]line 1.000 * 89.00 [16:20:10]line = 89.00 [16:20:10]line НДС 12% НСП 1% [16:20:10]line > о реализуемом товаре [16:20:10]line ИТОГО: 89.00 [16:20:10]line НСП 1% : 0.79 [16:20:10]line НДС 12% : 9.45 [16:20:10]line Наличными: 89.00 [16:20:10]line Безнал.: 0.00 [16:20:10]line Место: АЗС № 101 "Партнер Нефть" [16:20:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:20:10]line СНО: Общий режим [16:20:10]line Чек 182 31.10.2024 16:20 [16:20:10]line Смена: 557 ФФД: 1.0 [16:20:10]line ЗНМ: 0300000081 [16:20:10]line РНМ: 0000000000091631 [16:20:10]line Версия ККМ: 001 [16:20:10]line ФМ: 0000000000874669 [16:20:10]line ФД: 139705 [16:20:10]line ФПД: 139898760254789 [16:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162010&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139705&fm=139898760254789&tin=02508201610067®Number=0000000000091631&sum=8900 [16:20:10]line 0 [16:20:10]OFD Sender: Processing packet 139705 [packets to send 34, broken 33] [16:20:10]ProducePacketName [16:20:10]name=ofd_packets/00139705 [16:20:10]OFD Sender: To server: pG, [16:20:10]CommunicateWithHost lk.salyk.kg:30040 [16:20:10]ConnectInit lk.salyk.kg [16:20:10]written 0, free lines is 4095 [16:20:11]Connected sock=11 [16:20: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 32 01 00 00 59 AC 2A 01 42 47 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B6 00 00 00 F4 03 04 00 3A AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7F 3C B7 E8 D5 45 C4 AB E0 F5 B5 1B 29 A1 [16:20: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 E7 B0 47 00 54 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 21 02 00 F4 03 04 00 E7 59 23 67 B6 04 01 00 00 1A 4B 24 0C 62 06 B1 EC [16:20:11]CommunicateWithHost err = 0 [16:20:11]CheckOFDResponse [16:20:11]1017 (14) - 77093643461234 [16:20:11]1041 (16) - 0000000000874669 [16:20:11]1040 (4) - 139705 [16:20:11]1012 (4) - 31.10.2024 10:20 [16:20:11]1206 (1) - 0 [16:20:11]OFD Sender: Remove packet 139705 [16:20:11]ProducePacketName [16:20:11]name=ofd_packets/00139705 [16:20:11]NVStorageDeleteData [16:20:11]Write to MH i2c: 01 00 00 FE 10 0E [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 07 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 1D 0D 3F [16:20:11]RasterBufferAndPrint [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]written 0, free lines is 3363 [16:20:11]MH_Cut [16:20:11]Write to MH i2c: D1 01 00 05 11 01 E8 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 01 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 01 00 05 11 00 E7 [16:20:11]Write to MH i2c: 01 00 00 06 11 17 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]OFD Sender: No OFD packet to send [16:20:12]*** Cut start [16:20:12]*** Partial cut [16:20:12]*** CUTSNS_PIN = 1 [16:20:12]*** CUTSNS_PIN = 0 [16:20:12]*** Brake cut motor [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]*** Stop cut motor [16:20:12]*** Cut end [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 06 11 00 00 00 00 00 FF 0F 2C [16:20:12]process_action close_receipt done [16:20:12]requested_data is exist [16:20:12]produce_requested_data [16:20:12]requested_item fm.sn is exist - process it [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 11 00 00 [16:20:12]Write to MH i2c: E2 08 00 07 11 80 11 00 00 00 00 00 00 92 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 07 11 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:20: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:20:12]wFMCommunicate OK [16:20:12]requested_item fd.num is exist - process it [16:20:12]SAM_PROTO_GetFieldsCounters [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 13 00 00 [16:20:12]Write to MH i2c: E2 08 00 08 11 80 13 00 00 00 00 00 00 95 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 62 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 62 00 08 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 E6 [16:20: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 B9 21 02 00 0E 04 04 00 2D 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 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_GetFieldsCounters done [16:20:12]requested_item shift.num is exist - process it [16:20:12]requested_item shift.opened is exist - process it [16:20:12]req_shift_opened [16:20:12]FM_GetShiftState [16:20:12]SAM_PROTO_GetShiftState [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 13 01 00 [16:20:12]Write to MH i2c: E2 08 00 09 11 80 13 01 00 00 00 00 00 97 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0E 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0E 00 09 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C0 [16:20:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_GetShiftState done [16:20:12]FM_GetShiftState done [16:20:12]req_shift_opened done [16:20:12]requested_item shift.open_date is exist - process it [16:20:12]req_shift_open_date [16:20:12]req_shift_open_date done [16:20:12]produce_requested_data done [16:20:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139705,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:20:12]process_action_free close_receipt [16:20:12]json_value_free [16:20:12]json_value_free done [16:20:12]process_json_proto returns [16:20:12]Send response to host [16:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139705,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:20:12]free response buf [16:20:12]execute_script done [16:20:12]execute_script returns [16:20:12]free content buf [16:20:12]Sock 9.Close socket [16:20:12]Sock 9.Thread stoped [16:20:16]OFD Sender: No OFD packet to send [16:20:17]accept exits with 7 [16:20:17]New connection [16:20:17]New thread 3066654052 created [16:20:17]Thread 3066510692 joined [16:20:17]Waiting for new connection... [16:20:17] Sock 7.Parse request [16:20:17]Sock 7.Check first char [16:20:17]Sock 7.First char is OK [16:20:17]request: POST /json_proto HTTP/1.0 [16:20:17]Method: POST [16:20:17]URL: /json_proto [16:20:17]Method is POST - this is cgi request [16:20:17]url: /json_proto [16:20:17]query_string will be loaded in cgi processing [16:20:17]execute_cgi json_proto POST (null) [16:20:17]execute_cgi path=json_proto method=POST [16:20:17]POST find Content-Length [16:20:17]Host: 172.17.50.196:8080 [16:20:17]Content-Length: 644 [16:20:17]Content-Type: application/json [16:20:17] [16:20:17]POST finish read [16:20:17]Found Content-Length = 644 [16:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335552", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:17]execute_script... [16:20:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335552", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:17]POST & json_proto [16:20:17]process_json_proto [16:20:17]json parsed OK: [16:20:17]protocol is kg_v1.0 [16:20:17]action value=close_receipt [16:20:17]process_action close_receipt [16:20:17]cmd_close_receipt [16:20:17]MH_GetDate [16:20:17]Write to MH i2c: F0 00 00 0A 11 0A [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: F0 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: F0 09 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: F0 09 00 0A 11 00 43 AE 23 67 72 0D 1C 67 90 [16:20:17]GetLastDocTimeStamp 1730391610 [16:20:17]current date 1730391619 [16:20:17]FM_GetShiftState [16:20:17]SAM_PROTO_GetShiftState [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 13 01 00 [16:20:17]Write to MH i2c: E2 08 00 0B 11 80 13 01 00 00 00 00 00 99 [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 0E 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 0E 00 0B 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C2 [16:20:17]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:20:17]wFMCommunicate OK [16:20:17]SAM_PROTO_GetShiftState done [16:20:17]FM_GetShiftState done [16:20:17]opened in 1730332621 [16:20:17]opened+sec_in_day 1730419021 [16:20:17]quantity*price = 23000 [16:20:17]sum+1 = 23001 [16:20:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 183 31.10.2024 16:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139706 ФПД: 19118728135612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162019&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139706&fm=19118728135612&tin=02508201610067®Number=0000000000091631&sum=23000 0 [16:20:18]StoreToDocumentArchive [16:20:18]shift 557 fd 139706 [16:20:18]save to /storage/0557/doc_00139706 [16:20:18]save last doc name /storage/0557/doc_00139706 to /storage/kkm_last_doc_name [16:20:18]save OK [16:20:18]Clear old archive folders... [16:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:20:18]tlvbuf is 00A62630 [16:20:18]SAM_PROTO_ClearQueue [16:20:18]wFMCommunicate request_size=4 [16:20:18]MH_SAM_APDU [16:20:18]CAPDU: 80 09 00 00 [16:20:18]Write to MH i2c: E2 08 00 18 11 80 09 00 00 00 00 00 00 9B [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:18]Read from MH i2c: E2 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 03 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 03 00 18 11 00 90 00 9D [16:20:18]RAPDU: 90 00 [16:20:18]wFMCommunicate OK [16:20:18]SAM_PROTO_ClearQueue done [16:20:18]KKMCreateOFDPacket [16:20:18]OFDProtocolAddRootSTLVToBuf [16:20:18]FM_MakeSignedData [16:20:18]FM_MakeSignedData [16:20:18]SAM_PROTO_SignData [16:20:18]wFMCommunicate request_size=4 [16:20:18]MH_SAM_APDU [16:20:18]CAPDU: 80 0D 01 02 [16:20:18]Write to MH i2c: E2 08 00 19 11 80 0D 01 02 00 00 00 00 A3 [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:18]Read from MH i2c: E2 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 03 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 03 00 19 11 00 90 00 9E [16:20:18]RAPDU: 90 00 [16:20:18]wFMCommunicate OK [16:20:18]wFMCommunicate request_size=255 [16:20:18]MH_SAM_APDU [16:20:18]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 43 AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [16:20:19]Write to MH i2c: E2 02 01 1A 11 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 43 AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 A5 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 1A 11 00 90 00 9F [16:20:19]RAPDU: 90 00 [16:20:19]wFMCommunicate OK [16:20:19]wFMCommunicate request_size=39 [16:20:19]MH_SAM_APDU [16:20:19]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 BA 21 02 00 35 04 06 00 11 63 6C FF C3 BC [16:20:19]Write to MH i2c: E2 2A 00 1B 11 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 BA 21 02 00 35 04 06 00 11 63 6C FF C3 BC 00 00 A4 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 1B 11 00 90 00 A0 [16:20:19]RAPDU: 90 00 [16:20:19]wFMCommunicate OK [16:20:19]wFMCommunicate request_size=4 [16:20:19]MH_SAM_APDU [16:20:19]CAPDU: 80 0D 03 02 [16:20:19]Write to MH i2c: E2 08 00 1C 11 80 0D 03 02 00 00 00 00 A8 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 0B 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 0B 00 1C 11 00 C3 4B B4 FF 1B DF D1 70 90 00 A5 [16:20:19]RAPDU: C3 4B B4 FF 1B DF D1 70 90 00 [16:20:19]wFMCommunicate OK [16:20:19]SAM_PROTO_SignData done [16:20:19]FM_MakeSignedData done [16:20:19]CreateOFDProtocolMessage [16:20:19]wFMCommunicate request_size=4 [16:20:19]MH_SAM_APDU [16:20:19]CAPDU: 80 11 00 00 [16:20:19]Write to MH i2c: E2 08 00 1D 11 80 11 00 00 00 00 00 00 A8 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 17 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 17 00 1D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [16:20: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:20:19]wFMCommunicate OK [16:20:19]CreateOFDProtocolMessage done [16:20:19]OFDSenderStorePacket 139706 [16:20:19]StoreOFDPacket docnum=139706 [16:20:19]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 BA 98 24 01 D2 16 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 43 AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 11 63 6C FF C3 BC C3 4B B4 FF 1B DF D1 70 [16:20:19]CheckFolder [16:20:19]dirname=/storage/ofd_packets [16:20:19]CheckFolder done [16:20:19]ProducePacketName [16:20:19]name=ofd_packets/00139706 [16:20:19]NVStorageSaveData ofd_packets/00139706 [16:20:19]File name is /storage/ofd_packets/00139706 [16:20:19]Write 330 bytes [16:20:19]NVStorageSaveData done [16:20:19]OFDSenderStorePacket done [16:20:19]KKMCreateOFDPacket done [16:20:19]NVStorageSaveData kkm_last_timestamp [16:20:19]File name is /storage/kkm_last_timestamp [16:20:19]Write 4 bytes [16:20:19]NVStorageSaveData done [16:20:19]ExternCall_PrintAddStr [16:20:19]wPrintStart [16:20:19]Write to MH i2c: 01 00 00 1E 11 2F [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: 01 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: 01 07 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: 01 07 00 1E 11 00 00 00 00 00 FF 0F 44 [16:20:19]RasterBufferAndPrint [16:20:19]line Счет N : (3)335552 [16:20:19]line ИНН: 02508201610067 [16:20:19]line Контрольно-Кассовый Чек [16:20:19]line ПРОДАЖА [16:20:19]line Товар: 2000036210013 [16:20:19]line Кофе Капучино (GABB TRADE) [16:20:19]line 2.000 * 115.00 [16:20:19]line = 230.00 [16:20:19]line НДС 12% НСП 1% [16:20:19]line > о реализуемом товаре [16:20:19]line ИТОГО: 230.00 [16:20:19]line НСП 1% : 2.03 [16:20:19]line НДС 12% : 24.42 [16:20:19]line Наличными: 230.00 [16:20:19]line Безнал.: 0.00 [16:20:19]line Место: АЗС № 101 "Партнер Нефть" [16:20:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:20:19]line СНО: Общий режим [16:20:19]line Чек 183 31.10.2024 16:20 [16:20:19]line Смена: 557 ФФД: 1.0 [16:20:19]line ЗНМ: 0300000081 [16:20:19]line РНМ: 0000000000091631 [16:20:19]line Версия ККМ: 001 [16:20:19]line ФМ: 0000000000874669 [16:20:19]line ФД: 139706 [16:20:19]line ФПД: 19118728135612 [16:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162019&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139706&fm=19118728135612&tin=02508201610067®Number=0000000000091631&sum=23000 [16:20:19]line 0 [16:20:19]written 0, free lines is 4095 [16:20:19]OFD Sender: Processing packet 139706 [packets to send 34, broken 33] [16:20:19]ProducePacketName [16:20:19]name=ofd_packets/00139706 [16:20:19]OFD Sender: To server: pG, [16:20:19]CommunicateWithHost lk.salyk.kg:30040 [16:20:19]ConnectInit lk.salyk.kg [16:20:19]Connected sock=10 [16:20: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 2C 01 00 00 BA 98 24 01 D2 16 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 43 AE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 11 63 6C FF C3 BC C3 4B B4 FF 1B DF D1 70 [16:20: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 CE D7 47 00 86 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 21 02 00 F4 03 04 00 F0 59 23 67 B6 04 01 00 00 22 A3 04 60 12 08 9E 19 [16:20:19]CommunicateWithHost err = 0 [16:20:19]CheckOFDResponse [16:20:19]1017 (14) - 77093643461234 [16:20:19]1041 (16) - 0000000000874669 [16:20:19]1040 (4) - 139706 [16:20:19]1012 (4) - 31.10.2024 10:20 [16:20:19]1206 (1) - 0 [16:20:19]OFD Sender: Remove packet 139706 [16:20:19]ProducePacketName [16:20:19]name=ofd_packets/00139706 [16:20:19]NVStorageDeleteData [16:20:19]Write to MH i2c: 01 00 00 46 11 57 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: 01 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: 01 07 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: 01 07 00 46 11 00 00 00 00 00 25 0D 90 [16:20:19]RasterBufferAndPrint [16:20:19]line [16:20:19]line [16:20:19]line [16:20:19]line [16:20:19]line [16:20:19]written 0, free lines is 3374 [16:20:19]MH_Cut [16:20:19]Write to MH i2c: D1 01 00 4D 11 01 30 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: D1 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: D1 01 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: D1 01 00 4D 11 00 2F [16:20:20]Write to MH i2c: 01 00 00 4E 11 5F [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]OFD Sender: No OFD packet to send [16:20:20]*** Cut start [16:20:20]*** Partial cut [16:20:20]*** CUTSNS_PIN = 1 [16:20:20]*** CUTSNS_PIN = 0 [16:20:20]*** Brake cut motor [16:20:21]Read from MH i2c: 01 [16:20:21]MH_I2C_Read... [16:20:21]*** Stop cut motor [16:20:21]*** Cut end [16:20:21]Read from MH i2c: 01 07 00 [16:20:21]MH_I2C_Read... [16:20:21]Read from MH i2c: 01 07 00 4E 11 00 00 00 00 00 FF 0F 74 [16:20:21]process_action close_receipt done [16:20:21]requested_data is exist [16:20:21]produce_requested_data [16:20:21]requested_item fm.sn is exist - process it [16:20:21]wFMCommunicate request_size=4 [16:20:21]MH_SAM_APDU [16:20:21]CAPDU: 80 11 00 00 [16:20:21]Write to MH i2c: E2 08 00 4F 11 80 11 00 00 00 00 00 00 DA [16:20:21]Write i2c OK [16:20:21]MH_I2C_Read... [16:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:21]Read from MH i2c: E2 [16:20:21]MH_I2C_Read... [16:20:21]Read from MH i2c: E2 17 00 [16:20:21]MH_I2C_Read... [16:20:21]Read from MH i2c: E2 17 00 4F 11 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:20: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:20:21]wFMCommunicate OK [16:20:21]requested_item fd.num is exist - process it [16:20:21]SAM_PROTO_GetFieldsCounters [16:20:21]wFMCommunicate request_size=4 [16:20:21]MH_SAM_APDU [16:20:21]CAPDU: 80 13 00 00 [16:20:21]Write to MH i2c: E2 08 00 50 11 80 13 00 00 00 00 00 00 DD [16:20:21]Write i2c OK [16:20:21]MH_I2C_Read... [16:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:21]Read from MH i2c: E2 [16:20:21]MH_I2C_Read... [16:20:21]Read from MH i2c: E2 62 00 [16:20:21]MH_I2C_Read... [16:20:21]Read from MH i2c: E2 62 00 50 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 32 [16:20: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 BA 21 02 00 0E 04 04 00 2D 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 [16:20:21]wFMCommunicate OK [16:20:21]SAM_PROTO_GetFieldsCounters done [16:20:21]requested_item shift.num is exist - process it [16:20:21]requested_item shift.opened is exist - process it [16:20:21]req_shift_opened [16:20:21]FM_GetShiftState [16:20:21]SAM_PROTO_GetShiftState [16:20:21]wFMCommunicate request_size=4 [16:20:21]MH_SAM_APDU [16:20:21]CAPDU: 80 13 01 00 [16:20:21]Write to MH i2c: E2 08 00 51 11 80 13 01 00 00 00 00 00 DF [16:20:21]Write i2c OK [16:20:21]MH_I2C_Read... [16:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:21]Read from MH i2c: E2 [16:20:21]MH_I2C_Read... [16:20:21]Read from MH i2c: E2 0E 00 [16:20:21]MH_I2C_Read... [16:20:21]Read from MH i2c: E2 0E 00 51 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 08 [16:20:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:20:21]wFMCommunicate OK [16:20:21]SAM_PROTO_GetShiftState done [16:20:21]FM_GetShiftState done [16:20:21]req_shift_opened done [16:20:21]requested_item shift.open_date is exist - process it [16:20:21]req_shift_open_date [16:20:21]req_shift_open_date done [16:20:21]produce_requested_data done [16:20:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139706,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:20:21]process_action_free close_receipt [16:20:21]json_value_free [16:20:21]json_value_free done [16:20:21]process_json_proto returns [16:20:21]Send response to host [16:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139706,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:20:21]free response buf [16:20:21]execute_script done [16:20:21]execute_script returns [16:20:21]free content buf [16:20:21]Sock 7.Close socket [16:20:21]Sock 7.Thread stoped [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:27:57]accept exits with 9 [16:27:57]New connection [16:27:57]New thread 3066510692 created [16:27:57]Thread 3066654052 joined [16:27:57]Waiting for new connection... [16:27:57] Sock 9.Parse request [16:27:57]Sock 9.Check first char [16:27:57]Sock 9.First char is OK [16:27:57]request: POST /json_proto HTTP/1.0 [16:27:57]Method: POST [16:27:57]URL: /json_proto [16:27:57]Method is POST - this is cgi request [16:27:57]url: /json_proto [16:27:57]query_string will be loaded in cgi processing [16:27:57]execute_cgi json_proto POST (null) [16:27:57]execute_cgi path=json_proto method=POST [16:27:57]POST find Content-Length [16:27:57]Host: 172.17.50.196:8080 [16:27:57]Content-Length: 1263 [16:27:57]Content-Type: application/json [16:27:57] [16:27:57]POST finish read [16:27:57]Found Content-Length = 1263 [16:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335553", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 491.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:57]execute_script... [16:27: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)335553", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 491.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:57]POST & json_proto [16:27:57]process_json_proto [16:27:57]json parsed OK: [16:27:57]protocol is kg_v1.0 [16:27:57]action value=close_receipt [16:27:57]process_action close_receipt [16:27:57]cmd_close_receipt [16:27:57]MH_GetDate [16:27:57]Write to MH i2c: F0 00 00 52 11 52 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: F0 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: F0 09 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: F0 09 00 52 11 00 0E B0 23 67 72 0D 1C 67 A5 [16:27:57]GetLastDocTimeStamp 1730391619 [16:27:57]current date 1730392078 [16:27:57]FM_GetShiftState [16:27:57]SAM_PROTO_GetShiftState [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 13 01 00 [16:27:57]Write to MH i2c: E2 08 00 53 11 80 13 01 00 00 00 00 00 E1 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 0E 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 0E 00 53 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0A [16:27:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:27:57]wFMCommunicate OK [16:27:57]SAM_PROTO_GetShiftState done [16:27:57]FM_GetShiftState done [16:27:57]opened in 1730332621 [16:27:57]opened+sec_in_day 1730419021 [16:27:57]quantity*price = 9500 [16:27:57]sum+1 = 9501 [16:27:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522701 Напиток Maxi Чай черный Малина 1,2 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6957531032045 Кабель hoco rapid charging X1 type-C 1м 1.000 * 271.00 = 271.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 491.00 НСП 1% : 4.35 НДС 12% : 52.14 Наличными: 491.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 184 31.10.2024 16:27 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139707 ФПД: 65220192347734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162758&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139707&fm=65220192347734&tin=02508201610067®Number=0000000000091631&sum=49100 0 [16:27:58]StoreToDocumentArchive [16:27:58]shift 557 fd 139707 [16:27:58]save to /storage/0557/doc_00139707 [16:27:58]save last doc name /storage/0557/doc_00139707 to /storage/kkm_last_doc_name [16:27:58]save OK [16:27:58]Clear old archive folders... [16:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=545 [16:27:58]tlvbuf is 00A891B0 [16:27:58]SAM_PROTO_ClearQueue [16:27:58]wFMCommunicate request_size=4 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 09 00 00 [16:27:58]Write to MH i2c: E2 08 00 60 11 80 09 00 00 00 00 00 00 E3 [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 03 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [16:27:58]RAPDU: 90 00 [16:27:58]wFMCommunicate OK [16:27:58]SAM_PROTO_ClearQueue done [16:27:58]KKMCreateOFDPacket [16:27:58]OFDProtocolAddRootSTLVToBuf [16:27:58]FM_MakeSignedData [16:27:58]FM_MakeSignedData [16:27:58]SAM_PROTO_SignData [16:27:58]wFMCommunicate request_size=4 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 0D 01 02 [16:27:58]Write to MH i2c: E2 08 00 61 11 80 0D 01 02 00 00 00 00 EB [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 03 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 03 00 61 11 00 90 00 E6 [16:27:58]RAPDU: 90 00 [16:27:58]wFMCommunicate OK [16:27:58]wFMCommunicate request_size=255 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [16:27:58]Write to MH i2c: E2 02 01 62 11 80 0D 02 02 FA 00 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 5B [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [16:27:59]RAPDU: 90 00 [16:27:59]wFMCommunicate OK [16:27:59]wFMCommunicate request_size=255 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 CC 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 B8 00 00 00 F4 03 04 00 0E B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [16:27:59]Write to MH i2c: E2 02 01 63 11 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 CC 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 B8 00 00 00 F4 03 04 00 0E B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 2D [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 63 11 00 90 00 E8 [16:27:59]RAPDU: 90 00 [16:27:59]wFMCommunicate OK [16:27:59]wFMCommunicate request_size=54 [16:27:59]MH_SAM_APDU [16:27:59]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 BB 21 02 00 35 04 06 00 3B 51 42 65 A6 56 [16:27:59]Write to MH i2c: E2 39 00 64 11 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 BB 21 02 00 35 04 06 00 3B 51 42 65 A6 56 00 00 26 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [16:27:59]RAPDU: 90 00 [16:27:59]wFMCommunicate OK [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 0D 03 02 [16:27:59]Write to MH i2c: E2 08 00 65 11 80 0D 03 02 00 00 00 00 F1 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 0B 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 0B 00 65 11 00 F7 B3 5D B2 4F 51 FE 68 90 00 B1 [16:27:59]RAPDU: F7 B3 5D B2 4F 51 FE 68 90 00 [16:27:59]wFMCommunicate OK [16:27:59]SAM_PROTO_SignData done [16:27:59]FM_MakeSignedData done [16:27:59]CreateOFDProtocolMessage [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 11 00 00 [16:27:59]Write to MH i2c: E2 08 00 66 11 80 11 00 00 00 00 00 00 F1 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 17 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 17 00 66 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [16:27: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:27:59]wFMCommunicate OK [16:27:59]CreateOFDProtocolMessage done [16:27:59]OFDSenderStorePacket 139707 [16:27:59]StoreOFDPacket docnum=139707 [16:27: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 35 02 00 00 59 58 2D 02 A1 CA 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 CC 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 B8 00 00 00 F4 03 04 00 0E B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3B 51 42 65 A6 56 F7 B3 5D B2 4F 51 FE 68 [16:27:59]CheckFolder [16:27:59]dirname=/storage/ofd_packets [16:27:59]CheckFolder done [16:27:59]ProducePacketName [16:27:59]name=ofd_packets/00139707 [16:27:59]NVStorageSaveData ofd_packets/00139707 [16:27:59]File name is /storage/ofd_packets/00139707 [16:27:59]Write 595 bytes [16:27:59]NVStorageSaveData done [16:27:59]OFDSenderStorePacket done [16:27:59]KKMCreateOFDPacket done [16:27:59]NVStorageSaveData kkm_last_timestamp [16:27:59]File name is /storage/kkm_last_timestamp [16:27:59]Write 4 bytes [16:27:59]NVStorageSaveData done [16:27:59]ExternCall_PrintAddStr [16:27:59]wPrintStart [16:27:59]Write to MH i2c: 01 00 00 67 11 78 [16:27:59]OFD Sender: Processing packet 139707 [packets to send 34, broken 33] [16:27:59]ProducePacketName [16:27:59]name=ofd_packets/00139707 [16:27:59]OFD Sender: To server: pG, [16:27:59]CommunicateWithHost lk.salyk.kg:30040 [16:27:59]ConnectInit lk.salyk.kg [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: 01 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: 01 07 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: 01 07 00 67 11 00 00 00 00 00 FF 0F 8D [16:27:59]RasterBufferAndPrint [16:27:59]line Счет N : (3)335553 [16:27:59]line ИНН: 02508201610067 [16:27:59]line Контрольно-Кассовый Чек [16:27:59]line ПРОДАЖА [16:27:59]line Товар: 4700000480364 [16:27:59]line Напиток энерг Nitro экзотик 0.45 ж/б [16:27:59]line 1.000 * 95.00 [16:27:59]line = 95.00 [16:27:59]line НДС 12% НСП 1% [16:27:59]line > о реализуемом товаре [16:27:59]line Товар: 4870202522701 [16:27:59]line Напиток Maxi Чай черный Малина 1,2 [16:27:59]line 1.000 * 125.00 [16:27:59]line = 125.00 [16:27:59]line НДС 12% НСП 1% [16:27:59]line > о реализуемом товаре [16:27:59]line Товар: 6957531032045 [16:27:59]line Кабель hoco rapid charging X1 type-C 1м [16:27:59]line 1.000 * 271.00 [16:27:59]line = 271.00 [16:27:59]line НДС 12% НСП 1% [16:27:59]line > о реализуемом товаре [16:27:59]line ИТОГО: 491.00 [16:27:59]line НСП 1% : 4.35 [16:27:59]line НДС 12% : 52.14 [16:27:59]line Наличными: 491.00 [16:27:59]line Безнал.: 0.00 [16:27:59]line Место: АЗС № 101 "Партнер Нефть" [16:27:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:27:59]line СНО: Общий режим [16:27:59]line Чек 184 31.10.2024 16:27 [16:27:59]line Смена: 557 ФФД: 1.0 [16:27:59]line ЗНМ: 0300000081 [16:27:59]line РНМ: 0000000000091631 [16:27:59]line Версия ККМ: 001 [16:27:59]line ФМ: 0000000000874669 [16:27:59]line ФД: 139707 [16:27:59]line ФПД: 65220192347734 [16:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162758&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139707&fm=65220192347734&tin=02508201610067®Number=0000000000091631&sum=49100 [16:27:59]line 0 [16:27:59]Connected sock=11 [16:27: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 35 02 00 00 59 58 2D 02 A1 CA 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 CC 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 B8 00 00 00 F4 03 04 00 0E B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3B 51 42 65 A6 56 F7 B3 5D B2 4F 51 FE 68 [16:27:59]written 0, free lines is 4095 [16:28: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 10 EE 47 00 52 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 BB 21 02 00 F4 03 04 00 BC 5B 23 67 B6 04 01 00 00 0E 42 97 02 F6 91 5F B6 [16:28:00]CommunicateWithHost err = 0 [16:28:00]CheckOFDResponse [16:28:00]1017 (14) - 77093643461234 [16:28:00]1041 (16) - 0000000000874669 [16:28:00]1040 (4) - 139707 [16:28:00]1012 (4) - 31.10.2024 10:28 [16:28:00]1206 (1) - 0 [16:28:00]OFD Sender: Remove packet 139707 [16:28:00]ProducePacketName [16:28:00]name=ofd_packets/00139707 [16:28:00]NVStorageDeleteData [16:28:00]Write to MH i2c: 01 00 00 9E 11 AF [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: 01 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: 01 07 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: 01 07 00 9E 11 00 00 00 00 00 34 0C F6 [16:28:00]RasterBufferAndPrint [16:28:00]line [16:28:00]line [16:28:00]line [16:28:00]line [16:28:00]line [16:28:00]written 0, free lines is 3132 [16:28:00]MH_Cut [16:28:00]Write to MH i2c: D1 01 00 A5 11 01 88 [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: D1 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: D1 01 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: D1 01 00 A5 11 00 87 [16:28:00]Write to MH i2c: 01 00 00 A6 11 B7 [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]OFD Sender: No OFD packet to send [16:28:01]*** Cut start [16:28:01]*** Partial cut [16:28:01]*** CUTSNS_PIN = 1 [16:28:01]*** CUTSNS_PIN = 0 [16:28:01]*** Brake cut motor [16:28:01]Read from MH i2c: 01 [16:28:01]MH_I2C_Read... [16:28:01]*** Stop cut motor [16:28:01]*** Cut end [16:28:01]Read from MH i2c: 01 07 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 FF 0F CC [16:28:01]process_action close_receipt done [16:28:01]requested_data is exist [16:28:01]produce_requested_data [16:28:01]requested_item fm.sn is exist - process it [16:28:01]wFMCommunicate request_size=4 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 11 00 00 [16:28:01]Write to MH i2c: E2 08 00 A7 11 80 11 00 00 00 00 00 00 32 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:01]Read from MH i2c: E2 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 17 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 17 00 A7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8D [16:28: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:28:01]wFMCommunicate OK [16:28:01]requested_item fd.num is exist - process it [16:28:01]SAM_PROTO_GetFieldsCounters [16:28:01]wFMCommunicate request_size=4 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 13 00 00 [16:28:01]Write to MH i2c: E2 08 00 A8 11 80 13 00 00 00 00 00 00 35 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 62 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 62 00 A8 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 8E [16:28: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 BB 21 02 00 0E 04 04 00 2D 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:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_GetFieldsCounters done [16:28:02]requested_item shift.num is exist - process it [16:28:02]requested_item shift.opened is exist - process it [16:28:02]req_shift_opened [16:28:02]FM_GetShiftState [16:28:02]SAM_PROTO_GetShiftState [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 13 01 00 [16:28:02]Write to MH i2c: E2 08 00 A9 11 80 13 01 00 00 00 00 00 37 [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 A9 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 60 [16:28:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_GetShiftState done [16:28:02]FM_GetShiftState done [16:28:02]req_shift_opened done [16:28:02]requested_item shift.open_date is exist - process it [16:28:02]req_shift_open_date [16:28:02]req_shift_open_date done [16:28:02]produce_requested_data done [16:28:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139707,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:28:02]process_action_free close_receipt [16:28:02]json_value_free [16:28:02]json_value_free done [16:28:02]process_json_proto returns [16:28:02]Send response to host [16:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139707,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:28:02]free response buf [16:28:02]execute_script done [16:28:02]execute_script returns [16:28:02]free content buf [16:28:02]Sock 9.Close socket [16:28:02]Sock 9.Thread stoped [16:28:05]OFD Sender: No OFD packet to send [16:28:08]ConnectInit Can't connect to host [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:09]accept exits with 10 [16:29:09]New connection [16:29:09]New thread 3066654052 created [16:29:09]Thread 3066510692 joined [16:29:09]Waiting for new connection... [16:29:09] Sock 10.Parse request [16:29:09]Sock 10.Check first char [16:29:09]Sock 10.First char is OK [16:29:09]request: POST /json_proto HTTP/1.0 [16:29:09]Method: POST [16:29:09]URL: /json_proto [16:29:09]Method is POST - this is cgi request [16:29:09]url: /json_proto [16:29:09]query_string will be loaded in cgi processing [16:29:09]execute_cgi json_proto POST (null) [16:29:09]execute_cgi path=json_proto method=POST [16:29:09]POST find Content-Length [16:29:09]Host: 172.17.50.196:8080 [16:29:09]Content-Length: 683 [16:29:09]Content-Type: application/json [16:29:09] [16:29:09]POST finish read [16:29:09]Found Content-Length = 683 [16:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095300", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:09]execute_script... [16:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095300", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:09]POST & json_proto [16:29:09]process_json_proto [16:29:09]json parsed OK: [16:29:09]protocol is kg_v1.0 [16:29:09]action value=close_receipt [16:29:09]process_action close_receipt [16:29:09]cmd_close_receipt [16:29:09]MH_GetDate [16:29:09]Write to MH i2c: F0 00 00 AA 11 AA [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: F0 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: F0 09 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: F0 09 00 AA 11 00 56 B0 23 67 72 0D 1C 67 45 [16:29:09]GetLastDocTimeStamp 1730392078 [16:29:09]current date 1730392150 [16:29:09]FM_GetShiftState [16:29:09]SAM_PROTO_GetShiftState [16:29:09]wFMCommunicate request_size=4 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 13 01 00 [16:29:09]Write to MH i2c: E2 08 00 AB 11 80 13 01 00 00 00 00 00 39 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0E 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0E 00 AB 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 62 [16:29:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:29:09]wFMCommunicate OK [16:29:09]SAM_PROTO_GetShiftState done [16:29:09]FM_GetShiftState done [16:29:09]opened in 1730332621 [16:29:09]opened+sec_in_day 1730419021 [16:29:09]quantity*price = 100015 [16:29:09]sum+1 = 100017 [16:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 185 31.10.2024 16:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139708 ФПД: 91294135364989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162910&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139708&fm=91294135364989&tin=02508201610067®Number=0000000000091631&sum=100000 [16:29:10]StoreToDocumentArchive [16:29:10]shift 557 fd 139708 [16:29:10]save to /storage/0557/doc_00139708 [16:29:10]save last doc name /storage/0557/doc_00139708 to /storage/kkm_last_doc_name [16:29:10]save OK [16:29:10]Clear old archive folders... [16:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:10]tlvbuf is 00A62690 [16:29:10]SAM_PROTO_ClearQueue [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 09 00 00 [16:29:10]Write to MH i2c: E2 08 00 B8 11 80 09 00 00 00 00 00 00 3B [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]SAM_PROTO_ClearQueue done [16:29:10]KKMCreateOFDPacket [16:29:10]OFDProtocolAddRootSTLVToBuf [16:29:10]FM_MakeSignedData [16:29:10]FM_MakeSignedData [16:29:10]SAM_PROTO_SignData [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 0D 01 02 [16:29:10]Write to MH i2c: E2 08 00 B9 11 80 0D 01 02 00 00 00 00 43 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 B9 11 00 90 00 3E [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]wFMCommunicate request_size=255 [16:29:10]MH_SAM_APDU [16:29: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 56 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 [16:29:10]Write to MH i2c: E2 02 01 BA 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 56 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 00 00 76 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]OFD Sender: No OFD packet to send [16:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 BA 11 00 90 00 3F [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]wFMCommunicate request_size=10 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 0D 02 02 05 08 12 82 2D 7D [16:29:10]Write to MH i2c: E2 0D 00 BB 11 80 0D 02 02 05 00 08 12 82 2D 7D 00 00 96 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 BB 11 00 90 00 40 [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 0D 03 02 [16:29:10]Write to MH i2c: E2 08 00 BC 11 80 0D 03 02 00 00 00 00 48 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:11]Read from MH i2c: E2 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 0B 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 0B 00 BC 11 00 E4 F5 AC 56 0A 39 29 76 90 00 06 [16:29:11]RAPDU: E4 F5 AC 56 0A 39 29 76 90 00 [16:29:11]wFMCommunicate OK [16:29:11]SAM_PROTO_SignData done [16:29:11]FM_MakeSignedData done [16:29:11]CreateOFDProtocolMessage [16:29:11]wFMCommunicate request_size=4 [16:29:11]MH_SAM_APDU [16:29:11]CAPDU: 80 11 00 00 [16:29:11]Write to MH i2c: E2 08 00 BD 11 80 11 00 00 00 00 00 00 48 [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:11]Read from MH i2c: E2 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 17 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 17 00 BD 11 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:29:11]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:11]wFMCommunicate OK [16:29:11]CreateOFDProtocolMessage done [16:29:11]OFDSenderStorePacket 139708 [16:29:11]StoreOFDPacket docnum=139708 [16:29: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 55 4C 07 01 AE 08 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 56 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 08 12 82 2D 7D E4 F5 AC 56 0A 39 29 76 [16:29:11]CheckFolder [16:29:11]dirname=/storage/ofd_packets [16:29:11]CheckFolder done [16:29:11]ProducePacketName [16:29:11]name=ofd_packets/00139708 [16:29:11]NVStorageSaveData ofd_packets/00139708 [16:29:11]File name is /storage/ofd_packets/00139708 [16:29:11]Write 301 bytes [16:29:11]NVStorageSaveData done [16:29:11]OFDSenderStorePacket done [16:29:11]KKMCreateOFDPacket done [16:29:11]NVStorageSaveData kkm_last_timestamp [16:29:11]File name is /storage/kkm_last_timestamp [16:29:11]Write 4 bytes [16:29:11]NVStorageSaveData done [16:29:11]ExternCall_PrintAddStr [16:29:11]wPrintStart [16:29:11]Write to MH i2c: 01 00 00 BE 11 CF [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 BE 11 00 00 00 00 00 FF 0F E4 [16:29:11]RasterBufferAndPrint [16:29:11]line Счет N : (1)1095300 [16:29:11]line ИНН: 02508201610067 [16:29:11]line Контрольно-Кассовый Чек [16:29:11]line ПРОДАЖА [16:29:11]line ТРК (МРК, ГНК) : 53 [16:29:11]line Товар: 2710124130 [16:29:11]line Аи-92-К-2 [16:29:11]line 14.950 * 66.90 [16:29:11]line = 1000.16 [16:29:11]line НДС 12% НСП 1% [16:29:11]line > о реализуемом товаре [16:29:11]line ОКРУГЛЕНИЕ: -0.16 [16:29:11]line ИТОГО: 1000.00 [16:29:11]line Внесено: 1000.00 [16:29:11]line СДАЧА: 0.00 [16:29:11]line НСП 1% : 8.85 [16:29:11]line НДС 12% : 106.21 [16:29:11]line Наличными: 1000.00 [16:29:11]line Безнал.: 0.00 [16:29:11]line Место: АЗС № 101 "Партнер Нефть" [16:29:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:29:11]line СНО: Общий режим [16:29:11]line Чек 185 31.10.2024 16:29 [16:29:11]line Смена: 557 ФФД: 1.0 [16:29:11]line ЗНМ: 0300000081 [16:29:11]line РНМ: 0000000000091631 [16:29:11]line Версия ККМ: 001 [16:29:11]line ФМ: 0000000000874669 [16:29:11]line ФД: 139708 [16:29:11]line ФПД: 91294135364989 [16:29:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162910&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139708&fm=91294135364989&tin=02508201610067®Number=0000000000091631&sum=100000 [16:29:11]OFD Sender: Processing packet 139708 [packets to send 34, broken 33] [16:29:11]ProducePacketName [16:29:11]name=ofd_packets/00139708 [16:29:11]OFD Sender: To server: pG, [16:29:11]CommunicateWithHost lk.salyk.kg:30040 [16:29:11]ConnectInit lk.salyk.kg [16:29:11]written 0, free lines is 4095 [16:29:11]Connected sock=9 [16:29: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 55 4C 07 01 AE 08 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 56 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 08 12 82 2D 7D E4 F5 AC 56 0A 39 29 76 [16:29: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 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 BC 21 02 00 F4 03 04 00 04 5C 23 67 B6 04 01 00 00 5F E5 23 D5 29 0D EF 0A [16:29:11]CommunicateWithHost err = 0 [16:29:11]CheckOFDResponse [16:29:11]1017 (14) - 77093643461234 [16:29:11]1041 (16) - 0000000000874669 [16:29:11]1040 (4) - 139708 [16:29:11]1012 (4) - 31.10.2024 10:29 [16:29:11]1206 (1) - 0 [16:29:11]OFD Sender: Remove packet 139708 [16:29:11]ProducePacketName [16:29:11]name=ofd_packets/00139708 [16:29:11]NVStorageDeleteData [16:29:11]Write to MH i2c: 01 00 00 E9 11 FA [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 E9 11 00 00 00 00 00 ED 0C FA [16:29:11]RasterBufferAndPrint [16:29:11]line [16:29:11]line [16:29:11]line [16:29:11]line [16:29:11]line [16:29:11]written 0, free lines is 3315 [16:29:11]MH_Cut [16:29:11]Write to MH i2c: D1 01 00 F0 11 01 D3 [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: D1 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: D1 01 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: D1 01 00 F0 11 00 D2 [16:29:11]Write to MH i2c: 01 00 00 F1 11 02 [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:12]OFD Sender: No OFD packet to send [16:29:12]*** Cut start [16:29:12]*** Partial cut [16:29:12]*** CUTSNS_PIN = 1 [16:29:12]*** CUTSNS_PIN = 0 [16:29:12]*** Brake cut motor [16:29:13]Read from MH i2c: 01 [16:29:13]MH_I2C_Read... [16:29:13]*** Stop cut motor [16:29:13]*** Cut end [16:29:13]Read from MH i2c: 01 07 00 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: 01 07 00 F1 11 00 00 00 00 00 FF 0F 17 [16:29:13]process_action close_receipt done [16:29:13]requested_data is exist [16:29:13]produce_requested_data [16:29:13]requested_item fm.sn is exist - process it [16:29:13]wFMCommunicate request_size=4 [16:29:13]MH_SAM_APDU [16:29:13]CAPDU: 80 11 00 00 [16:29:13]Write to MH i2c: E2 08 00 F2 11 80 11 00 00 00 00 00 00 7D [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:13]Read from MH i2c: E2 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 17 00 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 17 00 F2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D8 [16:29:13]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:13]wFMCommunicate OK [16:29:13]requested_item fd.num is exist - process it [16:29:13]SAM_PROTO_GetFieldsCounters [16:29:13]wFMCommunicate request_size=4 [16:29:13]MH_SAM_APDU [16:29:13]CAPDU: 80 13 00 00 [16:29:13]Write to MH i2c: E2 08 00 F3 11 80 13 00 00 00 00 00 00 80 [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:13]Read from MH i2c: E2 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 62 00 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 62 00 F3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 DD [16:29: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 BC 21 02 00 0E 04 04 00 2D 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:29:13]wFMCommunicate OK [16:29:13]SAM_PROTO_GetFieldsCounters done [16:29:13]requested_item shift.num is exist - process it [16:29:13]requested_item shift.opened is exist - process it [16:29:13]req_shift_opened [16:29:13]FM_GetShiftState [16:29:13]SAM_PROTO_GetShiftState [16:29:13]wFMCommunicate request_size=4 [16:29:13]MH_SAM_APDU [16:29:13]CAPDU: 80 13 01 00 [16:29:13]Write to MH i2c: E2 08 00 F4 11 80 13 01 00 00 00 00 00 82 [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:13]Read from MH i2c: E2 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 0E 00 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 0E 00 F4 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AB [16:29:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:29:13]wFMCommunicate OK [16:29:13]SAM_PROTO_GetShiftState done [16:29:13]FM_GetShiftState done [16:29:13]req_shift_opened done [16:29:13]requested_item shift.open_date is exist - process it [16:29:13]req_shift_open_date [16:29:13]req_shift_open_date done [16:29:13]produce_requested_data done [16:29:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139708,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:29:13]process_action_free close_receipt [16:29:13]json_value_free [16:29:13]json_value_free done [16:29:13]process_json_proto returns [16:29:13]Send response to host [16:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139708,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:29:13]free response buf [16:29:13]execute_script done [16:29:13]execute_script returns [16:29:13]free content buf [16:29:13]Sock 10.Close socket [16:29:13]Sock 10.Thread stoped [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:49]accept exits with 7 [16:29:49]New connection [16:29:49]New thread 3066510692 created [16:29:49]Thread 3066654052 joined [16:29:49]Waiting for new connection... [16:29:49] Sock 7.Parse request [16:29:49]Sock 7.Check first char [16:29:49]Sock 7.First char is OK [16:29:49]request: POST /json_proto HTTP/1.0 [16:29:49]Method: POST [16:29:49]URL: /json_proto [16:29:49]Method is POST - this is cgi request [16:29:49]url: /json_proto [16:29:49]query_string will be loaded in cgi processing [16:29:49]execute_cgi json_proto POST (null) [16:29:49]execute_cgi path=json_proto method=POST [16:29:49]POST find Content-Length [16:29:49]Host: 172.17.50.196:8080 [16:29:49]Content-Length: 627 [16:29:49]Content-Type: application/json [16:29:49] [16:29:49]POST finish read [16:29:49]Found Content-Length = 627 [16:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335554", "tax_sys" : 0, "items" : [ { "code": "4870001150402", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0442\u0440\u043E\u043F\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:49]execute_script... [16:29: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)335554", "tax_sys" : 0, "items" : [ { "code": "4870001150402", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0442\u0440\u043E\u043F\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:49]POST & json_proto [16:29:49]process_json_proto [16:29:49]json parsed OK: [16:29:49]protocol is kg_v1.0 [16:29:49]action value=close_receipt [16:29:49]process_action close_receipt [16:29:49]cmd_close_receipt [16:29:49]MH_GetDate [16:29:49]Write to MH i2c: F0 00 00 F5 11 F5 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: F0 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: F0 09 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: F0 09 00 F5 11 00 7F B0 23 67 72 0D 1C 67 B9 [16:29:49]GetLastDocTimeStamp 1730392150 [16:29:49]current date 1730392191 [16:29:49]FM_GetShiftState [16:29:49]SAM_PROTO_GetShiftState [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 13 01 00 [16:29:49]Write to MH i2c: E2 08 00 F6 11 80 13 01 00 00 00 00 00 84 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0E 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0E 00 F6 11 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AD [16:29:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:29:49]wFMCommunicate OK [16:29:49]SAM_PROTO_GetShiftState done [16:29:49]FM_GetShiftState done [16:29:49]opened in 1730332621 [16:29:49]opened+sec_in_day 1730419021 [16:29:49]quantity*price = 15000 [16:29:49]sum+1 = 15001 [16:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 186 31.10.2024 16:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139709 ФПД: 134392878693394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162951&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139709&fm=134392878693394&tin=02508201610067®Number=0000000000091631&sum=15000 0 [16:29:50]StoreToDocumentArchive [16:29:50]shift 557 fd 139709 [16:29:50]save to /storage/0557/doc_00139709 [16:29:50]save last doc name /storage/0557/doc_00139709 to /storage/kkm_last_doc_name [16:29:50]save OK [16:29:50]Clear old archive folders... [16:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:29:50]tlvbuf is 00A892E0 [16:29:50]SAM_PROTO_ClearQueue [16:29:50]wFMCommunicate request_size=4 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 09 00 00 [16:29:50]Write to MH i2c: E2 08 00 03 12 80 09 00 00 00 00 00 00 87 [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:50]Read from MH i2c: E2 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 03 12 00 90 00 89 [16:29:50]RAPDU: 90 00 [16:29:50]wFMCommunicate OK [16:29:50]SAM_PROTO_ClearQueue done [16:29:50]KKMCreateOFDPacket [16:29:50]OFDProtocolAddRootSTLVToBuf [16:29:50]FM_MakeSignedData [16:29:50]FM_MakeSignedData [16:29:50]SAM_PROTO_SignData [16:29:50]wFMCommunicate request_size=4 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 0D 01 02 [16:29:50]Write to MH i2c: E2 08 00 04 12 80 0D 01 02 00 00 00 00 8F [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:50]Read from MH i2c: E2 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 04 12 00 90 00 8A [16:29:50]RAPDU: 90 00 [16:29:50]wFMCommunicate OK [16:29:50]wFMCommunicate request_size=255 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7F B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:29:50]Write to MH i2c: E2 02 01 05 12 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7F B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 B4 [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:51]Read from MH i2c: E2 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 03 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 03 00 05 12 00 90 00 8B [16:29:51]RAPDU: 90 00 [16:29:51]wFMCommunicate OK [16:29:51]wFMCommunicate request_size=30 [16:29:51]MH_SAM_APDU [16:29:51]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 BD 21 02 00 35 04 06 00 7A 3A C7 CB 7C 12 [16:29:51]Write to MH i2c: E2 21 00 06 12 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 BD 21 02 00 35 04 06 00 7A 3A C7 CB 7C 12 00 00 47 [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:51]Read from MH i2c: E2 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 03 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [16:29:51]RAPDU: 90 00 [16:29:51]wFMCommunicate OK [16:29:51]wFMCommunicate request_size=4 [16:29:51]MH_SAM_APDU [16:29:51]CAPDU: 80 0D 03 02 [16:29:51]Write to MH i2c: E2 08 00 07 12 80 0D 03 02 00 00 00 00 94 [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:51]Read from MH i2c: E2 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 0B 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 0B 00 07 12 00 E1 6D 4A 51 92 97 C5 BB 90 00 27 [16:29:51]RAPDU: E1 6D 4A 51 92 97 C5 BB 90 00 [16:29:51]wFMCommunicate OK [16:29:51]SAM_PROTO_SignData done [16:29:51]FM_MakeSignedData done [16:29:51]CreateOFDProtocolMessage [16:29:51]wFMCommunicate request_size=4 [16:29:51]MH_SAM_APDU [16:29:51]CAPDU: 80 11 00 00 [16:29:51]Write to MH i2c: E2 08 00 08 12 80 11 00 00 00 00 00 00 94 [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:51]Read from MH i2c: E2 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 17 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 17 00 08 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [16:29: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:29:51]wFMCommunicate OK [16:29:51]CreateOFDProtocolMessage done [16:29:51]OFDSenderStorePacket 139709 [16:29:51]StoreOFDPacket docnum=139709 [16:29: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 23 01 00 00 B7 A3 1B 01 F9 6A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7F B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7A 3A C7 CB 7C 12 E1 6D 4A 51 92 97 C5 BB [16:29:51]CheckFolder [16:29:51]dirname=/storage/ofd_packets [16:29:51]CheckFolder done [16:29:51]ProducePacketName [16:29:51]name=ofd_packets/00139709 [16:29:51]NVStorageSaveData ofd_packets/00139709 [16:29:51]File name is /storage/ofd_packets/00139709 [16:29:51]Write 321 bytes [16:29:51]NVStorageSaveData done [16:29:51]OFDSenderStorePacket done [16:29:51]KKMCreateOFDPacket done [16:29:51]NVStorageSaveData kkm_last_timestamp [16:29:51]File name is /storage/kkm_last_timestamp [16:29:51]Write 4 bytes [16:29:51]NVStorageSaveData done [16:29:51]ExternCall_PrintAddStr [16:29:51]wPrintStart [16:29:51]Write to MH i2c: 01 00 00 09 12 1B [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 09 12 00 00 00 00 00 FF 0F 30 [16:29:51]RasterBufferAndPrint [16:29:51]line Счет N : (3)335554 [16:29:51]line ИНН: 02508201610067 [16:29:51]line Контрольно-Кассовый Чек [16:29:51]line ПРОДАЖА [16:29:51]line Товар: 4870001150402 [16:29:51]line Сок Da-Da 1л тропик [16:29:51]line 1.000 * 150.00 [16:29:51]line = 150.00 [16:29:51]line НДС 12% НСП 1% [16:29:51]line > о реализуемом товаре [16:29:51]line ИТОГО: 150.00 [16:29:51]line НСП 1% : 1.33 [16:29:51]line НДС 12% : 15.93 [16:29:51]line Наличными: 150.00 [16:29:51]line Безнал.: 0.00 [16:29:51]line Место: АЗС № 101 "Партнер Нефть" [16:29:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:29:51]line СНО: Общий режим [16:29:51]line Чек 186 31.10.2024 16:29 [16:29:51]line Смена: 557 ФФД: 1.0 [16:29:51]line ЗНМ: 0300000081 [16:29:51]line РНМ: 0000000000091631 [16:29:51]line Версия ККМ: 001 [16:29:51]line ФМ: 0000000000874669 [16:29:51]line ФД: 139709 [16:29:51]line ФПД: 134392878693394 [16:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T162951&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139709&fm=134392878693394&tin=02508201610067®Number=0000000000091631&sum=15000 [16:29:51]line 0 [16:29:51]written 0, free lines is 4095 [16:29:51]OFD Sender: Processing packet 139709 [packets to send 34, broken 33] [16:29:51]ProducePacketName [16:29:51]name=ofd_packets/00139709 [16:29:51]OFD Sender: To server: pG, [16:29:51]CommunicateWithHost lk.salyk.kg:30040 [16:29:51]ConnectInit lk.salyk.kg [16:29:51]Connected sock=10 [16:29: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 23 01 00 00 B7 A3 1B 01 F9 6A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7F B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7A 3A C7 CB 7C 12 E1 6D 4A 51 92 97 C5 BB [16:29: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 56 70 47 00 95 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 BD 21 02 00 F4 03 04 00 2C 5C 23 67 B6 04 01 00 00 38 CD 40 AF A9 9F F9 9C [16:29:51]CommunicateWithHost err = 0 [16:29:51]CheckOFDResponse [16:29:51]1017 (14) - 77093643461234 [16:29:51]1041 (16) - 0000000000874669 [16:29:51]1040 (4) - 139709 [16:29:51]1012 (4) - 31.10.2024 10:30 [16:29:51]1206 (1) - 0 [16:29:51]OFD Sender: Remove packet 139709 [16:29:51]ProducePacketName [16:29:51]name=ofd_packets/00139709 [16:29:51]NVStorageDeleteData [16:29:51]Write to MH i2c: 01 00 00 31 12 43 [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 31 12 00 00 00 00 00 21 0D 78 [16:29:51]RasterBufferAndPrint [16:29:51]line [16:29:51]line [16:29:51]line [16:29:51]line [16:29:51]line [16:29:51]written 0, free lines is 3366 [16:29:51]MH_Cut [16:29:51]Write to MH i2c: D1 01 00 38 12 01 1C [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: D1 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: D1 01 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: D1 01 00 38 12 00 1B [16:29:51]Write to MH i2c: 01 00 00 39 12 4B [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:52]OFD Sender: No OFD packet to send [16:29:52]*** Cut start [16:29:52]*** Partial cut [16:29:52]*** CUTSNS_PIN = 1 [16:29:52]*** CUTSNS_PIN = 0 [16:29:52]*** Brake cut motor [16:29:53]Read from MH i2c: 01 [16:29:53]MH_I2C_Read... [16:29:53]*** Stop cut motor [16:29:53]*** Cut end [16:29:53]Read from MH i2c: 01 07 00 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: 01 07 00 39 12 00 00 00 00 00 FF 0F 60 [16:29:53]process_action close_receipt done [16:29:53]requested_data is exist [16:29:53]produce_requested_data [16:29:53]requested_item fm.sn is exist - process it [16:29:53]wFMCommunicate request_size=4 [16:29:53]MH_SAM_APDU [16:29:53]CAPDU: 80 11 00 00 [16:29:53]Write to MH i2c: E2 08 00 3A 12 80 11 00 00 00 00 00 00 C6 [16:29:53]Write i2c OK [16:29:53]MH_I2C_Read... [16:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:53]Read from MH i2c: E2 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 17 00 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 17 00 3A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 21 [16:29: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:29:53]wFMCommunicate OK [16:29:53]requested_item fd.num is exist - process it [16:29:53]SAM_PROTO_GetFieldsCounters [16:29:53]wFMCommunicate request_size=4 [16:29:53]MH_SAM_APDU [16:29:53]CAPDU: 80 13 00 00 [16:29:53]Write to MH i2c: E2 08 00 3B 12 80 13 00 00 00 00 00 00 C9 [16:29:53]Write i2c OK [16:29:53]MH_I2C_Read... [16:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:53]Read from MH i2c: E2 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 62 00 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 62 00 3B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 2A [16:29: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 BD 21 02 00 0E 04 04 00 2D 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:29:53]wFMCommunicate OK [16:29:53]SAM_PROTO_GetFieldsCounters done [16:29:53]requested_item shift.num is exist - process it [16:29:53]requested_item shift.opened is exist - process it [16:29:53]req_shift_opened [16:29:53]FM_GetShiftState [16:29:53]SAM_PROTO_GetShiftState [16:29:53]wFMCommunicate request_size=4 [16:29:53]MH_SAM_APDU [16:29:53]CAPDU: 80 13 01 00 [16:29:53]Write to MH i2c: E2 08 00 3C 12 80 13 01 00 00 00 00 00 CB [16:29:53]Write i2c OK [16:29:53]MH_I2C_Read... [16:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:53]Read from MH i2c: E2 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 0E 00 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 0E 00 3C 12 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F4 [16:29:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:29:53]wFMCommunicate OK [16:29:53]SAM_PROTO_GetShiftState done [16:29:53]FM_GetShiftState done [16:29:53]req_shift_opened done [16:29:53]requested_item shift.open_date is exist - process it [16:29:53]req_shift_open_date [16:29:53]req_shift_open_date done [16:29:53]produce_requested_data done [16:29:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139709,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:29:53]process_action_free close_receipt [16:29:53]json_value_free [16:29:53]json_value_free done [16:29:53]process_json_proto returns [16:29:53]Send response to host [16:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139709,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:29:53]free response buf [16:29:53]execute_script done [16:29:53]execute_script returns [16:29:53]free content buf [16:29:53]Sock 7.Close socket [16:29:53]Sock 7.Thread stoped [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:00]accept exits with 9 [16:31:00]New connection [16:31:00]New thread 3066654052 created [16:31:00]Thread 3066510692 joined [16:31:00]Waiting for new connection... [16:31:00] Sock 9.Parse request [16:31:00]Sock 9.Check first char [16:31:00]Sock 9.First char is OK [16:31:00]request: POST /json_proto HTTP/1.0 [16:31:00]Method: POST [16:31:00]URL: /json_proto [16:31:00]Method is POST - this is cgi request [16:31:00]url: /json_proto [16:31:00]query_string will be loaded in cgi processing [16:31:00]execute_cgi json_proto POST (null) [16:31:00]execute_cgi path=json_proto method=POST [16:31:00]POST find Content-Length [16:31:00]Host: 172.17.50.196:8080 [16:31:00]Content-Length: 1086 [16:31:00]Content-Type: application/json [16:31:00] [16:31:00]POST finish read [16:31:00]Found Content-Length = 1086 [16:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335555", "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" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:00]execute_script... [16:31:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335555", "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" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:00]POST & json_proto [16:31:00]process_json_proto [16:31:00]json parsed OK: [16:31:00]protocol is kg_v1.0 [16:31:00]action value=close_receipt [16:31:00]process_action close_receipt [16:31:00]cmd_close_receipt [16:31:00]MH_GetDate [16:31:00]Write to MH i2c: F0 00 00 3D 12 3E [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: F0 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: F0 09 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: F0 09 00 3D 12 00 C5 B0 23 67 72 0D 1C 67 48 [16:31:00]GetLastDocTimeStamp 1730392191 [16:31:00]current date 1730392261 [16:31:00]FM_GetShiftState [16:31:00]SAM_PROTO_GetShiftState [16:31:00]wFMCommunicate request_size=4 [16:31:00]MH_SAM_APDU [16:31:00]CAPDU: 80 13 01 00 [16:31:00]Write to MH i2c: E2 08 00 3E 12 80 13 01 00 00 00 00 00 CD [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:00]Read from MH i2c: E2 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 0E 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 0E 00 3E 12 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F6 [16:31:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:31:00]wFMCommunicate OK [16:31:00]SAM_PROTO_GetShiftState done [16:31:00]FM_GetShiftState done [16:31:00]opened in 1730332621 [16:31:00]opened+sec_in_day 1730419021 [16:31:00]quantity*price = 18000 [16:31:00]sum+1 = 18001 [16:31:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870066000476 Палочки Алматинский Продукт сладкие 50г 1.000 * 27.00 = 27.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 207.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 187 31.10.2024 16:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139710 ФПД: 263611957123961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163101&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139710&fm=263611957123961&tin=02508201610067®Number=0000000000091631&sum=20700 0 [16:31:01]StoreToDocumentArchive [16:31:01]shift 557 fd 139710 [16:31:01]save to /storage/0557/doc_00139710 [16:31:01]save last doc name /storage/0557/doc_00139710 to /storage/kkm_last_doc_name [16:31:01]save OK [16:31:01]Clear old archive folders... [16:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=443 [16:31:01]tlvbuf is 00A62250 [16:31:01]SAM_PROTO_ClearQueue [16:31:01]wFMCommunicate request_size=4 [16:31:01]MH_SAM_APDU [16:31:01]CAPDU: 80 09 00 00 [16:31:01]Write to MH i2c: E2 08 00 4B 12 80 09 00 00 00 00 00 00 CF [16:31:01]Write i2c OK [16:31:01]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 4B 12 00 90 00 D1 [16:31:01]RAPDU: 90 00 [16:31:01]wFMCommunicate OK [16:31:01]SAM_PROTO_ClearQueue done [16:31:01]KKMCreateOFDPacket [16:31:01]OFDProtocolAddRootSTLVToBuf [16:31:01]FM_MakeSignedData [16:31:01]FM_MakeSignedData [16:31:01]SAM_PROTO_SignData [16:31:01]wFMCommunicate request_size=4 [16:31:01]MH_SAM_APDU [16:31:01]CAPDU: 80 0D 01 02 [16:31:01]Write to MH i2c: E2 08 00 4C 12 80 0D 01 02 00 00 00 00 D7 [16:31:01]Write i2c OK [16:31:01]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [16:31:01]RAPDU: 90 00 [16:31:01]wFMCommunicate OK [16:31:01]wFMCommunicate request_size=255 [16:31:01]MH_SAM_APDU [16:31:01]CAPDU: 80 0D 02 02 FA 03 00 BB 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 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 [16:31:01]Write to MH i2c: E2 02 01 4D 12 80 0D 02 02 FA 00 03 00 BB 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 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 5A [16:31:01]Write i2c OK [16:31:01]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 4D 12 00 90 00 D3 [16:31:01]RAPDU: 90 00 [16:31:01]wFMCommunicate OK [16:31:01]wFMCommunicate request_size=202 [16:31:01]MH_SAM_APDU [16:31:01]CAPDU: 80 0D 02 02 C5 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 BB 00 00 00 F4 03 04 00 C5 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EF C0 F1 10 1B 79 [16:31:01]Write to MH i2c: E2 CD 00 4E 12 80 0D 02 02 C5 00 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 BB 00 00 00 F4 03 04 00 C5 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EF C0 F1 10 1B 79 00 00 61 [16:31:01]Write i2c OK [16:31:01]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 03 00 4E 12 00 90 00 D4 [16:31:01]RAPDU: 90 00 [16:31:01]wFMCommunicate OK [16:31:01]wFMCommunicate request_size=4 [16:31:01]MH_SAM_APDU [16:31:01]CAPDU: 80 0D 03 02 [16:31:01]Write to MH i2c: E2 08 00 4F 12 80 0D 03 02 00 00 00 00 DC [16:31:01]Write i2c OK [16:31:01]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 0B 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 0B 00 4F 12 00 A6 5F 33 D0 17 BE 70 17 90 00 41 [16:31:01]RAPDU: A6 5F 33 D0 17 BE 70 17 90 00 [16:31:01]wFMCommunicate OK [16:31:01]SAM_PROTO_SignData done [16:31:01]FM_MakeSignedData done [16:31:01]CreateOFDProtocolMessage [16:31:01]wFMCommunicate request_size=4 [16:31:01]MH_SAM_APDU [16:31:01]CAPDU: 80 11 00 00 [16:31:01]Write to MH i2c: E2 08 00 50 12 80 11 00 00 00 00 00 00 DC [16:31:01]Write i2c OK [16:31:01]MH_I2C_Read... [16:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:01]Read from MH i2c: E2 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 17 00 [16:31:01]MH_I2C_Read... [16:31:01]Read from MH i2c: E2 17 00 50 12 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:31: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:31:01]wFMCommunicate OK [16:31:01]CreateOFDProtocolMessage done [16:31:01]OFDSenderStorePacket 139710 [16:31:01]StoreOFDPacket docnum=139710 [16:31: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 CF 01 00 00 0B 44 C7 01 5C 0E 5A 03 01 00 03 00 BB 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 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 BB 00 00 00 F4 03 04 00 C5 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EF C0 F1 10 1B 79 A6 5F 33 D0 17 BE 70 17 [16:31:01]CheckFolder [16:31:01]dirname=/storage/ofd_packets [16:31:01]CheckFolder done [16:31:01]ProducePacketName [16:31:01]name=ofd_packets/00139710 [16:31:01]NVStorageSaveData ofd_packets/00139710 [16:31:01]File name is /storage/ofd_packets/00139710 [16:31:01]Write 493 bytes [16:31:01]NVStorageSaveData done [16:31:01]OFDSenderStorePacket done [16:31:01]KKMCreateOFDPacket done [16:31:01]NVStorageSaveData kkm_last_timestamp [16:31:01]File name is /storage/kkm_last_timestamp [16:31:01]Write 4 bytes [16:31:01]NVStorageSaveData done [16:31:01]ExternCall_PrintAddStr [16:31:01]wPrintStart [16:31:01]Write to MH i2c: 01 00 00 51 12 63 [16:31:01]OFD Sender: Processing packet 139710 [packets to send 34, broken 33] [16:31:01]ProducePacketName [16:31:02]name=ofd_packets/00139710 [16:31:02]OFD Sender: To server: pG, [16:31:02]CommunicateWithHost lk.salyk.kg:30040 [16:31:02]ConnectInit lk.salyk.kg [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 07 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 07 00 51 12 00 00 00 00 00 FF 0F 78 [16:31:02]RasterBufferAndPrint [16:31:02]line Счет N : (3)335555 [16:31:02]line ИНН: 02508201610067 [16:31:02]line Контрольно-Кассовый Чек [16:31:02]line ПРОДАЖА [16:31:02]line Товар: 4660085515163 [16:31:02]line Шок Батончик Сникерс супер 95/80г [16:31:02]line 2.000 * 90.00 [16:31:02]line = 180.00 [16:31:02]line НДС 12% НСП 1% [16:31:02]line > о реализуемом товаре [16:31:02]line Товар: 4870066000476 [16:31:02]line Палочки Алматинский Продукт сладкие 50г [16:31:02]line 1.000 * 27.00 [16:31:02]line = 27.00 [16:31:02]line НДС 12% НСП 1% [16:31:02]line > о реализуемом товаре [16:31:02]line ИТОГО: 207.00 [16:31:02]line НСП 1% : 1.83 [16:31:02]line НДС 12% : 21.98 [16:31:02]line Наличными: 207.00 [16:31:02]line Безнал.: 0.00 [16:31:02]line Место: АЗС № 101 "Партнер Нефть" [16:31:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:31:02]line СНО: Общий режим [16:31:02]line Чек 187 31.10.2024 16:31 [16:31:02]line Смена: 557 ФФД: 1.0 [16:31:02]line ЗНМ: 0300000081 [16:31:02]line РНМ: 0000000000091631 [16:31:02]line Версия ККМ: 001 [16:31:02]line ФМ: 0000000000874669 [16:31:02]line ФД: 139710 [16:31:02]line ФПД: 263611957123961 [16:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163101&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139710&fm=263611957123961&tin=02508201610067®Number=0000000000091631&sum=20700 [16:31:02]line 0 [16:31:02]written 0, free lines is 4095 [16:31:02]Connected sock=10 [16:31: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 CF 01 00 00 0B 44 C7 01 5C 0E 5A 03 01 00 03 00 BB 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 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 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 BB 00 00 00 F4 03 04 00 C5 B0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EF C0 F1 10 1B 79 A6 5F 33 D0 17 BE 70 17 [16:31: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 46 8B 47 00 7B AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 21 02 00 F4 03 04 00 72 5C 23 67 B6 04 01 00 00 58 9B 01 E8 AD B2 46 A7 [16:31:02]CommunicateWithHost err = 0 [16:31:02]CheckOFDResponse [16:31:02]1017 (14) - 77093643461234 [16:31:02]1041 (16) - 0000000000874669 [16:31:02]1040 (4) - 139710 [16:31:02]1012 (4) - 31.10.2024 10:31 [16:31:02]1206 (1) - 0 [16:31:02]OFD Sender: Remove packet 139710 [16:31:02]ProducePacketName [16:31:02]name=ofd_packets/00139710 [16:31:02]NVStorageDeleteData [16:31:02]Write to MH i2c: 01 00 00 81 12 93 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 07 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 07 00 81 12 00 00 00 00 00 AC 0C 52 [16:31:02]RasterBufferAndPrint [16:31:02]line [16:31:02]line [16:31:02]line [16:31:02]line [16:31:02]line [16:31:02]written 0, free lines is 3250 [16:31:02]MH_Cut [16:31:02]Write to MH i2c: D1 01 00 88 12 01 6C [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: D1 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: D1 01 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: D1 01 00 88 12 00 6B [16:31:02]Write to MH i2c: 01 00 00 89 12 9B [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:03]OFD Sender: No OFD packet to send [16:31:03]*** Cut start [16:31:03]*** Partial cut [16:31:03]*** CUTSNS_PIN = 1 [16:31:03]*** CUTSNS_PIN = 0 [16:31:03]*** Brake cut motor [16:31:04]Read from MH i2c: 01 [16:31:04]MH_I2C_Read... [16:31:04]*** Stop cut motor [16:31:04]*** Cut end [16:31:04]Read from MH i2c: 01 07 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: 01 07 00 89 12 00 00 00 00 00 FF 0F B0 [16:31:04]process_action close_receipt done [16:31:04]requested_data is exist [16:31:04]produce_requested_data [16:31:04]requested_item fm.sn is exist - process it [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 11 00 00 [16:31:04]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 17 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 17 00 8A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [16:31: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:31:04]wFMCommunicate OK [16:31:04]requested_item fd.num is exist - process it [16:31:04]SAM_PROTO_GetFieldsCounters [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 13 00 00 [16:31:04]Write to MH i2c: E2 08 00 8B 12 80 13 00 00 00 00 00 00 19 [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 62 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 62 00 8B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 7E [16:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:31:04]wFMCommunicate OK [16:31:04]SAM_PROTO_GetFieldsCounters done [16:31:04]requested_item shift.num is exist - process it [16:31:04]requested_item shift.opened is exist - process it [16:31:04]req_shift_opened [16:31:04]FM_GetShiftState [16:31:04]SAM_PROTO_GetShiftState [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 13 01 00 [16:31:04]Write to MH i2c: E2 08 00 8C 12 80 13 01 00 00 00 00 00 1B [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 0E 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 0E 00 8C 12 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 44 [16:31:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:31:04]wFMCommunicate OK [16:31:04]SAM_PROTO_GetShiftState done [16:31:04]FM_GetShiftState done [16:31:04]req_shift_opened done [16:31:04]requested_item shift.open_date is exist - process it [16:31:04]req_shift_open_date [16:31:04]req_shift_open_date done [16:31:04]produce_requested_data done [16:31:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139710,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:31:04]process_action_free close_receipt [16:31:04]json_value_free [16:31:04]json_value_free done [16:31:04]process_json_proto returns [16:31:04]Send response to host [16:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139710,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:31:04]free response buf [16:31:04]execute_script done [16:31:04]execute_script returns [16:31:04]free content buf [16:31:04]Sock 9.Close socket [16:31:04]Sock 9.Thread stoped [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:31:59]accept exits with 7 [16:31:59]New connection [16:31:59]New thread 3066510692 created [16:31:59]Thread 3066654052 joined [16:31:59]Waiting for new connection... [16:31:59] Sock 7.Parse request [16:31:59]Sock 7.Check first char [16:31:59]Sock 7.First char is OK [16:31:59]request: POST /json_proto HTTP/1.0 [16:31:59]Method: POST [16:31:59]URL: /json_proto [16:31:59]Method is POST - this is cgi request [16:31:59]url: /json_proto [16:31:59]query_string will be loaded in cgi processing [16:31:59]execute_cgi json_proto POST (null) [16:31:59]execute_cgi path=json_proto method=POST [16:31:59]POST find Content-Length [16:31:59]Host: 172.17.50.196:8080 [16:31:59]Content-Length: 895 [16:31:59]Content-Type: application/json [16:31:59] [16:31:59]POST finish read [16:31:59]Found Content-Length = 895 [16:31:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335556", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.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" ] } } [16:31:59]execute_script... [16:31: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)335556", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.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" ] } } [16:31:59]POST & json_proto [16:31:59]process_json_proto [16:31:59]json parsed OK: [16:31:59]protocol is kg_v1.0 [16:31:59]action value=close_receipt [16:31:59]process_action close_receipt [16:31:59]cmd_close_receipt [16:31:59]MH_GetDate [16:31:59]Write to MH i2c: F0 00 00 8D 12 8E [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: F0 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: F0 09 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: F0 09 00 8D 12 00 01 B1 23 67 72 0D 1C 67 D5 [16:31:59]GetLastDocTimeStamp 1730392261 [16:31:59]current date 1730392321 [16:31:59]FM_GetShiftState [16:31:59]SAM_PROTO_GetShiftState [16:31:59]wFMCommunicate request_size=4 [16:31:59]MH_SAM_APDU [16:31:59]CAPDU: 80 13 01 00 [16:31:59]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:59]Read from MH i2c: E2 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 0E 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 46 [16:31:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:31:59]wFMCommunicate OK [16:31:59]SAM_PROTO_GetShiftState done [16:31:59]FM_GetShiftState done [16:31:59]opened in 1730332621 [16:31:59]opened+sec_in_day 1730419021 [16:31:59]quantity*price = 10000 [16:31:59]sum+1 = 10001 [16:31:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310173 Вода Адыгене 0,5л б/г 1.000 * 39.00 = 39.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.22 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 188 31.10.2024 16:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139711 ФПД: 73118272268882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163201&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139711&fm=73118272268882&tin=02508201610067®Number=0000000000091631&sum=13900 0 [16:32:01]StoreToDocumentArchive [16:32:01]shift 557 fd 139711 [16:32:01]save to /storage/0557/doc_00139711 [16:32:01]save last doc name /storage/0557/doc_00139711 to /storage/kkm_last_doc_name [16:32:01]save OK [16:32:01]Clear old archive folders... [16:32:01]ProcessDocumentItem done err = 0, tmpTLVsize=376 [16:32:01]tlvbuf is 00A64A50 [16:32:01]SAM_PROTO_ClearQueue [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 09 00 00 [16:32:01]Write to MH i2c: E2 08 00 9B 12 80 09 00 00 00 00 00 00 1F [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]SAM_PROTO_ClearQueue done [16:32:01]KKMCreateOFDPacket [16:32:01]OFDProtocolAddRootSTLVToBuf [16:32:01]FM_MakeSignedData [16:32:01]FM_MakeSignedData [16:32:01]SAM_PROTO_SignData [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 01 02 [16:32:01]Write to MH i2c: E2 08 00 9C 12 80 0D 01 02 00 00 00 00 27 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]wFMCommunicate request_size=255 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 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 7A 00 00 00 00 00 EE 03 [16:32:01]Write to MH i2c: E2 02 01 9D 12 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 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 7A 00 00 00 00 00 EE 03 00 00 56 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]wFMCommunicate request_size=135 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 02 02 82 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 BC 00 00 00 F4 03 04 00 01 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 42 80 2C A5 2A 52 [16:32:01]Write to MH i2c: E2 8A 00 9E 12 80 0D 02 02 82 00 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 BC 00 00 00 F4 03 04 00 01 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 42 80 2C A5 2A 52 00 00 D0 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 03 02 [16:32:01]Write to MH i2c: E2 08 00 9F 12 80 0D 03 02 00 00 00 00 2C [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 0B 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 0B 00 9F 12 00 5A B5 37 C3 CA 60 94 DE 90 00 D2 [16:32:01]RAPDU: 5A B5 37 C3 CA 60 94 DE 90 00 [16:32:01]wFMCommunicate OK [16:32:01]SAM_PROTO_SignData done [16:32:01]FM_MakeSignedData done [16:32:01]CreateOFDProtocolMessage [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 11 00 00 [16:32:01]Write to MH i2c: E2 08 00 A0 12 80 11 00 00 00 00 00 00 2C [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 17 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 17 00 A0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [16:32: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:32:01]wFMCommunicate OK [16:32:01]CreateOFDProtocolMessage done [16:32:01]OFDSenderStorePacket 139711 [16:32:01]StoreOFDPacket docnum=139711 [16:32: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 8C 01 00 00 22 63 84 01 E1 10 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 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 7A 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 BC 00 00 00 F4 03 04 00 01 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 42 80 2C A5 2A 52 5A B5 37 C3 CA 60 94 DE [16:32:01]CheckFolder [16:32:01]dirname=/storage/ofd_packets [16:32:01]CheckFolder done [16:32:01]ProducePacketName [16:32:01]name=ofd_packets/00139711 [16:32:01]NVStorageSaveData ofd_packets/00139711 [16:32:01]File name is /storage/ofd_packets/00139711 [16:32:01]Write 426 bytes [16:32:01]NVStorageSaveData done [16:32:01]OFDSenderStorePacket done [16:32:01]KKMCreateOFDPacket done [16:32:01]NVStorageSaveData kkm_last_timestamp [16:32:01]File name is /storage/kkm_last_timestamp [16:32:01]Write 4 bytes [16:32:01]NVStorageSaveData done [16:32:01]ExternCall_PrintAddStr [16:32:01]wPrintStart [16:32:01]Write to MH i2c: 01 00 00 A1 12 B3 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: 01 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: 01 07 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 00 FF 0F C8 [16:32:01]RasterBufferAndPrint [16:32:01]line Счет N : (3)335556 [16:32:01]line ИНН: 02508201610067 [16:32:01]line Контрольно-Кассовый Чек [16:32:02]line ПРОДАЖА [16:32:02]line Товар: 4700000160358 [16:32:02]line Вода Легенда 1л [16:32:02]line 2.000 * 50.00 [16:32:02]line = 100.00 [16:32:02]line НДС 12% НСП 1% [16:32:02]line > о реализуемом товаре [16:32:02]line Товар: 4700000310173 [16:32:02]line Вода Адыгене 0,5л б/г [16:32:02]line 1.000 * 39.00 [16:32:02]line = 39.00 [16:32:02]line НДС 12% НСП 1% [16:32:02]line > о реализуемом товаре [16:32:02]line ИТОГО: 139.00 [16:32:02]line НСП 1% : 1.22 [16:32:02]line НДС 12% : 14.76 [16:32:02]line Наличными: 139.00 [16:32:02]line Безнал.: 0.00 [16:32:02]line Место: АЗС № 101 "Партнер Нефть" [16:32:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:32:02]line СНО: Общий режим [16:32:02]line Чек 188 31.10.2024 16:32 [16:32:02]line Смена: 557 ФФД: 1.0 [16:32:02]line ЗНМ: 0300000081 [16:32:02]line РНМ: 0000000000091631 [16:32:02]line Версия ККМ: 001 [16:32:02]line ФМ: 0000000000874669 [16:32:02]line ФД: 139711 [16:32:02]line ФПД: 73118272268882 [16:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163201&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139711&fm=73118272268882&tin=02508201610067®Number=0000000000091631&sum=13900 [16:32:02]line 0 [16:32:02]OFD Sender: Processing packet 139711 [packets to send 34, broken 33] [16:32:02]ProducePacketName [16:32:02]name=ofd_packets/00139711 [16:32:02]OFD Sender: To server: pG, [16:32:02]CommunicateWithHost lk.salyk.kg:30040 [16:32:02]ConnectInit lk.salyk.kg [16:32:02]written 0, free lines is 4095 [16:32:02]Connected sock=10 [16:32: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 8C 01 00 00 22 63 84 01 E1 10 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 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 7A 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 BC 00 00 00 F4 03 04 00 01 B1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 42 80 2C A5 2A 52 5A B5 37 C3 CA 60 94 DE [16:32: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 2F 9A 47 00 CC 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 21 02 00 F4 03 04 00 AE 5C 23 67 B6 04 01 00 00 A7 D4 DF 56 8D 2A 0B DB [16:32:02]CommunicateWithHost err = 0 [16:32:02]CheckOFDResponse [16:32:02]1017 (14) - 77093643461234 [16:32:02]1041 (16) - 0000000000874669 [16:32:02]1040 (4) - 139711 [16:32:02]1012 (4) - 31.10.2024 10:32 [16:32:02]1206 (1) - 0 [16:32:02]OFD Sender: Remove packet 139711 [16:32:02]ProducePacketName [16:32:02]name=ofd_packets/00139711 [16:32:02]NVStorageDeleteData [16:32:02]Write to MH i2c: 01 00 00 CF 12 E1 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 07 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 07 00 CF 12 00 00 00 00 00 B0 0C A4 [16:32:02]RasterBufferAndPrint [16:32:02]line [16:32:02]line [16:32:02]line [16:32:02]line [16:32:02]line [16:32:02]written 0, free lines is 3254 [16:32:02]MH_Cut [16:32:02]Write to MH i2c: D1 01 00 D6 12 01 BA [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: D1 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: D1 01 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: D1 01 00 D6 12 00 B9 [16:32:02]Write to MH i2c: 01 00 00 D7 12 E9 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]OFD Sender: No OFD packet to send [16:32:03]*** Cut start [16:32:03]*** Partial cut [16:32:03]*** CUTSNS_PIN = 1 [16:32:03]*** CUTSNS_PIN = 0 [16:32:03]*** Brake cut motor [16:32:03]Read from MH i2c: 01 [16:32:03]MH_I2C_Read... [16:32:03]*** Stop cut motor [16:32:03]*** Cut end [16:32:03]Read from MH i2c: 01 07 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 FF 0F FE [16:32:03]process_action close_receipt done [16:32:03]requested_data is exist [16:32:03]produce_requested_data [16:32:03]requested_item fm.sn is exist - process it [16:32:03]wFMCommunicate request_size=4 [16:32:03]MH_SAM_APDU [16:32:03]CAPDU: 80 11 00 00 [16:32:03]Write to MH i2c: E2 08 00 D8 12 80 11 00 00 00 00 00 00 64 [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:03]Read from MH i2c: E2 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 17 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 17 00 D8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BF [16:32: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:32:03]wFMCommunicate OK [16:32:03]requested_item fd.num is exist - process it [16:32:03]SAM_PROTO_GetFieldsCounters [16:32:03]wFMCommunicate request_size=4 [16:32:03]MH_SAM_APDU [16:32:03]CAPDU: 80 13 00 00 [16:32:03]Write to MH i2c: E2 08 00 D9 12 80 13 00 00 00 00 00 00 67 [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:04]Read from MH i2c: E2 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 62 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 62 00 D9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 D0 [16:32:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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:32:04]wFMCommunicate OK [16:32:04]SAM_PROTO_GetFieldsCounters done [16:32:04]requested_item shift.num is exist - process it [16:32:04]requested_item shift.opened is exist - process it [16:32:04]req_shift_opened [16:32:04]FM_GetShiftState [16:32:04]SAM_PROTO_GetShiftState [16:32:04]wFMCommunicate request_size=4 [16:32:04]MH_SAM_APDU [16:32:04]CAPDU: 80 13 01 00 [16:32:04]Write to MH i2c: E2 08 00 DA 12 80 13 01 00 00 00 00 00 69 [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 [16:32:04]MH_I2C_Read... [16:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:04]Read from MH i2c: E2 0E 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 0E 00 DA 12 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 92 [16:32:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:32:04]wFMCommunicate OK [16:32:04]SAM_PROTO_GetShiftState done [16:32:04]FM_GetShiftState done [16:32:04]req_shift_opened done [16:32:04]requested_item shift.open_date is exist - process it [16:32:04]req_shift_open_date [16:32:04]req_shift_open_date done [16:32:04]produce_requested_data done [16:32:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139711,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:32:04]process_action_free close_receipt [16:32:04]json_value_free [16:32:04]json_value_free done [16:32:04]process_json_proto returns [16:32:04]Send response to host [16:32:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139711,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:32:04]free response buf [16:32:04]execute_script done [16:32:04]execute_script returns [16:32:04]free content buf [16:32:04]Sock 7.Close socket [16:32:04]Sock 7.Thread stoped [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:42]accept exits with 9 [16:38:42]New connection [16:38:42]New thread 3066654052 created [16:38:42]Thread 3066510692 joined [16:38:42]Waiting for new connection... [16:38:42] Sock 9.Parse request [16:38:42]Sock 9.Check first char [16:38:42]Sock 9.First char is OK [16:38:42]request: POST /json_proto HTTP/1.0 [16:38:42]Method: POST [16:38:42]URL: /json_proto [16:38:42]Method is POST - this is cgi request [16:38:42]url: /json_proto [16:38:42]query_string will be loaded in cgi processing [16:38:42]execute_cgi json_proto POST (null) [16:38:42]execute_cgi path=json_proto method=POST [16:38:42]POST find Content-Length [16:38:42]Host: 172.17.50.196:8080 [16:38:42]Content-Length: 657 [16:38:42]Content-Type: application/json [16:38:42] [16:38:42]POST finish read [16:38:42]Found Content-Length = 657 [16:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335558", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [16:38:42]execute_script... [16:38:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335558", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [16:38:42]POST & json_proto [16:38:42]process_json_proto [16:38:42]json parsed OK: [16:38:42]protocol is kg_v1.0 [16:38:42]action value=close_receipt [16:38:42]process_action close_receipt [16:38:42]cmd_close_receipt [16:38:42]MH_GetDate [16:38:42]Write to MH i2c: F0 00 00 DB 12 DC [16:38:42]Write i2c OK [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: F0 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: F0 09 00 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: F0 09 00 DB 12 00 94 B2 23 67 72 0D 1C 67 B7 [16:38:42]GetLastDocTimeStamp 1730392321 [16:38:42]current date 1730392724 [16:38:42]FM_GetShiftState [16:38:42]SAM_PROTO_GetShiftState [16:38:42]wFMCommunicate request_size=4 [16:38:42]MH_SAM_APDU [16:38:42]CAPDU: 80 13 01 00 [16:38:42]Write to MH i2c: E2 08 00 DC 12 80 13 01 00 00 00 00 00 6B [16:38:42]Write i2c OK [16:38:42]MH_I2C_Read... [16:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:42]Read from MH i2c: E2 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 0E 00 [16:38:42]MH_I2C_Read... [16:38:42]Read from MH i2c: E2 0E 00 DC 12 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 94 [16:38:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:38:42]wFMCommunicate OK [16:38:42]SAM_PROTO_GetShiftState done [16:38:42]FM_GetShiftState done [16:38:42]opened in 1730332621 [16:38:42]opened+sec_in_day 1730419021 [16:38:42]quantity*price = 9500 [16:38:42]sum+1 = 9501 [16:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 189 31.10.2024 16:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139712 ФПД: 111081394871087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163844&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139712&fm=111081394871087&tin=02508201610067®Number=0000000000091631&sum=9500 0 [16:38:43]StoreToDocumentArchive [16:38:43]shift 557 fd 139712 [16:38:43]save to /storage/0557/doc_00139712 [16:38:43]save last doc name /storage/0557/doc_00139712 to /storage/kkm_last_doc_name [16:38:43]save OK [16:38:43]Clear old archive folders... [16:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=288 [16:38:43]tlvbuf is 00A897B0 [16:38:43]SAM_PROTO_ClearQueue [16:38:43]wFMCommunicate request_size=4 [16:38:43]MH_SAM_APDU [16:38:43]CAPDU: 80 09 00 00 [16:38:43]Write to MH i2c: E2 08 00 E9 12 80 09 00 00 00 00 00 00 6D [16:38:43]Write i2c OK [16:38:43]MH_I2C_Read... [16:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:43]Read from MH i2c: E2 [16:38:43]MH_I2C_Read... [16:38:43]Read from MH i2c: E2 03 00 [16:38:43]MH_I2C_Read... [16:38:43]Read from MH i2c: E2 03 00 E9 12 00 90 00 6F [16:38:43]RAPDU: 90 00 [16:38:43]wFMCommunicate OK [16:38:43]SAM_PROTO_ClearQueue done [16:38:43]KKMCreateOFDPacket [16:38:43]OFDProtocolAddRootSTLVToBuf [16:38:43]FM_MakeSignedData [16:38:43]FM_MakeSignedData [16:38:43]SAM_PROTO_SignData [16:38:43]wFMCommunicate request_size=4 [16:38:43]MH_SAM_APDU [16:38:43]CAPDU: 80 0D 01 02 [16:38:43]Write to MH i2c: E2 08 00 EA 12 80 0D 01 02 00 00 00 00 75 [16:38:43]Write i2c OK [16:38:43]MH_I2C_Read... [16:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:43]Read from MH i2c: E2 [16:38:43]MH_I2C_Read... [16:38:43]Read from MH i2c: E2 03 00 [16:38:43]MH_I2C_Read... [16:38:43]Read from MH i2c: E2 03 00 EA 12 00 90 00 70 [16:38:43]RAPDU: 90 00 [16:38:43]wFMCommunicate OK [16:38:43]wFMCommunicate request_size=255 [16:38:43]MH_SAM_APDU [16:38:43]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BD 00 00 00 F4 03 04 00 94 B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [16:38:43]Write to MH i2c: E2 02 01 EB 12 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BD 00 00 00 F4 03 04 00 94 B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 1C [16:38:43]Write i2c OK [16:38:43]MH_I2C_Read... [16:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:44]Read from MH i2c: E2 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 03 00 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 03 00 EB 12 00 90 00 71 [16:38:44]RAPDU: 90 00 [16:38:44]wFMCommunicate OK [16:38:44]wFMCommunicate request_size=47 [16:38:44]MH_SAM_APDU [16:38:44]CAPDU: 80 0D 02 02 2A 31 36 33 31 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 21 02 00 35 04 06 00 65 07 27 15 1B 2F [16:38:44]Write to MH i2c: E2 32 00 EC 12 80 0D 02 02 2A 00 31 36 33 31 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 21 02 00 35 04 06 00 65 07 27 15 1B 2F 00 00 10 [16:38:44]Write i2c OK [16:38:44]MH_I2C_Read... [16:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:44]Read from MH i2c: E2 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 03 00 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [16:38:44]RAPDU: 90 00 [16:38:44]wFMCommunicate OK [16:38:44]wFMCommunicate request_size=4 [16:38:44]MH_SAM_APDU [16:38:44]CAPDU: 80 0D 03 02 [16:38:44]Write to MH i2c: E2 08 00 ED 12 80 0D 03 02 00 00 00 00 7A [16:38:44]Write i2c OK [16:38:44]MH_I2C_Read... [16:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:44]Read from MH i2c: E2 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 0B 00 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 0B 00 ED 12 00 B8 FA FE C7 40 A9 DA 08 90 00 BD [16:38:44]RAPDU: B8 FA FE C7 40 A9 DA 08 90 00 [16:38:44]wFMCommunicate OK [16:38:44]SAM_PROTO_SignData done [16:38:44]FM_MakeSignedData done [16:38:44]CreateOFDProtocolMessage [16:38:44]wFMCommunicate request_size=4 [16:38:44]MH_SAM_APDU [16:38:44]CAPDU: 80 11 00 00 [16:38:44]Write to MH i2c: E2 08 00 EE 12 80 11 00 00 00 00 00 00 7A [16:38:44]Write i2c OK [16:38:44]MH_I2C_Read... [16:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:44]Read from MH i2c: E2 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 17 00 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: E2 17 00 EE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D5 [16:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:38:44]wFMCommunicate OK [16:38:44]CreateOFDProtocolMessage done [16:38:44]OFDSenderStorePacket 139712 [16:38:44]StoreOFDPacket docnum=139712 [16:38: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 34 01 00 00 AE D0 2C 01 B5 8D 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BD 00 00 00 F4 03 04 00 94 B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 07 27 15 1B 2F B8 FA FE C7 40 A9 DA 08 [16:38:44]CheckFolder [16:38:44]dirname=/storage/ofd_packets [16:38:44]CheckFolder done [16:38:44]ProducePacketName [16:38:44]name=ofd_packets/00139712 [16:38:44]NVStorageSaveData ofd_packets/00139712 [16:38:44]File name is /storage/ofd_packets/00139712 [16:38:44]Write 338 bytes [16:38:44]NVStorageSaveData done [16:38:44]OFDSenderStorePacket done [16:38:44]KKMCreateOFDPacket done [16:38:44]NVStorageSaveData kkm_last_timestamp [16:38:44]File name is /storage/kkm_last_timestamp [16:38:44]Write 4 bytes [16:38:44]NVStorageSaveData done [16:38:44]ExternCall_PrintAddStr [16:38:44]wPrintStart [16:38:44]Write to MH i2c: 01 00 00 EF 12 01 [16:38:44]Write i2c OK [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: 01 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: 01 07 00 [16:38:44]MH_I2C_Read... [16:38:44]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 FF 0F 16 [16:38:44]RasterBufferAndPrint [16:38:44]line Счет N : (3)335558 [16:38:44]line ИНН: 02508201610067 [16:38:44]line Контрольно-Кассовый Чек [16:38:44]line ПРОДАЖА [16:38:44]line Товар: 4700000481453 [16:38:44]line Напиток энерг Nitro Max 0,45 ж/б [16:38:44]line 1.000 * 95.00 [16:38:44]line = 95.00 [16:38:44]line НДС 12% НСП 1% [16:38:44]line > о реализуемом товаре [16:38:44]line ИТОГО: 95.00 [16:38:44]line НСП 1% : 0.84 [16:38:44]line НДС 12% : 10.09 [16:38:44]line Наличными: 95.00 [16:38:44]line Безнал.: 0.00 [16:38:44]line Место: АЗС № 101 "Партнер Нефть" [16:38:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:38:44]line СНО: Общий режим [16:38:44]line Чек 189 31.10.2024 16:38 [16:38:44]line Смена: 557 ФФД: 1.0 [16:38:44]line ЗНМ: 0300000081 [16:38:44]line РНМ: 0000000000091631 [16:38:44]line Версия ККМ: 001 [16:38:44]line ФМ: 0000000000874669 [16:38:44]line ФД: 139712 [16:38:44]line ФПД: 111081394871087 [16:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T163844&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139712&fm=111081394871087&tin=02508201610067®Number=0000000000091631&sum=9500 [16:38:44]OFD Sender: Processing packet 139712 [packets to send 34, broken 33] [16:38:44]ProducePacketName [16:38:44]name=ofd_packets/00139712 [16:38:44]OFD Sender: To server: pG, [16:38:44]CommunicateWithHost lk.salyk.kg:30040 [16:38:44]ConnectInit lk.salyk.kg [16:38:44]line 0 [16:38:44]written 0, free lines is 4095 [16:38:44]Connected sock=10 [16:38: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 34 01 00 00 AE D0 2C 01 B5 8D 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BD 00 00 00 F4 03 04 00 94 B2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 65 07 27 15 1B 2F B8 FA FE C7 40 A9 DA 08 [16:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 74 9B 47 00 80 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 C0 21 02 00 F4 03 04 00 41 5E 23 67 B6 04 01 00 00 19 ED 62 7B 7E C9 AE AD [16:38:45]CommunicateWithHost err = 0 [16:38:45]CheckOFDResponse [16:38:45]1017 (14) - 77093643461234 [16:38:45]1041 (16) - 0000000000874669 [16:38:45]1040 (4) - 139712 [16:38:45]1012 (4) - 31.10.2024 10:38 [16:38:45]1206 (1) - 0 [16:38:45]OFD Sender: Remove packet 139712 [16:38:45]ProducePacketName [16:38:45]name=ofd_packets/00139712 [16:38:45]NVStorageDeleteData [16:38:45]Write to MH i2c: 01 00 00 18 13 2B [16:38:45]Write i2c OK [16:38:45]MH_I2C_Read... [16:38:45]Read from MH i2c: 01 [16:38:45]MH_I2C_Read... [16:38:45]Read from MH i2c: 01 07 00 [16:38:45]MH_I2C_Read... [16:38:45]Read from MH i2c: 01 07 00 18 13 00 00 00 00 00 F8 0C 36 [16:38:45]RasterBufferAndPrint [16:38:45]line [16:38:45]line [16:38:45]line [16:38:45]line [16:38:45]line [16:38:45]written 0, free lines is 3330 [16:38:45]MH_Cut [16:38:45]Write to MH i2c: D1 01 00 1F 13 01 04 [16:38:45]Write i2c OK [16:38:45]MH_I2C_Read... [16:38:45]Read from MH i2c: D1 [16:38:45]MH_I2C_Read... [16:38:45]Read from MH i2c: D1 01 00 [16:38:45]MH_I2C_Read... [16:38:45]Read from MH i2c: D1 01 00 1F 13 00 03 [16:38:45]Write to MH i2c: 01 00 00 20 13 33 [16:38:45]Write i2c OK [16:38:45]MH_I2C_Read... [16:38:45]OFD Sender: No OFD packet to send [16:38:45]*** Cut start [16:38:45]*** Partial cut [16:38:45]*** CUTSNS_PIN = 1 [16:38:45]*** CUTSNS_PIN = 0 [16:38:46]*** Brake cut motor [16:38:46]Read from MH i2c: 01 [16:38:46]MH_I2C_Read... [16:38:46]*** Stop cut motor [16:38:46]*** Cut end [16:38:46]Read from MH i2c: 01 07 00 [16:38:46]MH_I2C_Read... [16:38:46]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 FF 0F 48 [16:38:46]process_action close_receipt done [16:38:46]requested_data is exist [16:38:46]produce_requested_data [16:38:46]requested_item fm.sn is exist - process it [16:38:46]wFMCommunicate request_size=4 [16:38:46]MH_SAM_APDU [16:38:46]CAPDU: 80 11 00 00 [16:38:46]Write to MH i2c: E2 08 00 21 13 80 11 00 00 00 00 00 00 AE [16:38:46]Write i2c OK [16:38:46]MH_I2C_Read... [16:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:46]Read from MH i2c: E2 [16:38:46]MH_I2C_Read... [16:38:46]Read from MH i2c: E2 17 00 [16:38:46]MH_I2C_Read... [16:38:46]Read from MH i2c: E2 17 00 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 09 [16:38: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:38:46]wFMCommunicate OK [16:38:46]requested_item fd.num is exist - process it [16:38:46]SAM_PROTO_GetFieldsCounters [16:38:46]wFMCommunicate request_size=4 [16:38:46]MH_SAM_APDU [16:38:46]CAPDU: 80 13 00 00 [16:38:46]Write to MH i2c: E2 08 00 22 13 80 13 00 00 00 00 00 00 B1 [16:38:46]Write i2c OK [16:38:46]MH_I2C_Read... [16:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:46]Read from MH i2c: E2 [16:38:46]MH_I2C_Read... [16:38:46]Read from MH i2c: E2 62 00 [16:38:46]MH_I2C_Read... [16:38:46]Read from MH i2c: E2 62 00 22 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 1E [16:38: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 C0 21 02 00 0E 04 04 00 2D 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:38:46]wFMCommunicate OK [16:38:46]SAM_PROTO_GetFieldsCounters done [16:38:46]requested_item shift.num is exist - process it [16:38:46]requested_item shift.opened is exist - process it [16:38:46]req_shift_opened [16:38:46]FM_GetShiftState [16:38:46]SAM_PROTO_GetShiftState [16:38:46]wFMCommunicate request_size=4 [16:38:46]MH_SAM_APDU [16:38:46]CAPDU: 80 13 01 00 [16:38:46]Write to MH i2c: E2 08 00 23 13 80 13 01 00 00 00 00 00 B3 [16:38:46]Write i2c OK [16:38:46]MH_I2C_Read... [16:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:46]Read from MH i2c: E2 [16:38:46]MH_I2C_Read... [16:38:46]Read from MH i2c: E2 0E 00 [16:38:46]MH_I2C_Read... [16:38:46]Read from MH i2c: E2 0E 00 23 13 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DC [16:38:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:38:46]wFMCommunicate OK [16:38:46]SAM_PROTO_GetShiftState done [16:38:46]FM_GetShiftState done [16:38:46]req_shift_opened done [16:38:46]requested_item shift.open_date is exist - process it [16:38:46]req_shift_open_date [16:38:46]req_shift_open_date done [16:38:46]produce_requested_data done [16:38:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139712,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:38:46]process_action_free close_receipt [16:38:46]json_value_free [16:38:46]json_value_free done [16:38:46]process_json_proto returns [16:38:46]Send response to host [16:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139712,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:38:46]free response buf [16:38:46]execute_script done [16:38:46]execute_script returns [16:38:46]free content buf [16:38:46]Sock 9.Close socket [16:38:46]Sock 9.Thread stoped [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]accept exits with 7 [16:41:10]New connection [16:41:10]New thread 3066510692 created [16:41:10]Thread 3066654052 joined [16:41:10]Waiting for new connection... [16:41:10] Sock 7.Parse request [16:41:10]Sock 7.Check first char [16:41:10]Sock 7.First char is OK [16:41:10]request: POST /json_proto HTTP/1.0 [16:41:10]Method: POST [16:41:10]URL: /json_proto [16:41:10]Method is POST - this is cgi request [16:41:10]url: /json_proto [16:41:10]query_string will be loaded in cgi processing [16:41:10]execute_cgi json_proto POST (null) [16:41:10]execute_cgi path=json_proto method=POST [16:41:10]POST find Content-Length [16:41:10]Host: 172.17.50.196:8080 [16:41:10]Content-Length: 981 [16:41:10]Content-Type: application/json [16:41:10] [16:41:10]POST finish read [16:41:10]Found Content-Length = 981 [16:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335559", "tax_sys" : 0, "items" : [ { "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:10]execute_script... [16:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335559", "tax_sys" : 0, "items" : [ { "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:10]POST & json_proto [16:41:10]process_json_proto [16:41:10]json parsed OK: [16:41:10]protocol is kg_v1.0 [16:41:10]action value=close_receipt [16:41:10]process_action close_receipt [16:41:10]cmd_close_receipt [16:41:10]MH_GetDate [16:41:10]Write to MH i2c: F0 00 00 24 13 26 [16:41:10]Write i2c OK [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: F0 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: F0 09 00 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: F0 09 00 24 13 00 27 B3 23 67 72 0D 1C 67 95 [16:41:10]GetLastDocTimeStamp 1730392724 [16:41:10]current date 1730392871 [16:41:10]FM_GetShiftState [16:41:10]SAM_PROTO_GetShiftState [16:41:10]wFMCommunicate request_size=4 [16:41:10]MH_SAM_APDU [16:41:10]CAPDU: 80 13 01 00 [16:41:10]Write to MH i2c: E2 08 00 25 13 80 13 01 00 00 00 00 00 B5 [16:41:10]Write i2c OK [16:41:10]MH_I2C_Read... [16:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:10]Read from MH i2c: E2 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: E2 0E 00 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: E2 0E 00 25 13 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DE [16:41:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:41:10]wFMCommunicate OK [16:41:10]SAM_PROTO_GetShiftState done [16:41:10]FM_GetShiftState done [16:41:10]opened in 1730332621 [16:41:10]opened+sec_in_day 1730419021 [16:41:10]quantity*price = 12500 [16:41:10]sum+1 = 12501 [16:41:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747073 Сигареты Richmond Royal Edition 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 СНО: Общий режим Чек 190 31.10.2024 16:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139713 ФПД: 136626888544320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T164111&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139713&fm=136626888544320&tin=02508201610067®Number=0000000000091631&sum=27900 0 [16:41:11]StoreToDocumentArchive [16:41:11]shift 557 fd 139713 [16:41:11]save to /storage/0557/doc_00139713 [16:41:11]save last doc name /storage/0557/doc_00139713 to /storage/kkm_last_doc_name [16:41:11]save OK [16:41:11]Clear old archive folders... [16:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=415 [16:41:11]tlvbuf is 00A84480 [16:41:11]SAM_PROTO_ClearQueue [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 09 00 00 [16:41:11]Write to MH i2c: E2 08 00 32 13 80 09 00 00 00 00 00 00 B7 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]SAM_PROTO_ClearQueue done [16:41:11]KKMCreateOFDPacket [16:41:11]OFDProtocolAddRootSTLVToBuf [16:41:11]FM_MakeSignedData [16:41:11]FM_MakeSignedData [16:41:11]SAM_PROTO_SignData [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 0D 01 02 [16:41:11]Write to MH i2c: E2 08 00 33 13 80 0D 01 02 00 00 00 00 BF [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]wFMCommunicate request_size=255 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [16:41:11]Write to MH i2c: E2 02 01 34 13 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 BC [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]wFMCommunicate request_size=174 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 0D 02 02 A9 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 BE 00 00 00 F4 03 04 00 27 B3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7C 42 ED 28 90 40 [16:41:11]Write to MH i2c: E2 B1 00 35 13 80 0D 02 02 A9 00 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 BE 00 00 00 F4 03 04 00 27 B3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7C 42 ED 28 90 40 00 00 9B [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 35 13 00 90 00 BC [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 0D 03 02 [16:41:11]Write to MH i2c: E2 08 00 36 13 80 0D 03 02 00 00 00 00 C4 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 0B 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 0B 00 36 13 00 B1 6A FB 0F 7C CE 8A E2 90 00 A0 [16:41:11]RAPDU: B1 6A FB 0F 7C CE 8A E2 90 00 [16:41:11]wFMCommunicate OK [16:41:11]SAM_PROTO_SignData done [16:41:11]FM_MakeSignedData done [16:41:11]CreateOFDProtocolMessage [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 11 00 00 [16:41:11]Write to MH i2c: E2 08 00 37 13 80 11 00 00 00 00 00 00 C4 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 17 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 17 00 37 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [16:41:11]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:11]wFMCommunicate OK [16:41:11]CreateOFDProtocolMessage done [16:41:11]OFDSenderStorePacket 139713 [16:41:11]StoreOFDPacket docnum=139713 [16:41: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 B3 01 00 00 D5 D9 AB 01 88 A9 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BE 00 00 00 F4 03 04 00 27 B3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7C 42 ED 28 90 40 B1 6A FB 0F 7C CE 8A E2 [16:41:11]CheckFolder [16:41:11]dirname=/storage/ofd_packets [16:41:11]CheckFolder done [16:41:11]ProducePacketName [16:41:11]name=ofd_packets/00139713 [16:41:11]NVStorageSaveData ofd_packets/00139713 [16:41:11]File name is /storage/ofd_packets/00139713 [16:41:11]Write 465 bytes [16:41:11]NVStorageSaveData done [16:41:11]OFDSenderStorePacket done [16:41:11]KKMCreateOFDPacket done [16:41:11]NVStorageSaveData kkm_last_timestamp [16:41:11]File name is /storage/kkm_last_timestamp [16:41:11]Write 4 bytes [16:41:11]NVStorageSaveData done [16:41:11]ExternCall_PrintAddStr [16:41:11]wPrintStart [16:41:11]Write to MH i2c: 01 00 00 38 13 4B [16:41:12]OFD Sender: Processing packet 139713 [packets to send 34, broken 33] [16:41:12]ProducePacketName [16:41:12]name=ofd_packets/00139713 [16:41:12]OFD Sender: To server: pG, [16:41:12]CommunicateWithHost lk.salyk.kg:30040 [16:41:12]Write i2c OK [16:41:12]ConnectInit lk.salyk.kg [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 38 13 00 00 00 00 00 FF 0F 60 [16:41:12]RasterBufferAndPrint [16:41:12]line Счет N : (3)335559 [16:41:12]line ИНН: 02508201610067 [16:41:12]line Контрольно-Кассовый Чек [16:41:12]line ПРОДАЖА [16:41:12]line Товар: 4780111550484 [16:41:12]line Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л [16:41:12]line 1.000 * 125.00 [16:41:12]line = 125.00 [16:41:12]line НДС 12% НСП 1% [16:41:12]line > о реализуемом товаре [16:41:12]line Товар: 48747073 [16:41:12]line Сигареты Richmond Royal Edition [16:41:12]line 1.000 * 154.00 [16:41:12]line = 154.00 [16:41:12]line НДС 12% НСП 1% [16:41:12]line > о реализуемом товаре [16:41:12]line ИТОГО: 279.00 [16:41:12]line НСП 1% : 2.47 [16:41:12]line НДС 12% : 29.62 [16:41:12]line Наличными: 279.00 [16:41:12]line Безнал.: 0.00 [16:41:12]line Место: АЗС № 101 "Партнер Нефть" [16:41:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:41:12]line СНО: Общий режим [16:41:12]line Чек 190 31.10.2024 16:41 [16:41:12]line Смена: 557 ФФД: 1.0 [16:41:12]line ЗНМ: 0300000081 [16:41:12]line РНМ: 0000000000091631 [16:41:12]line Версия ККМ: 001 [16:41:12]line ФМ: 0000000000874669 [16:41:12]line ФД: 139713 [16:41:12]line ФПД: 136626888544320 [16:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T164111&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139713&fm=136626888544320&tin=02508201610067®Number=0000000000091631&sum=27900 [16:41:12]line 0 [16:41:12]written 0, free lines is 4095 [16:41:12]Connected sock=10 [16:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B3 01 00 00 D5 D9 AB 01 88 A9 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 BE 00 00 00 F4 03 04 00 27 B3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7C 42 ED 28 90 40 B1 6A FB 0F 7C CE 8A E2 [16:41: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 72 91 47 00 3B F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 21 02 00 F4 03 04 00 D4 5E 23 67 B6 04 01 00 00 8F FC C3 5B AE E7 EC B2 [16:41:12]CommunicateWithHost err = 0 [16:41:12]CheckOFDResponse [16:41:12]1017 (14) - 77093643461234 [16:41:12]1041 (16) - 0000000000874669 [16:41:12]1040 (4) - 139713 [16:41:12]1012 (4) - 31.10.2024 10:41 [16:41:12]1206 (1) - 0 [16:41:12]OFD Sender: Remove packet 139713 [16:41:12]ProducePacketName [16:41:12]name=ofd_packets/00139713 [16:41:12]NVStorageDeleteData [16:41:12]Write to MH i2c: 01 00 00 68 13 7B [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 98 0C 26 [16:41:12]RasterBufferAndPrint [16:41:12]line [16:41:12]line [16:41:12]line [16:41:12]line [16:41:12]line [16:41:12]written 0, free lines is 3234 [16:41:12]MH_Cut [16:41:12]Write to MH i2c: D1 01 00 6F 13 01 54 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: D1 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: D1 01 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: D1 01 00 6F 13 00 53 [16:41:12]Write to MH i2c: 01 00 00 70 13 83 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:13]OFD Sender: No OFD packet to send [16:41:13]*** Cut start [16:41:13]*** Partial cut [16:41:13]*** CUTSNS_PIN = 1 [16:41:13]*** CUTSNS_PIN = 0 [16:41:13]*** Brake cut motor [16:41:14]Read from MH i2c: 01 [16:41:14]MH_I2C_Read... [16:41:14]*** Stop cut motor [16:41:14]*** Cut end [16:41:14]Read from MH i2c: 01 07 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: 01 07 00 70 13 00 00 00 00 00 FF 0F 98 [16:41:14]process_action close_receipt done [16:41:14]requested_data is exist [16:41:14]produce_requested_data [16:41:14]requested_item fm.sn is exist - process it [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 11 00 00 [16:41:14]Write to MH i2c: E2 08 00 71 13 80 11 00 00 00 00 00 00 FE [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:14]Read from MH i2c: E2 17 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 17 00 71 13 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:41:14]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:14]wFMCommunicate OK [16:41:14]requested_item fd.num is exist - process it [16:41:14]SAM_PROTO_GetFieldsCounters [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 13 00 00 [16:41:14]Write to MH i2c: E2 08 00 72 13 80 13 00 00 00 00 00 00 01 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 62 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 62 00 72 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 72 [16:41: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 C1 21 02 00 0E 04 04 00 2D 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:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_GetFieldsCounters done [16:41:14]requested_item shift.num is exist - process it [16:41:14]requested_item shift.opened is exist - process it [16:41:14]req_shift_opened [16:41:14]FM_GetShiftState [16:41:14]SAM_PROTO_GetShiftState [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 13 01 00 [16:41:14]Write to MH i2c: E2 08 00 73 13 80 13 01 00 00 00 00 00 03 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 0E 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 0E 00 73 13 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2C [16:41:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_GetShiftState done [16:41:14]FM_GetShiftState done [16:41:14]req_shift_opened done [16:41:14]requested_item shift.open_date is exist - process it [16:41:14]req_shift_open_date [16:41:14]req_shift_open_date done [16:41:14]produce_requested_data done [16:41:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139713,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:41:14]process_action_free close_receipt [16:41:14]json_value_free [16:41:14]json_value_free done [16:41:14]process_json_proto returns [16:41:14]Send response to host [16:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139713,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:41:14]free response buf [16:41:14]execute_script done [16:41:14]execute_script returns [16:41:14]free content buf [16:41:14]Sock 7.Close socket [16:41:14]Sock 7.Thread stoped [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:02]accept exits with 9 [16:53:02]New connection [16:53:02]New thread 3066654052 created [16:53:02]Thread 3066510692 joined [16:53:02]Waiting for new connection... [16:53:02] Sock 9.Parse request [16:53:02]Sock 9.Check first char [16:53:02]Sock 9.First char is OK [16:53:02]request: POST /json_proto HTTP/1.0 [16:53:02]Method: POST [16:53:02]URL: /json_proto [16:53:02]Method is POST - this is cgi request [16:53:02]url: /json_proto [16:53:02]query_string will be loaded in cgi processing [16:53:02]execute_cgi json_proto POST (null) [16:53:02]execute_cgi path=json_proto method=POST [16:53:02]POST find Content-Length [16:53:02]Host: 172.17.50.196:8080 [16:53:02]Content-Length: 988 [16:53:02]Content-Type: application/json [16:53:02] [16:53:02]POST finish read [16:53:02]Found Content-Length = 988 [16:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335560", "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 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:02]execute_script... [16:53:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335560", "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 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:02]POST & json_proto [16:53:02]process_json_proto [16:53:02]json parsed OK: [16:53:02]protocol is kg_v1.0 [16:53:02]action value=close_receipt [16:53:02]process_action close_receipt [16:53:02]cmd_close_receipt [16:53:02]MH_GetDate [16:53:02]Write to MH i2c: F0 00 00 74 13 76 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: F0 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: F0 09 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: F0 09 00 74 13 00 EF B5 23 67 72 0D 1C 67 AF [16:53:02]GetLastDocTimeStamp 1730392871 [16:53:02]current date 1730393583 [16:53:02]FM_GetShiftState [16:53:02]SAM_PROTO_GetShiftState [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 13 01 00 [16:53:02]Write to MH i2c: E2 08 00 75 13 80 13 01 00 00 00 00 00 05 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0E 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0E 00 75 13 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2E [16:53:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:53:02]wFMCommunicate OK [16:53:02]SAM_PROTO_GetShiftState done [16:53:02]FM_GetShiftState done [16:53:02]opened in 1730332621 [16:53:02]opened+sec_in_day 1730419021 [16:53:02]quantity*price = 14400 [16:53:02]sum+1 = 14401 [16:53:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747073 Сигареты Richmond Royal Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 298.00 НСП 1% : 2.63 НДС 12% : 31.64 Наличными: 0.00 Безнал.: 298.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 191 31.10.2024 16:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139714 ФПД: 197536596721806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T165303&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139714&fm=197536596721806&tin=02508201610067®Number=0000000000091631&sum=29800 0 [16:53:03]StoreToDocumentArchive [16:53:03]shift 557 fd 139714 [16:53:03]save to /storage/0557/doc_00139714 [16:53:03]save last doc name /storage/0557/doc_00139714 to /storage/kkm_last_doc_name [16:53:03]save OK [16:53:03]Clear old archive folders... [16:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=379 [16:53:03]tlvbuf is 00AA2E30 [16:53:03]SAM_PROTO_ClearQueue [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 09 00 00 [16:53:03]Write to MH i2c: E2 08 00 82 13 80 09 00 00 00 00 00 00 07 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 82 13 00 90 00 09 [16:53:03]RAPDU: 90 00 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_ClearQueue done [16:53:03]KKMCreateOFDPacket [16:53:03]OFDProtocolAddRootSTLVToBuf [16:53:03]FM_MakeSignedData [16:53:03]FM_MakeSignedData [16:53:03]SAM_PROTO_SignData [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 0D 01 02 [16:53:03]Write to MH i2c: E2 08 00 83 13 80 0D 01 02 00 00 00 00 0F [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 83 13 00 90 00 0A [16:53:03]RAPDU: 90 00 [16:53:03]wFMCommunicate OK [16:53:03]wFMCommunicate request_size=255 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 [16:53:03]Write to MH i2c: E2 02 01 84 13 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 00 F6 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 84 13 00 90 00 0B [16:53:03]RAPDU: 90 00 [16:53:03]wFMCommunicate OK [16:53:03]wFMCommunicate request_size=138 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 EF B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B3 A8 92 AD 80 8E [16:53:03]Write to MH i2c: E2 8D 00 85 13 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 EF B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B3 A8 92 AD 80 8E 00 00 39 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]OFD Sender: No OFD packet to send [16:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [16:53:03]RAPDU: 90 00 [16:53:03]wFMCommunicate OK [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 0D 03 02 [16:53:03]Write to MH i2c: E2 08 00 86 13 80 0D 03 02 00 00 00 00 14 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0B 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0B 00 86 13 00 7D 4E BF 23 34 53 E7 F8 90 00 28 [16:53:03]RAPDU: 7D 4E BF 23 34 53 E7 F8 90 00 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_SignData done [16:53:03]FM_MakeSignedData done [16:53:03]CreateOFDProtocolMessage [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 11 00 00 [16:53:03]Write to MH i2c: E2 08 00 87 13 80 11 00 00 00 00 00 00 14 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 87 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6F [16:53: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:53:03]wFMCommunicate OK [16:53:03]CreateOFDProtocolMessage done [16:53:03]OFDSenderStorePacket 139714 [16:53:03]StoreOFDPacket docnum=139714 [16:53: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 8F 01 00 00 22 4D 87 01 11 99 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 EF B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B3 A8 92 AD 80 8E 7D 4E BF 23 34 53 E7 F8 [16:53:03]CheckFolder [16:53:03]dirname=/storage/ofd_packets [16:53:03]CheckFolder done [16:53:03]ProducePacketName [16:53:03]name=ofd_packets/00139714 [16:53:03]NVStorageSaveData ofd_packets/00139714 [16:53:03]File name is /storage/ofd_packets/00139714 [16:53:03]Write 429 bytes [16:53:03]NVStorageSaveData done [16:53:03]OFDSenderStorePacket done [16:53:03]KKMCreateOFDPacket done [16:53:03]NVStorageSaveData kkm_last_timestamp [16:53:03]File name is /storage/kkm_last_timestamp [16:53:03]Write 4 bytes [16:53:03]NVStorageSaveData done [16:53:03]ExternCall_PrintAddStr [16:53:03]wPrintStart [16:53:03]Write to MH i2c: 01 00 00 88 13 9B [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 88 13 00 00 00 00 00 FF 0F B0 [16:53:03]RasterBufferAndPrint [16:53:03]line Счет N : (3)335560 [16:53:03]line ИНН: 02508201610067 [16:53:04]line Контрольно-Кассовый Чек [16:53:04]line ПРОДАЖА [16:53:04]line Товар: 48747059 [16:53:04]line Сигареты Winston Legend Blue [16:53:04]line 1.000 * 144.00 [16:53:04]line = 144.00 [16:53:04]line НДС 12% НСП 1% [16:53:04]line > о реализуемом товаре [16:53:04]line Товар: 48747073 [16:53:04]line Сигареты Richmond Royal Edition [16:53:04]line 1.000 * 154.00 [16:53:04]line = 154.00 [16:53:04]line НДС 12% НСП 1% [16:53:04]line > о реализуемом товаре [16:53:04]line ИТОГО: 298.00 [16:53:04]line НСП 1% : 2.63 [16:53:04]line НДС 12% : 31.64 [16:53:04]line Наличными: 0.00 [16:53:04]line Безнал.: 298.00 [16:53:04]line Место: АЗС № 101 "Партнер Нефть" [16:53:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:53:04]line СНО: Общий режим [16:53:04]line Чек 191 31.10.2024 16:53 [16:53:04]line Смена: 557 ФФД: 1.0 [16:53:04]line ЗНМ: 0300000081 [16:53:04]line РНМ: 0000000000091631 [16:53:04]line Версия ККМ: 001 [16:53:04]line Платежная система: Mbank [16:53:04]line ФМ: 0000000000874669 [16:53:04]line ФД: 139714 [16:53:04]line ФПД: 197536596721806 [16:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T165303&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139714&fm=197536596721806&tin=02508201610067®Number=0000000000091631&sum=29800 [16:53:04]line 0 [16:53:04]OFD Sender: Processing packet 139714 [packets to send 34, broken 33] [16:53:04]ProducePacketName [16:53:04]name=ofd_packets/00139714 [16:53:04]OFD Sender: To server: pG, [16:53:04]CommunicateWithHost lk.salyk.kg:30040 [16:53:04]ConnectInit lk.salyk.kg [16:53:04]written 0, free lines is 4095 [16:53:04]Connected sock=10 [16:53: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 8F 01 00 00 22 4D 87 01 11 99 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 EF B5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B3 A8 92 AD 80 8E 7D 4E BF 23 34 53 E7 F8 [16:53: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 5A 80 47 00 D8 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 21 02 00 F4 03 04 00 9C 61 23 67 B6 04 01 00 00 A7 D5 94 16 B5 E4 72 50 [16:53:04]CommunicateWithHost err = 0 [16:53:04]CheckOFDResponse [16:53:04]1017 (14) - 77093643461234 [16:53:04]1041 (16) - 0000000000874669 [16:53:04]1040 (4) - 139714 [16:53:04]1012 (4) - 31.10.2024 10:53 [16:53:04]1206 (1) - 0 [16:53:04]OFD Sender: Remove packet 139714 [16:53:04]ProducePacketName [16:53:04]name=ofd_packets/00139714 [16:53:04]NVStorageDeleteData [16:53:04]Write to MH i2c: 01 00 00 B9 13 CC [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: 01 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: 01 07 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: 01 07 00 B9 13 00 00 00 00 00 6B 0C 4A [16:53:04]RasterBufferAndPrint [16:53:04]line [16:53:04]line [16:53:04]line [16:53:04]line [16:53:04]line [16:53:04]written 0, free lines is 3185 [16:53:04]MH_Cut [16:53:04]Write to MH i2c: D1 01 00 C0 13 01 A5 [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: D1 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: D1 01 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: D1 01 00 C0 13 00 A4 [16:53:04]Write to MH i2c: 01 00 00 C1 13 D4 [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]OFD Sender: No OFD packet to send [16:53:05]*** Cut start [16:53:05]*** Partial cut [16:53:05]*** CUTSNS_PIN = 1 [16:53:05]*** CUTSNS_PIN = 0 [16:53:05]*** Brake cut motor [16:53:06]Read from MH i2c: 01 [16:53:06]MH_I2C_Read... [16:53:06]*** Stop cut motor [16:53:06]*** Cut end [16:53:06]Read from MH i2c: 01 07 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: 01 07 00 C1 13 00 00 00 00 00 FF 0F E9 [16:53:06]process_action close_receipt done [16:53:06]requested_data is exist [16:53:06]produce_requested_data [16:53:06]requested_item fm.sn is exist - process it [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 11 00 00 [16:53:06]Write to MH i2c: E2 08 00 C2 13 80 11 00 00 00 00 00 00 4F [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 17 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 17 00 C2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [16:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:53:06]wFMCommunicate OK [16:53:06]requested_item fd.num is exist - process it [16:53:06]SAM_PROTO_GetFieldsCounters [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 13 00 00 [16:53:06]Write to MH i2c: E2 08 00 C3 13 80 13 00 00 00 00 00 00 52 [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 62 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 62 00 C3 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 C7 [16:53: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 C2 21 02 00 0E 04 04 00 2D 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:53:06]wFMCommunicate OK [16:53:06]SAM_PROTO_GetFieldsCounters done [16:53:06]requested_item shift.num is exist - process it [16:53:06]requested_item shift.opened is exist - process it [16:53:06]req_shift_opened [16:53:06]FM_GetShiftState [16:53:06]SAM_PROTO_GetShiftState [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 13 01 00 [16:53:06]Write to MH i2c: E2 08 00 C4 13 80 13 01 00 00 00 00 00 54 [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 0E 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 0E 00 C4 13 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7D [16:53:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [16:53:06]wFMCommunicate OK [16:53:06]SAM_PROTO_GetShiftState done [16:53:06]FM_GetShiftState done [16:53:06]req_shift_opened done [16:53:06]requested_item shift.open_date is exist - process it [16:53:06]req_shift_open_date [16:53:06]req_shift_open_date done [16:53:06]produce_requested_data done [16:53:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139714,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [16:53:06]process_action_free close_receipt [16:53:06]json_value_free [16:53:06]json_value_free done [16:53:06]process_json_proto returns [16:53:06]Send response to host [16:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139714,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [16:53:06]free response buf [16:53:06]execute_script done [16:53:06]execute_script returns [16:53:06]free content buf [16:53:06]Sock 9.Close socket [16:53:06]Sock 9.Thread stoped [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:13]accept exits with 7 [17:00:13]New connection [17:00:13]New thread 3066510692 created [17:00:13]Thread 3066654052 joined [17:00:13]Waiting for new connection... [17:00:13] Sock 7.Parse request [17:00:13]Sock 7.Check first char [17:00:13]Sock 7.First char is OK [17:00:13]request: POST /json_proto HTTP/1.0 [17:00:13]Method: POST [17:00:13]URL: /json_proto [17:00:13]Method is POST - this is cgi request [17:00:13]url: /json_proto [17:00:13]query_string will be loaded in cgi processing [17:00:13]execute_cgi json_proto POST (null) [17:00:13]execute_cgi path=json_proto method=POST [17:00:13]POST find Content-Length [17:00:13]Host: 172.17.50.196:8080 [17:00:13]Content-Length: 962 [17:00:13]Content-Type: application/json [17:00:13] [17:00:13]POST finish read [17:00:13]Found Content-Length = 962 [17:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335561", "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": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 54.00, "quantity" : 2.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:13]execute_script... [17:00: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)335561", "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": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 54.00, "quantity" : 2.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:13]POST & json_proto [17:00:13]process_json_proto [17:00:13]json parsed OK: [17:00:13]protocol is kg_v1.0 [17:00:13]action value=close_receipt [17:00:13]process_action close_receipt [17:00:13]cmd_close_receipt [17:00:13]MH_GetDate [17:00:13]Write to MH i2c: F0 00 00 C5 13 C7 [17:00:13]Write i2c OK [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: F0 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: F0 09 00 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: F0 09 00 C5 13 00 9F B7 23 67 72 0D 1C 67 B2 [17:00:13]GetLastDocTimeStamp 1730393583 [17:00:13]current date 1730394015 [17:00:13]FM_GetShiftState [17:00:13]SAM_PROTO_GetShiftState [17:00:13]wFMCommunicate request_size=4 [17:00:13]MH_SAM_APDU [17:00:13]CAPDU: 80 13 01 00 [17:00:13]Write to MH i2c: E2 08 00 C6 13 80 13 01 00 00 00 00 00 56 [17:00:13]Write i2c OK [17:00:13]MH_I2C_Read... [17:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:13]Read from MH i2c: E2 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: E2 0E 00 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: E2 0E 00 C6 13 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7F [17:00:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:00:13]wFMCommunicate OK [17:00:13]SAM_PROTO_GetShiftState done [17:00:13]FM_GetShiftState done [17:00:13]opened in 1730332621 [17:00:13]opened+sec_in_day 1730419021 [17:00:13]quantity*price = 6000 [17:00:13]sum+1 = 6001 [17:00:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002768 Печенье Biskrem 100г 2.000 * 54.00 = 108.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 168.00 НСП 1% : 1.49 НДС 12% : 17.84 Наличными: 168.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 192 31.10.2024 17:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139715 ФПД: 32874418896126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170015&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139715&fm=32874418896126&tin=02508201610067®Number=0000000000091631&sum=16800 0 [17:00:15]StoreToDocumentArchive [17:00:15]shift 557 fd 139715 [17:00:15]save to /storage/0557/doc_00139715 [17:00:15]save last doc name /storage/0557/doc_00139715 to /storage/kkm_last_doc_name [17:00:15]save OK [17:00:15]Clear old archive folders... [17:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=403 [17:00:15]tlvbuf is 00A626B0 [17:00:15]SAM_PROTO_ClearQueue [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 09 00 00 [17:00:15]Write to MH i2c: E2 08 00 D3 13 80 09 00 00 00 00 00 00 58 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 D3 13 00 90 00 5A [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]SAM_PROTO_ClearQueue done [17:00:15]KKMCreateOFDPacket [17:00:15]OFDProtocolAddRootSTLVToBuf [17:00:15]FM_MakeSignedData [17:00:15]FM_MakeSignedData [17:00:15]SAM_PROTO_SignData [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 0D 01 02 [17:00:15]Write to MH i2c: E2 08 00 D4 13 80 0D 01 02 00 00 00 00 60 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]wFMCommunicate request_size=255 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 0D 02 02 FA 03 00 93 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 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 [17:00:15]Write to MH i2c: E2 02 01 D5 13 80 0D 02 02 FA 00 03 00 93 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 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 13 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]OFD Sender: No OFD packet to send [17:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]wFMCommunicate request_size=162 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F B7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1D E6 2C 0F 7C FE [17:00:15]Write to MH i2c: E2 A5 00 D6 13 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F B7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1D E6 2C 0F 7C FE 00 00 BE [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 0D 03 02 [17:00:15]Write to MH i2c: E2 08 00 D7 13 80 0D 03 02 00 00 00 00 65 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 0B 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 0B 00 D7 13 00 95 2B B5 FE 85 15 B6 CA 90 00 F3 [17:00:15]RAPDU: 95 2B B5 FE 85 15 B6 CA 90 00 [17:00:15]wFMCommunicate OK [17:00:15]SAM_PROTO_SignData done [17:00:15]FM_MakeSignedData done [17:00:15]CreateOFDProtocolMessage [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 11 00 00 [17:00:15]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 17 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C0 [17:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:00:15]wFMCommunicate OK [17:00:15]CreateOFDProtocolMessage done [17:00:15]OFDSenderStorePacket 139715 [17:00:15]StoreOFDPacket docnum=139715 [17:00: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 A7 01 00 00 5D 6D 9F 01 FA 4B 5A 03 01 00 03 00 93 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 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F B7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1D E6 2C 0F 7C FE 95 2B B5 FE 85 15 B6 CA [17:00:15]CheckFolder [17:00:15]dirname=/storage/ofd_packets [17:00:15]CheckFolder done [17:00:15]ProducePacketName [17:00:15]name=ofd_packets/00139715 [17:00:15]NVStorageSaveData ofd_packets/00139715 [17:00:15]File name is /storage/ofd_packets/00139715 [17:00:15]Write 453 bytes [17:00:15]NVStorageSaveData done [17:00:15]OFDSenderStorePacket done [17:00:15]KKMCreateOFDPacket done [17:00:15]NVStorageSaveData kkm_last_timestamp [17:00:15]File name is /storage/kkm_last_timestamp [17:00:15]Write 4 bytes [17:00:15]NVStorageSaveData done [17:00:15]ExternCall_PrintAddStr [17:00:15]wPrintStart [17:00:15]Write to MH i2c: 01 00 00 D9 13 EC [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 07 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 FF 0F 01 [17:00:15]RasterBufferAndPrint [17:00:15]line Счет N : (3)335561 [17:00:15]line ИНН: 02508201610067 [17:00:16]line Контрольно-Кассовый Чек [17:00:16]line ПРОДАЖА [17:00:16]line Товар: 4700000160792 [17:00:16]line Снек Курут классический (круглый) [17:00:16]line 1.000 * 60.00 [17:00:16]line = 60.00 [17:00:16]line НДС 12% НСП 1% [17:00:16]line > о реализуемом товаре [17:00:16]line Товар: 4870112002768 [17:00:16]line Печенье Biskrem 100г [17:00:16]line 2.000 * 54.00 [17:00:16]line = 108.00 [17:00:16]line НДС 12% НСП 1% [17:00:16]line > о реализуемом товаре [17:00:16]line ИТОГО: 168.00 [17:00:16]line НСП 1% : 1.49 [17:00:16]line НДС 12% : 17.84 [17:00:16]line Наличными: 168.00 [17:00:16]line Безнал.: 0.00 [17:00:16]line Место: АЗС № 101 "Партнер Нефть" [17:00:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:00:16]line СНО: Общий режим [17:00:16]line Чек 192 31.10.2024 17:00 [17:00:16]line Смена: 557 ФФД: 1.0 [17:00:16]line ЗНМ: 0300000081 [17:00:16]line РНМ: 0000000000091631 [17:00:16]line Версия ККМ: 001 [17:00:16]line ФМ: 0000000000874669 [17:00:16]line ФД: 139715 [17:00:16]line ФПД: 32874418896126 [17:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170015&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139715&fm=32874418896126&tin=02508201610067®Number=0000000000091631&sum=16800 [17:00:16]line 0 [17:00:16]OFD Sender: Processing packet 139715 [packets to send 34, broken 33] [17:00:16]ProducePacketName [17:00:16]name=ofd_packets/00139715 [17:00:16]OFD Sender: To server: pG, [17:00:16]CommunicateWithHost lk.salyk.kg:30040 [17:00:16]ConnectInit lk.salyk.kg [17:00:16]written 0, free lines is 4095 [17:00:16]Connected sock=10 [17:00: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 A7 01 00 00 5D 6D 9F 01 FA 4B 5A 03 01 00 03 00 93 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 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F B7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 1D E6 2C 0F 7C FE 95 2B B5 FE 85 15 B6 CA [17:00: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 5D FC 47 00 52 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 21 02 00 F4 03 04 00 4C 63 23 67 B6 04 01 00 00 84 6B D9 37 DF 7F B9 07 [17:00:16]CommunicateWithHost err = 0 [17:00:16]CheckOFDResponse [17:00:16]1017 (14) - 77093643461234 [17:00:16]1041 (16) - 0000000000874669 [17:00:16]1040 (4) - 139715 [17:00:16]1012 (4) - 31.10.2024 11:00 [17:00:16]1206 (1) - 0 [17:00:16]OFD Sender: Remove packet 139715 [17:00:16]ProducePacketName [17:00:16]name=ofd_packets/00139715 [17:00:16]NVStorageDeleteData [17:00:16]Write to MH i2c: 01 00 00 08 14 1C [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: 01 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: 01 07 00 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: 01 07 00 08 14 00 00 00 00 00 BF 0C EE [17:00:16]RasterBufferAndPrint [17:00:16]line [17:00:16]line [17:00:16]line [17:00:16]line [17:00:16]line [17:00:16]written 0, free lines is 3269 [17:00:16]MH_Cut [17:00:16]Write to MH i2c: D1 01 00 0F 14 01 F5 [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: D1 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: D1 01 00 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: D1 01 00 0F 14 00 F4 [17:00:16]Write to MH i2c: 01 00 00 10 14 24 [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:16]OFD Sender: No OFD packet to send [17:00:17]*** Cut start [17:00:17]*** Partial cut [17:00:17]*** CUTSNS_PIN = 1 [17:00:17]*** CUTSNS_PIN = 0 [17:00:17]*** Brake cut motor [17:00:17]Read from MH i2c: 01 [17:00:17]MH_I2C_Read... [17:00:17]*** Stop cut motor [17:00:17]*** Cut end [17:00:17]Read from MH i2c: 01 07 00 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: 01 07 00 10 14 00 00 00 00 00 FF 0F 39 [17:00:17]process_action close_receipt done [17:00:17]requested_data is exist [17:00:17]produce_requested_data [17:00:17]requested_item fm.sn is exist - process it [17:00:17]wFMCommunicate request_size=4 [17:00:17]MH_SAM_APDU [17:00:17]CAPDU: 80 11 00 00 [17:00:17]Write to MH i2c: E2 08 00 11 14 80 11 00 00 00 00 00 00 9F [17:00:17]Write i2c OK [17:00:17]MH_I2C_Read... [17:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:17]Read from MH i2c: E2 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 17 00 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 17 00 11 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FA [17:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:00:17]wFMCommunicate OK [17:00:17]requested_item fd.num is exist - process it [17:00:17]SAM_PROTO_GetFieldsCounters [17:00:17]wFMCommunicate request_size=4 [17:00:17]MH_SAM_APDU [17:00:17]CAPDU: 80 13 00 00 [17:00:17]Write to MH i2c: E2 08 00 12 14 80 13 00 00 00 00 00 00 A2 [17:00:17]Write i2c OK [17:00:17]MH_I2C_Read... [17:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:18]Read from MH i2c: E2 [17:00:18]MH_I2C_Read... [17:00:18]Read from MH i2c: E2 62 00 [17:00:18]MH_I2C_Read... [17:00:18]Read from MH i2c: E2 62 00 12 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 1B [17:00: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 C3 21 02 00 0E 04 04 00 2D 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 [17:00:18]wFMCommunicate OK [17:00:18]SAM_PROTO_GetFieldsCounters done [17:00:18]requested_item shift.num is exist - process it [17:00:18]requested_item shift.opened is exist - process it [17:00:18]req_shift_opened [17:00:18]FM_GetShiftState [17:00:18]SAM_PROTO_GetShiftState [17:00:18]wFMCommunicate request_size=4 [17:00:18]MH_SAM_APDU [17:00:18]CAPDU: 80 13 01 00 [17:00:18]Write to MH i2c: E2 08 00 13 14 80 13 01 00 00 00 00 00 A4 [17:00:18]Write i2c OK [17:00:18]MH_I2C_Read... [17:00:18]Read from MH i2c: E2 [17:00:18]MH_I2C_Read... [17:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:18]Read from MH i2c: E2 0E 00 [17:00:18]MH_I2C_Read... [17:00:18]Read from MH i2c: E2 0E 00 13 14 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CD [17:00:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:00:18]wFMCommunicate OK [17:00:18]SAM_PROTO_GetShiftState done [17:00:18]FM_GetShiftState done [17:00:18]req_shift_opened done [17:00:18]requested_item shift.open_date is exist - process it [17:00:18]req_shift_open_date [17:00:18]req_shift_open_date done [17:00:18]produce_requested_data done [17:00:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139715,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:00:18]process_action_free close_receipt [17:00:18]json_value_free [17:00:18]json_value_free done [17:00:18]process_json_proto returns [17:00:18]Send response to host [17:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139715,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:00:18]free response buf [17:00:18]execute_script done [17:00:18]execute_script returns [17:00:18]free content buf [17:00:18]Sock 7.Close socket [17:00:18]Sock 7.Thread stoped [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:18]accept exits with 9 [17:07:18]New connection [17:07:18]New thread 3066654052 created [17:07:18]Thread 3066510692 joined [17:07:18]Waiting for new connection... [17:07:18] Sock 9.Parse request [17:07:18]Sock 9.Check first char [17:07:18]Sock 9.First char is OK [17:07:18]request: POST /json_proto HTTP/1.0 [17:07:18]Method: POST [17:07:18]URL: /json_proto [17:07:18]Method is POST - this is cgi request [17:07:18]url: /json_proto [17:07:18]query_string will be loaded in cgi processing [17:07:18]execute_cgi json_proto POST (null) [17:07:18]execute_cgi path=json_proto method=POST [17:07:18]POST find Content-Length [17:07:18]Host: 172.17.50.196:8080 [17:07:18]Content-Length: 653 [17:07:18]Content-Type: application/json [17:07:18] [17:07:18]POST finish read [17:07:18]Found Content-Length = 653 [17:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335562", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:18]execute_script... [17:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335562", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:18]POST & json_proto [17:07:18]process_json_proto [17:07:18]json parsed OK: [17:07:18]protocol is kg_v1.0 [17:07:18]action value=close_receipt [17:07:18]process_action close_receipt [17:07:18]cmd_close_receipt [17:07:18]MH_GetDate [17:07:18]Write to MH i2c: F0 00 00 14 14 17 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: F0 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: F0 09 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: F0 09 00 14 14 00 48 B9 23 67 72 0D 1C 67 AD [17:07:18]GetLastDocTimeStamp 1730394015 [17:07:18]current date 1730394440 [17:07:18]FM_GetShiftState [17:07:18]SAM_PROTO_GetShiftState [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 13 01 00 [17:07:18]Write to MH i2c: E2 08 00 15 14 80 13 01 00 00 00 00 00 A6 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0E 00 15 14 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CF [17:07:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:07:18]wFMCommunicate OK [17:07:18]SAM_PROTO_GetShiftState done [17:07:18]FM_GetShiftState done [17:07:18]opened in 1730332621 [17:07:18]opened+sec_in_day 1730419021 [17:07:18]quantity*price = 9000 [17:07:18]sum+1 = 9001 [17:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 193 31.10.2024 17:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139716 ФПД: 20709133121041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170720&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139716&fm=20709133121041&tin=02508201610067®Number=0000000000091631&sum=9000 0 [17:07:19]StoreToDocumentArchive [17:07:19]shift 557 fd 139716 [17:07:19]save to /storage/0557/doc_00139716 [17:07:19]save last doc name /storage/0557/doc_00139716 to /storage/kkm_last_doc_name [17:07:19]save OK [17:07:19]Clear old archive folders... [17:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:07:19]tlvbuf is 00A892C0 [17:07:19]SAM_PROTO_ClearQueue [17:07:19]wFMCommunicate request_size=4 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 09 00 00 [17:07:19]Write to MH i2c: E2 08 00 22 14 80 09 00 00 00 00 00 00 A8 [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [17:07:19]RAPDU: 90 00 [17:07:19]wFMCommunicate OK [17:07:19]SAM_PROTO_ClearQueue done [17:07:19]KKMCreateOFDPacket [17:07:19]OFDProtocolAddRootSTLVToBuf [17:07:19]FM_MakeSignedData [17:07:19]FM_MakeSignedData [17:07:19]SAM_PROTO_SignData [17:07:19]wFMCommunicate request_size=4 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 0D 01 02 [17:07:19]Write to MH i2c: E2 08 00 23 14 80 0D 01 02 00 00 00 00 B0 [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [17:07:19]RAPDU: 90 00 [17:07:19]wFMCommunicate OK [17:07:19]wFMCommunicate request_size=255 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 48 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [17:07:19]Write to MH i2c: E2 02 01 24 14 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 48 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 12 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 03 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [17:07:20]RAPDU: 90 00 [17:07:20]wFMCommunicate OK [17:07:20]wFMCommunicate request_size=39 [17:07:20]MH_SAM_APDU [17:07:20]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 C4 21 02 00 35 04 06 00 12 D5 B8 85 F6 11 [17:07:20]Write to MH i2c: E2 2A 00 25 14 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 C4 21 02 00 35 04 06 00 12 D5 B8 85 F6 11 00 00 88 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 03 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [17:07:20]RAPDU: 90 00 [17:07:20]wFMCommunicate OK [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 0D 03 02 [17:07:20]Write to MH i2c: E2 08 00 26 14 80 0D 03 02 00 00 00 00 B5 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0B 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0B 00 26 14 00 7A 6A 40 C4 0F 25 17 C8 90 00 B1 [17:07:20]RAPDU: 7A 6A 40 C4 0F 25 17 C8 90 00 [17:07:20]wFMCommunicate OK [17:07:20]SAM_PROTO_SignData done [17:07:20]FM_MakeSignedData done [17:07:20]CreateOFDProtocolMessage [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 11 00 00 [17:07:20]Write to MH i2c: E2 08 00 27 14 80 11 00 00 00 00 00 00 B5 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 17 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 17 00 27 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 10 [17:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:07:20]wFMCommunicate OK [17:07:20]CreateOFDProtocolMessage done [17:07:20]OFDSenderStorePacket 139716 [17:07:20]StoreOFDPacket docnum=139716 [17:07: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 2C 01 00 00 40 B6 24 01 A0 85 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 48 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 D5 B8 85 F6 11 7A 6A 40 C4 0F 25 17 C8 [17:07:20]CheckFolder [17:07:20]dirname=/storage/ofd_packets [17:07:20]CheckFolder done [17:07:20]ProducePacketName [17:07:20]name=ofd_packets/00139716 [17:07:20]NVStorageSaveData ofd_packets/00139716 [17:07:20]File name is /storage/ofd_packets/00139716 [17:07:20]Write 330 bytes [17:07:20]NVStorageSaveData done [17:07:20]OFDSenderStorePacket done [17:07:20]KKMCreateOFDPacket done [17:07:20]NVStorageSaveData kkm_last_timestamp [17:07:20]File name is /storage/kkm_last_timestamp [17:07:20]Write 4 bytes [17:07:20]NVStorageSaveData done [17:07:20]ExternCall_PrintAddStr [17:07:20]wPrintStart [17:07:20]Write to MH i2c: 01 00 00 28 14 3C [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: 01 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: 01 07 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: 01 07 00 28 14 00 00 00 00 00 FF 0F 51 [17:07:20]RasterBufferAndPrint [17:07:20]line Счет N : (3)335562 [17:07:20]line ИНН: 02508201610067 [17:07:20]line Контрольно-Кассовый Чек [17:07:20]line ПРОДАЖА [17:07:20]line Товар: 5449000325907 [17:07:20]line Напиток Фанта 0,45л ж/б [17:07:20]line 1.000 * 90.00 [17:07:20]line = 90.00 [17:07:20]line НДС 12% НСП 1% [17:07:20]line > о реализуемом товаре [17:07:20]line ИТОГО: 90.00 [17:07:20]line НСП 1% : 0.80 [17:07:20]line НДС 12% : 9.56 [17:07:20]line Наличными: 90.00 [17:07:20]line Безнал.: 0.00 [17:07:20]line Место: АЗС № 101 "Партнер Нефть" [17:07:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:07:20]line СНО: Общий режим [17:07:20]line Чек 193 31.10.2024 17:07 [17:07:20]line Смена: 557 ФФД: 1.0 [17:07:20]line ЗНМ: 0300000081 [17:07:20]line РНМ: 0000000000091631 [17:07:20]line Версия ККМ: 001 [17:07:20]line ФМ: 0000000000874669 [17:07:20]line ФД: 139716 [17:07:20]line ФПД: 20709133121041 [17:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170720&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139716&fm=20709133121041&tin=02508201610067®Number=0000000000091631&sum=9000 [17:07:20]line 0 [17:07:20]OFD Sender: Processing packet 139716 [packets to send 34, broken 33] [17:07:20]ProducePacketName [17:07:20]name=ofd_packets/00139716 [17:07:20]OFD Sender: To server: pG, [17:07:20]CommunicateWithHost lk.salyk.kg:30040 [17:07:20]ConnectInit lk.salyk.kg [17:07:20]written 0, free lines is 4095 [17:07:20]Connected sock=10 [17:07:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 40 B6 24 01 A0 85 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 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 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 48 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 D5 B8 85 F6 11 7A 6A 40 C4 0F 25 17 C8 [17:07: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 1E F2 47 00 5E 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 21 02 00 F4 03 04 00 F5 64 23 67 B6 04 01 00 00 43 B6 04 0D A8 A8 D9 C0 [17:07:21]CommunicateWithHost err = 0 [17:07:21]CheckOFDResponse [17:07:21]1017 (14) - 77093643461234 [17:07:21]1041 (16) - 0000000000874669 [17:07:21]1040 (4) - 139716 [17:07:21]1012 (4) - 31.10.2024 11:07 [17:07:21]1206 (1) - 0 [17:07:21]OFD Sender: Remove packet 139716 [17:07:21]ProducePacketName [17:07:21]name=ofd_packets/00139716 [17:07:21]NVStorageDeleteData [17:07:21]Write to MH i2c: 01 00 00 50 14 64 [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: 01 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: 01 07 00 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: 01 07 00 50 14 00 00 00 00 00 21 0D 99 [17:07:21]RasterBufferAndPrint [17:07:21]line [17:07:21]line [17:07:21]line [17:07:21]line [17:07:21]line [17:07:21]written 0, free lines is 3370 [17:07:21]MH_Cut [17:07:21]Write to MH i2c: D1 01 00 57 14 01 3D [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: D1 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: D1 01 00 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: D1 01 00 57 14 00 3C [17:07:21]Write to MH i2c: 01 00 00 58 14 6C [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:21]OFD Sender: No OFD packet to send [17:07:21]*** Cut start [17:07:21]*** Partial cut [17:07:21]*** CUTSNS_PIN = 1 [17:07:21]*** CUTSNS_PIN = 0 [17:07:22]*** Brake cut motor [17:07:22]Read from MH i2c: 01 [17:07:22]MH_I2C_Read... [17:07:22]*** Stop cut motor [17:07:22]*** Cut end [17:07:22]Read from MH i2c: 01 07 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: 01 07 00 58 14 00 00 00 00 00 FF 0F 81 [17:07:22]process_action close_receipt done [17:07:22]requested_data is exist [17:07:22]produce_requested_data [17:07:22]requested_item fm.sn is exist - process it [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 11 00 00 [17:07:22]Write to MH i2c: E2 08 00 59 14 80 11 00 00 00 00 00 00 E7 [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 17 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 17 00 59 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 42 [17:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:07:22]wFMCommunicate OK [17:07:22]requested_item fd.num is exist - process it [17:07:22]SAM_PROTO_GetFieldsCounters [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 13 00 00 [17:07:22]Write to MH i2c: E2 08 00 5A 14 80 13 00 00 00 00 00 00 EA [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 62 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 62 00 5A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 67 [17:07: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 C4 21 02 00 0E 04 04 00 2D 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 [17:07:22]wFMCommunicate OK [17:07:22]SAM_PROTO_GetFieldsCounters done [17:07:22]requested_item shift.num is exist - process it [17:07:22]requested_item shift.opened is exist - process it [17:07:22]req_shift_opened [17:07:22]FM_GetShiftState [17:07:22]SAM_PROTO_GetShiftState [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 13 01 00 [17:07:22]Write to MH i2c: E2 08 00 5B 14 80 13 01 00 00 00 00 00 EC [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0E 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0E 00 5B 14 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 15 [17:07:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:07:22]wFMCommunicate OK [17:07:22]SAM_PROTO_GetShiftState done [17:07:22]FM_GetShiftState done [17:07:22]req_shift_opened done [17:07:22]requested_item shift.open_date is exist - process it [17:07:22]req_shift_open_date [17:07:22]req_shift_open_date done [17:07:22]produce_requested_data done [17:07:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139716,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:07:22]process_action_free close_receipt [17:07:22]json_value_free [17:07:22]json_value_free done [17:07:22]process_json_proto returns [17:07:22]Send response to host [17:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139716,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:07:22]free response buf [17:07:22]execute_script done [17:07:22]execute_script returns [17:07:22]free content buf [17:07:22]Sock 9.Close socket [17:07:22]Sock 9.Thread stoped [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:40]accept exits with 7 [17:08:40]New connection [17:08:40]New thread 3066510692 created [17:08:40]Thread 3066654052 joined [17:08:40]Waiting for new connection... [17:08:40] Sock 7.Parse request [17:08:40]Sock 7.Check first char [17:08:40]Sock 7.First char is OK [17:08:40]request: POST /json_proto HTTP/1.0 [17:08:40]Method: POST [17:08:40]URL: /json_proto [17:08:40]Method is POST - this is cgi request [17:08:40]url: /json_proto [17:08:40]query_string will be loaded in cgi processing [17:08:40]execute_cgi json_proto POST (null) [17:08:40]execute_cgi path=json_proto method=POST [17:08:40]POST find Content-Length [17:08:40]Host: 172.17.50.196:8080 [17:08:40]Content-Length: 1793 [17:08:40]Content-Type: application/json [17:08:40] [17:08:40]POST finish read [17:08:40]Found Content-Length = 1793 [17:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335563", "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": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:40]execute_script... [17:08:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335563", "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": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:40]POST & json_proto [17:08:40]process_json_proto [17:08:40]json parsed OK: [17:08:40]protocol is kg_v1.0 [17:08:40]action value=close_receipt [17:08:40]process_action close_receipt [17:08:40]cmd_close_receipt [17:08:40]MH_GetDate [17:08:40]Write to MH i2c: F0 00 00 5C 14 5F [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: F0 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: F0 09 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: F0 09 00 5C 14 00 9A B9 23 67 72 0D 1C 67 47 [17:08:40]GetLastDocTimeStamp 1730394440 [17:08:40]current date 1730394522 [17:08:40]FM_GetShiftState [17:08:40]SAM_PROTO_GetShiftState [17:08:40]wFMCommunicate request_size=4 [17:08:40]MH_SAM_APDU [17:08:40]CAPDU: 80 13 01 00 [17:08:40]Write to MH i2c: E2 08 00 5D 14 80 13 01 00 00 00 00 00 EE [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:40]Read from MH i2c: E2 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 0E 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 0E 00 5D 14 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 17 [17:08:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:08:40]wFMCommunicate OK [17:08:40]SAM_PROTO_GetShiftState done [17:08:40]FM_GetShiftState done [17:08:40]opened in 1730332621 [17:08:40]opened+sec_in_day 1730419021 [17:08:40]quantity*price = 9900 [17:08:40]sum+1 = 9901 [17:08:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607015232868 Вафли Яшкино в шоколадной глазури 200г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602441014019 Напиток Лимонад 0,5л ст (Gabb trade) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 439.00 НСП 1% : 3.89 НДС 12% : 46.61 Наличными: 0.00 Безнал.: 439.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 194 31.10.2024 17:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139717 ФПД: 246257263618074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170842&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139717&fm=246257263618074&tin=02508201610067®Number=0000000000091631&sum=43900 0 [17:08:41]StoreToDocumentArchive [17:08:41]shift 557 fd 139717 [17:08:41]save to /storage/0557/doc_00139717 [17:08:41]save last doc name /storage/0557/doc_00139717 to /storage/kkm_last_doc_name [17:08:41]save OK [17:08:41]Clear old archive folders... [17:08:41]ProcessDocumentItem done err = 0, tmpTLVsize=696 [17:08:41]tlvbuf is 00A9A680 [17:08:41]SAM_PROTO_ClearQueue [17:08:41]wFMCommunicate request_size=4 [17:08:41]MH_SAM_APDU [17:08:41]CAPDU: 80 09 00 00 [17:08:41]Write to MH i2c: E2 08 00 6A 14 80 09 00 00 00 00 00 00 F0 [17:08:41]Write i2c OK [17:08:41]MH_I2C_Read... [17:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:41]Read from MH i2c: E2 [17:08:41]MH_I2C_Read... [17:08:41]Read from MH i2c: E2 03 00 [17:08:41]MH_I2C_Read... [17:08:41]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [17:08:41]RAPDU: 90 00 [17:08:41]wFMCommunicate OK [17:08:41]SAM_PROTO_ClearQueue done [17:08:41]KKMCreateOFDPacket [17:08:41]OFDProtocolAddRootSTLVToBuf [17:08:41]FM_MakeSignedData [17:08:41]FM_MakeSignedData [17:08:41]SAM_PROTO_SignData [17:08:41]wFMCommunicate request_size=4 [17:08:41]MH_SAM_APDU [17:08:41]CAPDU: 80 0D 01 02 [17:08:41]Write to MH i2c: E2 08 00 6B 14 80 0D 01 02 00 00 00 00 F8 [17:08:41]Write i2c OK [17:08:41]MH_I2C_Read... [17:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:41]Read from MH i2c: E2 [17:08:41]MH_I2C_Read... [17:08:41]Read from MH i2c: E2 03 00 [17:08:41]MH_I2C_Read... [17:08:41]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [17:08:41]RAPDU: 90 00 [17:08:41]wFMCommunicate OK [17:08:41]wFMCommunicate request_size=255 [17:08:41]MH_SAM_APDU [17:08:41]CAPDU: 80 0D 02 02 FA 03 00 B8 02 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 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 [17:08:41]Write to MH i2c: E2 02 01 6C 14 80 0D 02 02 FA 00 03 00 B8 02 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 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 00 BD [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 03 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [17:08:42]RAPDU: 90 00 [17:08:42]wFMCommunicate OK [17:08:42]wFMCommunicate request_size=255 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 0D 02 02 FA 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 [17:08:42]Write to MH i2c: E2 02 01 6D 14 80 0D 02 02 FA 00 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 00 00 19 [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 03 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [17:08:42]RAPDU: 90 00 [17:08:42]wFMCommunicate OK [17:08:42]wFMCommunicate request_size=205 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 0D 02 02 C8 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 9A B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DF F8 3C B8 A8 1A [17:08:42]Write to MH i2c: E2 D0 00 6E 14 80 0D 02 02 C8 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 9A B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DF F8 3C B8 A8 1A 00 00 49 [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 03 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [17:08:42]RAPDU: 90 00 [17:08:42]wFMCommunicate OK [17:08:42]wFMCommunicate request_size=4 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 0D 03 02 [17:08:42]Write to MH i2c: E2 08 00 6F 14 80 0D 03 02 00 00 00 00 FE [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 0B 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 0B 00 6F 14 00 97 BB CE A5 C2 91 E0 27 90 00 1E [17:08:42]RAPDU: 97 BB CE A5 C2 91 E0 27 90 00 [17:08:42]wFMCommunicate OK [17:08:42]SAM_PROTO_SignData done [17:08:42]FM_MakeSignedData done [17:08:42]CreateOFDProtocolMessage [17:08:42]wFMCommunicate request_size=4 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 11 00 00 [17:08:42]Write to MH i2c: E2 08 00 70 14 80 11 00 00 00 00 00 00 FE [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 17 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 17 00 70 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 59 [17:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:08:42]wFMCommunicate OK [17:08:42]CreateOFDProtocolMessage done [17:08:42]OFDSenderStorePacket 139717 [17:08:42]StoreOFDPacket docnum=139717 [17:08:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 CC 02 00 00 66 98 C4 02 72 F3 5A 03 01 00 03 00 B8 02 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 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 9A B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DF F8 3C B8 A8 1A 97 BB CE A5 C2 91 E0 27 [17:08:42]CheckFolder [17:08:42]dirname=/storage/ofd_packets [17:08:42]CheckFolder done [17:08:42]ProducePacketName [17:08:42]name=ofd_packets/00139717 [17:08:42]NVStorageSaveData ofd_packets/00139717 [17:08:42]File name is /storage/ofd_packets/00139717 [17:08:42]Write 746 bytes [17:08:42]NVStorageSaveData done [17:08:42]OFDSenderStorePacket done [17:08:42]KKMCreateOFDPacket done [17:08:42]NVStorageSaveData kkm_last_timestamp [17:08:42]File name is /storage/kkm_last_timestamp [17:08:42]Write 4 bytes [17:08:43]NVStorageSaveData done [17:08:43]ExternCall_PrintAddStr [17:08:43]wPrintStart [17:08:43]Write to MH i2c: 01 00 00 71 14 85 [17:08:43]OFD Sender: Processing packet 139717 [packets to send 34, broken 33] [17:08:43]ProducePacketName [17:08:43]name=ofd_packets/00139717 [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: 01 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: 01 07 00 [17:08:43]MH_I2C_Read... [17:08:43]OFD Sender: To server: pG, [17:08:43]CommunicateWithHost lk.salyk.kg:30040 [17:08:43]ConnectInit lk.salyk.kg [17:08:43]Read from MH i2c: 01 07 00 71 14 00 00 00 00 00 FF 0F 9A [17:08:43]RasterBufferAndPrint [17:08:43]line Счет N : (3)335563 [17:08:43]line ИНН: 02508201610067 [17:08:43]line Контрольно-Кассовый Чек [17:08:43]line ПРОДАЖА [17:08:43]line Товар: 4870022003305 [17:08:43]line Напиток Gorilla эн нат ж/б 0,5/0,45л [17:08:43]line 1.000 * 99.00 [17:08:43]line = 99.00 [17:08:43]line НДС 12% НСП 1% [17:08:43]line > о реализуемом товаре [17:08:43]line Товар: 4607015232868 [17:08:43]line Вафли Яшкино в шоколадной глазури 200г [17:08:43]line 1.000 * 95.00 [17:08:43]line = 95.00 [17:08:43]line НДС 12% НСП 1% [17:08:43]line > о реализуемом товаре [17:08:43]line Товар: 5449000027474 [17:08:43]line Напиток FuzeTea зел чай манго,ромашка 1л [17:08:43]line 1.000 * 120.00 [17:08:43]line = 120.00 [17:08:43]line НДС 12% НСП 1% [17:08:43]line > о реализуемом товаре [17:08:43]line Товар: 4602441014019 [17:08:43]line Напиток Лимонад 0,5л ст (Gabb trade) [17:08:43]line 1.000 * 125.00 [17:08:43]line = 125.00 [17:08:43]line НДС 12% НСП 1% [17:08:43]line > о реализуемом товаре [17:08:43]line ИТОГО: 439.00 [17:08:43]line НСП 1% : 3.89 [17:08:43]line НДС 12% : 46.61 [17:08:43]line Наличными: 0.00 [17:08:43]line Безнал.: 439.00 [17:08:43]line Место: АЗС № 101 "Партнер Нефть" [17:08:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:08:43]line СНО: Общий режим [17:08:43]line Чек 194 31.10.2024 17:08 [17:08:43]line Смена: 557 ФФД: 1.0 [17:08:43]line ЗНМ: 0300000081 [17:08:43]line РНМ: 0000000000091631 [17:08:43]line Версия ККМ: 001 [17:08:43]line Платежная система: Mbank [17:08:43]line ФМ: 0000000000874669 [17:08:43]line ФД: 139717 [17:08:43]line ФПД: 246257263618074 [17:08:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170842&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139717&fm=246257263618074&tin=02508201610067®Number=0000000000091631&sum=43900 [17:08:43]line 0 [17:08:43]written 0, free lines is 4095 [17:08:43]Connected sock=10 [17:08: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 CC 02 00 00 66 98 C4 02 72 F3 5A 03 01 00 03 00 B8 02 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 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 9A B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DF F8 3C B8 A8 1A 97 BB CE A5 C2 91 E0 27 [17:08:43]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 44 FE 47 00 1A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 21 02 00 F4 03 04 00 47 65 23 67 B6 04 01 00 00 11 E4 BE A9 16 B7 D5 B2 [17:08:43]CommunicateWithHost err = 0 [17:08:43]CheckOFDResponse [17:08:43]1017 (14) - 77093643461234 [17:08:43]1041 (16) - 0000000000874669 [17:08:43]1040 (4) - 139717 [17:08:43]1012 (4) - 31.10.2024 11:08 [17:08:43]1206 (1) - 0 [17:08:43]OFD Sender: Remove packet 139717 [17:08:43]ProducePacketName [17:08:43]name=ofd_packets/00139717 [17:08:43]NVStorageDeleteData [17:08:43]Write to MH i2c: 01 00 00 B0 14 C4 [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: 01 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: 01 07 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: 01 07 00 B0 14 00 00 00 00 00 03 0C DA [17:08:43]RasterBufferAndPrint [17:08:43]line [17:08:43]line [17:08:43]line [17:08:43]line [17:08:43]line [17:08:43]written 0, free lines is 3086 [17:08:43]MH_Cut [17:08:43]Write to MH i2c: D1 01 00 B7 14 01 9D [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: D1 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: D1 01 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: D1 01 00 B7 14 00 9C [17:08:43]Write to MH i2c: 01 00 00 B8 14 CC [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:44]OFD Sender: No OFD packet to send [17:08:44]*** Cut start [17:08:44]*** Partial cut [17:08:44]*** CUTSNS_PIN = 1 [17:08:44]*** CUTSNS_PIN = 0 [17:08:45]*** Brake cut motor [17:08:45]Read from MH i2c: 01 [17:08:45]MH_I2C_Read... [17:08:45]*** Stop cut motor [17:08:45]*** Cut end [17:08:45]Read from MH i2c: 01 07 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 FF 0F E1 [17:08:45]process_action close_receipt done [17:08:45]requested_data is exist [17:08:45]produce_requested_data [17:08:45]requested_item fm.sn is exist - process it [17:08:45]wFMCommunicate request_size=4 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 11 00 00 [17:08:45]Write to MH i2c: E2 08 00 B9 14 80 11 00 00 00 00 00 00 47 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 17 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 17 00 B9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A2 [17:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:08:45]wFMCommunicate OK [17:08:45]requested_item fd.num is exist - process it [17:08:45]SAM_PROTO_GetFieldsCounters [17:08:45]wFMCommunicate request_size=4 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 13 00 00 [17:08:45]Write to MH i2c: E2 08 00 BA 14 80 13 00 00 00 00 00 00 4A [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 62 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 62 00 BA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 CB [17:08: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 C5 21 02 00 0E 04 04 00 2D 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 [17:08:45]wFMCommunicate OK [17:08:45]SAM_PROTO_GetFieldsCounters done [17:08:45]requested_item shift.num is exist - process it [17:08:45]requested_item shift.opened is exist - process it [17:08:45]req_shift_opened [17:08:45]FM_GetShiftState [17:08:45]SAM_PROTO_GetShiftState [17:08:45]wFMCommunicate request_size=4 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 13 01 00 [17:08:45]Write to MH i2c: E2 08 00 BB 14 80 13 01 00 00 00 00 00 4C [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 0E 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 0E 00 BB 14 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 75 [17:08:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:08:45]wFMCommunicate OK [17:08:45]SAM_PROTO_GetShiftState done [17:08:45]FM_GetShiftState done [17:08:45]req_shift_opened done [17:08:45]requested_item shift.open_date is exist - process it [17:08:45]req_shift_open_date [17:08:45]req_shift_open_date done [17:08:45]produce_requested_data done [17:08:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139717,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:08:45]process_action_free close_receipt [17:08:45]json_value_free [17:08:45]json_value_free done [17:08:45]process_json_proto returns [17:08:45]Send response to host [17:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139717,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:08:45]free response buf [17:08:45]execute_script done [17:08:45]execute_script returns [17:08:45]free content buf [17:08:45]Sock 7.Close socket [17:08:45]Sock 7.Thread stoped [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:42]accept exits with 9 [17:09:42]New connection [17:09:42]New thread 3066654052 created [17:09:42]Thread 3066510692 joined [17:09:42]Waiting for new connection... [17:09:42] Sock 9.Parse request [17:09:42]Sock 9.Check first char [17:09:42]Sock 9.First char is OK [17:09:42]request: POST /json_proto HTTP/1.0 [17:09:42]Method: POST [17:09:42]URL: /json_proto [17:09:42]Method is POST - this is cgi request [17:09:42]url: /json_proto [17:09:42]query_string will be loaded in cgi processing [17:09:42]execute_cgi json_proto POST (null) [17:09:42]execute_cgi path=json_proto method=POST [17:09:42]POST find Content-Length [17:09:42]Host: 172.17.50.196:8080 [17:09:42]Content-Length: 623 [17:09:42]Content-Type: application/json [17:09:42] [17:09:42]POST finish read [17:09:42]Found Content-Length = 623 [17:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335564", "tax_sys" : 0, "items" : [ { "code": "4006396053817", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B CHAPMAN GOLD SSL", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:42]execute_script... [17:09: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)335564", "tax_sys" : 0, "items" : [ { "code": "4006396053817", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B CHAPMAN GOLD SSL", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:42]POST & json_proto [17:09:42]process_json_proto [17:09:42]json parsed OK: [17:09:42]protocol is kg_v1.0 [17:09:42]action value=close_receipt [17:09:42]process_action close_receipt [17:09:42]cmd_close_receipt [17:09:42]MH_GetDate [17:09:42]Write to MH i2c: F0 00 00 BC 14 BF [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: F0 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: F0 09 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: F0 09 00 BC 14 00 D8 B9 23 67 72 0D 1C 67 E5 [17:09:42]GetLastDocTimeStamp 1730394522 [17:09:42]current date 1730394584 [17:09:42]FM_GetShiftState [17:09:42]SAM_PROTO_GetShiftState [17:09:42]wFMCommunicate request_size=4 [17:09:42]MH_SAM_APDU [17:09:42]CAPDU: 80 13 01 00 [17:09:42]Write to MH i2c: E2 08 00 BD 14 80 13 01 00 00 00 00 00 4E [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 0E 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 0E 00 BD 14 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 77 [17:09:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:09:42]wFMCommunicate OK [17:09:42]SAM_PROTO_GetShiftState done [17:09:42]FM_GetShiftState done [17:09:42]opened in 1730332621 [17:09:42]opened+sec_in_day 1730419021 [17:09:42]quantity*price = 21000 [17:09:42]sum+1 = 21001 [17:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 195 31.10.2024 17:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139718 ФПД: 264686163930561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139718&fm=264686163930561&tin=02508201610067®Number=0000000000091631&sum=21000 0 [17:09:43]StoreToDocumentArchive [17:09:43]shift 557 fd 139718 [17:09:43]save to /storage/0557/doc_00139718 [17:09:43]save last doc name /storage/0557/doc_00139718 to /storage/kkm_last_doc_name [17:09:43]save OK [17:09:43]Clear old archive folders... [17:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:09:43]tlvbuf is 00A62130 [17:09:43]SAM_PROTO_ClearQueue [17:09:43]wFMCommunicate request_size=4 [17:09:43]MH_SAM_APDU [17:09:43]CAPDU: 80 09 00 00 [17:09:43]Write to MH i2c: E2 08 00 CA 14 80 09 00 00 00 00 00 00 50 [17:09:43]Write i2c OK [17:09:43]MH_I2C_Read... [17:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:43]Read from MH i2c: E2 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 03 00 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 03 00 CA 14 00 90 00 52 [17:09:43]RAPDU: 90 00 [17:09:43]wFMCommunicate OK [17:09:43]SAM_PROTO_ClearQueue done [17:09:43]KKMCreateOFDPacket [17:09:43]OFDProtocolAddRootSTLVToBuf [17:09:43]FM_MakeSignedData [17:09:43]FM_MakeSignedData [17:09:43]SAM_PROTO_SignData [17:09:43]wFMCommunicate request_size=4 [17:09:43]MH_SAM_APDU [17:09:43]CAPDU: 80 0D 01 02 [17:09:43]Write to MH i2c: E2 08 00 CB 14 80 0D 01 02 00 00 00 00 58 [17:09:43]Write i2c OK [17:09:43]MH_I2C_Read... [17:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 CB 14 00 90 00 53 [17:09:44]RAPDU: 90 00 [17:09:44]wFMCommunicate OK [17:09:44]wFMCommunicate request_size=255 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 30 30 36 33 39 36 30 35 33 38 31 37 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 48 41 50 4D 41 4E 20 47 4F 4C 44 20 53 53 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [17:09:44]Write to MH i2c: E2 02 01 CC 14 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 30 30 36 33 39 36 30 35 33 38 31 37 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 48 41 50 4D 41 4E 20 47 4F 4C 44 20 53 53 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 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 1E [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]OFD Sender: No OFD packet to send [17:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 CC 14 00 90 00 54 [17:09:44]RAPDU: 90 00 [17:09:44]wFMCommunicate OK [17:09:44]wFMCommunicate request_size=34 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 21 02 00 35 04 06 00 F0 BB 0C C7 2D C1 [17:09:44]Write to MH i2c: E2 25 00 CD 14 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 21 02 00 35 04 06 00 F0 BB 0C C7 2D C1 00 00 79 [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [17:09:44]RAPDU: 90 00 [17:09:44]wFMCommunicate OK [17:09:44]wFMCommunicate request_size=4 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 0D 03 02 [17:09:44]Write to MH i2c: E2 08 00 CE 14 80 0D 03 02 00 00 00 00 5D [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 0B 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 0B 00 CE 14 00 08 13 1B 42 76 AE D9 FF 90 00 D2 [17:09:44]RAPDU: 08 13 1B 42 76 AE D9 FF 90 00 [17:09:44]wFMCommunicate OK [17:09:44]SAM_PROTO_SignData done [17:09:44]FM_MakeSignedData done [17:09:44]CreateOFDProtocolMessage [17:09:44]wFMCommunicate request_size=4 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 11 00 00 [17:09:44]Write to MH i2c: E2 08 00 CF 14 80 11 00 00 00 00 00 00 5D [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 17 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 17 00 CF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B8 [17:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:09:44]wFMCommunicate OK [17:09:44]CreateOFDProtocolMessage done [17:09:44]OFDSenderStorePacket 139718 [17:09:44]StoreOFDPacket docnum=139718 [17:09: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 27 01 00 00 31 A0 1F 01 10 29 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 30 30 36 33 39 36 30 35 33 38 31 37 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 48 41 50 4D 41 4E 20 47 4F 4C 44 20 53 53 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F0 BB 0C C7 2D C1 08 13 1B 42 76 AE D9 FF [17:09:44]CheckFolder [17:09:44]dirname=/storage/ofd_packets [17:09:44]CheckFolder done [17:09:44]ProducePacketName [17:09:44]name=ofd_packets/00139718 [17:09:44]NVStorageSaveData ofd_packets/00139718 [17:09:44]File name is /storage/ofd_packets/00139718 [17:09:44]Write 325 bytes [17:09:44]NVStorageSaveData done [17:09:44]OFDSenderStorePacket done [17:09:44]KKMCreateOFDPacket done [17:09:44]NVStorageSaveData kkm_last_timestamp [17:09:44]File name is /storage/kkm_last_timestamp [17:09:44]Write 4 bytes [17:09:44]NVStorageSaveData done [17:09:44]ExternCall_PrintAddStr [17:09:44]wPrintStart [17:09:44]Write to MH i2c: 01 00 00 D0 14 E4 [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: 01 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: 01 07 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: 01 07 00 D0 14 00 00 00 00 00 FF 0F F9 [17:09:44]RasterBufferAndPrint [17:09:44]line Счет N : (3)335564 [17:09:44]line ИНН: 02508201610067 [17:09:44]line Контрольно-Кассовый Чек [17:09:44]line ПРОДАЖА [17:09:44]line Товар: 4006396053817 [17:09:44]line Сигареты CHAPMAN GOLD SSL [17:09:44]line 1.000 * 210.00 [17:09:44]line = 210.00 [17:09:44]line НДС 12% НСП 1% [17:09:44]line > о реализуемом товаре [17:09:44]line ИТОГО: 210.00 [17:09:44]line НСП 1% : 1.86 [17:09:44]line НДС 12% : 22.30 [17:09:44]line Наличными: 210.00 [17:09:44]line Безнал.: 0.00 [17:09:44]line Место: АЗС № 101 "Партнер Нефть" [17:09:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:09:44]line СНО: Общий режим [17:09:44]line Чек 195 31.10.2024 17:09 [17:09:44]line Смена: 557 ФФД: 1.0 [17:09:44]line ЗНМ: 0300000081 [17:09:44]line РНМ: 0000000000091631 [17:09:44]line Версия ККМ: 001 [17:09:44]line ФМ: 0000000000874669 [17:09:44]line ФД: 139718 [17:09:44]line ФПД: 264686163930561 [17:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T170944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139718&fm=264686163930561&tin=02508201610067®Number=0000000000091631&sum=21000 [17:09:44]line 0 [17:09:44]OFD Sender: Processing packet 139718 [packets to send 34, broken 33] [17:09:44]ProducePacketName [17:09:44]name=ofd_packets/00139718 [17:09:44]OFD Sender: To server: pG, [17:09:44]CommunicateWithHost lk.salyk.kg:30040 [17:09:44]ConnectInit lk.salyk.kg [17:09:44]written 0, free lines is 4095 [17:09:44]Connected sock=10 [17:09: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 27 01 00 00 31 A0 1F 01 10 29 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 30 30 36 33 39 36 30 35 33 38 31 37 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 48 41 50 4D 41 4E 20 47 4F 4C 44 20 53 53 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D8 B9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F0 BB 0C C7 2D C1 08 13 1B 42 76 AE D9 FF [17:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 78 07 47 00 0E 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 C6 21 02 00 F4 03 04 00 85 65 23 67 B6 04 01 00 00 DE 3F 9B 99 0F 55 CF 36 [17:09:45]CommunicateWithHost err = 0 [17:09:45]CheckOFDResponse [17:09:45]1017 (14) - 77093643461234 [17:09:45]1041 (16) - 0000000000874669 [17:09:45]1040 (4) - 139718 [17:09:45]1012 (4) - 31.10.2024 11:09 [17:09:45]1206 (1) - 0 [17:09:45]OFD Sender: Remove packet 139718 [17:09:45]ProducePacketName [17:09:45]name=ofd_packets/00139718 [17:09:45]NVStorageDeleteData [17:09:45]Write to MH i2c: 01 00 00 F8 14 0C [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 F8 14 00 00 00 00 00 15 0D 35 [17:09:45]RasterBufferAndPrint [17:09:45]line [17:09:45]line [17:09:45]line [17:09:45]line [17:09:45]line [17:09:45]written 0, free lines is 3353 [17:09:45]MH_Cut [17:09:45]Write to MH i2c: D1 01 00 FF 14 01 E5 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: D1 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: D1 01 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: D1 01 00 FF 14 00 E4 [17:09:45]Write to MH i2c: 01 00 00 00 15 15 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]OFD Sender: No OFD packet to send [17:09:45]*** Cut start [17:09:45]*** Partial cut [17:09:45]*** CUTSNS_PIN = 1 [17:09:45]*** CUTSNS_PIN = 0 [17:09:46]*** Brake cut motor [17:09:46]Read from MH i2c: 01 [17:09:46]MH_I2C_Read... [17:09:46]*** Stop cut motor [17:09:46]*** Cut end [17:09:46]Read from MH i2c: 01 07 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: 01 07 00 00 15 00 00 00 00 00 FF 0F 2A [17:09:46]process_action close_receipt done [17:09:46]requested_data is exist [17:09:46]produce_requested_data [17:09:46]requested_item fm.sn is exist - process it [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 11 00 00 [17:09:46]Write to MH i2c: E2 08 00 01 15 80 11 00 00 00 00 00 00 90 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 17 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 17 00 01 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EB [17:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:09:46]wFMCommunicate OK [17:09:46]requested_item fd.num is exist - process it [17:09:46]SAM_PROTO_GetFieldsCounters [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 13 00 00 [17:09:46]Write to MH i2c: E2 08 00 02 15 80 13 00 00 00 00 00 00 93 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 62 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 62 00 02 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 18 [17:09: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 C6 21 02 00 0E 04 04 00 2D 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 [17:09:46]wFMCommunicate OK [17:09:46]SAM_PROTO_GetFieldsCounters done [17:09:46]requested_item shift.num is exist - process it [17:09:46]requested_item shift.opened is exist - process it [17:09:46]req_shift_opened [17:09:46]FM_GetShiftState [17:09:46]SAM_PROTO_GetShiftState [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 13 01 00 [17:09:46]Write to MH i2c: E2 08 00 03 15 80 13 01 00 00 00 00 00 95 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 0E 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 0E 00 03 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BE [17:09:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:09:46]wFMCommunicate OK [17:09:46]SAM_PROTO_GetShiftState done [17:09:46]FM_GetShiftState done [17:09:46]req_shift_opened done [17:09:46]requested_item shift.open_date is exist - process it [17:09:46]req_shift_open_date [17:09:46]req_shift_open_date done [17:09:46]produce_requested_data done [17:09:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139718,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:09:46]process_action_free close_receipt [17:09:46]json_value_free [17:09:46]json_value_free done [17:09:46]process_json_proto returns [17:09:46]Send response to host [17:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139718,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:09:46]free response buf [17:09:46]execute_script done [17:09:46]execute_script returns [17:09:46]free content buf [17:09:46]Sock 9.Close socket [17:09:46]Sock 9.Thread stoped [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:46]accept exits with 7 [17:14:46]New connection [17:14:46]New thread 3066510692 created [17:14:46]Thread 3066654052 joined [17:14:46]Waiting for new connection... [17:14:46] Sock 7.Parse request [17:14:46]Sock 7.Check first char [17:14:46]Sock 7.First char is OK [17:14:46]request: POST /json_proto HTTP/1.0 [17:14:46]Method: POST [17:14:46]URL: /json_proto [17:14:46]Method is POST - this is cgi request [17:14:46]url: /json_proto [17:14:46]query_string will be loaded in cgi processing [17:14:46]execute_cgi json_proto POST (null) [17:14:46]execute_cgi path=json_proto method=POST [17:14:46]POST find Content-Length [17:14:46]Host: 172.17.50.196:8080 [17:14:46]Content-Length: 645 [17:14:46]Content-Type: application/json [17:14:46] [17:14:46]POST finish read [17:14:46]Found Content-Length = 645 [17:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335565", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:46]execute_script... [17:14: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)335565", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:46]POST & json_proto [17:14:46]process_json_proto [17:14:46]json parsed OK: [17:14:46]protocol is kg_v1.0 [17:14:46]action value=close_receipt [17:14:46]process_action close_receipt [17:14:46]cmd_close_receipt [17:14:46]MH_GetDate [17:14:46]Write to MH i2c: F0 00 00 04 15 08 [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: F0 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: F0 09 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: F0 09 00 04 15 00 08 BB 23 67 72 0D 1C 67 60 [17:14:46]GetLastDocTimeStamp 1730394584 [17:14:46]current date 1730394888 [17:14:46]FM_GetShiftState [17:14:46]SAM_PROTO_GetShiftState [17:14:46]wFMCommunicate request_size=4 [17:14:46]MH_SAM_APDU [17:14:46]CAPDU: 80 13 01 00 [17:14:46]Write to MH i2c: E2 08 00 05 15 80 13 01 00 00 00 00 00 97 [17:14:46]Write i2c OK [17:14:46]MH_I2C_Read... [17:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:46]Read from MH i2c: E2 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 0E 00 [17:14:46]MH_I2C_Read... [17:14:46]Read from MH i2c: E2 0E 00 05 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C0 [17:14:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:14:46]wFMCommunicate OK [17:14:46]SAM_PROTO_GetShiftState done [17:14:46]FM_GetShiftState done [17:14:46]opened in 1730332621 [17:14:46]opened+sec_in_day 1730419021 [17:14:46]quantity*price = 7900 [17:14:46]sum+1 = 7901 [17:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 196 31.10.2024 17:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139719 ФПД: 37171173890076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T171448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139719&fm=37171173890076&tin=02508201610067®Number=0000000000091631&sum=7900 0 [17:14:47]StoreToDocumentArchive [17:14:47]shift 557 fd 139719 [17:14:47]save to /storage/0557/doc_00139719 [17:14:47]save last doc name /storage/0557/doc_00139719 to /storage/kkm_last_doc_name [17:14:47]save OK [17:14:47]Clear old archive folders... [17:14:47]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:14:47]tlvbuf is 00A61CE0 [17:14:47]SAM_PROTO_ClearQueue [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 09 00 00 [17:14:47]Write to MH i2c: E2 08 00 12 15 80 09 00 00 00 00 00 00 99 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]SAM_PROTO_ClearQueue done [17:14:47]KKMCreateOFDPacket [17:14:47]OFDProtocolAddRootSTLVToBuf [17:14:47]FM_MakeSignedData [17:14:47]FM_MakeSignedData [17:14:47]SAM_PROTO_SignData [17:14:47]wFMCommunicate request_size=4 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 01 02 [17:14:47]Write to MH i2c: E2 08 00 13 15 80 0D 01 02 00 00 00 00 A1 [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:47]Read from MH i2c: E2 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 [17:14:47]MH_I2C_Read... [17:14:47]Read from MH i2c: E2 03 00 13 15 00 90 00 9C [17:14:47]RAPDU: 90 00 [17:14:47]wFMCommunicate OK [17:14:47]wFMCommunicate request_size=255 [17:14:47]MH_SAM_APDU [17:14:47]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 08 BB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [17:14:47]Write to MH i2c: E2 02 01 14 15 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 08 BB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 BF [17:14:47]Write i2c OK [17:14:47]MH_I2C_Read... [17:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:48]Read from MH i2c: E2 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 03 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 03 00 14 15 00 90 00 9D [17:14:48]RAPDU: 90 00 [17:14:48]wFMCommunicate OK [17:14:48]wFMCommunicate request_size=35 [17:14:48]MH_SAM_APDU [17:14:48]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 21 02 00 35 04 06 00 21 CE 96 9D 98 1C [17:14:48]Write to MH i2c: E2 26 00 15 15 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 21 02 00 35 04 06 00 21 CE 96 9D 98 1C 00 00 5F [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:48]Read from MH i2c: E2 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 03 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [17:14:48]RAPDU: 90 00 [17:14:48]wFMCommunicate OK [17:14:48]wFMCommunicate request_size=4 [17:14:48]MH_SAM_APDU [17:14:48]CAPDU: 80 0D 03 02 [17:14:48]Write to MH i2c: E2 08 00 16 15 80 0D 03 02 00 00 00 00 A6 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:48]Read from MH i2c: E2 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 0B 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 0B 00 16 15 00 DF 0F B5 1E C0 32 96 5E 90 00 4E [17:14:48]RAPDU: DF 0F B5 1E C0 32 96 5E 90 00 [17:14:48]wFMCommunicate OK [17:14:48]SAM_PROTO_SignData done [17:14:48]FM_MakeSignedData done [17:14:48]CreateOFDProtocolMessage [17:14:48]wFMCommunicate request_size=4 [17:14:48]MH_SAM_APDU [17:14:48]CAPDU: 80 11 00 00 [17:14:48]Write to MH i2c: E2 08 00 17 15 80 11 00 00 00 00 00 00 A6 [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:48]Read from MH i2c: E2 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 17 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: E2 17 00 17 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 01 [17:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:14:48]wFMCommunicate OK [17:14:48]CreateOFDProtocolMessage done [17:14:48]OFDSenderStorePacket 139719 [17:14:48]StoreOFDPacket docnum=139719 [17:14: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 28 01 00 00 9B 21 20 01 80 43 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 08 BB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 21 CE 96 9D 98 1C DF 0F B5 1E C0 32 96 5E [17:14:48]CheckFolder [17:14:48]dirname=/storage/ofd_packets [17:14:48]CheckFolder done [17:14:48]ProducePacketName [17:14:48]name=ofd_packets/00139719 [17:14:48]NVStorageSaveData ofd_packets/00139719 [17:14:48]File name is /storage/ofd_packets/00139719 [17:14:48]Write 326 bytes [17:14:48]NVStorageSaveData done [17:14:48]OFDSenderStorePacket done [17:14:48]KKMCreateOFDPacket done [17:14:48]NVStorageSaveData kkm_last_timestamp [17:14:48]File name is /storage/kkm_last_timestamp [17:14:48]Write 4 bytes [17:14:48]NVStorageSaveData done [17:14:48]ExternCall_PrintAddStr [17:14:48]wPrintStart [17:14:48]Write to MH i2c: 01 00 00 18 15 2D [17:14:48]Write i2c OK [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 [17:14:48]MH_I2C_Read... [17:14:48]Read from MH i2c: 01 07 00 18 15 00 00 00 00 00 FF 0F 42 [17:14:48]RasterBufferAndPrint [17:14:48]line Счет N : (3)335565 [17:14:48]line ИНН: 02508201610067 [17:14:48]line Контрольно-Кассовый Чек [17:14:48]line ПРОДАЖА [17:14:48]line Товар: 4700000310043 [17:14:48]line Вода Жалалабат 27 1л [17:14:48]line 1.000 * 79.00 [17:14:48]line = 79.00 [17:14:48]line НДС 12% НСП 1% [17:14:48]line > о реализуемом товаре [17:14:48]line ИТОГО: 79.00 [17:14:48]line НСП 1% : 0.70 [17:14:48]line НДС 12% : 8.39 [17:14:48]line Наличными: 79.00 [17:14:48]line Безнал.: 0.00 [17:14:48]line Место: АЗС № 101 "Партнер Нефть" [17:14:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:14:48]line СНО: Общий режим [17:14:48]line Чек 196 31.10.2024 17:14 [17:14:48]line Смена: 557 ФФД: 1.0 [17:14:48]line ЗНМ: 0300000081 [17:14:48]line РНМ: 0000000000091631 [17:14:48]line Версия ККМ: 001 [17:14:48]line ФМ: 0000000000874669 [17:14:48]line ФД: 139719 [17:14:48]line ФПД: 37171173890076 [17:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T171448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139719&fm=37171173890076&tin=02508201610067®Number=0000000000091631&sum=7900 [17:14:48]OFD Sender: Processing packet 139719 [packets to send 34, broken 33] [17:14:48]ProducePacketName [17:14:48]name=ofd_packets/00139719 [17:14:48]OFD Sender: To server: pG, [17:14:48]CommunicateWithHost lk.salyk.kg:30040 [17:14:48]ConnectInit lk.salyk.kg [17:14:48]line 0 [17:14:48]written 0, free lines is 4095 [17:14:48]Connected sock=10 [17:14: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 28 01 00 00 9B 21 20 01 80 43 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 08 BB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 21 CE 96 9D 98 1C DF 0F B5 1E C0 32 96 5E [17:14: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 C8 AA 47 00 3C 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 C7 21 02 00 F4 03 04 00 B5 66 23 67 B6 04 01 00 00 A5 0B 1B 66 C5 0F 3F 92 [17:14:48]CommunicateWithHost err = 0 [17:14:48]CheckOFDResponse [17:14:48]1017 (14) - 77093643461234 [17:14:48]1041 (16) - 0000000000874669 [17:14:48]1040 (4) - 139719 [17:14:48]1012 (4) - 31.10.2024 11:15 [17:14:48]1206 (1) - 0 [17:14:48]OFD Sender: Remove packet 139719 [17:14:48]ProducePacketName [17:14:48]name=ofd_packets/00139719 [17:14:48]NVStorageDeleteData [17:14:49]Write to MH i2c: 01 00 00 40 15 55 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: 01 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: 01 07 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: 01 07 00 40 15 00 00 00 00 00 0B 0D 74 [17:14:49]RasterBufferAndPrint [17:14:49]line [17:14:49]line [17:14:49]line [17:14:49]line [17:14:49]line [17:14:49]written 0, free lines is 3345 [17:14:49]MH_Cut [17:14:49]Write to MH i2c: D1 01 00 47 15 01 2E [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: D1 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: D1 01 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: D1 01 00 47 15 00 2D [17:14:49]Write to MH i2c: 01 00 00 48 15 5D [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]OFD Sender: No OFD packet to send [17:14:49]*** Cut start [17:14:49]*** Partial cut [17:14:49]*** CUTSNS_PIN = 1 [17:14:49]*** CUTSNS_PIN = 0 [17:14:49]*** Brake cut motor [17:14:50]Read from MH i2c: 01 [17:14:50]MH_I2C_Read... [17:14:50]*** Stop cut motor [17:14:50]*** Cut end [17:14:50]Read from MH i2c: 01 07 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: 01 07 00 48 15 00 00 00 00 00 FF 0F 72 [17:14:50]process_action close_receipt done [17:14:50]requested_data is exist [17:14:50]produce_requested_data [17:14:50]requested_item fm.sn is exist - process it [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 11 00 00 [17:14:50]Write to MH i2c: E2 08 00 49 15 80 11 00 00 00 00 00 00 D8 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 17 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 17 00 49 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 33 [17:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:14:50]wFMCommunicate OK [17:14:50]requested_item fd.num is exist - process it [17:14:50]SAM_PROTO_GetFieldsCounters [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 13 00 00 [17:14:50]Write to MH i2c: E2 08 00 4A 15 80 13 00 00 00 00 00 00 DB [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 62 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 62 00 4A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 64 [17:14: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 C7 21 02 00 0E 04 04 00 2D 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 [17:14:50]wFMCommunicate OK [17:14:50]SAM_PROTO_GetFieldsCounters done [17:14:50]requested_item shift.num is exist - process it [17:14:50]requested_item shift.opened is exist - process it [17:14:50]req_shift_opened [17:14:50]FM_GetShiftState [17:14:50]SAM_PROTO_GetShiftState [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 13 01 00 [17:14:50]Write to MH i2c: E2 08 00 4B 15 80 13 01 00 00 00 00 00 DD [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 0E 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 0E 00 4B 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 06 [17:14:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:14:50]wFMCommunicate OK [17:14:50]SAM_PROTO_GetShiftState done [17:14:50]FM_GetShiftState done [17:14:50]req_shift_opened done [17:14:50]requested_item shift.open_date is exist - process it [17:14:50]req_shift_open_date [17:14:50]req_shift_open_date done [17:14:50]produce_requested_data done [17:14:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139719,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:14:50]process_action_free close_receipt [17:14:50]json_value_free [17:14:50]json_value_free done [17:14:50]process_json_proto returns [17:14:50]Send response to host [17:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139719,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:14:50]free response buf [17:14:50]execute_script done [17:14:50]execute_script returns [17:14:50]free content buf [17:14:50]Sock 7.Close socket [17:14:50]Sock 7.Thread stoped [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:47]accept exits with 9 [17:24:47]New connection [17:24:47]New thread 3066654052 created [17:24:47]Thread 3066510692 joined [17:24:47]Waiting for new connection... [17:24:47] Sock 9.Parse request [17:24:47]Sock 9.Check first char [17:24:47]Sock 9.First char is OK [17:24:47]request: POST /json_proto HTTP/1.0 [17:24:47]Method: POST [17:24:47]URL: /json_proto [17:24:47]Method is POST - this is cgi request [17:24:47]url: /json_proto [17:24:47]query_string will be loaded in cgi processing [17:24:47]execute_cgi json_proto POST (null) [17:24:47]execute_cgi path=json_proto method=POST [17:24:47]POST find Content-Length [17:24:47]Host: 172.17.50.196:8080 [17:24:47]Content-Length: 875 [17:24:47]Content-Type: application/json [17:24:47] [17:24:47]POST finish read [17:24:47]Found Content-Length = 875 [17:24:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335566", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 2.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:47]execute_script... [17:24: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)335566", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 2.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:47]POST & json_proto [17:24:47]process_json_proto [17:24:47]json parsed OK: [17:24:47]protocol is kg_v1.0 [17:24:47]action value=close_receipt [17:24:47]process_action close_receipt [17:24:47]cmd_close_receipt [17:24:47]MH_GetDate [17:24:47]Write to MH i2c: F0 00 00 4C 15 50 [17:24:47]Write i2c OK [17:24:47]MH_I2C_Read... [17:24:47]Read from MH i2c: F0 [17:24:47]MH_I2C_Read... [17:24:47]Read from MH i2c: F0 09 00 [17:24:47]MH_I2C_Read... [17:24:47]Read from MH i2c: F0 09 00 4C 15 00 61 BD 23 67 72 0D 1C 67 03 [17:24:47]GetLastDocTimeStamp 1730394888 [17:24:47]current date 1730395489 [17:24:47]FM_GetShiftState [17:24:47]SAM_PROTO_GetShiftState [17:24:47]wFMCommunicate request_size=4 [17:24:47]MH_SAM_APDU [17:24:47]CAPDU: 80 13 01 00 [17:24:47]Write to MH i2c: E2 08 00 4D 15 80 13 01 00 00 00 00 00 DF [17:24:47]Write i2c OK [17:24:47]MH_I2C_Read... [17:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:47]Read from MH i2c: E2 [17:24:47]MH_I2C_Read... [17:24:47]Read from MH i2c: E2 0E 00 [17:24:47]MH_I2C_Read... [17:24:47]Read from MH i2c: E2 0E 00 4D 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 08 [17:24:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:24:47]wFMCommunicate OK [17:24:47]SAM_PROTO_GetShiftState done [17:24:47]FM_GetShiftState done [17:24:47]opened in 1730332621 [17:24:47]opened+sec_in_day 1730419021 [17:24:47]quantity*price = 4000 [17:24:47]sum+1 = 4001 [17:24:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 197 31.10.2024 17:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139720 ФПД: 20612280892057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T172449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139720&fm=20612280892057&tin=02508201610067®Number=0000000000091631&sum=4000 0 [17:24:48]StoreToDocumentArchive [17:24:48]shift 557 fd 139720 [17:24:48]save to /storage/0557/doc_00139720 [17:24:48]save last doc name /storage/0557/doc_00139720 to /storage/kkm_last_doc_name [17:24:48]save OK [17:24:48]Clear old archive folders... [17:24:48]ProcessDocumentItem done err = 0, tmpTLVsize=311 [17:24:48]tlvbuf is 00A83C70 [17:24:48]SAM_PROTO_ClearQueue [17:24:48]wFMCommunicate request_size=4 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 09 00 00 [17:24:48]Write to MH i2c: E2 08 00 5A 15 80 09 00 00 00 00 00 00 E1 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 03 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [17:24:48]RAPDU: 90 00 [17:24:48]wFMCommunicate OK [17:24:48]SAM_PROTO_ClearQueue done [17:24:48]KKMCreateOFDPacket [17:24:48]OFDProtocolAddRootSTLVToBuf [17:24:48]FM_MakeSignedData [17:24:48]FM_MakeSignedData [17:24:48]SAM_PROTO_SignData [17:24:48]wFMCommunicate request_size=4 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 0D 01 02 [17:24:48]Write to MH i2c: E2 08 00 5B 15 80 0D 01 02 00 00 00 00 E9 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:48]Read from MH i2c: E2 03 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [17:24:48]RAPDU: 90 00 [17:24:48]wFMCommunicate OK [17:24:48]wFMCommunicate request_size=255 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 61 BD 23 67 0E 04 04 00 2D 02 [17:24:48]Write to MH i2c: E2 02 01 5C 15 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 61 BD 23 67 0E 04 04 00 2D 02 00 00 FC [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=70 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 BF 2B AE 3A 99 [17:24:49]Write to MH i2c: E2 49 00 5D 15 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 BF 2B AE 3A 99 00 00 6E [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 5D 15 00 90 00 E6 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 03 02 [17:24:49]Write to MH i2c: E2 08 00 5E 15 80 0D 03 02 00 00 00 00 EE [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0B 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0B 00 5E 15 00 70 D0 CD F7 8E 1B 0E 14 90 00 BE [17:24:49]RAPDU: 70 D0 CD F7 8E 1B 0E 14 90 00 [17:24:49]wFMCommunicate OK [17:24:49]SAM_PROTO_SignData done [17:24:49]FM_MakeSignedData done [17:24:49]CreateOFDProtocolMessage [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 11 00 00 [17:24:49]Write to MH i2c: E2 08 00 5F 15 80 11 00 00 00 00 00 00 EE [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 17 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 17 00 5F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 49 [17:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:24:49]wFMCommunicate OK [17:24:49]CreateOFDProtocolMessage done [17:24:49]OFDSenderStorePacket 139720 [17:24:49]StoreOFDPacket docnum=139720 [17:24: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 4B 01 00 00 32 FC 43 01 96 18 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 61 BD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 BF 2B AE 3A 99 70 D0 CD F7 8E 1B 0E 14 [17:24:49]CheckFolder [17:24:49]dirname=/storage/ofd_packets [17:24:49]CheckFolder done [17:24:49]ProducePacketName [17:24:49]name=ofd_packets/00139720 [17:24:49]NVStorageSaveData ofd_packets/00139720 [17:24:49]File name is /storage/ofd_packets/00139720 [17:24:49]Write 361 bytes [17:24:49]NVStorageSaveData done [17:24:49]OFDSenderStorePacket done [17:24:49]KKMCreateOFDPacket done [17:24:49]NVStorageSaveData kkm_last_timestamp [17:24:49]File name is /storage/kkm_last_timestamp [17:24:49]Write 4 bytes [17:24:49]NVStorageSaveData done [17:24:49]ExternCall_PrintAddStr [17:24:49]wPrintStart [17:24:49]Write to MH i2c: 01 00 00 60 15 75 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 07 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 FF 0F 8A [17:24:49]RasterBufferAndPrint [17:24:49]line Счет N : (3)335566 [17:24:49]line ИНН: 02508201610067 [17:24:49]line Контрольно-Кассовый Чек [17:24:49]line ПРОДАЖА [17:24:49]line Товар: 4700003730039 [17:24:49]line Снек Возд пшеница Бадырак сладкая 30гр [17:24:49]line 2.000 * 20.00 [17:24:49]line = 40.00 [17:24:49]line НДС 12% НСП 1% [17:24:49]line > о реализуемом товаре [17:24:49]line ИТОГО: 40.00 [17:24:49]line НСП 1% : 0.35 [17:24:49]line НДС 12% : 4.25 [17:24:49]line Наличными: 0.00 [17:24:49]line Безнал.: 40.00 [17:24:49]line Место: АЗС № 101 "Партнер Нефть" [17:24:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:24:49]line СНО: Общий режим [17:24:49]line Чек 197 31.10.2024 17:24 [17:24:49]line Смена: 557 ФФД: 1.0 [17:24:49]line ЗНМ: 0300000081 [17:24:49]line РНМ: 0000000000091631 [17:24:49]line Версия ККМ: 001 [17:24:49]line Платежная система: Mbank [17:24:49]line ФМ: 0000000000874669 [17:24:49]line ФД: 139720 [17:24:49]line ФПД: 20612280892057 [17:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T172449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139720&fm=20612280892057&tin=02508201610067®Number=0000000000091631&sum=4000 [17:24:49]line 0 [17:24:49]OFD Sender: Processing packet 139720 [packets to send 34, broken 33] [17:24:49]ProducePacketName [17:24:49]name=ofd_packets/00139720 [17:24:49]OFD Sender: To server: pG, [17:24:49]CommunicateWithHost lk.salyk.kg:30040 [17:24:49]ConnectInit lk.salyk.kg [17:24:49]written 0, free lines is 4095 [17:24:49]Connected sock=10 [17:24: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 4B 01 00 00 32 FC 43 01 96 18 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 61 BD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 12 BF 2B AE 3A 99 70 D0 CD F7 8E 1B 0E 14 [17:24: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 C6 2C 47 00 E4 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 C8 21 02 00 F4 03 04 00 0E 69 23 67 B6 04 01 00 00 68 B5 28 D8 57 39 D2 62 [17:24:49]CommunicateWithHost err = 0 [17:24:49]CheckOFDResponse [17:24:49]1017 (14) - 77093643461234 [17:24:49]1041 (16) - 0000000000874669 [17:24:49]1040 (4) - 139720 [17:24:49]1012 (4) - 31.10.2024 11:25 [17:24:49]1206 (1) - 0 [17:24:49]OFD Sender: Remove packet 139720 [17:24:49]ProducePacketName [17:24:49]name=ofd_packets/00139720 [17:24:49]NVStorageDeleteData [17:24:50]Write to MH i2c: 01 00 00 8A 15 9F [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 8A 15 00 00 00 00 00 E4 0C 96 [17:24:50]RasterBufferAndPrint [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]written 0, free lines is 3306 [17:24:50]MH_Cut [17:24:50]Write to MH i2c: D1 01 00 91 15 01 78 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 91 15 00 77 [17:24:50]Write to MH i2c: 01 00 00 92 15 A7 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]OFD Sender: No OFD packet to send [17:24:50]*** Cut start [17:24:50]*** Partial cut [17:24:50]*** CUTSNS_PIN = 1 [17:24:50]*** CUTSNS_PIN = 0 [17:24:51]*** Brake cut motor [17:24:51]Read from MH i2c: 01 [17:24:51]MH_I2C_Read... [17:24:51]*** Stop cut motor [17:24:51]*** Cut end [17:24:51]Read from MH i2c: 01 07 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: 01 07 00 92 15 00 00 00 00 00 FF 0F BC [17:24:51]process_action close_receipt done [17:24:51]requested_data is exist [17:24:51]produce_requested_data [17:24:51]requested_item fm.sn is exist - process it [17:24:51]wFMCommunicate request_size=4 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 11 00 00 [17:24:51]Write to MH i2c: E2 08 00 93 15 80 11 00 00 00 00 00 00 22 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:51]Read from MH i2c: E2 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 17 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 17 00 93 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7D [17:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:24:51]wFMCommunicate OK [17:24:51]requested_item fd.num is exist - process it [17:24:51]SAM_PROTO_GetFieldsCounters [17:24:51]wFMCommunicate request_size=4 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 13 00 00 [17:24:51]Write to MH i2c: E2 08 00 94 15 80 13 00 00 00 00 00 00 25 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:51]Read from MH i2c: E2 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 62 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 62 00 94 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 B2 [17:24: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 C8 21 02 00 0E 04 04 00 2D 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 [17:24:51]wFMCommunicate OK [17:24:51]SAM_PROTO_GetFieldsCounters done [17:24:51]requested_item shift.num is exist - process it [17:24:51]requested_item shift.opened is exist - process it [17:24:51]req_shift_opened [17:24:51]FM_GetShiftState [17:24:51]SAM_PROTO_GetShiftState [17:24:51]wFMCommunicate request_size=4 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 13 01 00 [17:24:51]Write to MH i2c: E2 08 00 95 15 80 13 01 00 00 00 00 00 27 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:51]Read from MH i2c: E2 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 0E 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 0E 00 95 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 50 [17:24:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:24:51]wFMCommunicate OK [17:24:51]SAM_PROTO_GetShiftState done [17:24:51]FM_GetShiftState done [17:24:51]req_shift_opened done [17:24:51]requested_item shift.open_date is exist - process it [17:24:51]req_shift_open_date [17:24:51]req_shift_open_date done [17:24:51]produce_requested_data done [17:24:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139720,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:24:51]process_action_free close_receipt [17:24:51]json_value_free [17:24:51]json_value_free done [17:24:51]process_json_proto returns [17:24:51]Send response to host [17:24:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139720,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:24:51]free response buf [17:24:51]execute_script done [17:24:51]execute_script returns [17:24:51]free content buf [17:24:51]Sock 9.Close socket [17:24:51]Sock 9.Thread stoped [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:46]accept exits with 7 [17:34:46]New connection [17:34:46]New thread 3066510692 created [17:34:46]Thread 3066654052 joined [17:34:46]Waiting for new connection... [17:34:46] Sock 7.Parse request [17:34:46]Sock 7.Check first char [17:34:46]Sock 7.First char is OK [17:34:46]request: POST /json_proto HTTP/1.0 [17:34:46]Method: POST [17:34:46]URL: /json_proto [17:34:46]Method is POST - this is cgi request [17:34:46]url: /json_proto [17:34:46]query_string will be loaded in cgi processing [17:34:46]execute_cgi json_proto POST (null) [17:34:46]execute_cgi path=json_proto method=POST [17:34:46]POST find Content-Length [17:34:46]Host: 172.17.50.196:8080 [17:34:46]Content-Length: 999 [17:34:46]Content-Type: application/json [17:34:46] [17:34:46]POST finish read [17:34:46]Found Content-Length = 999 [17:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335567", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:46]execute_script... [17:34: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)335567", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:46]POST & json_proto [17:34:46]process_json_proto [17:34:46]json parsed OK: [17:34:46]protocol is kg_v1.0 [17:34:46]action value=close_receipt [17:34:46]process_action close_receipt [17:34:46]cmd_close_receipt [17:34:46]MH_GetDate [17:34:46]Write to MH i2c: F0 00 00 96 15 9A [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: F0 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: F0 09 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: F0 09 00 96 15 00 B8 BF 23 67 72 0D 1C 67 A6 [17:34:46]GetLastDocTimeStamp 1730395489 [17:34:46]current date 1730396088 [17:34:46]FM_GetShiftState [17:34:46]SAM_PROTO_GetShiftState [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 13 01 00 [17:34:46]Write to MH i2c: E2 08 00 97 15 80 13 01 00 00 00 00 00 29 [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0E 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0E 00 97 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 52 [17:34:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:34:46]wFMCommunicate OK [17:34:46]SAM_PROTO_GetShiftState done [17:34:46]FM_GetShiftState done [17:34:46]opened in 1730332621 [17:34:46]opened+sec_in_day 1730419021 [17:34:46]quantity*price = 9000 [17:34:46]sum+1 = 9001 [17:34:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 198 31.10.2024 17:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139721 ФПД: 97133325769274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T173448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139721&fm=97133325769274&tin=02508201610067®Number=0000000000091631&sum=15000 0 [17:34:48]StoreToDocumentArchive [17:34:48]shift 557 fd 139721 [17:34:48]save to /storage/0557/doc_00139721 [17:34:48]save last doc name /storage/0557/doc_00139721 to /storage/kkm_last_doc_name [17:34:48]save OK [17:34:48]Clear old archive folders... [17:34:48]ProcessDocumentItem done err = 0, tmpTLVsize=409 [17:34:48]tlvbuf is 00A17550 [17:34:48]SAM_PROTO_ClearQueue [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 09 00 00 [17:34:48]Write to MH i2c: E2 08 00 A4 15 80 09 00 00 00 00 00 00 2B [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_ClearQueue done [17:34:48]KKMCreateOFDPacket [17:34:48]OFDProtocolAddRootSTLVToBuf [17:34:48]FM_MakeSignedData [17:34:48]FM_MakeSignedData [17:34:48]SAM_PROTO_SignData [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 01 02 [17:34:48]Write to MH i2c: E2 08 00 A5 15 80 0D 01 02 00 00 00 00 33 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=255 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [17:34:48]Write to MH i2c: E2 02 01 A6 15 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 0A [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=168 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 02 02 A3 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 C6 00 00 00 F4 03 04 00 B8 BF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 58 57 9D 60 DA 3A [17:34:48]Write to MH i2c: E2 AB 00 A7 15 80 0D 02 02 A3 00 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 C6 00 00 00 F4 03 04 00 B8 BF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 58 57 9D 60 DA 3A 00 00 CC [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 03 02 [17:34:48]Write to MH i2c: E2 08 00 A8 15 80 0D 03 02 00 00 00 00 38 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0B 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0B 00 A8 15 00 F1 83 25 23 27 B8 95 F4 90 00 5D [17:34:48]RAPDU: F1 83 25 23 27 B8 95 F4 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_SignData done [17:34:48]FM_MakeSignedData done [17:34:48]CreateOFDProtocolMessage [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 11 00 00 [17:34:48]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 17 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 93 [17:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:34:48]wFMCommunicate OK [17:34:48]CreateOFDProtocolMessage done [17:34:48]OFDSenderStorePacket 139721 [17:34:48]StoreOFDPacket docnum=139721 [17:34: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 AD 01 00 00 7F 45 A5 01 B5 84 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C6 00 00 00 F4 03 04 00 B8 BF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 58 57 9D 60 DA 3A F1 83 25 23 27 B8 95 F4 [17:34:48]CheckFolder [17:34:48]dirname=/storage/ofd_packets [17:34:48]CheckFolder done [17:34:48]ProducePacketName [17:34:48]name=ofd_packets/00139721 [17:34:48]NVStorageSaveData ofd_packets/00139721 [17:34:48]File name is /storage/ofd_packets/00139721 [17:34:48]Write 459 bytes [17:34:48]NVStorageSaveData done [17:34:48]OFDSenderStorePacket done [17:34:48]KKMCreateOFDPacket done [17:34:48]NVStorageSaveData kkm_last_timestamp [17:34:48]File name is /storage/kkm_last_timestamp [17:34:48]Write 4 bytes [17:34:48]NVStorageSaveData done [17:34:48]ExternCall_PrintAddStr [17:34:48]wPrintStart [17:34:48]Write to MH i2c: 01 00 00 AA 15 BF [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 07 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 07 00 AA 15 00 00 00 00 00 FF 0F D4 [17:34:48]RasterBufferAndPrint [17:34:48]line Счет N : (3)335567 [17:34:48]line ИНН: 02508201610067 [17:34:48]line Контрольно-Кассовый Чек [17:34:49]line ПРОДАЖА [17:34:49]line Товар: 54492509 [17:34:49]line Напиток Кока-Кола 0,25л [17:34:49]line 1.000 * 90.00 [17:34:49]line = 90.00 [17:34:49]line НДС 12% НСП 1% [17:34:49]line > о реализуемом товаре [17:34:49]line Товар: 4700000160792 [17:34:49]line Снек Курут классический (круглый) [17:34:49]line 1.000 * 60.00 [17:34:49]line = 60.00 [17:34:49]line НДС 12% НСП 1% [17:34:49]line > о реализуемом товаре [17:34:49]line ИТОГО: 150.00 [17:34:49]line НСП 1% : 1.33 [17:34:49]line НДС 12% : 15.93 [17:34:49]line Наличными: 150.00 [17:34:49]line Безнал.: 0.00 [17:34:49]line Место: АЗС № 101 "Партнер Нефть" [17:34:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:34:49]line СНО: Общий режим [17:34:49]line Чек 198 31.10.2024 17:34 [17:34:49]line Смена: 557 ФФД: 1.0 [17:34:49]line ЗНМ: 0300000081 [17:34:49]line РНМ: 0000000000091631 [17:34:49]line Версия ККМ: 001 [17:34:49]line ФМ: 0000000000874669 [17:34:49]line ФД: 139721 [17:34:49]line ФПД: 97133325769274 [17:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T173448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139721&fm=97133325769274&tin=02508201610067®Number=0000000000091631&sum=15000 [17:34:49]line 0 [17:34:49]OFD Sender: Processing packet 139721 [packets to send 34, broken 33] [17:34:49]ProducePacketName [17:34:49]name=ofd_packets/00139721 [17:34:49]OFD Sender: To server: pG, [17:34:49]CommunicateWithHost lk.salyk.kg:30040 [17:34:49]ConnectInit lk.salyk.kg [17:34:49]written 0, free lines is 4095 [17:34:49]Connected sock=10 [17:34: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 AD 01 00 00 7F 45 A5 01 B5 84 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C6 00 00 00 F4 03 04 00 B8 BF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 58 57 9D 60 DA 3A F1 83 25 23 27 B8 95 F4 [17:34: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 3D 44 47 00 F7 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 C9 21 02 00 F4 03 04 00 65 6B 23 67 B6 04 01 00 00 A9 90 EE 84 28 93 7E 51 [17:34:49]CommunicateWithHost err = 0 [17:34:49]CheckOFDResponse [17:34:49]1017 (14) - 77093643461234 [17:34:49]1041 (16) - 0000000000874669 [17:34:49]1040 (4) - 139721 [17:34:49]1012 (4) - 31.10.2024 11:35 [17:34:49]1206 (1) - 0 [17:34:49]OFD Sender: Remove packet 139721 [17:34:49]ProducePacketName [17:34:49]name=ofd_packets/00139721 [17:34:49]NVStorageDeleteData [17:34:49]Write to MH i2c: 01 00 00 D9 15 EE [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 D9 15 00 00 00 00 00 B4 0C B5 [17:34:49]RasterBufferAndPrint [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]written 0, free lines is 3259 [17:34:49]MH_Cut [17:34:49]Write to MH i2c: D1 01 00 E0 15 01 C7 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 01 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 01 00 E0 15 00 C6 [17:34:49]Write to MH i2c: 01 00 00 E1 15 F6 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]OFD Sender: No OFD packet to send [17:34:50]*** Cut start [17:34:50]*** Partial cut [17:34:50]*** CUTSNS_PIN = 1 [17:34:50]*** CUTSNS_PIN = 0 [17:34:50]*** Brake cut motor [17:34:50]Read from MH i2c: 01 [17:34:50]MH_I2C_Read... [17:34:50]*** Stop cut motor [17:34:50]*** Cut end [17:34:50]Read from MH i2c: 01 07 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 E1 15 00 00 00 00 00 FF 0F 0B [17:34:50]process_action close_receipt done [17:34:50]requested_data is exist [17:34:50]produce_requested_data [17:34:50]requested_item fm.sn is exist - process it [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 11 00 00 [17:34:50]Write to MH i2c: E2 08 00 E2 15 80 11 00 00 00 00 00 00 71 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 E2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [17:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:34:50]wFMCommunicate OK [17:34:50]requested_item fd.num is exist - process it [17:34:50]SAM_PROTO_GetFieldsCounters [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 13 00 00 [17:34:50]Write to MH i2c: E2 08 00 E3 15 80 13 00 00 00 00 00 00 74 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 62 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 62 00 E3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 05 [17:34: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 C9 21 02 00 0E 04 04 00 2D 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 [17:34:51]wFMCommunicate OK [17:34:51]SAM_PROTO_GetFieldsCounters done [17:34:51]requested_item shift.num is exist - process it [17:34:51]requested_item shift.opened is exist - process it [17:34:51]req_shift_opened [17:34:51]FM_GetShiftState [17:34:51]SAM_PROTO_GetShiftState [17:34:51]wFMCommunicate request_size=4 [17:34:51]MH_SAM_APDU [17:34:51]CAPDU: 80 13 01 00 [17:34:51]Write to MH i2c: E2 08 00 E4 15 80 13 01 00 00 00 00 00 76 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:51]Read from MH i2c: E2 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 0E 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: E2 0E 00 E4 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9F [17:34:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:34:51]wFMCommunicate OK [17:34:51]SAM_PROTO_GetShiftState done [17:34:51]FM_GetShiftState done [17:34:51]req_shift_opened done [17:34:51]requested_item shift.open_date is exist - process it [17:34:51]req_shift_open_date [17:34:51]req_shift_open_date done [17:34:51]produce_requested_data done [17:34:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139721,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:34:51]process_action_free close_receipt [17:34:51]json_value_free [17:34:51]json_value_free done [17:34:51]process_json_proto returns [17:34:51]Send response to host [17:34:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139721,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:34:51]free response buf [17:34:51]execute_script done [17:34:51]execute_script returns [17:34:51]free content buf [17:34:51]Sock 7.Close socket [17:34:51]Sock 7.Thread stoped [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:47]accept exits with 9 [17:37:47]New connection [17:37:47]New thread 3066654052 created [17:37:47]Thread 3066510692 joined [17:37:47]Waiting for new connection... [17:37:47] Sock 9.Parse request [17:37:47]Sock 9.Check first char [17:37:47]Sock 9.First char is OK [17:37:47]request: POST /json_proto HTTP/1.0 [17:37:47]Method: POST [17:37:47]URL: /json_proto [17:37:47]Method is POST - this is cgi request [17:37:47]url: /json_proto [17:37:47]query_string will be loaded in cgi processing [17:37:47]execute_cgi json_proto POST (null) [17:37:47]execute_cgi path=json_proto method=POST [17:37:47]POST find Content-Length [17:37:47]Host: 172.17.50.196:8080 [17:37:47]Content-Length: 689 [17:37:47]Content-Type: application/json [17:37:47] [17:37:47]POST finish read [17:37:47]Found Content-Length = 689 [17:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095342", "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" : 12.960, "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" ] } } [17:37:47]execute_script... [17:37: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)1095342", "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" : 12.960, "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" ] } } [17:37:47]POST & json_proto [17:37:47]process_json_proto [17:37:47]json parsed OK: [17:37:47]protocol is kg_v1.0 [17:37:47]action value=close_receipt [17:37:47]process_action close_receipt [17:37:47]cmd_close_receipt [17:37:47]MH_GetDate [17:37:47]Write to MH i2c: F0 00 00 E5 15 E9 [17:37:47]Write i2c OK [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 09 00 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 09 00 E5 15 00 6C C0 23 67 72 0D 1C 67 AA [17:37:47]GetLastDocTimeStamp 1730396088 [17:37:47]current date 1730396268 [17:37:47]FM_GetShiftState [17:37:47]SAM_PROTO_GetShiftState [17:37:47]wFMCommunicate request_size=4 [17:37:47]MH_SAM_APDU [17:37:47]CAPDU: 80 13 01 00 [17:37:47]Write to MH i2c: E2 08 00 E6 15 80 13 01 00 00 00 00 00 78 [17:37:47]Write i2c OK [17:37:47]MH_I2C_Read... [17:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:47]Read from MH i2c: E2 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: E2 0E 00 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: E2 0E 00 E6 15 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [17:37:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:37:47]wFMCommunicate OK [17:37:47]SAM_PROTO_GetShiftState done [17:37:47]FM_GetShiftState done [17:37:47]opened in 1730332621 [17:37:47]opened+sec_in_day 1730419021 [17:37:47]quantity*price = 100051 [17:37:47]sum+1 = 100052 [17:37:47]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 СНО: Общий режим Чек 199 31.10.2024 17:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139722 ФПД: 273221845878251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T173748&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139722&fm=273221845878251&tin=02508201610067®Number=0000000000091631&sum=100000 [17:37:48]StoreToDocumentArchive [17:37:48]shift 557 fd 139722 [17:37:48]save to /storage/0557/doc_00139722 [17:37:48]save last doc name /storage/0557/doc_00139722 to /storage/kkm_last_doc_name [17:37:48]save OK [17:37:48]Clear old archive folders... [17:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:37:48]tlvbuf is B6E78580 [17:37:48]SAM_PROTO_ClearQueue [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 09 00 00 [17:37:48]Write to MH i2c: E2 08 00 F3 15 80 09 00 00 00 00 00 00 7A [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 F3 15 00 90 00 7C [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]SAM_PROTO_ClearQueue done [17:37:48]KKMCreateOFDPacket [17:37:48]OFDProtocolAddRootSTLVToBuf [17:37:48]FM_MakeSignedData [17:37:48]FM_MakeSignedData [17:37:48]SAM_PROTO_SignData [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 0D 01 02 [17:37:48]Write to MH i2c: E2 08 00 F4 15 80 0D 01 02 00 00 00 00 82 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]wFMCommunicate request_size=255 [17:37:48]MH_SAM_APDU [17:37: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 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 C7 00 00 00 F4 03 04 00 6C C0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 [17:37:48]Write to MH i2c: E2 02 01 F5 15 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 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 C7 00 00 00 F4 03 04 00 6C C0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 00 78 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]wFMCommunicate request_size=16 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F8 7E 6B 11 85 EB [17:37:48]Write to MH i2c: E2 13 00 F6 15 80 0D 02 02 0B 00 00 35 04 06 00 F8 7E 6B 11 85 EB 00 00 3C [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 0D 03 02 [17:37:48]Write to MH i2c: E2 08 00 F7 15 80 0D 03 02 00 00 00 00 87 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 0B 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 0B 00 F7 15 00 3B E7 41 1B CA 8C 75 B3 90 00 84 [17:37:48]RAPDU: 3B E7 41 1B CA 8C 75 B3 90 00 [17:37:48]wFMCommunicate OK [17:37:48]SAM_PROTO_SignData done [17:37:48]FM_MakeSignedData done [17:37:48]CreateOFDProtocolMessage [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 11 00 00 [17:37:48]Write to MH i2c: E2 08 00 F8 15 80 11 00 00 00 00 00 00 87 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 17 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 17 00 F8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E2 [17:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:37:48]wFMCommunicate OK [17:37:48]CreateOFDProtocolMessage done [17:37:48]OFDSenderStorePacket 139722 [17:37:48]StoreOFDPacket docnum=139722 [17:37: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 15 01 00 00 14 44 0D 01 27 57 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 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 C7 00 00 00 F4 03 04 00 6C C0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F8 7E 6B 11 85 EB 3B E7 41 1B CA 8C 75 B3 [17:37:48]CheckFolder [17:37:48]dirname=/storage/ofd_packets [17:37:48]CheckFolder done [17:37:48]ProducePacketName [17:37:48]name=ofd_packets/00139722 [17:37:48]NVStorageSaveData ofd_packets/00139722 [17:37:48]File name is /storage/ofd_packets/00139722 [17:37:48]Write 307 bytes [17:37:48]NVStorageSaveData done [17:37:48]OFDSenderStorePacket done [17:37:48]KKMCreateOFDPacket done [17:37:48]NVStorageSaveData kkm_last_timestamp [17:37:48]File name is /storage/kkm_last_timestamp [17:37:48]Write 4 bytes [17:37:48]NVStorageSaveData done [17:37:48]ExternCall_PrintAddStr [17:37:48]wPrintStart [17:37:48]Write to MH i2c: 01 00 00 F9 15 0E [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: 01 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: 01 07 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: 01 07 00 F9 15 00 00 00 00 00 FF 0F 23 [17:37:48]RasterBufferAndPrint [17:37:48]line Счет N : (1)1095342 [17:37:48]line ИНН: 02508201610067 [17:37:48]line Контрольно-Кассовый Чек [17:37:48]line ПРОДАЖА [17:37:48]line ТРК (МРК, ГНК) : 22 [17:37:48]line Товар: 2710194800 [17:37:48]line D-ENERGY Дт-К-2 [17:37:48]line 12.960 * 77.20 [17:37:48]line = 1000.51 [17:37:48]line НДС 12% НСП 1% [17:37:48]line > о реализуемом товаре [17:37:48]line ОКРУГЛЕНИЕ: -0.51 [17:37:48]line ИТОГО: 1000.00 [17:37:48]line Внесено: 1000.00 [17:37:48]line СДАЧА: 0.00 [17:37:48]line НСП 1% : 8.85 [17:37:48]line НДС 12% : 106.25 [17:37:48]line Наличными: 1000.00 [17:37:48]line Безнал.: 0.00 [17:37:48]line Место: АЗС № 101 "Партнер Нефть" [17:37:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:37:48]line СНО: Общий режим [17:37:48]line Чек 199 31.10.2024 17:37 [17:37:48]line Смена: 557 ФФД: 1.0 [17:37:48]line ЗНМ: 0300000081 [17:37:48]line РНМ: 0000000000091631 [17:37:48]line Версия ККМ: 001 [17:37:48]line ФМ: 0000000000874669 [17:37:48]line ФД: 139722 [17:37:48]line ФПД: 273221845878251 [17:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T173748&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139722&fm=273221845878251&tin=02508201610067®Number=0000000000091631&sum=100000 [17:37:49]OFD Sender: Processing packet 139722 [packets to send 34, broken 33] [17:37:49]ProducePacketName [17:37:49]name=ofd_packets/00139722 [17:37:49]OFD Sender: To server: pG, [17:37:49]CommunicateWithHost lk.salyk.kg:30040 [17:37:49]ConnectInit lk.salyk.kg [17:37:49]written 0, free lines is 4095 [17:37:49]Connected sock=10 [17:37: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 14 44 0D 01 27 57 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 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 C7 00 00 00 F4 03 04 00 6C C0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 F8 7E 6B 11 85 EB 3B E7 41 1B CA 8C 75 B3 [17:37: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 1F 56 47 00 39 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 CA 21 02 00 F4 03 04 00 1A 6C 23 67 B6 04 01 00 00 FB 78 C0 BE 19 07 9E BA [17:37:49]CommunicateWithHost err = 0 [17:37:49]CheckOFDResponse [17:37:49]1017 (14) - 77093643461234 [17:37:49]1041 (16) - 0000000000874669 [17:37:49]1040 (4) - 139722 [17:37:49]1012 (4) - 31.10.2024 11:38 [17:37:49]1206 (1) - 0 [17:37:49]OFD Sender: Remove packet 139722 [17:37:49]ProducePacketName [17:37:49]name=ofd_packets/00139722 [17:37:49]NVStorageDeleteData [17:37:49]Write to MH i2c: 01 00 00 24 16 3A [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 E6 0C 33 [17:37:49]RasterBufferAndPrint [17:37:49]line [17:37:49]line [17:37:49]line [17:37:49]line [17:37:49]line [17:37:49]written 0, free lines is 3308 [17:37:49]MH_Cut [17:37:49]Write to MH i2c: D1 01 00 2B 16 01 13 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: D1 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: D1 01 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: D1 01 00 2B 16 00 12 [17:37:49]Write to MH i2c: 01 00 00 2C 16 42 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:50]OFD Sender: No OFD packet to send [17:37:50]*** Cut start [17:37:50]*** Partial cut [17:37:50]*** CUTSNS_PIN = 1 [17:37:50]*** CUTSNS_PIN = 0 [17:37:50]*** Brake cut motor [17:37:50]Read from MH i2c: 01 [17:37:50]MH_I2C_Read... [17:37:50]*** Stop cut motor [17:37:50]*** Cut end [17:37:50]Read from MH i2c: 01 07 00 [17:37:50]MH_I2C_Read... [17:37:50]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 FF 0F 57 [17:37:50]process_action close_receipt done [17:37:50]requested_data is exist [17:37:50]produce_requested_data [17:37:50]requested_item fm.sn is exist - process it [17:37:50]wFMCommunicate request_size=4 [17:37:50]MH_SAM_APDU [17:37:50]CAPDU: 80 11 00 00 [17:37:50]Write to MH i2c: E2 08 00 2D 16 80 11 00 00 00 00 00 00 BD [17:37:50]Write i2c OK [17:37:50]MH_I2C_Read... [17:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:51]Read from MH i2c: E2 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 17 00 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 17 00 2D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [17:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:37:51]wFMCommunicate OK [17:37:51]requested_item fd.num is exist - process it [17:37:51]SAM_PROTO_GetFieldsCounters [17:37:51]wFMCommunicate request_size=4 [17:37:51]MH_SAM_APDU [17:37:51]CAPDU: 80 13 00 00 [17:37:51]Write to MH i2c: E2 08 00 2E 16 80 13 00 00 00 00 00 00 C0 [17:37:51]Write i2c OK [17:37:51]MH_I2C_Read... [17:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:51]Read from MH i2c: E2 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 62 00 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 62 00 2E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 55 [17:37: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 CA 21 02 00 0E 04 04 00 2D 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 [17:37:51]wFMCommunicate OK [17:37:51]SAM_PROTO_GetFieldsCounters done [17:37:51]requested_item shift.num is exist - process it [17:37:51]requested_item shift.opened is exist - process it [17:37:51]req_shift_opened [17:37:51]FM_GetShiftState [17:37:51]SAM_PROTO_GetShiftState [17:37:51]wFMCommunicate request_size=4 [17:37:51]MH_SAM_APDU [17:37:51]CAPDU: 80 13 01 00 [17:37:51]Write to MH i2c: E2 08 00 2F 16 80 13 01 00 00 00 00 00 C2 [17:37:51]Write i2c OK [17:37:51]MH_I2C_Read... [17:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:51]Read from MH i2c: E2 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 0E 00 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 0E 00 2F 16 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EB [17:37:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:37:51]wFMCommunicate OK [17:37:51]SAM_PROTO_GetShiftState done [17:37:51]FM_GetShiftState done [17:37:51]req_shift_opened done [17:37:51]requested_item shift.open_date is exist - process it [17:37:51]req_shift_open_date [17:37:51]req_shift_open_date done [17:37:51]produce_requested_data done [17:37:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139722,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:37:51]process_action_free close_receipt [17:37:51]json_value_free [17:37:51]json_value_free done [17:37:51]process_json_proto returns [17:37:51]Send response to host [17:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139722,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:37:51]free response buf [17:37:51]execute_script done [17:37:51]execute_script returns [17:37:51]free content buf [17:37:51]Sock 9.Close socket [17:37:51]Sock 9.Thread stoped [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:47]accept exits with 7 [17:43:47]New connection [17:43:47]New thread 3066510692 created [17:43:47]Thread 3066654052 joined [17:43:47]Waiting for new connection... [17:43:47] Sock 7.Parse request [17:43:47]Sock 7.Check first char [17:43:47]Sock 7.First char is OK [17:43:47]request: POST /json_proto HTTP/1.0 [17:43:47]Method: POST [17:43:47]URL: /json_proto [17:43:47]Method is POST - this is cgi request [17:43:47]url: /json_proto [17:43:47]query_string will be loaded in cgi processing [17:43:47]execute_cgi json_proto POST (null) [17:43:47]execute_cgi path=json_proto method=POST [17:43:47]POST find Content-Length [17:43:47]Host: 172.17.50.196:8080 [17:43:47]Content-Length: 688 [17:43:47]Content-Type: application/json [17:43:47] [17:43:47]POST finish read [17:43:47]Found Content-Length = 688 [17:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095351", "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" : 34.120, "sum" : 2599.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2599.00, "payments": [ { "type": 0, "sum" : 2599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:47]execute_script... [17:43: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)1095351", "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" : 34.120, "sum" : 2599.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2599.00, "payments": [ { "type": 0, "sum" : 2599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:47]POST & json_proto [17:43:47]process_json_proto [17:43:47]json parsed OK: [17:43:47]protocol is kg_v1.0 [17:43:47]action value=close_receipt [17:43:47]process_action close_receipt [17:43:47]cmd_close_receipt [17:43:47]MH_GetDate [17:43:47]Write to MH i2c: F0 00 00 30 16 35 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: F0 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: F0 09 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: F0 09 00 30 16 00 D4 C1 23 67 72 0D 1C 67 5F [17:43:47]GetLastDocTimeStamp 1730396268 [17:43:47]current date 1730396628 [17:43:47]FM_GetShiftState [17:43:47]SAM_PROTO_GetShiftState [17:43:47]wFMCommunicate request_size=4 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 13 01 00 [17:43:47]Write to MH i2c: E2 08 00 31 16 80 13 01 00 00 00 00 00 C4 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 0E 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 0E 00 31 16 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 ED [17:43:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:43:47]wFMCommunicate OK [17:43:47]SAM_PROTO_GetShiftState done [17:43:47]FM_GetShiftState done [17:43:47]opened in 1730332621 [17:43:47]opened+sec_in_day 1730419021 [17:43:47]quantity*price = 259994 [17:43:47]sum+1 = 259995 [17:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 2599.00 Внесено: 3000.00 СДАЧА: 401.00 НСП 1% : 23.01 НДС 12% : 276.10 Наличными: 2599.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 200 31.10.2024 17:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139723 ФПД: 143502817325442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174348&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139723&fm=143502817325442&tin=02508201610067®Number=0000000000091631&sum=259900 [17:43:48]StoreToDocumentArchive [17:43:48]shift 557 fd 139723 [17:43:48]save to /storage/0557/doc_00139723 [17:43:48]save last doc name /storage/0557/doc_00139723 to /storage/kkm_last_doc_name [17:43:48]save OK [17:43:48]Clear old archive folders... [17:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:43:48]tlvbuf is B6E78DB0 [17:43:48]SAM_PROTO_ClearQueue [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 09 00 00 [17:43:48]Write to MH i2c: E2 08 00 3E 16 80 09 00 00 00 00 00 00 C6 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 3E 16 00 90 00 C8 [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_ClearQueue done [17:43:48]KKMCreateOFDPacket [17:43:48]OFDProtocolAddRootSTLVToBuf [17:43:48]FM_MakeSignedData [17:43:48]FM_MakeSignedData [17:43:48]SAM_PROTO_SignData [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 01 02 [17:43:48]Write to MH i2c: E2 08 00 3F 16 80 0D 01 02 00 00 00 00 CE [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=255 [17:43:48]MH_SAM_APDU [17:43:48]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 48 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 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 D4 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [17:43:48]Write to MH i2c: E2 02 01 40 16 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 48 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 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 D4 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 0F [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=11 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 02 02 06 82 83 DA 73 71 82 [17:43:48]Write to MH i2c: E2 0E 00 41 16 80 0D 02 02 06 00 82 83 DA 73 71 82 00 00 22 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 03 02 [17:43:48]Write to MH i2c: E2 08 00 42 16 80 0D 03 02 00 00 00 00 D3 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 42 16 00 62 3C 9D FE 95 AB E6 AD 90 00 E0 [17:43:48]RAPDU: 62 3C 9D FE 95 AB E6 AD 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_SignData done [17:43:48]FM_MakeSignedData done [17:43:48]CreateOFDProtocolMessage [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 11 00 00 [17:43:48]Write to MH i2c: E2 08 00 43 16 80 11 00 00 00 00 00 00 D3 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 43 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [17:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:43:48]wFMCommunicate OK [17:43:48]CreateOFDProtocolMessage done [17:43:48]OFDSenderStorePacket 139723 [17:43:48]StoreOFDPacket docnum=139723 [17:43: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 10 01 00 00 86 FB 08 01 C0 48 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 48 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 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 D4 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 82 83 DA 73 71 82 62 3C 9D FE 95 AB E6 AD [17:43:48]CheckFolder [17:43:48]dirname=/storage/ofd_packets [17:43:48]CheckFolder done [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00139723 [17:43:48]NVStorageSaveData ofd_packets/00139723 [17:43:48]File name is /storage/ofd_packets/00139723 [17:43:48]Write 302 bytes [17:43:48]NVStorageSaveData done [17:43:48]OFDSenderStorePacket done [17:43:48]KKMCreateOFDPacket done [17:43:48]NVStorageSaveData kkm_last_timestamp [17:43:48]File name is /storage/kkm_last_timestamp [17:43:48]Write 4 bytes [17:43:48]NVStorageSaveData done [17:43:48]ExternCall_PrintAddStr [17:43:48]wPrintStart [17:43:48]Write to MH i2c: 01 00 00 44 16 5A [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 44 16 00 00 00 00 00 FF 0F 6F [17:43:48]RasterBufferAndPrint [17:43:48]line Счет N : (1)1095351 [17:43:48]line ИНН: 02508201610067 [17:43:48]line Контрольно-Кассовый Чек [17:43:48]line ПРОДАЖА [17:43:48]line ТРК (МРК, ГНК) : 11 [17:43:48]line Товар: 2710194210 [17:43:48]line ДТ(л)-К-2 [17:43:48]line 34.120 * 76.20 [17:43:48]line = 2599.94 [17:43:48]line НДС 12% НСП 1% [17:43:48]line > о реализуемом товаре [17:43:48]line ОКРУГЛЕНИЕ: -0.94 [17:43:48]line ИТОГО: 2599.00 [17:43:48]line Внесено: 3000.00 [17:43:48]line СДАЧА: 401.00 [17:43:48]line НСП 1% : 23.01 [17:43:48]line НДС 12% : 276.10 [17:43:48]line Наличными: 2599.00 [17:43:48]line Безнал.: 0.00 [17:43:48]line Место: АЗС № 101 "Партнер Нефть" [17:43:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:43:48]line СНО: Общий режим [17:43:48]line Чек 200 31.10.2024 17:43 [17:43:48]line Смена: 557 ФФД: 1.0 [17:43:48]line ЗНМ: 0300000081 [17:43:48]line РНМ: 0000000000091631 [17:43:48]line Версия ККМ: 001 [17:43:48]line ФМ: 0000000000874669 [17:43:48]line ФД: 139723 [17:43:48]line ФПД: 143502817325442 [17:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174348&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139723&fm=143502817325442&tin=02508201610067®Number=0000000000091631&sum=259900 [17:43:49]OFD Sender: Processing packet 139723 [packets to send 34, broken 33] [17:43:49]ProducePacketName [17:43:49]name=ofd_packets/00139723 [17:43:49]OFD Sender: To server: pG, [17:43:49]CommunicateWithHost lk.salyk.kg:30040 [17:43:49]ConnectInit lk.salyk.kg [17:43:49]written 0, free lines is 4095 [17:43:49]Connected sock=10 [17:43: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 10 01 00 00 86 FB 08 01 C0 48 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 48 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 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 D4 C1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 82 83 DA 73 71 82 62 3C 9D FE 95 AB E6 AD [17:43: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 FE A6 47 00 77 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 21 02 00 F4 03 04 00 81 6D 23 67 B6 04 01 00 00 A0 0B 37 AD CB 57 04 A2 [17:43:49]CommunicateWithHost err = 0 [17:43:49]CheckOFDResponse [17:43:49]1017 (14) - 77093643461234 [17:43:49]1041 (16) - 0000000000874669 [17:43:49]1040 (4) - 139723 [17:43:49]1012 (4) - 31.10.2024 11:44 [17:43:49]1206 (1) - 0 [17:43:49]OFD Sender: Remove packet 139723 [17:43:49]ProducePacketName [17:43:49]name=ofd_packets/00139723 [17:43:49]NVStorageDeleteData [17:43:49]Write to MH i2c: 01 00 00 6F 16 85 [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 07 00 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 07 00 6F 16 00 00 00 00 00 E6 0C 7E [17:43:49]RasterBufferAndPrint [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]written 0, free lines is 3309 [17:43:49]MH_Cut [17:43:49]Write to MH i2c: D1 01 00 76 16 01 5E [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 01 00 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 01 00 76 16 00 5D [17:43:49]Write to MH i2c: 01 00 00 77 16 8D [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]OFD Sender: No OFD packet to send [17:43:50]*** Cut start [17:43:50]*** Partial cut [17:43:50]*** CUTSNS_PIN = 1 [17:43:50]*** CUTSNS_PIN = 0 [17:43:50]*** Brake cut motor [17:43:50]Read from MH i2c: 01 [17:43:50]MH_I2C_Read... [17:43:50]*** Stop cut motor [17:43:50]*** Cut end [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 77 16 00 00 00 00 00 FF 0F A2 [17:43:50]process_action close_receipt done [17:43:50]requested_data is exist [17:43:50]produce_requested_data [17:43:50]requested_item fm.sn is exist - process it [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 11 00 00 [17:43:50]Write to MH i2c: E2 08 00 78 16 80 11 00 00 00 00 00 00 08 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 78 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [17:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:43:50]wFMCommunicate OK [17:43:50]requested_item fd.num is exist - process it [17:43:50]SAM_PROTO_GetFieldsCounters [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 13 00 00 [17:43:50]Write to MH i2c: E2 08 00 79 16 80 13 00 00 00 00 00 00 0B [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:51]Read from MH i2c: E2 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 62 00 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 62 00 79 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 A4 [17:43: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 CB 21 02 00 0E 04 04 00 2D 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 [17:43:51]wFMCommunicate OK [17:43:51]SAM_PROTO_GetFieldsCounters done [17:43:51]requested_item shift.num is exist - process it [17:43:51]requested_item shift.opened is exist - process it [17:43:51]req_shift_opened [17:43:51]FM_GetShiftState [17:43:51]SAM_PROTO_GetShiftState [17:43:51]wFMCommunicate request_size=4 [17:43:51]MH_SAM_APDU [17:43:51]CAPDU: 80 13 01 00 [17:43:51]Write to MH i2c: E2 08 00 7A 16 80 13 01 00 00 00 00 00 0D [17:43:51]Write i2c OK [17:43:51]MH_I2C_Read... [17:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:51]Read from MH i2c: E2 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 0E 00 [17:43:51]MH_I2C_Read... [17:43:51]Read from MH i2c: E2 0E 00 7A 16 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 36 [17:43:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:43:51]wFMCommunicate OK [17:43:51]SAM_PROTO_GetShiftState done [17:43:51]FM_GetShiftState done [17:43:51]req_shift_opened done [17:43:51]requested_item shift.open_date is exist - process it [17:43:51]req_shift_open_date [17:43:51]req_shift_open_date done [17:43:51]produce_requested_data done [17:43:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139723,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:43:51]process_action_free close_receipt [17:43:51]json_value_free [17:43:51]json_value_free done [17:43:51]process_json_proto returns [17:43:51]Send response to host [17:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139723,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:43:51]free response buf [17:43:51]execute_script done [17:43:51]execute_script returns [17:43:51]free content buf [17:43:51]Sock 7.Close socket [17:43:51]Sock 7.Thread stoped [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:10]accept exits with 9 [17:45:10]New connection [17:45:10]New thread 3066654052 created [17:45:10]Thread 3066510692 joined [17:45:10]Waiting for new connection... [17:45:10] Sock 9.Parse request [17:45:10]Sock 9.Check first char [17:45:10]Sock 9.First char is OK [17:45:10]request: POST /json_proto HTTP/1.0 [17:45:10]Method: POST [17:45:10]URL: /json_proto [17:45:10]Method is POST - this is cgi request [17:45:10]url: /json_proto [17:45:10]query_string will be loaded in cgi processing [17:45:10]execute_cgi json_proto POST (null) [17:45:10]execute_cgi path=json_proto method=POST [17:45:10]POST find Content-Length [17:45:10]Host: 172.17.50.196:8080 [17:45:10]Content-Length: 886 [17:45:10]Content-Type: application/json [17:45:10] [17:45:10]POST finish read [17:45:10]Found Content-Length = 886 [17:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335568", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:10]execute_script... [17:45:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335568", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:10]POST & json_proto [17:45:10]process_json_proto [17:45:10]json parsed OK: [17:45:10]protocol is kg_v1.0 [17:45:10]action value=close_receipt [17:45:10]process_action close_receipt [17:45:10]cmd_close_receipt [17:45:10]MH_GetDate [17:45:10]Write to MH i2c: F0 00 00 7B 16 80 [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: F0 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: F0 09 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: F0 09 00 7B 16 00 28 C2 23 67 72 0D 1C 67 FF [17:45:10]GetLastDocTimeStamp 1730396628 [17:45:10]current date 1730396712 [17:45:10]FM_GetShiftState [17:45:10]SAM_PROTO_GetShiftState [17:45:10]wFMCommunicate request_size=4 [17:45:10]MH_SAM_APDU [17:45:10]CAPDU: 80 13 01 00 [17:45:10]Write to MH i2c: E2 08 00 7C 16 80 13 01 00 00 00 00 00 0F [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:10]Read from MH i2c: E2 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 0E 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 0E 00 7C 16 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 38 [17:45:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:45:10]wFMCommunicate OK [17:45:10]SAM_PROTO_GetShiftState done [17:45:10]FM_GetShiftState done [17:45:10]opened in 1730332621 [17:45:10]opened+sec_in_day 1730419021 [17:45:10]quantity*price = 7500 [17:45:10]sum+1 = 7501 [17:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 201 31.10.2024 17:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874669 ФД: 139724 ФПД: 226057250485572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174512&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139724&fm=226057250485572&tin=02508201610067®Number=0000000000091631&sum=7500 0 [17:45:11]StoreToDocumentArchive [17:45:11]shift 557 fd 139724 [17:45:11]save to /storage/0557/doc_00139724 [17:45:11]save last doc name /storage/0557/doc_00139724 to /storage/kkm_last_doc_name [17:45:11]save OK [17:45:11]Clear old archive folders... [17:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=304 [17:45:11]tlvbuf is B6E5FD30 [17:45:11]SAM_PROTO_ClearQueue [17:45:11]wFMCommunicate request_size=4 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 09 00 00 [17:45:11]Write to MH i2c: E2 08 00 89 16 80 09 00 00 00 00 00 00 11 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:11]Read from MH i2c: E2 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 89 16 00 90 00 13 [17:45:11]RAPDU: 90 00 [17:45:11]wFMCommunicate OK [17:45:11]SAM_PROTO_ClearQueue done [17:45:11]KKMCreateOFDPacket [17:45:11]OFDProtocolAddRootSTLVToBuf [17:45:11]FM_MakeSignedData [17:45:11]FM_MakeSignedData [17:45:11]SAM_PROTO_SignData [17:45:11]wFMCommunicate request_size=4 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 0D 01 02 [17:45:11]Write to MH i2c: E2 08 00 8A 16 80 0D 01 02 00 00 00 00 19 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [17:45:12]RAPDU: 90 00 [17:45:12]wFMCommunicate OK [17:45:12]wFMCommunicate request_size=255 [17:45:12]MH_SAM_APDU [17:45:12]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 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 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 C9 00 00 00 F4 03 04 00 28 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 [17:45:12]Write to MH i2c: E2 02 01 8B 16 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 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 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 C9 00 00 00 F4 03 04 00 28 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 00 00 49 [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [17:45:12]RAPDU: 90 00 [17:45:12]wFMCommunicate OK [17:45:12]wFMCommunicate request_size=63 [17:45:12]MH_SAM_APDU [17:45: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 CC 21 02 00 35 04 06 00 CD 99 0E 1D 35 44 [17:45:12]Write to MH i2c: E2 42 00 8C 16 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 CC 21 02 00 35 04 06 00 CD 99 0E 1D 35 44 00 00 62 [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 8C 16 00 90 00 16 [17:45:12]RAPDU: 90 00 [17:45:12]wFMCommunicate OK [17:45:12]wFMCommunicate request_size=4 [17:45:12]MH_SAM_APDU [17:45:12]CAPDU: 80 0D 03 02 [17:45:12]Write to MH i2c: E2 08 00 8D 16 80 0D 03 02 00 00 00 00 1E [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 0B 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 0B 00 8D 16 00 E2 88 64 B5 1A DC DA C7 90 00 39 [17:45:12]RAPDU: E2 88 64 B5 1A DC DA C7 90 00 [17:45:12]wFMCommunicate OK [17:45:12]SAM_PROTO_SignData done [17:45:12]FM_MakeSignedData done [17:45:12]CreateOFDProtocolMessage [17:45:12]wFMCommunicate request_size=4 [17:45:12]MH_SAM_APDU [17:45:12]CAPDU: 80 11 00 00 [17:45:12]Write to MH i2c: E2 08 00 8E 16 80 11 00 00 00 00 00 00 1E [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 17 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 17 00 8E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [17:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:45:12]wFMCommunicate OK [17:45:12]CreateOFDProtocolMessage done [17:45:12]OFDSenderStorePacket 139724 [17:45:12]StoreOFDPacket docnum=139724 [17:45: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 66 7A 3C 01 A5 3C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 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 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 C9 00 00 00 F4 03 04 00 28 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CD 99 0E 1D 35 44 E2 88 64 B5 1A DC DA C7 [17:45:12]CheckFolder [17:45:12]dirname=/storage/ofd_packets [17:45:12]CheckFolder done [17:45:12]ProducePacketName [17:45:12]name=ofd_packets/00139724 [17:45:12]NVStorageSaveData ofd_packets/00139724 [17:45:12]File name is /storage/ofd_packets/00139724 [17:45:12]Write 354 bytes [17:45:12]NVStorageSaveData done [17:45:12]OFDSenderStorePacket done [17:45:12]KKMCreateOFDPacket done [17:45:12]NVStorageSaveData kkm_last_timestamp [17:45:12]File name is /storage/kkm_last_timestamp [17:45:12]Write 4 bytes [17:45:12]NVStorageSaveData done [17:45:12]ExternCall_PrintAddStr [17:45:12]wPrintStart [17:45:12]Write to MH i2c: 01 00 00 8F 16 A5 [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 07 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 07 00 8F 16 00 00 00 00 00 FF 0F BA [17:45:12]RasterBufferAndPrint [17:45:12]line Счет N : (3)335568 [17:45:12]line ИНН: 02508201610067 [17:45:12]line Контрольно-Кассовый Чек [17:45:12]line ПРОДАЖА [17:45:12]line Товар: 4870112003956 [17:45:12]line Шок батончик ALBENI SUPER Альбени Супер [17:45:12]line 1.000 * 75.00 [17:45:12]line = 75.00 [17:45:12]line НДС 12% НСП 1% [17:45:12]line > о реализуемом товаре [17:45:12]line ИТОГО: 75.00 [17:45:12]line НСП 1% : 0.66 [17:45:12]line НДС 12% : 7.96 [17:45:12]line Наличными: 0.00 [17:45:12]line Безнал.: 75.00 [17:45:12]line Место: АЗС № 101 "Партнер Нефть" [17:45:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:45:12]line СНО: Общий режим [17:45:12]line Чек 201 31.10.2024 17:45 [17:45:12]line Смена: 557 ФФД: 1.0 [17:45:12]line ЗНМ: 0300000081 [17:45:12]line РНМ: 0000000000091631 [17:45:12]line Версия ККМ: 001 [17:45:12]line Платежная система: Бакай Банк [17:45:12]line ФМ: 0000000000874669 [17:45:12]line ФД: 139724 [17:45:12]line ФПД: 226057250485572 [17:45:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174512&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139724&fm=226057250485572&tin=02508201610067®Number=0000000000091631&sum=7500 [17:45:12]line 0 [17:45:12]OFD Sender: Processing packet 139724 [packets to send 34, broken 33] [17:45:12]ProducePacketName [17:45:12]name=ofd_packets/00139724 [17:45:12]OFD Sender: To server: pG, [17:45:12]CommunicateWithHost lk.salyk.kg:30040 [17:45:12]ConnectInit lk.salyk.kg [17:45:12]written 0, free lines is 4095 [17:45:12]Connected sock=10 [17:45: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 44 01 00 00 66 7A 3C 01 A5 3C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 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 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 C9 00 00 00 F4 03 04 00 28 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CD 99 0E 1D 35 44 E2 88 64 B5 1A DC DA C7 [17:45: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 1C 88 47 00 F3 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 21 02 00 F4 03 04 00 D5 6D 23 67 B6 04 01 00 00 6B EE E2 BA 1A 9C E6 E2 [17:45:13]CommunicateWithHost err = 0 [17:45:13]CheckOFDResponse [17:45:13]1017 (14) - 77093643461234 [17:45:13]1041 (16) - 0000000000874669 [17:45:13]1040 (4) - 139724 [17:45:13]1012 (4) - 31.10.2024 11:45 [17:45:13]1206 (1) - 0 [17:45:13]OFD Sender: Remove packet 139724 [17:45:13]ProducePacketName [17:45:13]name=ofd_packets/00139724 [17:45:13]NVStorageDeleteData [17:45:13]Write to MH i2c: 01 00 00 BA 16 D0 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: 01 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: 01 07 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 D8 0C BB [17:45:13]RasterBufferAndPrint [17:45:13]line [17:45:13]line [17:45:13]line [17:45:13]line [17:45:13]line [17:45:13]written 0, free lines is 3298 [17:45:13]MH_Cut [17:45:13]Write to MH i2c: D1 01 00 C1 16 01 A9 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: D1 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: D1 01 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: D1 01 00 C1 16 00 A8 [17:45:13]Write to MH i2c: 01 00 00 C2 16 D8 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]OFD Sender: No OFD packet to send [17:45:14]*** Cut start [17:45:14]*** Partial cut [17:45:14]*** CUTSNS_PIN = 1 [17:45:14]*** CUTSNS_PIN = 0 [17:45:14]*** Brake cut motor [17:45:14]Read from MH i2c: 01 [17:45:14]MH_I2C_Read... [17:45:14]*** Stop cut motor [17:45:14]*** Cut end [17:45:14]Read from MH i2c: 01 07 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 07 00 C2 16 00 00 00 00 00 FF 0F ED [17:45:14]process_action close_receipt done [17:45:14]requested_data is exist [17:45:14]produce_requested_data [17:45:14]requested_item fm.sn is exist - process it [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 11 00 00 [17:45:14]Write to MH i2c: E2 08 00 C3 16 80 11 00 00 00 00 00 00 53 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 C3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AE [17:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:45:14]wFMCommunicate OK [17:45:14]requested_item fd.num is exist - process it [17:45:14]SAM_PROTO_GetFieldsCounters [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 13 00 00 [17:45:14]Write to MH i2c: E2 08 00 C4 16 80 13 00 00 00 00 00 00 56 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 62 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 62 00 C4 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 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 F3 [17:45: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 CC 21 02 00 0E 04 04 00 2D 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 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_GetFieldsCounters done [17:45:14]requested_item shift.num is exist - process it [17:45:14]requested_item shift.opened is exist - process it [17:45:14]req_shift_opened [17:45:14]FM_GetShiftState [17:45:14]SAM_PROTO_GetShiftState [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 13 01 00 [17:45:14]Write to MH i2c: E2 08 00 C5 16 80 13 01 00 00 00 00 00 58 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 C5 16 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 81 [17:45:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_GetShiftState done [17:45:14]FM_GetShiftState done [17:45:14]req_shift_opened done [17:45:14]requested_item shift.open_date is exist - process it [17:45:14]req_shift_open_date [17:45:14]req_shift_open_date done [17:45:14]produce_requested_data done [17:45:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139724,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:45:14]process_action_free close_receipt [17:45:14]json_value_free [17:45:14]json_value_free done [17:45:14]process_json_proto returns [17:45:14]Send response to host [17:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139724,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:45:14]free response buf [17:45:14]execute_script done [17:45:14]execute_script returns [17:45:14]free content buf [17:45:14]Sock 9.Close socket [17:45:14]Sock 9.Thread stoped [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:22]accept exits with 7 [17:46:22]New connection [17:46:22]New thread 3066510692 created [17:46:22]Thread 3066654052 joined [17:46:22]Waiting for new connection... [17:46:22] Sock 7.Parse request [17:46:22]Sock 7.Check first char [17:46:22]Sock 7.First char is OK [17:46:22]request: POST /json_proto HTTP/1.0 [17:46:22]Method: POST [17:46:22]URL: /json_proto [17:46:22]Method is POST - this is cgi request [17:46:22]url: /json_proto [17:46:22]query_string will be loaded in cgi processing [17:46:22]execute_cgi json_proto POST (null) [17:46:22]execute_cgi path=json_proto method=POST [17:46:22]POST find Content-Length [17:46:22]Host: 172.17.50.196:8080 [17:46:22]Content-Length: 770 [17:46:22]Content-Type: application/json [17:46:22] [17:46:22]POST finish read [17:46:22]Found Content-Length = 770 [17:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095352", "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" ] } } [17:46:22]execute_script... [17:46: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)1095352", "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" ] } } [17:46:22]POST & json_proto [17:46:22]process_json_proto [17:46:22]json parsed OK: [17:46:22]protocol is kg_v1.0 [17:46:22]action value=close_receipt [17:46:22]process_action close_receipt [17:46:22]cmd_close_receipt [17:46:22]MH_GetDate [17:46:22]Write to MH i2c: F0 00 00 C6 16 CB [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: F0 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: F0 09 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: F0 09 00 C6 16 00 6F C2 23 67 72 0D 1C 67 91 [17:46:22]GetLastDocTimeStamp 1730396712 [17:46:22]current date 1730396783 [17:46:22]FM_GetShiftState [17:46:22]SAM_PROTO_GetShiftState [17:46:22]wFMCommunicate request_size=4 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 13 01 00 [17:46:22]Write to MH i2c: E2 08 00 C7 16 80 13 01 00 00 00 00 00 5A [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 0E 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 0E 00 C7 16 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 83 [17:46:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:46:22]wFMCommunicate OK [17:46:22]SAM_PROTO_GetShiftState done [17:46:22]FM_GetShiftState done [17:46:22]opened in 1730332621 [17:46:22]opened+sec_in_day 1730419021 [17:46:22]quantity*price = 100015 [17:46:22]sum+1 = 100017 [17:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 202 31.10.2024 17:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139725 ФПД: 81372394877605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174624&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139725&fm=81372394877605&tin=02508201610067®Number=0000000000091631&sum=100016 [17:46:23]StoreToDocumentArchive [17:46:23]shift 557 fd 139725 [17:46:23]save to /storage/0557/doc_00139725 [17:46:23]save last doc name /storage/0557/doc_00139725 to /storage/kkm_last_doc_name [17:46:23]save OK [17:46:23]Clear old archive folders... [17:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:23]tlvbuf is 00A895A0 [17:46:23]SAM_PROTO_ClearQueue [17:46:23]wFMCommunicate request_size=4 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 09 00 00 [17:46:23]Write to MH i2c: E2 08 00 D4 16 80 09 00 00 00 00 00 00 5C [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 D4 16 00 90 00 5E [17:46:23]RAPDU: 90 00 [17:46:23]wFMCommunicate OK [17:46:23]SAM_PROTO_ClearQueue done [17:46:23]KKMCreateOFDPacket [17:46:23]OFDProtocolAddRootSTLVToBuf [17:46:23]FM_MakeSignedData [17:46:23]FM_MakeSignedData [17:46:23]SAM_PROTO_SignData [17:46:23]wFMCommunicate request_size=4 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 0D 01 02 [17:46:23]Write to MH i2c: E2 08 00 D5 16 80 0D 01 02 00 00 00 00 64 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 D5 16 00 90 00 5F [17:46:23]RAPDU: 90 00 [17:46:23]wFMCommunicate OK [17:46:23]wFMCommunicate request_size=255 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 70 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4A [17:46:23]Write to MH i2c: E2 02 01 D6 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 70 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4A 00 00 FC [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]OFD Sender: No OFD packet to send [17:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 D6 16 00 90 00 60 [17:46:23]RAPDU: 90 00 [17:46:23]wFMCommunicate OK [17:46:23]wFMCommunicate request_size=10 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 0D 02 02 05 01 FC B0 F2 A5 [17:46:23]Write to MH i2c: E2 0D 00 D7 16 80 0D 02 02 05 00 01 FC B0 F2 A5 00 00 B5 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 03 00 D7 16 00 90 00 61 [17:46:23]RAPDU: 90 00 [17:46:23]wFMCommunicate OK [17:46:23]wFMCommunicate request_size=4 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 0D 03 02 [17:46:23]Write to MH i2c: E2 08 00 D8 16 80 0D 03 02 00 00 00 00 69 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 0B 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 0B 00 D8 16 00 2D 47 73 43 56 79 36 C9 90 00 62 [17:46:23]RAPDU: 2D 47 73 43 56 79 36 C9 90 00 [17:46:23]wFMCommunicate OK [17:46:23]SAM_PROTO_SignData done [17:46:23]FM_MakeSignedData done [17:46:23]CreateOFDProtocolMessage [17:46:23]wFMCommunicate request_size=4 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 11 00 00 [17:46:23]Write to MH i2c: E2 08 00 D9 16 80 11 00 00 00 00 00 00 69 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 17 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 17 00 D9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C4 [17:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:46:24]wFMCommunicate OK [17:46:24]CreateOFDProtocolMessage done [17:46:24]OFDSenderStorePacket 139725 [17:46:24]StoreOFDPacket docnum=139725 [17:46: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 D7 B5 07 01 51 3B 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 CA 00 00 00 F4 03 04 00 70 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4A 01 FC B0 F2 A5 2D 47 73 43 56 79 36 C9 [17:46:24]CheckFolder [17:46:24]dirname=/storage/ofd_packets [17:46:24]CheckFolder done [17:46:24]ProducePacketName [17:46:24]name=ofd_packets/00139725 [17:46:24]NVStorageSaveData ofd_packets/00139725 [17:46:24]File name is /storage/ofd_packets/00139725 [17:46:24]Write 301 bytes [17:46:24]NVStorageSaveData done [17:46:24]OFDSenderStorePacket done [17:46:24]KKMCreateOFDPacket done [17:46:24]NVStorageSaveData kkm_last_timestamp [17:46:24]File name is /storage/kkm_last_timestamp [17:46:24]Write 4 bytes [17:46:24]NVStorageSaveData done [17:46:24]ExternCall_PrintAddStr [17:46:24]wPrintStart [17:46:24]Write to MH i2c: 01 00 00 DA 16 F0 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 07 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 07 00 DA 16 00 00 00 00 00 FF 0F 05 [17:46:24]RasterBufferAndPrint [17:46:24]line Счет N : (1)1095352 [17:46:24]line ИНН: 02508201610067 [17:46:24]line Контрольно-Кассовый Чек [17:46:24]line ПРОДАЖА [17:46:24]line ТРК (МРК, ГНК) : 33 [17:46:24]line Товар: 2710124130 [17:46:24]line Аи-92-К-2 [17:46:24]line 14.950 * 66.90 [17:46:24]line = 1000.16 [17:46:24]line НДС 12% НСП 1% [17:46:24]line > о реализуемом товаре [17:46:24]line ИТОГО: 1000.16 [17:46:24]line НСП 1% : 8.85 [17:46:24]line НДС 12% : 106.21 [17:46:24]line Наличными: 0.00 [17:46:24]line Безнал.: 1000.16 [17:46:24]line Место: АЗС № 101 "Партнер Нефть" [17:46:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:46:24]line СНО: Общий режим [17:46:24]line Чек 202 31.10.2024 17:46 [17:46:24]line Смена: 557 ФФД: 1.0 [17:46:24]line ЗНМ: 0300000081 [17:46:24]line РНМ: 0000000000091631 [17:46:24]line Версия ККМ: 001 [17:46:24]line Платежная система: Mbank [17:46:24]line ФМ: 0000000000874669 [17:46:24]line ФД: 139725 [17:46:24]line ФПД: 81372394877605 [17:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174624&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139725&fm=81372394877605&tin=02508201610067®Number=0000000000091631&sum=100016 [17:46:24]OFD Sender: Processing packet 139725 [packets to send 34, broken 33] [17:46:24]ProducePacketName [17:46:24]name=ofd_packets/00139725 [17:46:24]OFD Sender: To server: pG, [17:46:24]CommunicateWithHost lk.salyk.kg:30040 [17:46:24]ConnectInit lk.salyk.kg [17:46:24]written 0, free lines is 4095 [17:46:24]Connected sock=10 [17:46: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 D7 B5 07 01 51 3B 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 CA 00 00 00 F4 03 04 00 70 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 4A 01 FC B0 F2 A5 2D 47 73 43 56 79 36 C9 [17:46: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 74 8C 47 00 1F 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 CD 21 02 00 F4 03 04 00 1D 6E 23 67 B6 04 01 00 00 72 BD 76 54 1F 44 68 E5 [17:46:24]CommunicateWithHost err = 0 [17:46:24]CheckOFDResponse [17:46:24]1017 (14) - 77093643461234 [17:46:24]1041 (16) - 0000000000874669 [17:46:24]1040 (4) - 139725 [17:46:24]1012 (4) - 31.10.2024 11:46 [17:46:24]1206 (1) - 0 [17:46:24]OFD Sender: Remove packet 139725 [17:46:24]ProducePacketName [17:46:24]name=ofd_packets/00139725 [17:46:24]NVStorageDeleteData [17:46:24]Write to MH i2c: 01 00 00 03 17 1A [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 07 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 07 00 03 17 00 00 00 00 00 0F 0D 3D [17:46:24]RasterBufferAndPrint [17:46:24]line [17:46:24]line [17:46:24]line [17:46:24]line [17:46:24]line [17:46:24]written 0, free lines is 3349 [17:46:24]MH_Cut [17:46:24]Write to MH i2c: D1 01 00 0A 17 01 F3 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: D1 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: D1 01 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: D1 01 00 0A 17 00 F2 [17:46:24]Write to MH i2c: 01 00 00 0B 17 22 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:25]OFD Sender: No OFD packet to send [17:46:25]*** Cut start [17:46:25]*** Partial cut [17:46:25]*** CUTSNS_PIN = 1 [17:46:25]*** CUTSNS_PIN = 0 [17:46:25]*** Brake cut motor [17:46:26]Read from MH i2c: 01 [17:46:26]MH_I2C_Read... [17:46:26]*** Stop cut motor [17:46:26]*** Cut end [17:46:26]Read from MH i2c: 01 07 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 FF 0F 37 [17:46:26]process_action close_receipt done [17:46:26]requested_data is exist [17:46:26]produce_requested_data [17:46:26]requested_item fm.sn is exist - process it [17:46:26]wFMCommunicate request_size=4 [17:46:26]MH_SAM_APDU [17:46:26]CAPDU: 80 11 00 00 [17:46:26]Write to MH i2c: E2 08 00 0C 17 80 11 00 00 00 00 00 00 9D [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 17 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 17 00 0C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F8 [17:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:46:26]wFMCommunicate OK [17:46:26]requested_item fd.num is exist - process it [17:46:26]SAM_PROTO_GetFieldsCounters [17:46:26]wFMCommunicate request_size=4 [17:46:26]MH_SAM_APDU [17:46:26]CAPDU: 80 13 00 00 [17:46:26]Write to MH i2c: E2 08 00 0D 17 80 13 00 00 00 00 00 00 A0 [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 62 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 62 00 0D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [17:46: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 CD 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:26]wFMCommunicate OK [17:46:26]SAM_PROTO_GetFieldsCounters done [17:46:26]requested_item shift.num is exist - process it [17:46:26]requested_item shift.opened is exist - process it [17:46:26]req_shift_opened [17:46:26]FM_GetShiftState [17:46:26]SAM_PROTO_GetShiftState [17:46:26]wFMCommunicate request_size=4 [17:46:26]MH_SAM_APDU [17:46:26]CAPDU: 80 13 01 00 [17:46:26]Write to MH i2c: E2 08 00 0E 17 80 13 01 00 00 00 00 00 A2 [17:46:26]Write i2c OK [17:46:26]MH_I2C_Read... [17:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:26]Read from MH i2c: E2 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 0E 00 [17:46:26]MH_I2C_Read... [17:46:26]Read from MH i2c: E2 0E 00 0E 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CB [17:46:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:46:26]wFMCommunicate OK [17:46:26]SAM_PROTO_GetShiftState done [17:46:26]FM_GetShiftState done [17:46:26]req_shift_opened done [17:46:26]requested_item shift.open_date is exist - process it [17:46:26]req_shift_open_date [17:46:26]req_shift_open_date done [17:46:26]produce_requested_data done [17:46:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139725,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:46:26]process_action_free close_receipt [17:46:26]json_value_free [17:46:26]json_value_free done [17:46:26]process_json_proto returns [17:46:26]Send response to host [17:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139725,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:46:26]free response buf [17:46:26]execute_script done [17:46:26]execute_script returns [17:46:26]free content buf [17:46:26]Sock 7.Close socket [17:46:26]Sock 7.Thread stoped [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:44]accept exits with 9 [17:47:44]New connection [17:47:44]New thread 3066654052 created [17:47:44]Thread 3066510692 joined [17:47:44]Waiting for new connection... [17:47:44] Sock 9.Parse request [17:47:44]Sock 9.Check first char [17:47:44]Sock 9.First char is OK [17:47:44]request: POST /json_proto HTTP/1.0 [17:47:44]Method: POST [17:47:44]URL: /json_proto [17:47:44]Method is POST - this is cgi request [17:47:44]url: /json_proto [17:47:44]query_string will be loaded in cgi processing [17:47:44]execute_cgi json_proto POST (null) [17:47:44]execute_cgi path=json_proto method=POST [17:47:44]POST find Content-Length [17:47:44]Host: 172.17.50.196:8080 [17:47:44]Content-Length: 646 [17:47:44]Content-Type: application/json [17:47:44] [17:47:44]POST finish read [17:47:44]Found Content-Length = 646 [17:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335569", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:44]execute_script... [17:47: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)335569", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:44]POST & json_proto [17:47:44]process_json_proto [17:47:44]json parsed OK: [17:47:44]protocol is kg_v1.0 [17:47:44]action value=close_receipt [17:47:44]process_action close_receipt [17:47:44]cmd_close_receipt [17:47:44]MH_GetDate [17:47:44]Write to MH i2c: F0 00 00 0F 17 15 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: F0 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: F0 09 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: F0 09 00 0F 17 00 C2 C2 23 67 72 0D 1C 67 2E [17:47:44]GetLastDocTimeStamp 1730396784 [17:47:44]current date 1730396866 [17:47:44]FM_GetShiftState [17:47:44]SAM_PROTO_GetShiftState [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 13 01 00 [17:47:44]Write to MH i2c: E2 08 00 10 17 80 13 01 00 00 00 00 00 A4 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 0E 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 0E 00 10 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CD [17:47:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:47:44]wFMCommunicate OK [17:47:44]SAM_PROTO_GetShiftState done [17:47:44]FM_GetShiftState done [17:47:44]opened in 1730332621 [17:47:44]opened+sec_in_day 1730419021 [17:47:44]quantity*price = 26000 [17:47:44]sum+1 = 26001 [17:47:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 203 31.10.2024 17:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139726 ФПД: 65788003793534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174746&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139726&fm=65788003793534&tin=02508201610067®Number=0000000000091631&sum=26000 0 [17:47:45]StoreToDocumentArchive [17:47:45]shift 557 fd 139726 [17:47:45]save to /storage/0557/doc_00139726 [17:47:45]save last doc name /storage/0557/doc_00139726 to /storage/kkm_last_doc_name [17:47:45]save OK [17:47:45]Clear old archive folders... [17:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=282 [17:47:45]tlvbuf is 00AF5330 [17:47:45]SAM_PROTO_ClearQueue [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 09 00 00 [17:47:45]Write to MH i2c: E2 08 00 1D 17 80 09 00 00 00 00 00 00 A6 [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:45]Read from MH i2c: E2 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 03 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 03 00 1D 17 00 90 00 A8 [17:47:45]RAPDU: 90 00 [17:47:45]wFMCommunicate OK [17:47:45]SAM_PROTO_ClearQueue done [17:47:45]KKMCreateOFDPacket [17:47:45]OFDProtocolAddRootSTLVToBuf [17:47:45]FM_MakeSignedData [17:47:45]FM_MakeSignedData [17:47:45]SAM_PROTO_SignData [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 0D 01 02 [17:47:45]Write to MH i2c: E2 08 00 1E 17 80 0D 01 02 00 00 00 00 AE [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:45]Read from MH i2c: E2 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 03 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 03 00 1E 17 00 90 00 A9 [17:47:45]RAPDU: 90 00 [17:47:45]wFMCommunicate OK [17:47:45]wFMCommunicate request_size=255 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 C2 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [17:47:45]Write to MH i2c: E2 02 01 1F 17 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 C2 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 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 7A [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 1F 17 00 90 00 AA [17:47:46]RAPDU: 90 00 [17:47:46]wFMCommunicate OK [17:47:46]wFMCommunicate request_size=41 [17:47:46]MH_SAM_APDU [17:47:46]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 CE 21 02 00 35 04 06 00 3B D5 76 98 BA 7E [17:47:46]Write to MH i2c: E2 2C 00 20 17 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 CE 21 02 00 35 04 06 00 3B D5 76 98 BA 7E 00 00 CF [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 20 17 00 90 00 AB [17:47:46]RAPDU: 90 00 [17:47:46]wFMCommunicate OK [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 0D 03 02 [17:47:46]Write to MH i2c: E2 08 00 21 17 80 0D 03 02 00 00 00 00 B3 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0B 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0B 00 21 17 00 0B 56 85 69 58 EE 81 E0 90 00 AA [17:47:46]RAPDU: 0B 56 85 69 58 EE 81 E0 90 00 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_SignData done [17:47:46]FM_MakeSignedData done [17:47:46]CreateOFDProtocolMessage [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 11 00 00 [17:47:46]Write to MH i2c: E2 08 00 22 17 80 11 00 00 00 00 00 00 B3 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 17 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 17 00 22 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [17:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:47:46]wFMCommunicate OK [17:47:46]CreateOFDProtocolMessage done [17:47:46]OFDSenderStorePacket 139726 [17:47:46]StoreOFDPacket docnum=139726 [17:47: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 2E 01 00 00 8A BD 26 01 12 15 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 C2 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3B D5 76 98 BA 7E 0B 56 85 69 58 EE 81 E0 [17:47:46]CheckFolder [17:47:46]dirname=/storage/ofd_packets [17:47:46]CheckFolder done [17:47:46]ProducePacketName [17:47:46]name=ofd_packets/00139726 [17:47:46]NVStorageSaveData ofd_packets/00139726 [17:47:46]File name is /storage/ofd_packets/00139726 [17:47:46]Write 332 bytes [17:47:46]NVStorageSaveData done [17:47:46]OFDSenderStorePacket done [17:47:46]KKMCreateOFDPacket done [17:47:46]NVStorageSaveData kkm_last_timestamp [17:47:46]File name is /storage/kkm_last_timestamp [17:47:46]Write 4 bytes [17:47:46]NVStorageSaveData done [17:47:46]ExternCall_PrintAddStr [17:47:46]wPrintStart [17:47:46]Write to MH i2c: 01 00 00 23 17 3A [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 07 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 07 00 23 17 00 00 00 00 00 FF 0F 4F [17:47:46]RasterBufferAndPrint [17:47:46]line Счет N : (3)335569 [17:47:46]line ИНН: 02508201610067 [17:47:46]line Контрольно-Кассовый Чек [17:47:46]line ПРОДАЖА [17:47:46]line Товар: 2000036220012 [17:47:46]line Кофе Капучино XL(GABB TRADE) [17:47:46]line 2.000 * 130.00 [17:47:46]line = 260.00 [17:47:46]line НДС 12% НСП 1% [17:47:46]line > о реализуемом товаре [17:47:46]line ИТОГО: 260.00 [17:47:46]line НСП 1% : 2.30 [17:47:46]line НДС 12% : 27.61 [17:47:46]line Наличными: 260.00 [17:47:46]line Безнал.: 0.00 [17:47:46]line Место: АЗС № 101 "Партнер Нефть" [17:47:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:47:46]line СНО: Общий режим [17:47:46]line Чек 203 31.10.2024 17:47 [17:47:46]line Смена: 557 ФФД: 1.0 [17:47:46]line ЗНМ: 0300000081 [17:47:46]line РНМ: 0000000000091631 [17:47:46]line Версия ККМ: 001 [17:47:46]line ФМ: 0000000000874669 [17:47:46]line ФД: 139726 [17:47:46]line ФПД: 65788003793534 [17:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174746&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139726&fm=65788003793534&tin=02508201610067®Number=0000000000091631&sum=26000 [17:47:46]line 0 [17:47:46]OFD Sender: Processing packet 139726 [packets to send 34, broken 33] [17:47:46]ProducePacketName [17:47:46]name=ofd_packets/00139726 [17:47:46]OFD Sender: To server: pG, [17:47:46]CommunicateWithHost lk.salyk.kg:30040 [17:47:46]ConnectInit lk.salyk.kg [17:47:46]written 0, free lines is 4095 [17:47:46]Connected sock=10 [17:47: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 2E 01 00 00 8A BD 26 01 12 15 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 C2 C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 3B D5 76 98 BA 7E 0B 56 85 69 58 EE 81 E0 [17:47: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 1F 66 47 00 55 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 21 02 00 F4 03 04 00 6F 6E 23 67 B6 04 01 00 00 A9 07 5A F9 F8 E7 75 96 [17:47:46]CommunicateWithHost err = 0 [17:47:46]CheckOFDResponse [17:47:46]1017 (14) - 77093643461234 [17:47:46]1041 (16) - 0000000000874669 [17:47:46]1040 (4) - 139726 [17:47:46]1012 (4) - 31.10.2024 11:47 [17:47:46]1206 (1) - 0 [17:47:46]OFD Sender: Remove packet 139726 [17:47:46]ProducePacketName [17:47:46]name=ofd_packets/00139726 [17:47:46]NVStorageDeleteData [17:47:46]Write to MH i2c: 01 00 00 4C 17 63 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 07 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 07 00 4C 17 00 00 00 00 00 FC 0C 72 [17:47:46]RasterBufferAndPrint [17:47:46]line [17:47:46]line [17:47:46]line [17:47:46]line [17:47:46]line [17:47:47]written 0, free lines is 3333 [17:47:47]MH_Cut [17:47:47]Write to MH i2c: D1 01 00 53 17 01 3C [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: D1 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: D1 01 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: D1 01 00 53 17 00 3B [17:47:47]Write to MH i2c: 01 00 00 54 17 6B [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]OFD Sender: No OFD packet to send [17:47:47]*** Cut start [17:47:47]*** Partial cut [17:47:47]*** CUTSNS_PIN = 1 [17:47:47]*** CUTSNS_PIN = 0 [17:47:47]*** Brake cut motor [17:47:48]Read from MH i2c: 01 [17:47:48]MH_I2C_Read... [17:47:48]*** Stop cut motor [17:47:48]*** Cut end [17:47:48]Read from MH i2c: 01 07 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: 01 07 00 54 17 00 00 00 00 00 FF 0F 80 [17:47:48]process_action close_receipt done [17:47:48]requested_data is exist [17:47:48]produce_requested_data [17:47:48]requested_item fm.sn is exist - process it [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 11 00 00 [17:47:48]Write to MH i2c: E2 08 00 55 17 80 11 00 00 00 00 00 00 E6 [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 17 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 17 00 55 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 41 [17:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:47:48]wFMCommunicate OK [17:47:48]requested_item fd.num is exist - process it [17:47:48]SAM_PROTO_GetFieldsCounters [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 13 00 00 [17:47:48]Write to MH i2c: E2 08 00 56 17 80 13 00 00 00 00 00 00 E9 [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 62 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 62 00 56 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:47: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 CE 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:48]wFMCommunicate OK [17:47:48]SAM_PROTO_GetFieldsCounters done [17:47:48]requested_item shift.num is exist - process it [17:47:48]requested_item shift.opened is exist - process it [17:47:48]req_shift_opened [17:47:48]FM_GetShiftState [17:47:48]SAM_PROTO_GetShiftState [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 13 01 00 [17:47:48]Write to MH i2c: E2 08 00 57 17 80 13 01 00 00 00 00 00 EB [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 0E 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 0E 00 57 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 14 [17:47:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:47:48]wFMCommunicate OK [17:47:48]SAM_PROTO_GetShiftState done [17:47:48]FM_GetShiftState done [17:47:48]req_shift_opened done [17:47:48]requested_item shift.open_date is exist - process it [17:47:48]req_shift_open_date [17:47:48]req_shift_open_date done [17:47:48]produce_requested_data done [17:47:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139726,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:47:48]process_action_free close_receipt [17:47:48]json_value_free [17:47:48]json_value_free done [17:47:48]process_json_proto returns [17:47:48]Send response to host [17:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139726,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:47:48]free response buf [17:47:48]execute_script done [17:47:48]execute_script returns [17:47:48]free content buf [17:47:48]Sock 9.Close socket [17:47:48]Sock 9.Thread stoped [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:47:58]accept exits with 7 [17:47:58]New connection [17:47:58]New thread 3066510692 created [17:47:58]Thread 3066654052 joined [17:47:58]Waiting for new connection... [17:47:58] Sock 7.Parse request [17:47:58]Sock 7.Check first char [17:47:58]Sock 7.First char is OK [17:47:58]request: POST /json_proto HTTP/1.0 [17:47:58]Method: POST [17:47:58]URL: /json_proto [17:47:58]Method is POST - this is cgi request [17:47:58]url: /json_proto [17:47:58]query_string will be loaded in cgi processing [17:47:58]execute_cgi json_proto POST (null) [17:47:58]execute_cgi path=json_proto method=POST [17:47:58]POST find Content-Length [17:47:58]Host: 172.17.50.196:8080 [17:47:58]Content-Length: 686 [17:47:58]Content-Type: application/json [17:47:58] [17:47:58]POST finish read [17:47:58]Found Content-Length = 686 [17:47:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095354", "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" : 26.110, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:58]execute_script... [17:47:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095354", "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" : 26.110, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:58]POST & json_proto [17:47:58]process_json_proto [17:47:58]json parsed OK: [17:47:58]protocol is kg_v1.0 [17:47:58]action value=close_receipt [17:47:58]process_action close_receipt [17:47:58]cmd_close_receipt [17:47:58]MH_GetDate [17:47:58]Write to MH i2c: F0 00 00 58 17 5E [17:47:58]Write i2c OK [17:47:58]MH_I2C_Read... [17:47:58]Read from MH i2c: F0 [17:47:58]MH_I2C_Read... [17:47:58]Read from MH i2c: F0 09 00 [17:47:58]MH_I2C_Read... [17:47:58]Read from MH i2c: F0 09 00 58 17 00 CF C2 23 67 72 0D 1C 67 84 [17:47:58]GetLastDocTimeStamp 1730396866 [17:47:58]current date 1730396879 [17:47:58]FM_GetShiftState [17:47:58]SAM_PROTO_GetShiftState [17:47:58]wFMCommunicate request_size=4 [17:47:58]MH_SAM_APDU [17:47:58]CAPDU: 80 13 01 00 [17:47:58]Write to MH i2c: E2 08 00 59 17 80 13 01 00 00 00 00 00 ED [17:47:58]Write i2c OK [17:47:58]MH_I2C_Read... [17:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:58]Read from MH i2c: E2 [17:47:58]MH_I2C_Read... [17:47:58]Read from MH i2c: E2 0E 00 [17:47:58]MH_I2C_Read... [17:47:58]Read from MH i2c: E2 0E 00 59 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 16 [17:47:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:47:58]wFMCommunicate OK [17:47:58]SAM_PROTO_GetShiftState done [17:47:58]FM_GetShiftState done [17:47:58]opened in 1730332621 [17:47:58]opened+sec_in_day 1730419021 [17:47:58]quantity*price = 100001 [17:47:58]sum+1 = 100002 [17:47:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 204 31.10.2024 17:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139727 ФПД: 214506414919468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174759&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139727&fm=214506414919468&tin=02508201610067®Number=0000000000091631&sum=100000 [17:47:59]StoreToDocumentArchive [17:47:59]shift 557 fd 139727 [17:47:59]save to /storage/0557/doc_00139727 [17:47:59]save last doc name /storage/0557/doc_00139727 to /storage/kkm_last_doc_name [17:47:59]save OK [17:47:59]Clear old archive folders... [17:47:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:47:59]tlvbuf is 00A88F60 [17:47:59]SAM_PROTO_ClearQueue [17:47:59]wFMCommunicate request_size=4 [17:47:59]MH_SAM_APDU [17:47:59]CAPDU: 80 09 00 00 [17:47:59]Write to MH i2c: E2 08 00 66 17 80 09 00 00 00 00 00 00 EF [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 66 17 00 90 00 F1 [17:47:59]RAPDU: 90 00 [17:47:59]wFMCommunicate OK [17:47:59]SAM_PROTO_ClearQueue done [17:47:59]KKMCreateOFDPacket [17:47:59]OFDProtocolAddRootSTLVToBuf [17:47:59]FM_MakeSignedData [17:47:59]FM_MakeSignedData [17:47:59]SAM_PROTO_SignData [17:47:59]wFMCommunicate request_size=4 [17:47:59]MH_SAM_APDU [17:47:59]CAPDU: 80 0D 01 02 [17:47:59]Write to MH i2c: E2 08 00 67 17 80 0D 01 02 00 00 00 00 F7 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 67 17 00 90 00 F2 [17:47:59]RAPDU: 90 00 [17:47:59]wFMCommunicate OK [17:47:59]wFMCommunicate request_size=255 [17:47:59]MH_SAM_APDU [17:47:59]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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CF C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C3 17 [17:47:59]Write to MH i2c: E2 02 01 68 17 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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CF C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C3 17 00 00 87 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 68 17 00 90 00 F3 [17:47:59]RAPDU: 90 00 [17:47:59]wFMCommunicate OK [17:47:59]wFMCommunicate request_size=9 [17:47:59]MH_SAM_APDU [17:47:59]CAPDU: 80 0D 02 02 04 AA A9 CF 2C [17:47:59]Write to MH i2c: E2 0C 00 69 17 80 0D 02 02 04 00 AA A9 CF 2C 00 00 50 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 03 00 69 17 00 90 00 F4 [17:47:59]RAPDU: 90 00 [17:47:59]wFMCommunicate OK [17:47:59]wFMCommunicate request_size=4 [17:47:59]MH_SAM_APDU [17:47:59]CAPDU: 80 0D 03 02 [17:47:59]Write to MH i2c: E2 08 00 6A 17 80 0D 03 02 00 00 00 00 FC [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 0B 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 0B 00 6A 17 00 77 ED C2 8F 20 80 3F 9F 90 00 30 [17:47:59]RAPDU: 77 ED C2 8F 20 80 3F 9F 90 00 [17:47:59]wFMCommunicate OK [17:47:59]SAM_PROTO_SignData done [17:47:59]FM_MakeSignedData done [17:47:59]CreateOFDProtocolMessage [17:47:59]wFMCommunicate request_size=4 [17:47:59]MH_SAM_APDU [17:47:59]CAPDU: 80 11 00 00 [17:47:59]Write to MH i2c: E2 08 00 6B 17 80 11 00 00 00 00 00 00 FC [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 17 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 17 00 6B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 57 [17:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:47:59]wFMCommunicate OK [17:47:59]CreateOFDProtocolMessage done [17:47:59]OFDSenderStorePacket 139727 [17:47:59]StoreOFDPacket docnum=139727 [17:47: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 0E 01 00 00 B2 0F 06 01 D9 4A 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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CF C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C3 17 AA A9 CF 2C 77 ED C2 8F 20 80 3F 9F [17:47:59]CheckFolder [17:47:59]dirname=/storage/ofd_packets [17:47:59]CheckFolder done [17:47:59]ProducePacketName [17:47:59]name=ofd_packets/00139727 [17:47:59]NVStorageSaveData ofd_packets/00139727 [17:47:59]File name is /storage/ofd_packets/00139727 [17:47:59]Write 300 bytes [17:47:59]NVStorageSaveData done [17:47:59]OFDSenderStorePacket done [17:47:59]KKMCreateOFDPacket done [17:47:59]NVStorageSaveData kkm_last_timestamp [17:47:59]File name is /storage/kkm_last_timestamp [17:47:59]Write 4 bytes [17:47:59]NVStorageSaveData done [17:47:59]ExternCall_PrintAddStr [17:47:59]wPrintStart [17:47:59]Write to MH i2c: 01 00 00 6C 17 83 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 07 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 07 00 6C 17 00 00 00 00 00 FF 0F 98 [17:47:59]RasterBufferAndPrint [17:47:59]line Счет N : (1)1095354 [17:47:59]line ИНН: 02508201610067 [17:47:59]line Контрольно-Кассовый Чек [17:47:59]line ПРОДАЖА [17:47:59]line ТРК (МРК, ГНК) : 81 [17:47:59]line Товар: 2711190000 [17:47:59]line ГАЗ-К-5 [17:47:59]line 26.110 * 38.30 [17:47:59]line = 1000.01 [17:47:59]line НДС 12% НСП 1% [17:47:59]line > о реализуемом товаре [17:47:59]line ОКРУГЛЕНИЕ: -0.01 [17:47:59]line ИТОГО: 1000.00 [17:47:59]line Внесено: 1000.00 [17:47:59]line СДАЧА: 0.00 [17:47:59]line НСП 1% : 8.85 [17:47:59]line НДС 12% : 106.20 [17:47:59]line Наличными: 1000.00 [17:47:59]line Безнал.: 0.00 [17:47:59]line Место: АЗС № 101 "Партнер Нефть" [17:47:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:47:59]line СНО: Общий режим [17:47:59]line Чек 204 31.10.2024 17:47 [17:47:59]line Смена: 557 ФФД: 1.0 [17:47:59]line ЗНМ: 0300000081 [17:47:59]line РНМ: 0000000000091631 [17:47:59]line Версия ККМ: 001 [17:47:59]line ФМ: 0000000000874669 [17:47:59]line ФД: 139727 [17:47:59]line ФПД: 214506414919468 [17:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174759&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139727&fm=214506414919468&tin=02508201610067®Number=0000000000091631&sum=100000 [17:48:00]OFD Sender: Processing packet 139727 [packets to send 34, broken 33] [17:48:00]ProducePacketName [17:48:00]name=ofd_packets/00139727 [17:48:00]OFD Sender: To server: pG, [17:48:00]CommunicateWithHost lk.salyk.kg:30040 [17:48:00]ConnectInit lk.salyk.kg [17:48:00]written 0, free lines is 4095 [17:48:00]Connected sock=10 [17:48: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 0E 01 00 00 B2 0F 06 01 D9 4A 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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CF C2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C3 17 AA A9 CF 2C 77 ED C2 8F 20 80 3F 9F [17:48: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 8B 15 47 00 2F F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 21 02 00 F4 03 04 00 7D 6E 23 67 B6 04 01 00 00 13 6A B2 57 93 38 5E 61 [17:48:00]CommunicateWithHost err = 0 [17:48:00]CheckOFDResponse [17:48:00]1017 (14) - 77093643461234 [17:48:00]1041 (16) - 0000000000874669 [17:48:00]1040 (4) - 139727 [17:48:00]1012 (4) - 31.10.2024 11:48 [17:48:00]1206 (1) - 0 [17:48:00]OFD Sender: Remove packet 139727 [17:48:00]ProducePacketName [17:48:00]name=ofd_packets/00139727 [17:48:00]NVStorageDeleteData [17:48:00]Write to MH i2c: 01 00 00 97 17 AE [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 07 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 07 00 97 17 00 00 00 00 00 E1 0C A2 [17:48:00]RasterBufferAndPrint [17:48:00]line [17:48:00]line [17:48:00]line [17:48:00]line [17:48:00]line [17:48:00]written 0, free lines is 3302 [17:48:00]MH_Cut [17:48:00]Write to MH i2c: D1 01 00 9E 17 01 87 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: D1 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: D1 01 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: D1 01 00 9E 17 00 86 [17:48:00]Write to MH i2c: 01 00 00 9F 17 B6 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:01]OFD Sender: No OFD packet to send [17:48:01]*** Cut start [17:48:01]*** Partial cut [17:48:01]*** CUTSNS_PIN = 1 [17:48:01]*** CUTSNS_PIN = 0 [17:48:01]*** Brake cut motor [17:48:01]Read from MH i2c: 01 [17:48:01]MH_I2C_Read... [17:48:01]*** Stop cut motor [17:48:01]*** Cut end [17:48:01]Read from MH i2c: 01 07 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 FF 0F CB [17:48:01]process_action close_receipt done [17:48:01]requested_data is exist [17:48:01]produce_requested_data [17:48:01]requested_item fm.sn is exist - process it [17:48:01]wFMCommunicate request_size=4 [17:48:01]MH_SAM_APDU [17:48:01]CAPDU: 80 11 00 00 [17:48:01]Write to MH i2c: E2 08 00 A0 17 80 11 00 00 00 00 00 00 31 [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:01]Read from MH i2c: E2 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 17 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: E2 17 00 A0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8C [17:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:48:01]wFMCommunicate OK [17:48:01]requested_item fd.num is exist - process it [17:48:01]SAM_PROTO_GetFieldsCounters [17:48:01]wFMCommunicate request_size=4 [17:48:01]MH_SAM_APDU [17:48:01]CAPDU: 80 13 00 00 [17:48:01]Write to MH i2c: E2 08 00 A1 17 80 13 00 00 00 00 00 00 34 [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:02]Read from MH i2c: E2 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 62 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 62 00 A1 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [17:48: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 CF 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:02]wFMCommunicate OK [17:48:02]SAM_PROTO_GetFieldsCounters done [17:48:02]requested_item shift.num is exist - process it [17:48:02]requested_item shift.opened is exist - process it [17:48:02]req_shift_opened [17:48:02]FM_GetShiftState [17:48:02]SAM_PROTO_GetShiftState [17:48:02]wFMCommunicate request_size=4 [17:48:02]MH_SAM_APDU [17:48:02]CAPDU: 80 13 01 00 [17:48:02]Write to MH i2c: E2 08 00 A2 17 80 13 01 00 00 00 00 00 36 [17:48:02]Write i2c OK [17:48:02]MH_I2C_Read... [17:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:02]Read from MH i2c: E2 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 0E 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 0E 00 A2 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5F [17:48:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:48:02]wFMCommunicate OK [17:48:02]SAM_PROTO_GetShiftState done [17:48:02]FM_GetShiftState done [17:48:02]req_shift_opened done [17:48:02]requested_item shift.open_date is exist - process it [17:48:02]req_shift_open_date [17:48:02]req_shift_open_date done [17:48:02]produce_requested_data done [17:48:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139727,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:48:02]process_action_free close_receipt [17:48:02]json_value_free [17:48:02]json_value_free done [17:48:02]process_json_proto returns [17:48:02]Send response to host [17:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139727,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:48:02]free response buf [17:48:02]execute_script done [17:48:02]execute_script returns [17:48:02]free content buf [17:48:02]Sock 7.Close socket [17:48:02]Sock 7.Thread stoped [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:42]accept exits with 9 [17:49:42]New connection [17:49:42]New thread 3066654052 created [17:49:42]Thread 3066510692 joined [17:49:42]Waiting for new connection... [17:49:42] Sock 9.Parse request [17:49:42]Sock 9.Check first char [17:49:42]Sock 9.First char is OK [17:49:42]request: POST /json_proto HTTP/1.0 [17:49:42]Method: POST [17:49:42]URL: /json_proto [17:49:42]Method is POST - this is cgi request [17:49:42]url: /json_proto [17:49:42]query_string will be loaded in cgi processing [17:49:42]execute_cgi json_proto POST (null) [17:49:42]execute_cgi path=json_proto method=POST [17:49:42]POST find Content-Length [17:49:42]Host: 172.17.50.196:8080 [17:49:42]Content-Length: 686 [17:49:42]Content-Type: application/json [17:49:42] [17:49:42]POST finish read [17:49:42]Found Content-Length = 686 [17:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095355", "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" : 48.210, "sum" : 1846.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1846.00, "payments": [ { "type": 0, "sum" : 1846.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:42]execute_script... [17:49:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095355", "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" : 48.210, "sum" : 1846.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1846.00, "payments": [ { "type": 0, "sum" : 1846.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:42]POST & json_proto [17:49:42]process_json_proto [17:49:42]json parsed OK: [17:49:42]protocol is kg_v1.0 [17:49:42]action value=close_receipt [17:49:42]process_action close_receipt [17:49:42]cmd_close_receipt [17:49:42]MH_GetDate [17:49:42]Write to MH i2c: F0 00 00 A3 17 A9 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: F0 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: F0 09 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: F0 09 00 A3 17 00 38 C3 23 67 72 0D 1C 67 39 [17:49:42]GetLastDocTimeStamp 1730396879 [17:49:42]current date 1730396984 [17:49:42]FM_GetShiftState [17:49:42]SAM_PROTO_GetShiftState [17:49:42]wFMCommunicate request_size=4 [17:49:42]MH_SAM_APDU [17:49:42]CAPDU: 80 13 01 00 [17:49:42]Write to MH i2c: E2 08 00 A4 17 80 13 01 00 00 00 00 00 38 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 0E 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 0E 00 A4 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 61 [17:49:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:49:42]wFMCommunicate OK [17:49:42]SAM_PROTO_GetShiftState done [17:49:42]FM_GetShiftState done [17:49:42]opened in 1730332621 [17:49:42]opened+sec_in_day 1730419021 [17:49:42]quantity*price = 184644 [17:49:42]sum+1 = 184645 [17:49:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1846.00 Внесено: 2000.00 СДАЧА: 154.00 НСП 1% : 16.34 НДС 12% : 196.08 Наличными: 1846.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 205 31.10.2024 17:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139728 ФПД: 91598890852578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139728&fm=91598890852578&tin=02508201610067®Number=0000000000091631&sum=184600 [17:49:43]StoreToDocumentArchive [17:49:43]shift 557 fd 139728 [17:49:43]save to /storage/0557/doc_00139728 [17:49:43]save last doc name /storage/0557/doc_00139728 to /storage/kkm_last_doc_name [17:49:43]save OK [17:49:43]Clear old archive folders... [17:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:49:43]tlvbuf is 00AA0E30 [17:49:43]SAM_PROTO_ClearQueue [17:49:43]wFMCommunicate request_size=4 [17:49:43]MH_SAM_APDU [17:49:43]CAPDU: 80 09 00 00 [17:49:43]Write to MH i2c: E2 08 00 B1 17 80 09 00 00 00 00 00 00 3A [17:49:43]Write i2c OK [17:49:43]MH_I2C_Read... [17:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:43]Read from MH i2c: E2 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: E2 03 00 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: E2 03 00 B1 17 00 90 00 3C [17:49:43]RAPDU: 90 00 [17:49:43]wFMCommunicate OK [17:49:43]SAM_PROTO_ClearQueue done [17:49:43]KKMCreateOFDPacket [17:49:43]OFDProtocolAddRootSTLVToBuf [17:49:43]FM_MakeSignedData [17:49:43]FM_MakeSignedData [17:49:43]SAM_PROTO_SignData [17:49:43]wFMCommunicate request_size=4 [17:49:43]MH_SAM_APDU [17:49:43]CAPDU: 80 0D 01 02 [17:49:43]Write to MH i2c: E2 08 00 B2 17 80 0D 01 02 00 00 00 00 42 [17:49:43]Write i2c OK [17:49:43]MH_I2C_Read... [17:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:43]Read from MH i2c: E2 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: E2 03 00 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: E2 03 00 B2 17 00 90 00 3D [17:49:43]RAPDU: 90 00 [17:49:43]wFMCommunicate OK [17:49:43]wFMCommunicate request_size=255 [17:49:43]MH_SAM_APDU [17:49:43]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 52 BC 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 44 D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 4C 00 00 00 00 07 04 06 00 18 D1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 38 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 4F [17:49:43]Write to MH i2c: E2 02 01 B3 17 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 52 BC 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 44 D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 4C 00 00 00 00 07 04 06 00 18 D1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 38 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 4F 00 00 57 [17:49:43]Write i2c OK [17:49:43]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 03 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [17:49:44]RAPDU: 90 00 [17:49:44]wFMCommunicate OK [17:49:44]wFMCommunicate request_size=9 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 0D 02 02 04 07 59 E0 E2 [17:49:44]Write to MH i2c: E2 0C 00 B4 17 80 0D 02 02 04 00 07 59 E0 E2 00 00 6F [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:44]Read from MH i2c: E2 03 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [17:49:44]RAPDU: 90 00 [17:49:44]wFMCommunicate OK [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 0D 03 02 [17:49:44]Write to MH i2c: E2 08 00 B5 17 80 0D 03 02 00 00 00 00 47 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0B 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0B 00 B5 17 00 82 1E CB 22 CB CC 71 07 90 00 E4 [17:49:44]RAPDU: 82 1E CB 22 CB CC 71 07 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_SignData done [17:49:44]FM_MakeSignedData done [17:49:44]CreateOFDProtocolMessage [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 11 00 00 [17:49:44]Write to MH i2c: E2 08 00 B6 17 80 11 00 00 00 00 00 00 47 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 B6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A2 [17:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:49:44]wFMCommunicate OK [17:49:44]CreateOFDProtocolMessage done [17:49:44]OFDSenderStorePacket 139728 [17:49:44]StoreOFDPacket docnum=139728 [17:49: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 0E 01 00 00 9D 34 06 01 8A 29 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 52 BC 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 44 D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 4C 00 00 00 00 07 04 06 00 18 D1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 38 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 4F 07 59 E0 E2 82 1E CB 22 CB CC 71 07 [17:49:44]CheckFolder [17:49:44]dirname=/storage/ofd_packets [17:49:44]CheckFolder done [17:49:44]ProducePacketName [17:49:44]name=ofd_packets/00139728 [17:49:44]NVStorageSaveData ofd_packets/00139728 [17:49:44]File name is /storage/ofd_packets/00139728 [17:49:44]Write 300 bytes [17:49:44]NVStorageSaveData done [17:49:44]OFDSenderStorePacket done [17:49:44]KKMCreateOFDPacket done [17:49:44]NVStorageSaveData kkm_last_timestamp [17:49:44]File name is /storage/kkm_last_timestamp [17:49:44]Write 4 bytes [17:49:44]NVStorageSaveData done [17:49:44]ExternCall_PrintAddStr [17:49:44]wPrintStart [17:49:44]Write to MH i2c: 01 00 00 B7 17 CE [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: 01 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: 01 07 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: 01 07 00 B7 17 00 00 00 00 00 FF 0F E3 [17:49:44]RasterBufferAndPrint [17:49:44]line Счет N : (1)1095355 [17:49:44]line ИНН: 02508201610067 [17:49:44]line Контрольно-Кассовый Чек [17:49:44]line ПРОДАЖА [17:49:44]line ТРК (МРК, ГНК) : 71 [17:49:44]line Товар: 2711190000 [17:49:44]line ГАЗ-К-5 [17:49:44]line 48.210 * 38.30 [17:49:44]line = 1846.44 [17:49:44]line НДС 12% НСП 1% [17:49:44]line > о реализуемом товаре [17:49:44]line ОКРУГЛЕНИЕ: -0.44 [17:49:44]line ИТОГО: 1846.00 [17:49:44]line Внесено: 2000.00 [17:49:44]line СДАЧА: 154.00 [17:49:44]line НСП 1% : 16.34 [17:49:44]line НДС 12% : 196.08 [17:49:44]line Наличными: 1846.00 [17:49:44]line Безнал.: 0.00 [17:49:44]line Место: АЗС № 101 "Партнер Нефть" [17:49:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:49:44]line СНО: Общий режим [17:49:44]line Чек 205 31.10.2024 17:49 [17:49:44]line Смена: 557 ФФД: 1.0 [17:49:44]line ЗНМ: 0300000081 [17:49:44]line РНМ: 0000000000091631 [17:49:44]line Версия ККМ: 001 [17:49:44]line ФМ: 0000000000874669 [17:49:44]line ФД: 139728 [17:49:44]line ФПД: 91598890852578 [17:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139728&fm=91598890852578&tin=02508201610067®Number=0000000000091631&sum=184600 [17:49:44]OFD Sender: Processing packet 139728 [packets to send 34, broken 33] [17:49:44]ProducePacketName [17:49:44]name=ofd_packets/00139728 [17:49:44]OFD Sender: To server: pG, [17:49:44]CommunicateWithHost lk.salyk.kg:30040 [17:49:44]ConnectInit lk.salyk.kg [17:49:44]written 0, free lines is 4095 [17:49:44]Connected sock=10 [17:49: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 0E 01 00 00 9D 34 06 01 8A 29 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 52 BC 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 44 D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 4C 00 00 00 00 07 04 06 00 18 D1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 38 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 53 4F 07 59 E0 E2 82 1E CB 22 CB CC 71 07 [17:49: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 45 42 47 00 4B 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 D0 21 02 00 F4 03 04 00 E5 6E 23 67 B6 04 01 00 00 C5 11 A2 64 11 A3 CF 0B [17:49:44]CommunicateWithHost err = 0 [17:49:44]CheckOFDResponse [17:49:44]1017 (14) - 77093643461234 [17:49:44]1041 (16) - 0000000000874669 [17:49:44]1040 (4) - 139728 [17:49:44]1012 (4) - 31.10.2024 11:49 [17:49:44]1206 (1) - 0 [17:49:44]OFD Sender: Remove packet 139728 [17:49:44]ProducePacketName [17:49:44]name=ofd_packets/00139728 [17:49:44]NVStorageDeleteData [17:49:45]Write to MH i2c: 01 00 00 E2 17 F9 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: 01 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: 01 07 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: 01 07 00 E2 17 00 00 00 00 00 E8 0C F4 [17:49:45]RasterBufferAndPrint [17:49:45]line [17:49:45]line [17:49:45]line [17:49:45]line [17:49:45]line [17:49:45]written 0, free lines is 3311 [17:49:45]MH_Cut [17:49:45]Write to MH i2c: D1 01 00 E9 17 01 D2 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: D1 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: D1 01 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: D1 01 00 E9 17 00 D1 [17:49:45]Write to MH i2c: 01 00 00 EA 17 01 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]OFD Sender: No OFD packet to send [17:49:45]*** Cut start [17:49:45]*** Partial cut [17:49:45]*** CUTSNS_PIN = 1 [17:49:45]*** CUTSNS_PIN = 0 [17:49:46]*** Brake cut motor [17:49:46]Read from MH i2c: 01 [17:49:46]MH_I2C_Read... [17:49:46]*** Stop cut motor [17:49:46]*** Cut end [17:49:46]Read from MH i2c: 01 07 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 07 00 EA 17 00 00 00 00 00 FF 0F 16 [17:49:46]process_action close_receipt done [17:49:46]requested_data is exist [17:49:46]produce_requested_data [17:49:46]requested_item fm.sn is exist - process it [17:49:46]wFMCommunicate request_size=4 [17:49:46]MH_SAM_APDU [17:49:46]CAPDU: 80 11 00 00 [17:49:46]Write to MH i2c: E2 08 00 EB 17 80 11 00 00 00 00 00 00 7C [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:46]Read from MH i2c: E2 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 17 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 17 00 EB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [17:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:49:46]wFMCommunicate OK [17:49:46]requested_item fd.num is exist - process it [17:49:46]SAM_PROTO_GetFieldsCounters [17:49:46]wFMCommunicate request_size=4 [17:49:46]MH_SAM_APDU [17:49:46]CAPDU: 80 13 00 00 [17:49:46]Write to MH i2c: E2 08 00 EC 17 80 13 00 00 00 00 00 00 7F [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:46]Read from MH i2c: E2 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 62 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 62 00 EC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [17:49: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 D0 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:46]wFMCommunicate OK [17:49:46]SAM_PROTO_GetFieldsCounters done [17:49:46]requested_item shift.num is exist - process it [17:49:46]requested_item shift.opened is exist - process it [17:49:46]req_shift_opened [17:49:46]FM_GetShiftState [17:49:46]SAM_PROTO_GetShiftState [17:49:46]wFMCommunicate request_size=4 [17:49:46]MH_SAM_APDU [17:49:46]CAPDU: 80 13 01 00 [17:49:46]Write to MH i2c: E2 08 00 ED 17 80 13 01 00 00 00 00 00 81 [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:46]Read from MH i2c: E2 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 0E 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 0E 00 ED 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AA [17:49:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:49:46]wFMCommunicate OK [17:49:46]SAM_PROTO_GetShiftState done [17:49:46]FM_GetShiftState done [17:49:46]req_shift_opened done [17:49:46]requested_item shift.open_date is exist - process it [17:49:46]req_shift_open_date [17:49:46]req_shift_open_date done [17:49:46]produce_requested_data done [17:49:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139728,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:49:46]process_action_free close_receipt [17:49:46]json_value_free [17:49:46]json_value_free done [17:49:46]process_json_proto returns [17:49:46]Send response to host [17:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139728,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:49:46]free response buf [17:49:46]execute_script done [17:49:46]execute_script returns [17:49:46]free content buf [17:49:46]Sock 9.Close socket [17:49:46]Sock 9.Thread stoped [17:49:50]OFD Sender: No OFD packet to send [17:49:54]accept exits with 7 [17:49:54]New connection [17:49:54]New thread 3066510692 created [17:49:54]Thread 3066654052 joined [17:49:54]Waiting for new connection... [17:49:54] Sock 7.Parse request [17:49:54]Sock 7.Check first char [17:49:54]Sock 7.First char is OK [17:49:54]request: POST /json_proto HTTP/1.0 [17:49:54]Method: POST [17:49:54]URL: /json_proto [17:49:54]Method is POST - this is cgi request [17:49:54]url: /json_proto [17:49:54]query_string will be loaded in cgi processing [17:49:54]execute_cgi json_proto POST (null) [17:49:54]execute_cgi path=json_proto method=POST [17:49:54]POST find Content-Length [17:49:54]Host: 172.17.50.196:8080 [17:49:54]Content-Length: 717 [17:49:54]Content-Type: application/json [17:49:54] [17:49:54]POST finish read [17:49:54]Found Content-Length = 717 [17:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335570", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:54]execute_script... [17:49: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)335570", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:54]POST & json_proto [17:49:54]process_json_proto [17:49:54]json parsed OK: [17:49:54]protocol is kg_v1.0 [17:49:54]action value=close_receipt [17:49:54]process_action close_receipt [17:49:54]cmd_close_receipt [17:49:54]MH_GetDate [17:49:54]Write to MH i2c: F0 00 00 EE 17 F4 [17:49:54]Write i2c OK [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: F0 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: F0 09 00 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: F0 09 00 EE 17 00 44 C3 23 67 72 0D 1C 67 90 [17:49:54]GetLastDocTimeStamp 1730396984 [17:49:54]current date 1730396996 [17:49:54]FM_GetShiftState [17:49:54]SAM_PROTO_GetShiftState [17:49:54]wFMCommunicate request_size=4 [17:49:54]MH_SAM_APDU [17:49:54]CAPDU: 80 13 01 00 [17:49:54]Write to MH i2c: E2 08 00 EF 17 80 13 01 00 00 00 00 00 83 [17:49:54]Write i2c OK [17:49:54]MH_I2C_Read... [17:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:54]Read from MH i2c: E2 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: E2 0E 00 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: E2 0E 00 EF 17 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AC [17:49:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:49:54]wFMCommunicate OK [17:49:54]SAM_PROTO_GetShiftState done [17:49:54]FM_GetShiftState done [17:49:54]opened in 1730332621 [17:49:54]opened+sec_in_day 1730419021 [17:49:54]quantity*price = 19000 [17:49:54]sum+1 = 19001 [17:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 206 31.10.2024 17:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139729 ФПД: 26819388395931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174956&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139729&fm=26819388395931&tin=02508201610067®Number=0000000000091631&sum=19000 0 [17:49:55]StoreToDocumentArchive [17:49:55]shift 557 fd 139729 [17:49:55]save to /storage/0557/doc_00139729 [17:49:55]save last doc name /storage/0557/doc_00139729 to /storage/kkm_last_doc_name [17:49:55]save OK [17:49:55]Clear old archive folders... [17:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=306 [17:49:55]tlvbuf is 00A621C0 [17:49:55]SAM_PROTO_ClearQueue [17:49:55]wFMCommunicate request_size=4 [17:49:55]MH_SAM_APDU [17:49:55]CAPDU: 80 09 00 00 [17:49:55]Write to MH i2c: E2 08 00 FC 17 80 09 00 00 00 00 00 00 85 [17:49:55]Write i2c OK [17:49:55]MH_I2C_Read... [17:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:55]Read from MH i2c: E2 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 FC 17 00 90 00 87 [17:49:55]RAPDU: 90 00 [17:49:55]wFMCommunicate OK [17:49:55]SAM_PROTO_ClearQueue done [17:49:55]KKMCreateOFDPacket [17:49:55]OFDProtocolAddRootSTLVToBuf [17:49:55]FM_MakeSignedData [17:49:55]FM_MakeSignedData [17:49:55]SAM_PROTO_SignData [17:49:55]wFMCommunicate request_size=4 [17:49:55]MH_SAM_APDU [17:49:55]CAPDU: 80 0D 01 02 [17:49:55]Write to MH i2c: E2 08 00 FD 17 80 0D 01 02 00 00 00 00 8D [17:49:55]Write i2c OK [17:49:55]MH_I2C_Read... [17:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:55]Read from MH i2c: E2 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [17:49:55]RAPDU: 90 00 [17:49:55]wFMCommunicate OK [17:49:55]wFMCommunicate request_size=255 [17:49:55]MH_SAM_APDU [17:49:55]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 44 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 [17:49:55]Write to MH i2c: E2 02 01 FE 17 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 44 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 00 BF [17:49:55]Write i2c OK [17:49:55]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [17:49:56]RAPDU: 90 00 [17:49:56]wFMCommunicate OK [17:49:56]wFMCommunicate request_size=65 [17:49:56]MH_SAM_APDU [17:49:56]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 18 64 60 1E 51 9B [17:49:56]Write to MH i2c: E2 44 00 FF 17 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 18 64 60 1E 51 9B 00 00 BC [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [17:49:56]RAPDU: 90 00 [17:49:56]wFMCommunicate OK [17:49:56]wFMCommunicate request_size=4 [17:49:56]MH_SAM_APDU [17:49:56]CAPDU: 80 0D 03 02 [17:49:56]Write to MH i2c: E2 08 00 00 18 80 0D 03 02 00 00 00 00 93 [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 0B 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 0B 00 00 18 00 BE B6 BE 28 08 CA 63 36 90 00 59 [17:49:56]RAPDU: BE B6 BE 28 08 CA 63 36 90 00 [17:49:56]wFMCommunicate OK [17:49:56]SAM_PROTO_SignData done [17:49:56]FM_MakeSignedData done [17:49:56]CreateOFDProtocolMessage [17:49:56]wFMCommunicate request_size=4 [17:49:56]MH_SAM_APDU [17:49:56]CAPDU: 80 11 00 00 [17:49:56]Write to MH i2c: E2 08 00 01 18 80 11 00 00 00 00 00 00 93 [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 17 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 17 00 01 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EE [17:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:49:56]wFMCommunicate OK [17:49:56]CreateOFDProtocolMessage done [17:49:56]OFDSenderStorePacket 139729 [17:49:56]StoreOFDPacket docnum=139729 [17:49: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 46 01 00 00 62 AD 3E 01 75 43 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 44 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 18 64 60 1E 51 9B BE B6 BE 28 08 CA 63 36 [17:49:56]CheckFolder [17:49:56]dirname=/storage/ofd_packets [17:49:56]CheckFolder done [17:49:56]ProducePacketName [17:49:56]name=ofd_packets/00139729 [17:49:56]NVStorageSaveData ofd_packets/00139729 [17:49:56]File name is /storage/ofd_packets/00139729 [17:49:56]Write 356 bytes [17:49:56]NVStorageSaveData done [17:49:56]OFDSenderStorePacket done [17:49:56]KKMCreateOFDPacket done [17:49:56]NVStorageSaveData kkm_last_timestamp [17:49:56]File name is /storage/kkm_last_timestamp [17:49:56]Write 4 bytes [17:49:56]NVStorageSaveData done [17:49:56]ExternCall_PrintAddStr [17:49:56]wPrintStart [17:49:56]Write to MH i2c: 01 00 00 02 18 1A [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 02 18 00 00 00 00 00 FF 0F 2F [17:49:56]RasterBufferAndPrint [17:49:56]line Счет N : (3)335570 [17:49:56]line ИНН: 02508201610067 [17:49:56]line Контрольно-Кассовый Чек [17:49:56]line ПРОДАЖА [17:49:56]line Товар: 4700000481965 [17:49:56]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [17:49:56]line 2.000 * 95.00 [17:49:56]line = 190.00 [17:49:56]line НДС 12% НСП 1% [17:49:56]line > о реализуемом товаре [17:49:56]line ИТОГО: 190.00 [17:49:56]line НСП 1% : 1.68 [17:49:56]line НДС 12% : 20.18 [17:49:56]line Наличными: 190.00 [17:49:56]line Безнал.: 0.00 [17:49:56]line Место: АЗС № 101 "Партнер Нефть" [17:49:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:49:56]line СНО: Общий режим [17:49:56]line Чек 206 31.10.2024 17:49 [17:49:56]line Смена: 557 ФФД: 1.0 [17:49:56]line ЗНМ: 0300000081 [17:49:56]line РНМ: 0000000000091631 [17:49:56]line Версия ККМ: 001 [17:49:56]line ФМ: 0000000000874669 [17:49:56]line ФД: 139729 [17:49:56]line ФПД: 26819388395931 [17:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T174956&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139729&fm=26819388395931&tin=02508201610067®Number=0000000000091631&sum=19000 [17:49:56]line 0 [17:49:56]OFD Sender: Processing packet 139729 [packets to send 34, broken 33] [17:49:56]ProducePacketName [17:49:56]name=ofd_packets/00139729 [17:49:56]OFD Sender: To server: pG, [17:49:56]CommunicateWithHost lk.salyk.kg:30040 [17:49:56]ConnectInit lk.salyk.kg [17:49:56]written 0, free lines is 4095 [17:49:56]Connected sock=10 [17:49: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 46 01 00 00 62 AD 3E 01 75 43 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 44 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 18 64 60 1E 51 9B BE B6 BE 28 08 CA 63 36 [17:49: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 5E 7E 47 00 52 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 D1 21 02 00 F4 03 04 00 F1 6E 23 67 B6 04 01 00 00 B7 2E 40 08 55 C9 8B EF [17:49:56]CommunicateWithHost err = 0 [17:49:56]CheckOFDResponse [17:49:56]1017 (14) - 77093643461234 [17:49:56]1041 (16) - 0000000000874669 [17:49:56]1040 (4) - 139729 [17:49:56]1012 (4) - 31.10.2024 11:50 [17:49:56]1206 (1) - 0 [17:49:56]OFD Sender: Remove packet 139729 [17:49:56]ProducePacketName [17:49:56]name=ofd_packets/00139729 [17:49:56]NVStorageDeleteData [17:49:56]Write to MH i2c: 01 00 00 2B 18 43 [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 2B 18 00 00 00 00 00 F4 0C 4A [17:49:56]RasterBufferAndPrint [17:49:56]line [17:49:56]line [17:49:56]line [17:49:56]line [17:49:56]line [17:49:56]written 0, free lines is 3323 [17:49:56]MH_Cut [17:49:56]Write to MH i2c: D1 01 00 32 18 01 1C [17:49:57]Write i2c OK [17:49:57]MH_I2C_Read... [17:49:57]Read from MH i2c: D1 [17:49:57]MH_I2C_Read... [17:49:57]Read from MH i2c: D1 01 00 [17:49:57]MH_I2C_Read... [17:49:57]Read from MH i2c: D1 01 00 32 18 00 1B [17:49:57]Write to MH i2c: 01 00 00 33 18 4B [17:49:57]Write i2c OK [17:49:57]MH_I2C_Read... [17:49:57]OFD Sender: No OFD packet to send [17:49:57]*** Cut start [17:49:57]*** Partial cut [17:49:57]*** CUTSNS_PIN = 1 [17:49:57]*** CUTSNS_PIN = 0 [17:49:57]*** Brake cut motor [17:49:58]Read from MH i2c: 01 [17:49:58]MH_I2C_Read... [17:49:58]*** Stop cut motor [17:49:58]*** Cut end [17:49:58]Read from MH i2c: 01 07 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 FF 0F 60 [17:49:58]process_action close_receipt done [17:49:58]requested_data is exist [17:49:58]produce_requested_data [17:49:58]requested_item fm.sn is exist - process it [17:49:58]wFMCommunicate request_size=4 [17:49:58]MH_SAM_APDU [17:49:58]CAPDU: 80 11 00 00 [17:49:58]Write to MH i2c: E2 08 00 34 18 80 11 00 00 00 00 00 00 C6 [17:49:58]Write i2c OK [17:49:58]MH_I2C_Read... [17:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:58]Read from MH i2c: E2 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 17 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 17 00 34 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 21 [17:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:49:58]wFMCommunicate OK [17:49:58]requested_item fd.num is exist - process it [17:49:58]SAM_PROTO_GetFieldsCounters [17:49:58]wFMCommunicate request_size=4 [17:49:58]MH_SAM_APDU [17:49:58]CAPDU: 80 13 00 00 [17:49:58]Write to MH i2c: E2 08 00 35 18 80 13 00 00 00 00 00 00 C9 [17:49:58]Write i2c OK [17:49:58]MH_I2C_Read... [17:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:58]Read from MH i2c: E2 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 62 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 62 00 35 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:49: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 D1 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:58]wFMCommunicate OK [17:49:58]SAM_PROTO_GetFieldsCounters done [17:49:58]requested_item shift.num is exist - process it [17:49:58]requested_item shift.opened is exist - process it [17:49:58]req_shift_opened [17:49:58]FM_GetShiftState [17:49:58]SAM_PROTO_GetShiftState [17:49:58]wFMCommunicate request_size=4 [17:49:58]MH_SAM_APDU [17:49:58]CAPDU: 80 13 01 00 [17:49:58]Write to MH i2c: E2 08 00 36 18 80 13 01 00 00 00 00 00 CB [17:49:58]Write i2c OK [17:49:58]MH_I2C_Read... [17:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:58]Read from MH i2c: E2 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 0E 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 0E 00 36 18 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F4 [17:49:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:49:58]wFMCommunicate OK [17:49:58]SAM_PROTO_GetShiftState done [17:49:58]FM_GetShiftState done [17:49:58]req_shift_opened done [17:49:58]requested_item shift.open_date is exist - process it [17:49:58]req_shift_open_date [17:49:58]req_shift_open_date done [17:49:58]produce_requested_data done [17:49:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139729,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:49:58]process_action_free close_receipt [17:49:58]json_value_free [17:49:58]json_value_free done [17:49:58]process_json_proto returns [17:49:58]Send response to host [17:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139729,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:49:58]free response buf [17:49:58]execute_script done [17:49:58]execute_script returns [17:49:58]free content buf [17:49:58]Sock 7.Close socket [17:49:58]Sock 7.Thread stoped [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:04]accept exits with 9 [17:52:04]New connection [17:52:04]New thread 3066654052 created [17:52:04]Thread 3066510692 joined [17:52:04]Waiting for new connection... [17:52:04] Sock 9.Parse request [17:52:04]Sock 9.Check first char [17:52:04]Sock 9.First char is OK [17:52:04]request: POST /json_proto HTTP/1.0 [17:52:04]Method: POST [17:52:04]URL: /json_proto [17:52:04]Method is POST - this is cgi request [17:52:04]url: /json_proto [17:52:04]query_string will be loaded in cgi processing [17:52:04]execute_cgi json_proto POST (null) [17:52:04]execute_cgi path=json_proto method=POST [17:52:04]POST find Content-Length [17:52:04]Host: 172.17.50.196:8080 [17:52:04]Content-Length: 1225 [17:52:04]Content-Type: application/json [17:52:04] [17:52:04]POST finish read [17:52:04]Found Content-Length = 1225 [17:52:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335571", "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": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.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" : 2.000, "sum" : 88.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 378.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:04]execute_script... [17:52: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)335571", "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": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.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" : 2.000, "sum" : 88.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 378.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:04]POST & json_proto [17:52:04]process_json_proto [17:52:04]json parsed OK: [17:52:04]protocol is kg_v1.0 [17:52:04]action value=close_receipt [17:52:04]process_action close_receipt [17:52:04]cmd_close_receipt [17:52:04]MH_GetDate [17:52:04]Write to MH i2c: F0 00 00 37 18 3E [17:52:04]Write i2c OK [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: F0 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: F0 09 00 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: F0 09 00 37 18 00 C6 C3 23 67 72 0D 1C 67 5C [17:52:04]GetLastDocTimeStamp 1730396996 [17:52:04]current date 1730397126 [17:52:04]FM_GetShiftState [17:52:04]SAM_PROTO_GetShiftState [17:52:04]wFMCommunicate request_size=4 [17:52:04]MH_SAM_APDU [17:52:04]CAPDU: 80 13 01 00 [17:52:04]Write to MH i2c: E2 08 00 38 18 80 13 01 00 00 00 00 00 CD [17:52:04]Write i2c OK [17:52:04]MH_I2C_Read... [17:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:04]Read from MH i2c: E2 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: E2 0E 00 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: E2 0E 00 38 18 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F6 [17:52:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:52:04]wFMCommunicate OK [17:52:04]SAM_PROTO_GetShiftState done [17:52:04]FM_GetShiftState done [17:52:04]opened in 1730332621 [17:52:04]opened+sec_in_day 1730419021 [17:52:04]quantity*price = 12000 [17:52:04]sum+1 = 12001 [17:52:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 2.000 * 44.00 = 88.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 378.00 НСП 1% : 3.34 НДС 12% : 40.13 Наличными: 378.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 207 31.10.2024 17:52 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139730 ФПД: 152323842105233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175206&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139730&fm=152323842105233&tin=02508201610067®Number=0000000000091631&sum=37800 0 [17:52:06]StoreToDocumentArchive [17:52:06]shift 557 fd 139730 [17:52:06]save to /storage/0557/doc_00139730 [17:52:06]save last doc name /storage/0557/doc_00139730 to /storage/kkm_last_doc_name [17:52:06]save OK [17:52:06]Clear old archive folders... [17:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=524 [17:52:06]tlvbuf is 00A9A270 [17:52:06]SAM_PROTO_ClearQueue [17:52:06]wFMCommunicate request_size=4 [17:52:06]MH_SAM_APDU [17:52:06]CAPDU: 80 09 00 00 [17:52:06]Write to MH i2c: E2 08 00 45 18 80 09 00 00 00 00 00 00 CF [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:06]Read from MH i2c: E2 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 03 00 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 03 00 45 18 00 90 00 D1 [17:52:06]RAPDU: 90 00 [17:52:06]wFMCommunicate OK [17:52:06]SAM_PROTO_ClearQueue done [17:52:06]KKMCreateOFDPacket [17:52:06]OFDProtocolAddRootSTLVToBuf [17:52:06]FM_MakeSignedData [17:52:06]FM_MakeSignedData [17:52:06]SAM_PROTO_SignData [17:52:06]wFMCommunicate request_size=4 [17:52:06]MH_SAM_APDU [17:52:06]CAPDU: 80 0D 01 02 [17:52:06]Write to MH i2c: E2 08 00 46 18 80 0D 01 02 00 00 00 00 D7 [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:06]Read from MH i2c: E2 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 03 00 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 03 00 46 18 00 90 00 D2 [17:52:06]RAPDU: 90 00 [17:52:06]wFMCommunicate OK [17:52:06]wFMCommunicate request_size=255 [17:52:06]MH_SAM_APDU [17:52:06]CAPDU: 80 0D 02 02 FA 03 00 0C 02 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 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 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 [17:52:06]Write to MH i2c: E2 02 01 47 18 80 0D 02 02 FA 00 03 00 0C 02 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 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 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 00 00 51 [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:06]Read from MH i2c: E2 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 03 00 [17:52:06]MH_I2C_Read... [17:52:06]Read from MH i2c: E2 03 00 47 18 00 90 00 D3 [17:52:06]RAPDU: 90 00 [17:52:06]wFMCommunicate OK [17:52:06]wFMCommunicate request_size=255 [17:52:06]MH_SAM_APDU [17:52:06]CAPDU: 80 0D 02 02 FA 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 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0F 00 00 00 00 07 04 06 00 A8 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C6 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [17:52:06]Write to MH i2c: E2 02 01 48 18 80 0D 02 02 FA 00 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 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0F 00 00 00 00 07 04 06 00 A8 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C6 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 68 [17:52:06]Write i2c OK [17:52:06]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 48 18 00 90 00 D4 [17:52:07]RAPDU: 90 00 [17:52:07]wFMCommunicate OK [17:52:07]wFMCommunicate request_size=33 [17:52:07]MH_SAM_APDU [17:52:07]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 21 02 00 35 04 06 00 8A 89 A8 7F DF 91 [17:52:07]Write to MH i2c: E2 24 00 49 18 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 21 02 00 35 04 06 00 8A 89 A8 7F DF 91 00 00 11 [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [17:52:07]RAPDU: 90 00 [17:52:07]wFMCommunicate OK [17:52:07]wFMCommunicate request_size=4 [17:52:07]MH_SAM_APDU [17:52:07]CAPDU: 80 0D 03 02 [17:52:07]Write to MH i2c: E2 08 00 4A 18 80 0D 03 02 00 00 00 00 DD [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 0B 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 0B 00 4A 18 00 6D F5 56 A1 FF C8 BF A8 90 00 65 [17:52:07]RAPDU: 6D F5 56 A1 FF C8 BF A8 90 00 [17:52:07]wFMCommunicate OK [17:52:07]SAM_PROTO_SignData done [17:52:07]FM_MakeSignedData done [17:52:07]CreateOFDProtocolMessage [17:52:07]wFMCommunicate request_size=4 [17:52:07]MH_SAM_APDU [17:52:07]CAPDU: 80 11 00 00 [17:52:07]Write to MH i2c: E2 08 00 4B 18 80 11 00 00 00 00 00 00 DD [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:07]Read from MH i2c: E2 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 17 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: E2 17 00 4B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 38 [17:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:52:07]wFMCommunicate OK [17:52:07]CreateOFDProtocolMessage done [17:52:07]OFDSenderStorePacket 139730 [17:52:07]StoreOFDPacket docnum=139730 [17:52: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 20 02 00 00 83 C4 18 02 6B 6C 5A 03 01 00 03 00 0C 02 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 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 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0F 00 00 00 00 07 04 06 00 A8 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C6 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8A 89 A8 7F DF 91 6D F5 56 A1 FF C8 BF A8 [17:52:07]CheckFolder [17:52:07]dirname=/storage/ofd_packets [17:52:07]CheckFolder done [17:52:07]ProducePacketName [17:52:07]name=ofd_packets/00139730 [17:52:07]NVStorageSaveData ofd_packets/00139730 [17:52:07]File name is /storage/ofd_packets/00139730 [17:52:07]Write 574 bytes [17:52:07]NVStorageSaveData done [17:52:07]OFDSenderStorePacket done [17:52:07]KKMCreateOFDPacket done [17:52:07]NVStorageSaveData kkm_last_timestamp [17:52:07]File name is /storage/kkm_last_timestamp [17:52:07]Write 4 bytes [17:52:07]NVStorageSaveData done [17:52:07]ExternCall_PrintAddStr [17:52:07]wPrintStart [17:52:07]Write to MH i2c: 01 00 00 4C 18 64 [17:52:07]Write i2c OK [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: 01 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: 01 07 00 [17:52:07]MH_I2C_Read... [17:52:07]Read from MH i2c: 01 07 00 4C 18 00 00 00 00 00 FF 0F 79 [17:52:07]RasterBufferAndPrint [17:52:07]line Счет N : (3)335571 [17:52:07]line ИНН: 02508201610067 [17:52:07]line Контрольно-Кассовый Чек [17:52:07]line ПРОДАЖА [17:52:07]line Товар: 5449000027474 [17:52:07]line Напиток FuzeTea зел чай манго,ромашка 1л [17:52:07]line 1.000 * 120.00 [17:52:07]line = 120.00 [17:52:07]line НДС 12% НСП 1% [17:52:07]line > о реализуемом товаре [17:52:07]line Товар: 5449000000996 [17:52:07]line Напиток Кока-Кола 0,33л [17:52:07]line 2.000 * 85.00 [17:52:07]line = 170.00 [17:52:07]line НДС 12% НСП 1% [17:52:07]line > о реализуемом товаре [17:52:07]line Товар: 4870112003925 [17:52:07]line Конд ULKER-Albeni 40gr (6*24) [17:52:07]line 2.000 * 44.00 [17:52:07]line = 88.00 [17:52:07]line НДС 12% НСП 1% [17:52:07]line > о реализуемом товаре [17:52:07]line ИТОГО: 378.00 [17:52:07]line НСП 1% : 3.34 [17:52:07]line НДС 12% : 40.13 [17:52:07]line Наличными: 378.00 [17:52:07]line Безнал.: 0.00 [17:52:07]line Место: АЗС № 101 "Партнер Нефть" [17:52:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:52:07]line СНО: Общий режим [17:52:07]line Чек 207 31.10.2024 17:52 [17:52:07]line Смена: 557 ФФД: 1.0 [17:52:07]line ЗНМ: 0300000081 [17:52:07]line РНМ: 0000000000091631 [17:52:07]line Версия ККМ: 001 [17:52:07]line ФМ: 0000000000874669 [17:52:07]line ФД: 139730 [17:52:07]line ФПД: 152323842105233 [17:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175206&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139730&fm=152323842105233&tin=02508201610067®Number=0000000000091631&sum=37800 [17:52:07]line 0 [17:52:07]OFD Sender: Processing packet 139730 [packets to send 34, broken 33] [17:52:07]ProducePacketName [17:52:07]name=ofd_packets/00139730 [17:52:07]OFD Sender: To server: pG, [17:52:07]CommunicateWithHost lk.salyk.kg:30040 [17:52:07]ConnectInit lk.salyk.kg [17:52:07]written 0, free lines is 4095 [17:52:07]Connected sock=10 [17:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 20 02 00 00 83 C4 18 02 6B 6C 5A 03 01 00 03 00 0C 02 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 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 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0F 00 00 00 00 07 04 06 00 A8 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C6 C3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 8A 89 A8 7F DF 91 6D F5 56 A1 FF C8 BF A8 [17:52: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 4B 45 47 00 E0 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 D2 21 02 00 F4 03 04 00 74 6F 23 67 B6 04 01 00 00 8C 06 DC 92 A4 A9 C2 EA [17:52:07]CommunicateWithHost err = 0 [17:52:07]CheckOFDResponse [17:52:07]1017 (14) - 77093643461234 [17:52:07]1041 (16) - 0000000000874669 [17:52:07]1040 (4) - 139730 [17:52:07]1012 (4) - 31.10.2024 11:52 [17:52:07]1206 (1) - 0 [17:52:07]OFD Sender: Remove packet 139730 [17:52:07]ProducePacketName [17:52:07]name=ofd_packets/00139730 [17:52:07]NVStorageDeleteData [17:52:08]Write to MH i2c: 01 00 00 81 18 99 [17:52:08]Write i2c OK [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: 01 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: 01 07 00 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 5F 0C 0B [17:52:08]RasterBufferAndPrint [17:52:08]line [17:52:08]line [17:52:08]line [17:52:08]line [17:52:08]line [17:52:08]written 0, free lines is 3176 [17:52:08]MH_Cut [17:52:08]Write to MH i2c: D1 01 00 88 18 01 72 [17:52:08]Write i2c OK [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: D1 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: D1 01 00 [17:52:08]MH_I2C_Read... [17:52:08]Read from MH i2c: D1 01 00 88 18 00 71 [17:52:08]Write to MH i2c: 01 00 00 89 18 A1 [17:52:08]Write i2c OK [17:52:08]MH_I2C_Read... [17:52:08]OFD Sender: No OFD packet to send [17:52:08]*** Cut start [17:52:08]*** Partial cut [17:52:08]*** CUTSNS_PIN = 1 [17:52:08]*** CUTSNS_PIN = 0 [17:52:09]*** Brake cut motor [17:52:09]Read from MH i2c: 01 [17:52:09]MH_I2C_Read... [17:52:09]*** Stop cut motor [17:52:09]*** Cut end [17:52:09]Read from MH i2c: 01 07 00 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: 01 07 00 89 18 00 00 00 00 00 FF 0F B6 [17:52:09]process_action close_receipt done [17:52:09]requested_data is exist [17:52:09]produce_requested_data [17:52:09]requested_item fm.sn is exist - process it [17:52:09]wFMCommunicate request_size=4 [17:52:09]MH_SAM_APDU [17:52:09]CAPDU: 80 11 00 00 [17:52:09]Write to MH i2c: E2 08 00 8A 18 80 11 00 00 00 00 00 00 1C [17:52:09]Write i2c OK [17:52:09]MH_I2C_Read... [17:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:09]Read from MH i2c: E2 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: E2 17 00 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: E2 17 00 8A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 77 [17:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:52:09]wFMCommunicate OK [17:52:09]requested_item fd.num is exist - process it [17:52:09]SAM_PROTO_GetFieldsCounters [17:52:09]wFMCommunicate request_size=4 [17:52:09]MH_SAM_APDU [17:52:09]CAPDU: 80 13 00 00 [17:52:09]Write to MH i2c: E2 08 00 8B 18 80 13 00 00 00 00 00 00 1F [17:52:09]Write i2c OK [17:52:09]MH_I2C_Read... [17:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:09]Read from MH i2c: E2 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: E2 62 00 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: E2 62 00 8B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [17:52: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 D2 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:09]wFMCommunicate OK [17:52:09]SAM_PROTO_GetFieldsCounters done [17:52:09]requested_item shift.num is exist - process it [17:52:09]requested_item shift.opened is exist - process it [17:52:09]req_shift_opened [17:52:09]FM_GetShiftState [17:52:09]SAM_PROTO_GetShiftState [17:52:09]wFMCommunicate request_size=4 [17:52:09]MH_SAM_APDU [17:52:09]CAPDU: 80 13 01 00 [17:52:09]Write to MH i2c: E2 08 00 8C 18 80 13 01 00 00 00 00 00 21 [17:52:09]Write i2c OK [17:52:09]MH_I2C_Read... [17:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:09]Read from MH i2c: E2 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: E2 0E 00 [17:52:09]MH_I2C_Read... [17:52:09]Read from MH i2c: E2 0E 00 8C 18 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4A [17:52:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:52:09]wFMCommunicate OK [17:52:09]SAM_PROTO_GetShiftState done [17:52:09]FM_GetShiftState done [17:52:09]req_shift_opened done [17:52:09]requested_item shift.open_date is exist - process it [17:52:09]req_shift_open_date [17:52:09]req_shift_open_date done [17:52:09]produce_requested_data done [17:52:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139730,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:52:09]process_action_free close_receipt [17:52:09]json_value_free [17:52:09]json_value_free done [17:52:09]process_json_proto returns [17:52:09]Send response to host [17:52:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139730,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:52:09]free response buf [17:52:09]execute_script done [17:52:09]execute_script returns [17:52:09]free content buf [17:52:09]Sock 9.Close socket [17:52:09]Sock 9.Thread stoped [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:21]accept exits with 7 [17:53:21]New connection [17:53:21]New thread 3066510692 created [17:53:21]Thread 3066654052 joined [17:53:21]Waiting for new connection... [17:53:21] Sock 7.Parse request [17:53:21]Sock 7.Check first char [17:53:21]Sock 7.First char is OK [17:53:21]request: POST /json_proto HTTP/1.0 [17:53:21]Method: POST [17:53:21]URL: /json_proto [17:53:21]Method is POST - this is cgi request [17:53:21]url: /json_proto [17:53:21]query_string will be loaded in cgi processing [17:53:21]execute_cgi json_proto POST (null) [17:53:21]execute_cgi path=json_proto method=POST [17:53:21]POST find Content-Length [17:53:21]Host: 172.17.50.196:8080 [17:53:21]Content-Length: 761 [17:53:21]Content-Type: application/json [17:53:21] [17:53:21]POST finish read [17:53:21]Found Content-Length = 761 [17:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075297", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:21]execute_script... [17:53:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075297", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:21]POST & json_proto [17:53:21]process_json_proto [17:53:21]json parsed OK: [17:53:21]protocol is kg_v1.0 [17:53:21]action value=close_receipt [17:53:21]process_action close_receipt [17:53:21]cmd_close_receipt [17:53:21]MH_GetDate [17:53:21]Write to MH i2c: F0 00 00 8D 18 94 [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: F0 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: F0 09 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: F0 09 00 8D 18 00 13 C4 23 67 72 0D 1C 67 00 [17:53:21]GetLastDocTimeStamp 1730397126 [17:53:21]current date 1730397203 [17:53:21]FM_GetShiftState [17:53:21]SAM_PROTO_GetShiftState [17:53:21]wFMCommunicate request_size=4 [17:53:21]MH_SAM_APDU [17:53:21]CAPDU: 80 13 01 00 [17:53:21]Write to MH i2c: E2 08 00 8E 18 80 13 01 00 00 00 00 00 23 [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:21]Read from MH i2c: E2 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: E2 0E 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: E2 0E 00 8E 18 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4C [17:53:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:53:21]wFMCommunicate OK [17:53:21]SAM_PROTO_GetShiftState done [17:53:21]FM_GetShiftState done [17:53:21]opened in 1730332621 [17:53:21]opened+sec_in_day 1730419021 [17:53:21]quantity*price = 0 [17:53:21]sum+1 = 1 [17:53:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 208 31.10.2024 17:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: ТК ГПНА Online 30075297 ФМ: 0000000000874669 ФД: 139731 ФПД: 148833518386095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175323&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139731&fm=148833518386095&tin=02508201610067®Number=0000000000091631&sum=0 [17:53:22]StoreToDocumentArchive [17:53:22]shift 557 fd 139731 [17:53:22]save to /storage/0557/doc_00139731 [17:53:22]save last doc name /storage/0557/doc_00139731 to /storage/kkm_last_doc_name [17:53:22]save OK [17:53:22]Clear old archive folders... [17:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:53:22]tlvbuf is 00A84460 [17:53:22]SAM_PROTO_ClearQueue [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 09 00 00 [17:53:22]Write to MH i2c: E2 08 00 9B 18 80 09 00 00 00 00 00 00 25 [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 03 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [17:53:22]RAPDU: 90 00 [17:53:22]wFMCommunicate OK [17:53:22]SAM_PROTO_ClearQueue done [17:53:22]KKMCreateOFDPacket [17:53:22]OFDProtocolAddRootSTLVToBuf [17:53:22]FM_MakeSignedData [17:53:22]FM_MakeSignedData [17:53:22]SAM_PROTO_SignData [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 0D 01 02 [17:53:22]Write to MH i2c: E2 08 00 9C 18 80 0D 01 02 00 00 00 00 2D [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 03 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 03 00 9C 18 00 90 00 28 [17:53:22]RAPDU: 90 00 [17:53:22]wFMCommunicate OK [17:53:22]wFMCommunicate request_size=255 [17:53:22]MH_SAM_APDU [17:53:22]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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 13 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [17:53:22]Write to MH i2c: E2 02 01 9D 18 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 13 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 EF [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:23]Read from MH i2c: E2 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 03 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 03 00 9D 18 00 90 00 29 [17:53:23]RAPDU: 90 00 [17:53:23]wFMCommunicate OK [17:53:23]wFMCommunicate request_size=11 [17:53:23]MH_SAM_APDU [17:53:23]CAPDU: 80 0D 02 02 06 87 5D 00 FE 7B AF [17:53:23]Write to MH i2c: E2 0E 00 9E 18 80 0D 02 02 06 00 87 5D 00 FE 7B AF 00 00 48 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:23]Read from MH i2c: E2 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 03 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 03 00 9E 18 00 90 00 2A [17:53:23]RAPDU: 90 00 [17:53:23]wFMCommunicate OK [17:53:23]wFMCommunicate request_size=4 [17:53:23]MH_SAM_APDU [17:53:23]CAPDU: 80 0D 03 02 [17:53:23]Write to MH i2c: E2 08 00 9F 18 80 0D 03 02 00 00 00 00 32 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:23]Read from MH i2c: E2 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 0B 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 0B 00 9F 18 00 46 C4 90 CF 4A 6C B4 0A 90 00 10 [17:53:23]RAPDU: 46 C4 90 CF 4A 6C B4 0A 90 00 [17:53:23]wFMCommunicate OK [17:53:23]SAM_PROTO_SignData done [17:53:23]FM_MakeSignedData done [17:53:23]CreateOFDProtocolMessage [17:53:23]wFMCommunicate request_size=4 [17:53:23]MH_SAM_APDU [17:53:23]CAPDU: 80 11 00 00 [17:53:23]Write to MH i2c: E2 08 00 A0 18 80 11 00 00 00 00 00 00 32 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:23]Read from MH i2c: E2 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 17 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 17 00 A0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8D [17:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:53:23]wFMCommunicate OK [17:53:23]CreateOFDProtocolMessage done [17:53:23]OFDSenderStorePacket 139731 [17:53:23]StoreOFDPacket docnum=139731 [17:53: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 10 01 00 00 F2 07 08 01 FD DC 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 13 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 87 5D 00 FE 7B AF 46 C4 90 CF 4A 6C B4 0A [17:53:23]CheckFolder [17:53:23]dirname=/storage/ofd_packets [17:53:23]CheckFolder done [17:53:23]ProducePacketName [17:53:23]name=ofd_packets/00139731 [17:53:23]NVStorageSaveData ofd_packets/00139731 [17:53:23]File name is /storage/ofd_packets/00139731 [17:53:23]Write 302 bytes [17:53:23]NVStorageSaveData done [17:53:23]OFDSenderStorePacket done [17:53:23]KKMCreateOFDPacket done [17:53:23]NVStorageSaveData kkm_last_timestamp [17:53:23]File name is /storage/kkm_last_timestamp [17:53:23]Write 4 bytes [17:53:23]NVStorageSaveData done [17:53:23]ExternCall_PrintAddStr [17:53:23]wPrintStart [17:53:23]Write to MH i2c: 01 00 00 A1 18 B9 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: 01 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: 01 07 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: 01 07 00 A1 18 00 00 00 00 00 FF 0F CE [17:53:23]RasterBufferAndPrint [17:53:23]line Счет N : (1)1095356 [17:53:23]line ИНН: 02508201610067 [17:53:23]line Контрольно-Кассовый Чек [17:53:23]line ПРОДАЖА [17:53:23]line ТРК (МРК, ГНК) : 61 [17:53:23]line Товар: 2710194210 [17:53:23]line ДТ(л)-К-2 [17:53:23]line 100.000 * 0.00 [17:53:23]line = 0.00 [17:53:23]line НДС 12% НСП 1% [17:53:23]line > о реализуемом товаре [17:53:23]line ИТОГО: 0.00 [17:53:23]line НСП 1% : 0.00 [17:53:23]line НДС 12% : 0.00 [17:53:23]line Наличными: 0.00 [17:53:23]line Безнал.: 0.00 [17:53:23]line Место: АЗС № 101 "Партнер Нефть" [17:53:23]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:53:23]line СНО: Общий режим [17:53:23]line Чек 208 31.10.2024 17:53 [17:53:23]line Смена: 557 ФФД: 1.0 [17:53:23]line ЗНМ: 0300000081 [17:53:23]line РНМ: 0000000000091631 [17:53:23]line Версия ККМ: 001 [17:53:23]line Талоны: ТК ГПНА Online [17:53:23]line 30075297 [17:53:23]line ФМ: 0000000000874669 [17:53:23]line ФД: 139731 [17:53:23]line ФПД: 148833518386095 [17:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175323&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139731&fm=148833518386095&tin=02508201610067®Number=0000000000091631&sum=0 [17:53:23]written 0, free lines is 4095 [17:53:23]OFD Sender: Processing packet 139731 [packets to send 34, broken 33] [17:53:23]ProducePacketName [17:53:23]name=ofd_packets/00139731 [17:53:23]OFD Sender: To server: pG, [17:53:23]CommunicateWithHost lk.salyk.kg:30040 [17:53:23]ConnectInit lk.salyk.kg [17:53:23]Connected sock=10 [17:53: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 10 01 00 00 F2 07 08 01 FD DC 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 13 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 87 5D 00 FE 7B AF 46 C4 90 CF 4A 6C B4 0A [17:53: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 63 38 47 00 A5 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 21 02 00 F4 03 04 00 C0 6F 23 67 B6 04 01 00 00 35 26 CE A6 AD 22 9F 43 [17:53:23]CommunicateWithHost err = 0 [17:53:23]CheckOFDResponse [17:53:23]1017 (14) - 77093643461234 [17:53:23]1041 (16) - 0000000000874669 [17:53:23]1040 (4) - 139731 [17:53:23]1012 (4) - 31.10.2024 11:53 [17:53:23]1206 (1) - 0 [17:53:23]OFD Sender: Remove packet 139731 [17:53:23]ProducePacketName [17:53:23]name=ofd_packets/00139731 [17:53:23]NVStorageDeleteData [17:53:24]Write to MH i2c: 01 00 00 CB 18 E3 [17:53:24]Write i2c OK [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: 01 [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: 01 07 00 [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 EF 0C E5 [17:53:24]RasterBufferAndPrint [17:53:24]line [17:53:24]line [17:53:24]line [17:53:24]line [17:53:24]line [17:53:24]written 0, free lines is 3317 [17:53:24]MH_Cut [17:53:24]Write to MH i2c: D1 01 00 D2 18 01 BC [17:53:24]Write i2c OK [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: D1 [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: D1 01 00 [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: D1 01 00 D2 18 00 BB [17:53:24]Write to MH i2c: 01 00 00 D3 18 EB [17:53:24]Write i2c OK [17:53:24]MH_I2C_Read... [17:53:24]OFD Sender: No OFD packet to send [17:53:24]*** Cut start [17:53:24]*** Partial cut [17:53:24]*** CUTSNS_PIN = 1 [17:53:24]*** CUTSNS_PIN = 0 [17:53:25]*** Brake cut motor [17:53:25]Read from MH i2c: 01 [17:53:25]MH_I2C_Read... [17:53:25]*** Stop cut motor [17:53:25]*** Cut end [17:53:25]Read from MH i2c: 01 07 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: 01 07 00 D3 18 00 00 00 00 00 FF 0F 00 [17:53:25]process_action close_receipt done [17:53:25]requested_data is exist [17:53:25]produce_requested_data [17:53:25]requested_item fm.sn is exist - process it [17:53:25]wFMCommunicate request_size=4 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 11 00 00 [17:53:25]Write to MH i2c: E2 08 00 D4 18 80 11 00 00 00 00 00 00 66 [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 17 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 17 00 D4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [17:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:53:25]wFMCommunicate OK [17:53:25]requested_item fd.num is exist - process it [17:53:25]SAM_PROTO_GetFieldsCounters [17:53:25]wFMCommunicate request_size=4 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 13 00 00 [17:53:25]Write to MH i2c: E2 08 00 D5 18 80 13 00 00 00 00 00 00 69 [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 62 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 62 00 D5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [17:53: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 D3 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:25]wFMCommunicate OK [17:53:25]SAM_PROTO_GetFieldsCounters done [17:53:25]requested_item shift.num is exist - process it [17:53:25]requested_item shift.opened is exist - process it [17:53:25]req_shift_opened [17:53:25]FM_GetShiftState [17:53:25]SAM_PROTO_GetShiftState [17:53:25]wFMCommunicate request_size=4 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 13 01 00 [17:53:25]Write to MH i2c: E2 08 00 D6 18 80 13 01 00 00 00 00 00 6B [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 0E 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 0E 00 D6 18 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 94 [17:53:25]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:53:25]wFMCommunicate OK [17:53:25]SAM_PROTO_GetShiftState done [17:53:25]FM_GetShiftState done [17:53:25]req_shift_opened done [17:53:25]requested_item shift.open_date is exist - process it [17:53:25]req_shift_open_date [17:53:25]req_shift_open_date done [17:53:25]produce_requested_data done [17:53:25]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139731,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:53:25]process_action_free close_receipt [17:53:25]json_value_free [17:53:25]json_value_free done [17:53:25]process_json_proto returns [17:53:25]Send response to host [17:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139731,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:53:25]free response buf [17:53:25]execute_script done [17:53:25]execute_script returns [17:53:25]free content buf [17:53:25]Sock 7.Close socket [17:53:25]Sock 7.Thread stoped [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:48]accept exits with 9 [17:53:48]New connection [17:53:48]New thread 3066654052 created [17:53:48]Thread 3066510692 joined [17:53:48]Waiting for new connection... [17:53:48] Sock 9.Parse request [17:53:48]Sock 9.Check first char [17:53:48]Sock 9.First char is OK [17:53:48]request: POST /json_proto HTTP/1.0 [17:53:48]Method: POST [17:53:48]URL: /json_proto [17:53:48]Method is POST - this is cgi request [17:53:48]url: /json_proto [17:53:48]query_string will be loaded in cgi processing [17:53:48]execute_cgi json_proto POST (null) [17:53:48]execute_cgi path=json_proto method=POST [17:53:48]POST find Content-Length [17:53:48]Host: 172.17.50.196:8080 [17:53:48]Content-Length: 622 [17:53:48]Content-Type: application/json [17:53:48] [17:53:48]POST finish read [17:53:48]Found Content-Length = 622 [17:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335572", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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" ] } } [17:53:48]execute_script... [17:53: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)335572", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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" ] } } [17:53:48]POST & json_proto [17:53:48]process_json_proto [17:53:48]json parsed OK: [17:53:48]protocol is kg_v1.0 [17:53:48]action value=close_receipt [17:53:48]process_action close_receipt [17:53:48]cmd_close_receipt [17:53:48]MH_GetDate [17:53:48]Write to MH i2c: F0 00 00 D7 18 DE [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: F0 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: F0 09 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: F0 09 00 D7 18 00 2E C4 23 67 72 0D 1C 67 65 [17:53:48]GetLastDocTimeStamp 1730397203 [17:53:48]current date 1730397230 [17:53:48]FM_GetShiftState [17:53:48]SAM_PROTO_GetShiftState [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 13 01 00 [17:53:48]Write to MH i2c: E2 08 00 D8 18 80 13 01 00 00 00 00 00 6D [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 0E 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 0E 00 D8 18 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 96 [17:53:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:53:48]wFMCommunicate OK [17:53:48]SAM_PROTO_GetShiftState done [17:53:48]FM_GetShiftState done [17:53:48]opened in 1730332621 [17:53:48]opened+sec_in_day 1730419021 [17:53:48]quantity*price = 15900 [17:53:48]sum+1 = 15901 [17:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 209 31.10.2024 17:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139732 ФПД: 47635464342537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175350&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139732&fm=47635464342537&tin=02508201610067®Number=0000000000091631&sum=15900 0 [17:53:49]StoreToDocumentArchive [17:53:49]shift 557 fd 139732 [17:53:49]save to /storage/0557/doc_00139732 [17:53:49]save last doc name /storage/0557/doc_00139732 to /storage/kkm_last_doc_name [17:53:49]save OK [17:53:49]Clear old archive folders... [17:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=274 [17:53:49]tlvbuf is 00A94020 [17:53:49]SAM_PROTO_ClearQueue [17:53:49]wFMCommunicate request_size=4 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 09 00 00 [17:53:49]Write to MH i2c: E2 08 00 E5 18 80 09 00 00 00 00 00 00 6F [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 03 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [17:53:49]RAPDU: 90 00 [17:53:49]wFMCommunicate OK [17:53:49]SAM_PROTO_ClearQueue done [17:53:49]KKMCreateOFDPacket [17:53:49]OFDProtocolAddRootSTLVToBuf [17:53:49]FM_MakeSignedData [17:53:49]FM_MakeSignedData [17:53:49]SAM_PROTO_SignData [17:53:49]wFMCommunicate request_size=4 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 0D 01 02 [17:53:49]Write to MH i2c: E2 08 00 E6 18 80 0D 01 02 00 00 00 00 77 [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 03 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [17:53:49]RAPDU: 90 00 [17:53:49]wFMCommunicate OK [17:53:49]wFMCommunicate request_size=255 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 D1 00 00 00 F4 03 04 00 2E C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [17:53:49]Write to MH i2c: E2 02 01 E7 18 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 D1 00 00 00 F4 03 04 00 2E C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 12 [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 E7 18 00 90 00 73 [17:53:50]RAPDU: 90 00 [17:53:50]wFMCommunicate OK [17:53:50]wFMCommunicate request_size=33 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 21 02 00 35 04 06 00 2B 52 FE EE 4C 09 [17:53:50]Write to MH i2c: E2 24 00 E8 18 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 21 02 00 35 04 06 00 2B 52 FE EE 4C 09 00 00 C6 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [17:53:50]RAPDU: 90 00 [17:53:50]wFMCommunicate OK [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 0D 03 02 [17:53:50]Write to MH i2c: E2 08 00 E9 18 80 0D 03 02 00 00 00 00 7C [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0B 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0B 00 E9 18 00 AF B1 4F 1A DB 45 D7 D9 90 00 16 [17:53:50]RAPDU: AF B1 4F 1A DB 45 D7 D9 90 00 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_SignData done [17:53:50]FM_MakeSignedData done [17:53:50]CreateOFDProtocolMessage [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 11 00 00 [17:53:50]Write to MH i2c: E2 08 00 EA 18 80 11 00 00 00 00 00 00 7C [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 17 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 17 00 EA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [17:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:53:50]wFMCommunicate OK [17:53:50]CreateOFDProtocolMessage done [17:53:50]OFDSenderStorePacket 139732 [17:53:50]StoreOFDPacket docnum=139732 [17:53: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 26 01 00 00 31 E6 1E 01 FB ED 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 D1 00 00 00 F4 03 04 00 2E C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2B 52 FE EE 4C 09 AF B1 4F 1A DB 45 D7 D9 [17:53:50]CheckFolder [17:53:50]dirname=/storage/ofd_packets [17:53:50]CheckFolder done [17:53:50]ProducePacketName [17:53:50]name=ofd_packets/00139732 [17:53:50]NVStorageSaveData ofd_packets/00139732 [17:53:50]File name is /storage/ofd_packets/00139732 [17:53:50]Write 324 bytes [17:53:50]NVStorageSaveData done [17:53:50]OFDSenderStorePacket done [17:53:50]KKMCreateOFDPacket done [17:53:50]NVStorageSaveData kkm_last_timestamp [17:53:50]File name is /storage/kkm_last_timestamp [17:53:50]Write 4 bytes [17:53:50]NVStorageSaveData done [17:53:50]ExternCall_PrintAddStr [17:53:50]wPrintStart [17:53:50]Write to MH i2c: 01 00 00 EB 18 03 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 07 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 07 00 EB 18 00 00 00 00 00 FF 0F 18 [17:53:50]RasterBufferAndPrint [17:53:50]line Счет N : (3)335572 [17:53:50]line ИНН: 02508201610067 [17:53:50]line Контрольно-Кассовый Чек [17:53:50]line ПРОДАЖА [17:53:50]line Товар: 4640030091645 [17:53:50]line Сигареты ESSE Exchange M [17:53:50]line 1.000 * 159.00 [17:53:50]line = 159.00 [17:53:50]line НДС 12% НСП 1% [17:53:50]line > о реализуемом товаре [17:53:50]line ИТОГО: 159.00 [17:53:50]line НСП 1% : 1.41 [17:53:50]line НДС 12% : 16.88 [17:53:50]line Наличными: 159.00 [17:53:50]line Безнал.: 0.00 [17:53:50]line Место: АЗС № 101 "Партнер Нефть" [17:53:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:53:50]line СНО: Общий режим [17:53:50]line Чек 209 31.10.2024 17:53 [17:53:50]line Смена: 557 ФФД: 1.0 [17:53:50]line ЗНМ: 0300000081 [17:53:50]line РНМ: 0000000000091631 [17:53:50]line Версия ККМ: 001 [17:53:50]line ФМ: 0000000000874669 [17:53:50]line ФД: 139732 [17:53:50]line ФПД: 47635464342537 [17:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175350&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139732&fm=47635464342537&tin=02508201610067®Number=0000000000091631&sum=15900 [17:53:50]OFD Sender: Processing packet 139732 [packets to send 34, broken 33] [17:53:50]ProducePacketName [17:53:50]name=ofd_packets/00139732 [17:53:50]OFD Sender: To server: pG, [17:53:50]CommunicateWithHost lk.salyk.kg:30040 [17:53:50]ConnectInit lk.salyk.kg [17:53:50]line 0 [17:53:50]written 0, free lines is 4095 [17:53:50]Connected sock=10 [17: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 26 01 00 00 31 E6 1E 01 FB ED 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 D1 00 00 00 F4 03 04 00 2E C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2B 52 FE EE 4C 09 AF B1 4F 1A DB 45 D7 D9 [17: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 88 51 47 00 54 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 21 02 00 F4 03 04 00 DB 6F 23 67 B6 04 01 00 00 DF D7 88 46 F6 55 38 5D [17:53:50]CommunicateWithHost err = 0 [17:53:50]CheckOFDResponse [17:53:50]1017 (14) - 77093643461234 [17:53:50]1041 (16) - 0000000000874669 [17:53:50]1040 (4) - 139732 [17:53:50]1012 (4) - 31.10.2024 11:54 [17:53:50]1206 (1) - 0 [17:53:50]OFD Sender: Remove packet 139732 [17:53:50]ProducePacketName [17:53:50]name=ofd_packets/00139732 [17:53:50]NVStorageDeleteData [17:53:50]Write to MH i2c: 01 00 00 13 19 2C [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 07 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 07 00 13 19 00 00 00 00 00 13 0D 53 [17:53:50]RasterBufferAndPrint [17:53:50]line [17:53:50]line [17:53:50]line [17:53:50]line [17:53:50]line [17:53:50]written 0, free lines is 3354 [17:53:50]MH_Cut [17:53:50]Write to MH i2c: D1 01 00 1A 19 01 05 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: D1 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: D1 01 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: D1 01 00 1A 19 00 04 [17:53:50]Write to MH i2c: 01 00 00 1B 19 34 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:51]OFD Sender: No OFD packet to send [17:53:51]*** Cut start [17:53:51]*** Partial cut [17:53:51]*** CUTSNS_PIN = 1 [17:53:51]*** CUTSNS_PIN = 0 [17:53:51]*** Brake cut motor [17:53:52]Read from MH i2c: 01 [17:53:52]MH_I2C_Read... [17:53:52]*** Stop cut motor [17:53:52]*** Cut end [17:53:52]Read from MH i2c: 01 07 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: 01 07 00 1B 19 00 00 00 00 00 FF 0F 49 [17:53:52]process_action close_receipt done [17:53:52]requested_data is exist [17:53:52]produce_requested_data [17:53:52]requested_item fm.sn is exist - process it [17:53:52]wFMCommunicate request_size=4 [17:53:52]MH_SAM_APDU [17:53:52]CAPDU: 80 11 00 00 [17:53:52]Write to MH i2c: E2 08 00 1C 19 80 11 00 00 00 00 00 00 AF [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:52]Read from MH i2c: E2 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 17 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 17 00 1C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0A [17:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:53:52]wFMCommunicate OK [17:53:52]requested_item fd.num is exist - process it [17:53:52]SAM_PROTO_GetFieldsCounters [17:53:52]wFMCommunicate request_size=4 [17:53:52]MH_SAM_APDU [17:53:52]CAPDU: 80 13 00 00 [17:53:52]Write to MH i2c: E2 08 00 1D 19 80 13 00 00 00 00 00 00 B2 [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:52]Read from MH i2c: E2 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 62 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 62 00 1D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [17:53: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 D4 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:52]wFMCommunicate OK [17:53:52]SAM_PROTO_GetFieldsCounters done [17:53:52]requested_item shift.num is exist - process it [17:53:52]requested_item shift.opened is exist - process it [17:53:52]req_shift_opened [17:53:52]FM_GetShiftState [17:53:52]SAM_PROTO_GetShiftState [17:53:52]wFMCommunicate request_size=4 [17:53:52]MH_SAM_APDU [17:53:52]CAPDU: 80 13 01 00 [17:53:52]Write to MH i2c: E2 08 00 1E 19 80 13 01 00 00 00 00 00 B4 [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:52]Read from MH i2c: E2 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 0E 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: E2 0E 00 1E 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DD [17:53:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:53:52]wFMCommunicate OK [17:53:52]SAM_PROTO_GetShiftState done [17:53:52]FM_GetShiftState done [17:53:52]req_shift_opened done [17:53:52]requested_item shift.open_date is exist - process it [17:53:52]req_shift_open_date [17:53:52]req_shift_open_date done [17:53:52]produce_requested_data done [17:53:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139732,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:53:52]process_action_free close_receipt [17:53:52]json_value_free [17:53:52]json_value_free done [17:53:52]process_json_proto returns [17:53:52]Send response to host [17:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139732,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:53:52]free response buf [17:53:52]execute_script done [17:53:52]execute_script returns [17:53:52]free content buf [17:53:52]Sock 9.Close socket [17:53:52]Sock 9.Thread stoped [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:26]accept exits with 7 [17:54:26]New connection [17:54:26]New thread 3066510692 created [17:54:26]Thread 3066654052 joined [17:54:26]Waiting for new connection... [17:54:26] Sock 7.Parse request [17:54:26]Sock 7.Check first char [17:54:26]Sock 7.First char is OK [17:54:26]request: POST /json_proto HTTP/1.0 [17:54:26]Method: POST [17:54:26]URL: /json_proto [17:54:26]Method is POST - this is cgi request [17:54:26]url: /json_proto [17:54:26]query_string will be loaded in cgi processing [17:54:26]execute_cgi json_proto POST (null) [17:54:26]execute_cgi path=json_proto method=POST [17:54:26]POST find Content-Length [17:54:26]Host: 172.17.50.196:8080 [17:54:26]Content-Length: 613 [17:54:26]Content-Type: application/json [17:54:26] [17:54:26]POST finish read [17:54:26]Found Content-Length = 613 [17:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335573", "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:26]execute_script... [17:54:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335573", "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:26]POST & json_proto [17:54:26]process_json_proto [17:54:26]json parsed OK: [17:54:26]protocol is kg_v1.0 [17:54:26]action value=close_receipt [17:54:26]process_action close_receipt [17:54:26]cmd_close_receipt [17:54:26]MH_GetDate [17:54:26]Write to MH i2c: F0 00 00 1F 19 27 [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: F0 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: F0 09 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: F0 09 00 1F 19 00 54 C4 23 67 72 0D 1C 67 D4 [17:54:26]GetLastDocTimeStamp 1730397230 [17:54:26]current date 1730397268 [17:54:26]FM_GetShiftState [17:54:26]SAM_PROTO_GetShiftState [17:54:26]wFMCommunicate request_size=4 [17:54:26]MH_SAM_APDU [17:54:26]CAPDU: 80 13 01 00 [17:54:26]Write to MH i2c: E2 08 00 20 19 80 13 01 00 00 00 00 00 B6 [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:26]Read from MH i2c: E2 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: E2 0E 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: E2 0E 00 20 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DF [17:54:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:54:26]wFMCommunicate OK [17:54:26]SAM_PROTO_GetShiftState done [17:54:26]FM_GetShiftState done [17:54:26]opened in 1730332621 [17:54:26]opened+sec_in_day 1730419021 [17:54:26]quantity*price = 8000 [17:54:26]sum+1 = 8001 [17:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 210 31.10.2024 17:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139733 ФПД: 106177545515960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175428&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139733&fm=106177545515960&tin=02508201610067®Number=0000000000091631&sum=8000 0 [17:54:27]StoreToDocumentArchive [17:54:27]shift 557 fd 139733 [17:54:27]save to /storage/0557/doc_00139733 [17:54:27]save last doc name /storage/0557/doc_00139733 to /storage/kkm_last_doc_name [17:54:27]save OK [17:54:27]Clear old archive folders... [17:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=268 [17:54:27]tlvbuf is B6E78AE0 [17:54:27]SAM_PROTO_ClearQueue [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 09 00 00 [17:54:27]Write to MH i2c: E2 08 00 2D 19 80 09 00 00 00 00 00 00 B8 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [17:54:27]RAPDU: 90 00 [17:54:27]wFMCommunicate OK [17:54:27]SAM_PROTO_ClearQueue done [17:54:27]KKMCreateOFDPacket [17:54:27]OFDProtocolAddRootSTLVToBuf [17:54:27]FM_MakeSignedData [17:54:27]FM_MakeSignedData [17:54:27]SAM_PROTO_SignData [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 0D 01 02 [17:54:27]Write to MH i2c: E2 08 00 2E 19 80 0D 01 02 00 00 00 00 C0 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [17:54:27]RAPDU: 90 00 [17:54:27]wFMCommunicate OK [17:54:27]wFMCommunicate request_size=255 [17:54:27]MH_SAM_APDU [17:54:27]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 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 54 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [17:54:27]Write to MH i2c: E2 02 01 2F 19 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 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 54 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 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 71 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [17:54:27]RAPDU: 90 00 [17:54:27]wFMCommunicate OK [17:54:27]wFMCommunicate request_size=27 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 0D 02 02 16 34 36 36 39 10 04 04 00 D5 21 02 00 35 04 06 00 60 91 62 E2 33 B8 [17:54:27]Write to MH i2c: E2 1E 00 30 19 80 0D 02 02 16 00 34 36 36 39 10 04 04 00 D5 21 02 00 35 04 06 00 60 91 62 E2 33 B8 00 00 37 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 [17:54:28]MH_I2C_Read... [17:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:28]Read from MH i2c: E2 03 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [17:54:28]RAPDU: 90 00 [17:54:28]wFMCommunicate OK [17:54:28]wFMCommunicate request_size=4 [17:54:28]MH_SAM_APDU [17:54:28]CAPDU: 80 0D 03 02 [17:54:28]Write to MH i2c: E2 08 00 31 19 80 0D 03 02 00 00 00 00 C5 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:28]Read from MH i2c: E2 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 0B 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 0B 00 31 19 00 37 84 AA FB 00 93 59 A5 90 00 B7 [17:54:28]RAPDU: 37 84 AA FB 00 93 59 A5 90 00 [17:54:28]wFMCommunicate OK [17:54:28]SAM_PROTO_SignData done [17:54:28]FM_MakeSignedData done [17:54:28]CreateOFDProtocolMessage [17:54:28]wFMCommunicate request_size=4 [17:54:28]MH_SAM_APDU [17:54:28]CAPDU: 80 11 00 00 [17:54:28]Write to MH i2c: E2 08 00 32 19 80 11 00 00 00 00 00 00 C5 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:28]Read from MH i2c: E2 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 17 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 17 00 32 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 20 [17:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:54:28]wFMCommunicate OK [17:54:28]CreateOFDProtocolMessage done [17:54:28]OFDSenderStorePacket 139733 [17:54:28]StoreOFDPacket docnum=139733 [17:54:28]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 5D DA 18 01 88 8D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 54 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 60 91 62 E2 33 B8 37 84 AA FB 00 93 59 A5 [17:54:28]CheckFolder [17:54:28]dirname=/storage/ofd_packets [17:54:28]CheckFolder done [17:54:28]ProducePacketName [17:54:28]name=ofd_packets/00139733 [17:54:28]NVStorageSaveData ofd_packets/00139733 [17:54:28]File name is /storage/ofd_packets/00139733 [17:54:28]Write 318 bytes [17:54:28]NVStorageSaveData done [17:54:28]OFDSenderStorePacket done [17:54:28]KKMCreateOFDPacket done [17:54:28]NVStorageSaveData kkm_last_timestamp [17:54:28]File name is /storage/kkm_last_timestamp [17:54:28]Write 4 bytes [17:54:28]NVStorageSaveData done [17:54:28]ExternCall_PrintAddStr [17:54:28]wPrintStart [17:54:28]Write to MH i2c: 01 00 00 33 19 4C [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 33 19 00 00 00 00 00 FF 0F 61 [17:54:28]RasterBufferAndPrint [17:54:28]line Счет N : (3)335573 [17:54:28]line ИНН: 02508201610067 [17:54:28]line Контрольно-Кассовый Чек [17:54:28]line ПРОДАЖА [17:54:28]line Товар: 4870001570057 [17:54:28]line Напиток Pepsi 0,5л [17:54:28]line 1.000 * 80.00 [17:54:28]line = 80.00 [17:54:28]line НДС 12% НСП 1% [17:54:28]line > о реализуемом товаре [17:54:28]line ИТОГО: 80.00 [17:54:28]line НСП 1% : 0.71 [17:54:28]line НДС 12% : 8.50 [17:54:28]line Наличными: 80.00 [17:54:28]line Безнал.: 0.00 [17:54:28]line Место: АЗС № 101 "Партнер Нефть" [17:54:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:54:28]line СНО: Общий режим [17:54:28]line Чек 210 31.10.2024 17:54 [17:54:28]line Смена: 557 ФФД: 1.0 [17:54:28]line ЗНМ: 0300000081 [17:54:28]line РНМ: 0000000000091631 [17:54:28]line Версия ККМ: 001 [17:54:28]line ФМ: 0000000000874669 [17:54:28]line ФД: 139733 [17:54:28]line ФПД: 106177545515960 [17:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175428&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139733&fm=106177545515960&tin=02508201610067®Number=0000000000091631&sum=8000 [17:54:28]OFD Sender: Processing packet 139733 [packets to send 34, broken 33] [17:54:28]ProducePacketName [17:54:28]name=ofd_packets/00139733 [17:54:28]OFD Sender: To server: pG, [17:54:28]CommunicateWithHost lk.salyk.kg:30040 [17:54:28]ConnectInit lk.salyk.kg [17:54:28]line 0 [17:54:28]written 0, free lines is 4095 [17:54:28]Connected sock=10 [17:54: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 20 01 00 00 5D DA 18 01 88 8D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 54 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 60 91 62 E2 33 B8 37 84 AA FB 00 93 59 A5 [17:54: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 A6 01 47 00 3C 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 D5 21 02 00 F4 03 04 00 01 70 23 67 B6 04 01 00 00 F7 93 60 BC 04 00 40 3F [17:54:28]CommunicateWithHost err = 0 [17:54:28]CheckOFDResponse [17:54:28]1017 (14) - 77093643461234 [17:54:28]1041 (16) - 0000000000874669 [17:54:28]1040 (4) - 139733 [17:54:28]1012 (4) - 31.10.2024 11:54 [17:54:28]1206 (1) - 0 [17:54:28]OFD Sender: Remove packet 139733 [17:54:28]ProducePacketName [17:54:28]name=ofd_packets/00139733 [17:54:28]NVStorageDeleteData [17:54:28]Write to MH i2c: 01 00 00 5B 19 74 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 04 0D 8C [17:54:28]RasterBufferAndPrint [17:54:28]line [17:54:28]line [17:54:28]line [17:54:28]line [17:54:28]line [17:54:28]written 0, free lines is 3338 [17:54:28]MH_Cut [17:54:28]Write to MH i2c: D1 01 00 62 19 01 4D [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D1 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D1 01 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D1 01 00 62 19 00 4C [17:54:28]Write to MH i2c: 01 00 00 63 19 7C [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:29]OFD Sender: No OFD packet to send [17:54:29]*** Cut start [17:54:29]*** Partial cut [17:54:29]*** CUTSNS_PIN = 1 [17:54:29]*** CUTSNS_PIN = 0 [17:54:29]*** Brake cut motor [17:54:30]Read from MH i2c: 01 [17:54:30]MH_I2C_Read... [17:54:30]*** Stop cut motor [17:54:30]*** Cut end [17:54:30]Read from MH i2c: 01 07 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 FF 0F 91 [17:54:30]process_action close_receipt done [17:54:30]requested_data is exist [17:54:30]produce_requested_data [17:54:30]requested_item fm.sn is exist - process it [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 11 00 00 [17:54:30]Write to MH i2c: E2 08 00 64 19 80 11 00 00 00 00 00 00 F7 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 17 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 17 00 64 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 52 [17:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:54:30]wFMCommunicate OK [17:54:30]requested_item fd.num is exist - process it [17:54:30]SAM_PROTO_GetFieldsCounters [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 13 00 00 [17:54:30]Write to MH i2c: E2 08 00 65 19 80 13 00 00 00 00 00 00 FA [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 62 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 62 00 65 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [17:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:30]wFMCommunicate OK [17:54:30]SAM_PROTO_GetFieldsCounters done [17:54:30]requested_item shift.num is exist - process it [17:54:30]requested_item shift.opened is exist - process it [17:54:30]req_shift_opened [17:54:30]FM_GetShiftState [17:54:30]SAM_PROTO_GetShiftState [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 13 01 00 [17:54:30]Write to MH i2c: E2 08 00 66 19 80 13 01 00 00 00 00 00 FC [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 66 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 25 [17:54:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:54:30]wFMCommunicate OK [17:54:30]SAM_PROTO_GetShiftState done [17:54:30]FM_GetShiftState done [17:54:30]req_shift_opened done [17:54:30]requested_item shift.open_date is exist - process it [17:54:30]req_shift_open_date [17:54:30]req_shift_open_date done [17:54:30]produce_requested_data done [17:54:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139733,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:54:30]process_action_free close_receipt [17:54:30]json_value_free [17:54:30]json_value_free done [17:54:30]process_json_proto returns [17:54:30]Send response to host [17:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139733,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:54:30]free response buf [17:54:30]execute_script done [17:54:30]execute_script returns [17:54:30]free content buf [17:54:30]Sock 7.Close socket [17:54:30]Sock 7.Thread stoped [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:45]accept exits with 9 [17:55:45]New connection [17:55:45]New thread 3066654052 created [17:55:45]Thread 3066510692 joined [17:55:45]Waiting for new connection... [17:55:45] Sock 9.Parse request [17:55:45]Sock 9.Check first char [17:55:45]Sock 9.First char is OK [17:55:45]request: POST /json_proto HTTP/1.0 [17:55:45]Method: POST [17:55:45]URL: /json_proto [17:55:45]Method is POST - this is cgi request [17:55:45]url: /json_proto [17:55:45]query_string will be loaded in cgi processing [17:55:45]execute_cgi json_proto POST (null) [17:55:45]execute_cgi path=json_proto method=POST [17:55:45]POST find Content-Length [17:55:45]Host: 172.17.50.196:8080 [17:55:45]Content-Length: 718 [17:55:45]Content-Type: application/json [17:55:45] [17:55:45]POST finish read [17:55:45]Found Content-Length = 718 [17:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335574", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:45]execute_script... [17:55: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)335574", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:45]POST & json_proto [17:55:45]process_json_proto [17:55:45]json parsed OK: [17:55:45]protocol is kg_v1.0 [17:55:45]action value=close_receipt [17:55:45]process_action close_receipt [17:55:45]cmd_close_receipt [17:55:45]MH_GetDate [17:55:45]Write to MH i2c: F0 00 00 67 19 6F [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: F0 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: F0 09 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: F0 09 00 67 19 00 A3 C4 23 67 72 0D 1C 67 6B [17:55:45]GetLastDocTimeStamp 1730397268 [17:55:45]current date 1730397347 [17:55:45]FM_GetShiftState [17:55:45]SAM_PROTO_GetShiftState [17:55:45]wFMCommunicate request_size=4 [17:55:45]MH_SAM_APDU [17:55:45]CAPDU: 80 13 01 00 [17:55:45]Write to MH i2c: E2 08 00 68 19 80 13 01 00 00 00 00 00 FE [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:45]Read from MH i2c: E2 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 0E 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 0E 00 68 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 27 [17:55:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:55:45]wFMCommunicate OK [17:55:45]SAM_PROTO_GetShiftState done [17:55:45]FM_GetShiftState done [17:55:45]opened in 1730332621 [17:55:45]opened+sec_in_day 1730419021 [17:55:45]quantity*price = 25000 [17:55:45]sum+1 = 25001 [17:55:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 211 31.10.2024 17:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139734 ФПД: 188407438453855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175547&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139734&fm=188407438453855&tin=02508201610067®Number=0000000000091631&sum=25000 0 [17:55:46]StoreToDocumentArchive [17:55:46]shift 557 fd 139734 [17:55:46]save to /storage/0557/doc_00139734 [17:55:46]save last doc name /storage/0557/doc_00139734 to /storage/kkm_last_doc_name [17:55:46]save OK [17:55:46]Clear old archive folders... [17:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=302 [17:55:46]tlvbuf is B6E5F5F0 [17:55:46]SAM_PROTO_ClearQueue [17:55:46]wFMCommunicate request_size=4 [17:55:46]MH_SAM_APDU [17:55:46]CAPDU: 80 09 00 00 [17:55:46]Write to MH i2c: E2 08 00 75 19 80 09 00 00 00 00 00 00 00 [17:55:46]Write i2c OK [17:55:46]MH_I2C_Read... [17:55:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:46]Read from MH i2c: E2 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 03 00 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [17:55:46]RAPDU: 90 00 [17:55:46]wFMCommunicate OK [17:55:46]SAM_PROTO_ClearQueue done [17:55:46]KKMCreateOFDPacket [17:55:46]OFDProtocolAddRootSTLVToBuf [17:55:46]FM_MakeSignedData [17:55:46]FM_MakeSignedData [17:55:46]SAM_PROTO_SignData [17:55:46]wFMCommunicate request_size=4 [17:55:46]MH_SAM_APDU [17:55:46]CAPDU: 80 0D 01 02 [17:55:46]Write to MH i2c: E2 08 00 76 19 80 0D 01 02 00 00 00 00 08 [17:55:46]Write i2c OK [17:55:46]MH_I2C_Read... [17:55:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:46]Read from MH i2c: E2 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 03 00 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 03 00 76 19 00 90 00 03 [17:55:46]RAPDU: 90 00 [17:55:46]wFMCommunicate OK [17:55:46]wFMCommunicate request_size=255 [17:55:46]MH_SAM_APDU [17:55:46]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 [17:55:46]Write to MH i2c: E2 02 01 77 19 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 00 00 C5 [17:55:46]Write i2c OK [17:55:46]MH_I2C_Read... [17:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:46]Read from MH i2c: E2 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 03 00 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [17:55:46]RAPDU: 90 00 [17:55:46]wFMCommunicate OK [17:55:46]wFMCommunicate request_size=61 [17:55:46]MH_SAM_APDU [17:55:46]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AB 5B 06 71 2C 5F [17:55:46]Write to MH i2c: E2 40 00 78 19 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AB 5B 06 71 2C 5F 00 00 44 [17:55:46]Write i2c OK [17:55:46]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 03 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [17:55:47]RAPDU: 90 00 [17:55:47]wFMCommunicate OK [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 0D 03 02 [17:55:47]Write to MH i2c: E2 08 00 79 19 80 0D 03 02 00 00 00 00 0D [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0B 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0B 00 79 19 00 C4 A7 76 94 72 F1 79 92 90 00 F1 [17:55:47]RAPDU: C4 A7 76 94 72 F1 79 92 90 00 [17:55:47]wFMCommunicate OK [17:55:47]SAM_PROTO_SignData done [17:55:47]FM_MakeSignedData done [17:55:47]CreateOFDProtocolMessage [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 11 00 00 [17:55:47]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 17 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 68 [17:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:55:47]wFMCommunicate OK [17:55:47]CreateOFDProtocolMessage done [17:55:47]OFDSenderStorePacket 139734 [17:55:47]StoreOFDPacket docnum=139734 [17:55: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 42 01 00 00 E9 50 3A 01 CC 52 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AB 5B 06 71 2C 5F C4 A7 76 94 72 F1 79 92 [17:55:47]CheckFolder [17:55:47]dirname=/storage/ofd_packets [17:55:47]CheckFolder done [17:55:47]ProducePacketName [17:55:47]name=ofd_packets/00139734 [17:55:47]NVStorageSaveData ofd_packets/00139734 [17:55:47]File name is /storage/ofd_packets/00139734 [17:55:47]Write 352 bytes [17:55:47]NVStorageSaveData done [17:55:47]OFDSenderStorePacket done [17:55:47]KKMCreateOFDPacket done [17:55:47]NVStorageSaveData kkm_last_timestamp [17:55:47]File name is /storage/kkm_last_timestamp [17:55:47]Write 4 bytes [17:55:47]NVStorageSaveData done [17:55:47]ExternCall_PrintAddStr [17:55:47]wPrintStart [17:55:47]Write to MH i2c: 01 00 00 7B 19 94 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 FF 0F A9 [17:55:47]RasterBufferAndPrint [17:55:47]line Счет N : (3)335574 [17:55:47]line ИНН: 02508201610067 [17:55:47]line Контрольно-Кассовый Чек [17:55:47]line ПРОДАЖА [17:55:47]line Товар: 4606532000189 [17:55:47]line Тормозная жидкость РосДот-4 0,455кг [17:55:47]line 1.000 * 250.00 [17:55:47]line = 250.00 [17:55:47]line НДС 12% НСП 1% [17:55:47]line > о реализуемом товаре [17:55:47]line ИТОГО: 250.00 [17:55:47]line НСП 1% : 2.21 [17:55:47]line НДС 12% : 26.55 [17:55:47]line Наличными: 250.00 [17:55:47]line Безнал.: 0.00 [17:55:47]line Место: АЗС № 101 "Партнер Нефть" [17:55:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:55:47]line СНО: Общий режим [17:55:47]line Чек 211 31.10.2024 17:55 [17:55:47]line Смена: 557 ФФД: 1.0 [17:55:47]line ЗНМ: 0300000081 [17:55:47]line РНМ: 0000000000091631 [17:55:47]line Версия ККМ: 001 [17:55:47]line ФМ: 0000000000874669 [17:55:47]line ФД: 139734 [17:55:47]line ФПД: 188407438453855 [17:55:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T175547&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139734&fm=188407438453855&tin=02508201610067®Number=0000000000091631&sum=25000 [17:55:47]line 0 [17:55:47]OFD Sender: Processing packet 139734 [packets to send 34, broken 33] [17:55:47]ProducePacketName [17:55:47]name=ofd_packets/00139734 [17:55:47]OFD Sender: To server: pG, [17:55:47]CommunicateWithHost lk.salyk.kg:30040 [17:55:47]ConnectInit lk.salyk.kg [17:55:47]written 0, free lines is 4095 [17:55:47]Connected sock=10 [17: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 42 01 00 00 E9 50 3A 01 CC 52 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 C4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 AB 5B 06 71 2C 5F C4 A7 76 94 72 F1 79 92 [17: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 55 37 47 00 5C 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 D6 21 02 00 F4 03 04 00 50 70 23 67 B6 04 01 00 00 09 98 11 5F CF 82 53 F8 [17:55:47]CommunicateWithHost err = 0 [17:55:47]CheckOFDResponse [17:55:47]1017 (14) - 77093643461234 [17:55:47]1041 (16) - 0000000000874669 [17:55:47]1040 (4) - 139734 [17:55:47]1012 (4) - 31.10.2024 11:56 [17:55:47]1206 (1) - 0 [17:55:47]OFD Sender: Remove packet 139734 [17:55:47]ProducePacketName [17:55:47]name=ofd_packets/00139734 [17:55:47]NVStorageDeleteData [17:55:47]Write to MH i2c: 01 00 00 A4 19 BD [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 A4 19 00 00 00 00 00 F0 0C C0 [17:55:47]RasterBufferAndPrint [17:55:47]line [17:55:47]line [17:55:47]line [17:55:47]line [17:55:47]line [17:55:47]written 0, free lines is 3322 [17:55:47]MH_Cut [17:55:47]Write to MH i2c: D1 01 00 AB 19 01 96 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: D1 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: D1 01 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: D1 01 00 AB 19 00 95 [17:55:47]Write to MH i2c: 01 00 00 AC 19 C5 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:48]OFD Sender: No OFD packet to send [17:55:48]*** Cut start [17:55:48]*** Partial cut [17:55:48]*** CUTSNS_PIN = 1 [17:55:48]*** CUTSNS_PIN = 0 [17:55:48]*** Brake cut motor [17:55:49]Read from MH i2c: 01 [17:55:49]MH_I2C_Read... [17:55:49]*** Stop cut motor [17:55:49]*** Cut end [17:55:49]Read from MH i2c: 01 07 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: 01 07 00 AC 19 00 00 00 00 00 FF 0F DA [17:55:49]process_action close_receipt done [17:55:49]requested_data is exist [17:55:49]produce_requested_data [17:55:49]requested_item fm.sn is exist - process it [17:55:49]wFMCommunicate request_size=4 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 11 00 00 [17:55:49]Write to MH i2c: E2 08 00 AD 19 80 11 00 00 00 00 00 00 40 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 17 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 17 00 AD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9B [17:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:55:49]wFMCommunicate OK [17:55:49]requested_item fd.num is exist - process it [17:55:49]SAM_PROTO_GetFieldsCounters [17:55:49]wFMCommunicate request_size=4 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 13 00 00 [17:55:49]Write to MH i2c: E2 08 00 AE 19 80 13 00 00 00 00 00 00 43 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 62 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 62 00 AE 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [17:55: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 D6 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:49]wFMCommunicate OK [17:55:49]SAM_PROTO_GetFieldsCounters done [17:55:49]requested_item shift.num is exist - process it [17:55:49]requested_item shift.opened is exist - process it [17:55:49]req_shift_opened [17:55:49]FM_GetShiftState [17:55:49]SAM_PROTO_GetShiftState [17:55:49]wFMCommunicate request_size=4 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 13 01 00 [17:55:49]Write to MH i2c: E2 08 00 AF 19 80 13 01 00 00 00 00 00 45 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 0E 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 0E 00 AF 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6E [17:55:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [17:55:49]wFMCommunicate OK [17:55:49]SAM_PROTO_GetShiftState done [17:55:49]FM_GetShiftState done [17:55:49]req_shift_opened done [17:55:49]requested_item shift.open_date is exist - process it [17:55:49]req_shift_open_date [17:55:49]req_shift_open_date done [17:55:49]produce_requested_data done [17:55:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139734,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [17:55:49]process_action_free close_receipt [17:55:49]json_value_free [17:55:49]json_value_free done [17:55:49]process_json_proto returns [17:55:49]Send response to host [17:55:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139734,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [17:55:49]free response buf [17:55:49]execute_script done [17:55:49]execute_script returns [17:55:49]free content buf [17:55:49]Sock 9.Close socket [17:55:49]Sock 9.Thread stoped [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:54]accept exits with 7 [18:06:54]New connection [18:06:54]New thread 3066510692 created [18:06:54]Thread 3066654052 joined [18:06:54]Waiting for new connection... [18:06:54] Sock 7.Parse request [18:06:54]Sock 7.Check first char [18:06:54]Sock 7.First char is OK [18:06:54]request: POST /json_proto HTTP/1.0 [18:06:54]Method: POST [18:06:54]URL: /json_proto [18:06:54]Method is POST - this is cgi request [18:06:54]url: /json_proto [18:06:54]query_string will be loaded in cgi processing [18:06:54]execute_cgi json_proto POST (null) [18:06:54]execute_cgi path=json_proto method=POST [18:06:54]POST find Content-Length [18:06:54]Host: 172.17.50.196:8080 [18:06:54]Content-Length: 620 [18:06:54]Content-Type: application/json [18:06:54] [18:06:54]POST finish read [18:06:54]Found Content-Length = 620 [18:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335575", "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" ] } } [18:06:54]execute_script... [18:06:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335575", "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" ] } } [18:06:54]POST & json_proto [18:06:54]process_json_proto [18:06:54]json parsed OK: [18:06:54]protocol is kg_v1.0 [18:06:54]action value=close_receipt [18:06:54]process_action close_receipt [18:06:54]cmd_close_receipt [18:06:54]MH_GetDate [18:06:54]Write to MH i2c: F0 00 00 B0 19 B8 [18:06:54]Write i2c OK [18:06:54]MH_I2C_Read... [18:06:54]Read from MH i2c: F0 [18:06:54]MH_I2C_Read... [18:06:54]Read from MH i2c: F0 09 00 [18:06:54]MH_I2C_Read... [18:06:54]Read from MH i2c: F0 09 00 B0 19 00 40 C7 23 67 72 0D 1C 67 54 [18:06:54]GetLastDocTimeStamp 1730397347 [18:06:54]current date 1730398016 [18:06:54]FM_GetShiftState [18:06:54]SAM_PROTO_GetShiftState [18:06:54]wFMCommunicate request_size=4 [18:06:54]MH_SAM_APDU [18:06:54]CAPDU: 80 13 01 00 [18:06:54]Write to MH i2c: E2 08 00 B1 19 80 13 01 00 00 00 00 00 47 [18:06:54]Write i2c OK [18:06:54]MH_I2C_Read... [18:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:54]Read from MH i2c: E2 [18:06:54]MH_I2C_Read... [18:06:54]Read from MH i2c: E2 0E 00 [18:06:54]MH_I2C_Read... [18:06:54]Read from MH i2c: E2 0E 00 B1 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 70 [18:06:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:06:54]wFMCommunicate OK [18:06:54]SAM_PROTO_GetShiftState done [18:06:54]FM_GetShiftState done [18:06:54]opened in 1730332621 [18:06:54]opened+sec_in_day 1730419021 [18:06:54]quantity*price = 13900 [18:06:54]sum+1 = 13901 [18:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 212 31.10.2024 18:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139735 ФПД: 225129703919083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T180656&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139735&fm=225129703919083&tin=02508201610067®Number=0000000000091631&sum=13900 0 [18:06:55]StoreToDocumentArchive [18:06:55]shift 557 fd 139735 [18:06:55]save to /storage/0557/doc_00139735 [18:06:55]save last doc name /storage/0557/doc_00139735 to /storage/kkm_last_doc_name [18:06:55]save OK [18:06:55]Clear old archive folders... [18:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:06:55]tlvbuf is 00A83E00 [18:06:55]SAM_PROTO_ClearQueue [18:06:55]wFMCommunicate request_size=4 [18:06:55]MH_SAM_APDU [18:06:55]CAPDU: 80 09 00 00 [18:06:55]Write to MH i2c: E2 08 00 BE 19 80 09 00 00 00 00 00 00 49 [18:06:55]Write i2c OK [18:06:55]MH_I2C_Read... [18:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:55]Read from MH i2c: E2 [18:06:55]MH_I2C_Read... [18:06:55]Read from MH i2c: E2 03 00 [18:06:55]MH_I2C_Read... [18:06:55]Read from MH i2c: E2 03 00 BE 19 00 90 00 4B [18:06:55]RAPDU: 90 00 [18:06:55]wFMCommunicate OK [18:06:55]SAM_PROTO_ClearQueue done [18:06:55]KKMCreateOFDPacket [18:06:55]OFDProtocolAddRootSTLVToBuf [18:06:55]FM_MakeSignedData [18:06:55]FM_MakeSignedData [18:06:55]SAM_PROTO_SignData [18:06:55]wFMCommunicate request_size=4 [18:06:55]MH_SAM_APDU [18:06:55]CAPDU: 80 0D 01 02 [18:06:55]Write to MH i2c: E2 08 00 BF 19 80 0D 01 02 00 00 00 00 51 [18:06:55]Write i2c OK [18:06:55]MH_I2C_Read... [18:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:55]Read from MH i2c: E2 [18:06:55]MH_I2C_Read... [18:06:55]Read from MH i2c: E2 03 00 [18:06:55]MH_I2C_Read... [18:06:55]Read from MH i2c: E2 03 00 BF 19 00 90 00 4C [18:06:55]RAPDU: 90 00 [18:06:55]wFMCommunicate OK [18:06:55]wFMCommunicate request_size=255 [18:06:55]MH_SAM_APDU [18:06:55]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 D4 00 00 00 F4 03 04 00 40 C7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [18:06:55]Write to MH i2c: E2 02 01 C0 19 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 D4 00 00 00 F4 03 04 00 40 C7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 11 [18:06:55]Write i2c OK [18:06:55]MH_I2C_Read... [18:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:56]Read from MH i2c: E2 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 03 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 03 00 C0 19 00 90 00 4D [18:06:56]RAPDU: 90 00 [18:06:56]wFMCommunicate OK [18:06:56]wFMCommunicate request_size=31 [18:06:56]MH_SAM_APDU [18:06:56]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 D7 21 02 00 35 04 06 00 CC C1 18 07 CD EB [18:06:56]Write to MH i2c: E2 22 00 C1 19 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 D7 21 02 00 35 04 06 00 CC C1 18 07 CD EB 00 00 E5 [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:56]Read from MH i2c: E2 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 03 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 03 00 C1 19 00 90 00 4E [18:06:56]RAPDU: 90 00 [18:06:56]wFMCommunicate OK [18:06:56]wFMCommunicate request_size=4 [18:06:56]MH_SAM_APDU [18:06:56]CAPDU: 80 0D 03 02 [18:06:56]Write to MH i2c: E2 08 00 C2 19 80 0D 03 02 00 00 00 00 56 [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:56]Read from MH i2c: E2 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 0B 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 0B 00 C2 19 00 FD 68 2F 78 31 6D 36 4A 90 00 81 [18:06:56]RAPDU: FD 68 2F 78 31 6D 36 4A 90 00 [18:06:56]wFMCommunicate OK [18:06:56]SAM_PROTO_SignData done [18:06:56]FM_MakeSignedData done [18:06:56]CreateOFDProtocolMessage [18:06:56]wFMCommunicate request_size=4 [18:06:56]MH_SAM_APDU [18:06:56]CAPDU: 80 11 00 00 [18:06:56]Write to MH i2c: E2 08 00 C3 19 80 11 00 00 00 00 00 00 56 [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:56]Read from MH i2c: E2 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 17 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: E2 17 00 C3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [18:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:06:56]wFMCommunicate OK [18:06:56]CreateOFDProtocolMessage done [18:06:56]OFDSenderStorePacket 139735 [18:06:56]StoreOFDPacket docnum=139735 [18:06: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 24 01 00 00 C0 B5 1C 01 16 EB 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 D4 00 00 00 F4 03 04 00 40 C7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CC C1 18 07 CD EB FD 68 2F 78 31 6D 36 4A [18:06:56]CheckFolder [18:06:56]dirname=/storage/ofd_packets [18:06:56]CheckFolder done [18:06:56]ProducePacketName [18:06:56]name=ofd_packets/00139735 [18:06:56]NVStorageSaveData ofd_packets/00139735 [18:06:56]File name is /storage/ofd_packets/00139735 [18:06:56]Write 322 bytes [18:06:56]NVStorageSaveData done [18:06:56]OFDSenderStorePacket done [18:06:56]KKMCreateOFDPacket done [18:06:56]NVStorageSaveData kkm_last_timestamp [18:06:56]File name is /storage/kkm_last_timestamp [18:06:56]Write 4 bytes [18:06:56]NVStorageSaveData done [18:06:56]ExternCall_PrintAddStr [18:06:56]wPrintStart [18:06:56]Write to MH i2c: 01 00 00 C4 19 DD [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 C4 19 00 00 00 00 00 FF 0F F2 [18:06:56]RasterBufferAndPrint [18:06:56]line Счет N : (3)335575 [18:06:56]line ИНН: 02508201610067 [18:06:56]line Контрольно-Кассовый Чек [18:06:56]line ПРОДАЖА [18:06:56]line Товар: 48745000 [18:06:56]line Сигареты Winston Purple Mix [18:06:56]line 1.000 * 139.00 [18:06:56]line = 139.00 [18:06:56]line НДС 12% НСП 1% [18:06:56]line > о реализуемом товаре [18:06:56]line ИТОГО: 139.00 [18:06:56]line НСП 1% : 1.23 [18:06:56]line НДС 12% : 14.76 [18:06:56]line Наличными: 139.00 [18:06:56]line Безнал.: 0.00 [18:06:56]line Место: АЗС № 101 "Партнер Нефть" [18:06:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:06:56]line СНО: Общий режим [18:06:56]line Чек 212 31.10.2024 18:06 [18:06:56]line Смена: 557 ФФД: 1.0 [18:06:56]line ЗНМ: 0300000081 [18:06:56]line РНМ: 0000000000091631 [18:06:56]line Версия ККМ: 001 [18:06:56]line ФМ: 0000000000874669 [18:06:56]line ФД: 139735 [18:06:56]line ФПД: 225129703919083 [18:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T180656&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139735&fm=225129703919083&tin=02508201610067®Number=0000000000091631&sum=13900 [18:06:56]OFD Sender: Processing packet 139735 [packets to send 34, broken 33] [18:06:56]ProducePacketName [18:06:56]name=ofd_packets/00139735 [18:06:56]OFD Sender: To server: pG, [18:06:56]CommunicateWithHost lk.salyk.kg:30040 [18:06:56]ConnectInit lk.salyk.kg [18:06:56]line 0 [18:06:56]written 0, free lines is 4095 [18:06:56]Connected sock=10 [18:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 C0 B5 1C 01 16 EB 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 D4 00 00 00 F4 03 04 00 40 C7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CC C1 18 07 CD EB FD 68 2F 78 31 6D 36 4A [18:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 19 2B 47 00 C5 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 21 02 00 F4 03 04 00 ED 72 23 67 B6 04 01 00 00 34 39 F1 E0 59 76 7D BD [18:06:56]CommunicateWithHost err = 0 [18:06:56]CheckOFDResponse [18:06:56]1017 (14) - 77093643461234 [18:06:56]1041 (16) - 0000000000874669 [18:06:56]1040 (4) - 139735 [18:06:56]1012 (4) - 31.10.2024 12:07 [18:06:56]1206 (1) - 0 [18:06:56]OFD Sender: Remove packet 139735 [18:06:56]ProducePacketName [18:06:56]name=ofd_packets/00139735 [18:06:56]NVStorageDeleteData [18:06:57]Write to MH i2c: 01 00 00 EC 19 05 [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 EC 19 00 00 00 00 00 10 0D 29 [18:06:57]RasterBufferAndPrint [18:06:57]line [18:06:57]line [18:06:57]line [18:06:57]line [18:06:57]line [18:06:57]written 0, free lines is 3350 [18:06:57]MH_Cut [18:06:57]Write to MH i2c: D1 01 00 F3 19 01 DE [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: D1 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: D1 01 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: D1 01 00 F3 19 00 DD [18:06:57]Write to MH i2c: 01 00 00 F4 19 0D [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]OFD Sender: No OFD packet to send [18:06:57]*** Cut start [18:06:57]*** Partial cut [18:06:57]*** CUTSNS_PIN = 1 [18:06:57]*** CUTSNS_PIN = 0 [18:06:57]*** Brake cut motor [18:06:58]Read from MH i2c: 01 [18:06:58]MH_I2C_Read... [18:06:58]*** Stop cut motor [18:06:58]*** Cut end [18:06:58]Read from MH i2c: 01 07 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 FF 0F 22 [18:06:58]process_action close_receipt done [18:06:58]requested_data is exist [18:06:58]produce_requested_data [18:06:58]requested_item fm.sn is exist - process it [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 11 00 00 [18:06:58]Write to MH i2c: E2 08 00 F5 19 80 11 00 00 00 00 00 00 88 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 17 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 17 00 F5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [18:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:06:58]wFMCommunicate OK [18:06:58]requested_item fd.num is exist - process it [18:06:58]SAM_PROTO_GetFieldsCounters [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 13 00 00 [18:06:58]Write to MH i2c: E2 08 00 F6 19 80 13 00 00 00 00 00 00 8B [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 62 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 62 00 F6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [18:06: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 D7 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:58]wFMCommunicate OK [18:06:58]SAM_PROTO_GetFieldsCounters done [18:06:58]requested_item shift.num is exist - process it [18:06:58]requested_item shift.opened is exist - process it [18:06:58]req_shift_opened [18:06:58]FM_GetShiftState [18:06:58]SAM_PROTO_GetShiftState [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 13 01 00 [18:06:58]Write to MH i2c: E2 08 00 F7 19 80 13 01 00 00 00 00 00 8D [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 0E 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 0E 00 F7 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B6 [18:06:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:06:58]wFMCommunicate OK [18:06:58]SAM_PROTO_GetShiftState done [18:06:58]FM_GetShiftState done [18:06:58]req_shift_opened done [18:06:58]requested_item shift.open_date is exist - process it [18:06:58]req_shift_open_date [18:06:58]req_shift_open_date done [18:06:58]produce_requested_data done [18:06:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139735,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:06:58]process_action_free close_receipt [18:06:58]json_value_free [18:06:58]json_value_free done [18:06:58]process_json_proto returns [18:06:58]Send response to host [18:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139735,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:06:58]free response buf [18:06:58]execute_script done [18:06:58]execute_script returns [18:06:58]free content buf [18:06:58]Sock 7.Close socket [18:06:58]Sock 7.Thread stoped [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]accept exits with 9 [18:13:57]New connection [18:13:57]New thread 3066654052 created [18:13:57]Thread 3066510692 joined [18:13:57]Waiting for new connection... [18:13:57] Sock 9.Parse request [18:13:57]Sock 9.Check first char [18:13:57]Sock 9.First char is OK [18:13:57]request: POST /json_proto HTTP/1.0 [18:13:57]Method: POST [18:13:57]URL: /json_proto [18:13:57]Method is POST - this is cgi request [18:13:57]url: /json_proto [18:13:57]query_string will be loaded in cgi processing [18:13:57]execute_cgi json_proto POST (null) [18:13:57]execute_cgi path=json_proto method=POST [18:13:57]POST find Content-Length [18:13:57]Host: 172.17.50.196:8080 [18:13:57]Content-Length: 644 [18:13:57]Content-Type: application/json [18:13:57] [18:13:57]POST finish read [18:13:57]Found Content-Length = 644 [18:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335576", "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" ] } } [18:13:57]execute_script... [18: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)335576", "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" ] } } [18:13:57]POST & json_proto [18:13:57]process_json_proto [18:13:57]json parsed OK: [18:13:57]protocol is kg_v1.0 [18:13:57]action value=close_receipt [18:13:57]process_action close_receipt [18:13:57]cmd_close_receipt [18:13:57]MH_GetDate [18:13:57]Write to MH i2c: F0 00 00 F8 19 00 [18:13:57]Write i2c OK [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: F0 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: F0 09 00 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: F0 09 00 F8 19 00 E7 C8 23 67 72 0D 1C 67 44 [18:13:57]GetLastDocTimeStamp 1730398016 [18:13:57]current date 1730398439 [18:13:57]FM_GetShiftState [18:13:57]SAM_PROTO_GetShiftState [18:13:57]wFMCommunicate request_size=4 [18:13:57]MH_SAM_APDU [18:13:57]CAPDU: 80 13 01 00 [18:13:57]Write to MH i2c: E2 08 00 F9 19 80 13 01 00 00 00 00 00 8F [18:13:57]Write i2c OK [18:13:57]MH_I2C_Read... [18:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:57]Read from MH i2c: E2 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: E2 0E 00 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: E2 0E 00 F9 19 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B8 [18:13:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:13:57]wFMCommunicate OK [18:13:57]SAM_PROTO_GetShiftState done [18:13:57]FM_GetShiftState done [18:13:57]opened in 1730332621 [18:13:57]opened+sec_in_day 1730419021 [18:13:57]quantity*price = 11500 [18:13:57]sum+1 = 11501 [18:13: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 СНО: Общий режим Чек 213 31.10.2024 18:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139736 ФПД: 50653526143951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T181359&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139736&fm=50653526143951&tin=02508201610067®Number=0000000000091631&sum=11500 0 [18:13:58]StoreToDocumentArchive [18:13:58]shift 557 fd 139736 [18:13:58]save to /storage/0557/doc_00139736 [18:13:58]save last doc name /storage/0557/doc_00139736 to /storage/kkm_last_doc_name [18:13:58]save OK [18:13:58]Clear old archive folders... [18:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=280 [18:13:58]tlvbuf is 00A9A2E0 [18:13:58]SAM_PROTO_ClearQueue [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 09 00 00 [18:13:58]Write to MH i2c: E2 08 00 06 1A 80 09 00 00 00 00 00 00 92 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]SAM_PROTO_ClearQueue done [18:13:58]KKMCreateOFDPacket [18:13:58]OFDProtocolAddRootSTLVToBuf [18:13:58]FM_MakeSignedData [18:13:58]FM_MakeSignedData [18:13:58]SAM_PROTO_SignData [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 0D 01 02 [18:13:58]Write to MH i2c: E2 08 00 07 1A 80 0D 01 02 00 00 00 00 9A [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]wFMCommunicate request_size=255 [18:13:58]MH_SAM_APDU [18:13: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 D5 00 00 00 F4 03 04 00 E7 C8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [18:13:58]Write to MH i2c: E2 02 01 08 1A 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 E7 C8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 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 12 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]wFMCommunicate request_size=39 [18:13:58]MH_SAM_APDU [18:13: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 D8 21 02 00 35 04 06 00 2E 11 B1 6E B3 CF [18:13:58]Write to MH i2c: E2 2A 00 09 1A 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 D8 21 02 00 35 04 06 00 2E 11 B1 6E B3 CF 00 00 3B [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 09 1A 00 90 00 97 [18:13:59]RAPDU: 90 00 [18:13:59]wFMCommunicate OK [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 0D 03 02 [18:13:59]Write to MH i2c: E2 08 00 0A 1A 80 0D 03 02 00 00 00 00 9F [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0B 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0B 00 0A 1A 00 DA FB D7 54 F1 13 BF 0A 90 00 6D [18:13:59]RAPDU: DA FB D7 54 F1 13 BF 0A 90 00 [18:13:59]wFMCommunicate OK [18:13:59]SAM_PROTO_SignData done [18:13:59]FM_MakeSignedData done [18:13:59]CreateOFDProtocolMessage [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 11 00 00 [18:13:59]Write to MH i2c: E2 08 00 0B 1A 80 11 00 00 00 00 00 00 9F [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 17 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 17 00 0B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FA [18: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 [18:13:59]wFMCommunicate OK [18:13:59]CreateOFDProtocolMessage done [18:13:59]OFDSenderStorePacket 139736 [18:13:59]StoreOFDPacket docnum=139736 [18: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 2C 01 00 00 82 7B 24 01 E4 71 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 D5 00 00 00 F4 03 04 00 E7 C8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2E 11 B1 6E B3 CF DA FB D7 54 F1 13 BF 0A [18:13:59]CheckFolder [18:13:59]dirname=/storage/ofd_packets [18:13:59]CheckFolder done [18:13:59]ProducePacketName [18:13:59]name=ofd_packets/00139736 [18:13:59]NVStorageSaveData ofd_packets/00139736 [18:13:59]File name is /storage/ofd_packets/00139736 [18:13:59]Write 330 bytes [18:13:59]NVStorageSaveData done [18:13:59]OFDSenderStorePacket done [18:13:59]KKMCreateOFDPacket done [18:13:59]NVStorageSaveData kkm_last_timestamp [18:13:59]File name is /storage/kkm_last_timestamp [18:13:59]Write 4 bytes [18:13:59]NVStorageSaveData done [18:13:59]ExternCall_PrintAddStr [18:13:59]wPrintStart [18:13:59]Write to MH i2c: 01 00 00 0C 1A 26 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 0C 1A 00 00 00 00 00 FF 0F 3B [18:13:59]RasterBufferAndPrint [18:13:59]line Счет N : (3)335576 [18:13:59]line ИНН: 02508201610067 [18:13:59]line Контрольно-Кассовый Чек [18:13:59]line ПРОДАЖА [18:13:59]line Товар: 2000036210013 [18:13:59]line Кофе Капучино (GABB TRADE) [18:13:59]line 1.000 * 115.00 [18:13:59]line = 115.00 [18:13:59]line НДС 12% НСП 1% [18:13:59]line > о реализуемом товаре [18:13:59]line ИТОГО: 115.00 [18:13:59]line НСП 1% : 1.02 [18:13:59]line НДС 12% : 12.21 [18:13:59]line Наличными: 115.00 [18:13:59]line Безнал.: 0.00 [18:13:59]line Место: АЗС № 101 "Партнер Нефть" [18:13:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:13:59]line СНО: Общий режим [18:13:59]line Чек 213 31.10.2024 18:13 [18:13:59]line Смена: 557 ФФД: 1.0 [18:13:59]line ЗНМ: 0300000081 [18:13:59]line РНМ: 0000000000091631 [18:13:59]line Версия ККМ: 001 [18:13:59]line ФМ: 0000000000874669 [18:13:59]line ФД: 139736 [18:13:59]line ФПД: 50653526143951 [18:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T181359&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139736&fm=50653526143951&tin=02508201610067®Number=0000000000091631&sum=11500 [18:13:59]line 0 [18:13:59]OFD Sender: Processing packet 139736 [packets to send 34, broken 33] [18:13:59]ProducePacketName [18:13:59]name=ofd_packets/00139736 [18:13:59]OFD Sender: To server: pG, [18:13:59]CommunicateWithHost lk.salyk.kg:30040 [18:13:59]ConnectInit lk.salyk.kg [18:13:59]written 0, free lines is 4095 [18:13:59]Connected sock=7 [18:13: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 82 7B 24 01 E4 71 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 D5 00 00 00 F4 03 04 00 E7 C8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2E 11 B1 6E B3 CF DA FB D7 54 F1 13 BF 0A [18:13: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 E5 24 47 00 9E 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 D8 21 02 00 F4 03 04 00 94 74 23 67 B6 04 01 00 00 D9 E0 D1 B9 1E 8B E4 51 [18:13:59]CommunicateWithHost err = 0 [18:13:59]CheckOFDResponse [18:13:59]1017 (14) - 77093643461234 [18:13:59]1041 (16) - 0000000000874669 [18:13:59]1040 (4) - 139736 [18:13:59]1012 (4) - 31.10.2024 12:14 [18:13:59]1206 (1) - 0 [18:13:59]OFD Sender: Remove packet 139736 [18:13:59]ProducePacketName [18:13:59]name=ofd_packets/00139736 [18:13:59]NVStorageDeleteData [18:13:59]Write to MH i2c: 01 00 00 34 1A 4E [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 34 1A 00 00 00 00 00 23 0D 85 [18:13:59]RasterBufferAndPrint [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]written 0, free lines is 3370 [18:13:59]MH_Cut [18:13:59]Write to MH i2c: D1 01 00 3B 1A 01 27 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 01 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 01 00 3B 1A 00 26 [18:13:59]Write to MH i2c: 01 00 00 3C 1A 56 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:14:00]OFD Sender: No OFD packet to send [18:14:00]*** Cut start [18:14:00]*** Partial cut [18:14:00]*** CUTSNS_PIN = 1 [18:14:00]*** CUTSNS_PIN = 0 [18:14:00]*** Brake cut motor [18:14:01]Read from MH i2c: 01 [18:14:01]MH_I2C_Read... [18:14:01]*** Stop cut motor [18:14:01]*** Cut end [18:14:01]Read from MH i2c: 01 07 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: 01 07 00 3C 1A 00 00 00 00 00 FF 0F 6B [18:14:01]process_action close_receipt done [18:14:01]requested_data is exist [18:14:01]produce_requested_data [18:14:01]requested_item fm.sn is exist - process it [18:14:01]wFMCommunicate request_size=4 [18:14:01]MH_SAM_APDU [18:14:01]CAPDU: 80 11 00 00 [18:14:01]Write to MH i2c: E2 08 00 3D 1A 80 11 00 00 00 00 00 00 D1 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:01]Read from MH i2c: E2 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 17 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 17 00 3D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2C [18:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:14:01]wFMCommunicate OK [18:14:01]requested_item fd.num is exist - process it [18:14:01]SAM_PROTO_GetFieldsCounters [18:14:01]wFMCommunicate request_size=4 [18:14:01]MH_SAM_APDU [18:14:01]CAPDU: 80 13 00 00 [18:14:01]Write to MH i2c: E2 08 00 3E 1A 80 13 00 00 00 00 00 00 D4 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:01]Read from MH i2c: E2 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 62 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 62 00 3E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:14: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 D8 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:01]wFMCommunicate OK [18:14:01]SAM_PROTO_GetFieldsCounters done [18:14:01]requested_item shift.num is exist - process it [18:14:01]requested_item shift.opened is exist - process it [18:14:01]req_shift_opened [18:14:01]FM_GetShiftState [18:14:01]SAM_PROTO_GetShiftState [18:14:01]wFMCommunicate request_size=4 [18:14:01]MH_SAM_APDU [18:14:01]CAPDU: 80 13 01 00 [18:14:01]Write to MH i2c: E2 08 00 3F 1A 80 13 01 00 00 00 00 00 D6 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:01]Read from MH i2c: E2 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 0E 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 0E 00 3F 1A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FF [18:14:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:14:01]wFMCommunicate OK [18:14:01]SAM_PROTO_GetShiftState done [18:14:01]FM_GetShiftState done [18:14:01]req_shift_opened done [18:14:01]requested_item shift.open_date is exist - process it [18:14:01]req_shift_open_date [18:14:01]req_shift_open_date done [18:14:01]produce_requested_data done [18:14:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139736,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:14:01]process_action_free close_receipt [18:14:01]json_value_free [18:14:01]json_value_free done [18:14:01]process_json_proto returns [18:14:01]Send response to host [18:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139736,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:14:01]free response buf [18:14:01]execute_script done [18:14:01]execute_script returns [18:14:01]free content buf [18:14:01]Sock 9.Close socket [18:14:01]Sock 9.Thread stoped [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:47]accept exits with 10 [18:18:47]New connection [18:18:47]New thread 3066510692 created [18:18:47]Thread 3066654052 joined [18:18:47]Waiting for new connection... [18:18:47] Sock 10.Parse request [18:18:47]Sock 10.Check first char [18:18:47]Sock 10.First char is OK [18:18:47]request: POST /json_proto HTTP/1.0 [18:18:47]Method: POST [18:18:47]URL: /json_proto [18:18:47]Method is POST - this is cgi request [18:18:47]url: /json_proto [18:18:47]query_string will be loaded in cgi processing [18:18:47]execute_cgi json_proto POST (null) [18:18:47]execute_cgi path=json_proto method=POST [18:18:47]POST find Content-Length [18:18:47]Host: 172.17.50.196:8080 [18:18:47]Content-Length: 773 [18:18:47]Content-Type: application/json [18:18:47] [18:18:47]POST finish read [18:18:47]Found Content-Length = 773 [18:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095382", "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" : 35.550, "sum" : 1361.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1361.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:47]execute_script... [18: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)1095382", "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" : 35.550, "sum" : 1361.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1361.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:47]POST & json_proto [18:18:47]process_json_proto [18:18:47]json parsed OK: [18:18:47]protocol is kg_v1.0 [18:18:47]action value=close_receipt [18:18:47]process_action close_receipt [18:18:47]cmd_close_receipt [18:18:47]MH_GetDate [18:18:47]Write to MH i2c: F0 00 00 40 1A 49 [18:18:47]Write i2c OK [18:18:47]MH_I2C_Read... [18:18:47]Read from MH i2c: F0 [18:18:47]MH_I2C_Read... [18:18:47]Read from MH i2c: F0 09 00 [18:18:47]MH_I2C_Read... [18:18:47]Read from MH i2c: F0 09 00 40 1A 00 09 CA 23 67 72 0D 1C 67 B1 [18:18:47]GetLastDocTimeStamp 1730398439 [18:18:47]current date 1730398729 [18:18:47]FM_GetShiftState [18:18:47]SAM_PROTO_GetShiftState [18:18:47]wFMCommunicate request_size=4 [18:18:47]MH_SAM_APDU [18:18:47]CAPDU: 80 13 01 00 [18:18:47]Write to MH i2c: E2 08 00 41 1A 80 13 01 00 00 00 00 00 D8 [18:18:47]Write i2c OK [18:18:47]MH_I2C_Read... [18:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:47]Read from MH i2c: E2 [18:18:47]MH_I2C_Read... [18:18:47]Read from MH i2c: E2 0E 00 [18:18:47]MH_I2C_Read... [18:18:47]Read from MH i2c: E2 0E 00 41 1A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 01 [18:18:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:18:47]wFMCommunicate OK [18:18:47]SAM_PROTO_GetShiftState done [18:18:47]FM_GetShiftState done [18:18:47]opened in 1730332621 [18:18:47]opened+sec_in_day 1730419021 [18:18:47]quantity*price = 136156 [18:18:47]sum+1 = 136158 [18:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1361.57 НСП 1% : 12.05 НДС 12% : 144.59 Наличными: 0.00 Безнал.: 1361.57 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 214 31.10.2024 18:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139737 ФПД: 244741418220205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T181849&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139737&fm=244741418220205&tin=02508201610067®Number=0000000000091631&sum=136157 [18:18:49]StoreToDocumentArchive [18:18:49]shift 557 fd 139737 [18:18:49]save to /storage/0557/doc_00139737 [18:18:49]save last doc name /storage/0557/doc_00139737 to /storage/kkm_last_doc_name [18:18:49]save OK [18:18:49]Clear old archive folders... [18:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:18:49]tlvbuf is 00A9A8E0 [18:18:49]SAM_PROTO_ClearQueue [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 09 00 00 [18:18:49]Write to MH i2c: E2 08 00 4E 1A 80 09 00 00 00 00 00 00 DA [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [18:18:49]RAPDU: 90 00 [18:18:49]wFMCommunicate OK [18:18:49]SAM_PROTO_ClearQueue done [18:18:49]KKMCreateOFDPacket [18:18:49]OFDProtocolAddRootSTLVToBuf [18:18:49]FM_MakeSignedData [18:18:49]FM_MakeSignedData [18:18:49]SAM_PROTO_SignData [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 0D 01 02 [18:18:49]Write to MH i2c: E2 08 00 4F 1A 80 0D 01 02 00 00 00 00 E2 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [18:18:49]RAPDU: 90 00 [18:18:49]wFMCommunicate OK [18:18:49]wFMCommunicate request_size=255 [18:18:49]MH_SAM_APDU [18:18: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 DE 8A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 DD 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 09 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DE 97 [18:18:49]Write to MH i2c: E2 02 01 50 1A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 8A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 DD 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 09 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DE 97 00 00 17 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [18:18:49]RAPDU: 90 00 [18:18:49]wFMCommunicate OK [18:18:49]wFMCommunicate request_size=9 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 0D 02 02 04 4D 4B 7A AD [18:18:49]Write to MH i2c: E2 0C 00 51 1A 80 0D 02 02 04 00 4D 4B 7A AD 00 00 AC [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [18:18:49]RAPDU: 90 00 [18:18:49]wFMCommunicate OK [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 0D 03 02 [18:18:49]Write to MH i2c: E2 08 00 52 1A 80 0D 03 02 00 00 00 00 E7 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 0B 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 0B 00 52 1A 00 65 84 47 74 84 33 97 B2 90 00 8C [18:18:49]RAPDU: 65 84 47 74 84 33 97 B2 90 00 [18:18:49]wFMCommunicate OK [18:18:49]SAM_PROTO_SignData done [18:18:49]FM_MakeSignedData done [18:18:49]CreateOFDProtocolMessage [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 11 00 00 [18:18:49]Write to MH i2c: E2 08 00 53 1A 80 11 00 00 00 00 00 00 E7 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 17 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 17 00 53 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 42 [18: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 [18:18:49]wFMCommunicate OK [18:18:49]CreateOFDProtocolMessage done [18:18:49]OFDSenderStorePacket 139737 [18:18:49]StoreOFDPacket docnum=139737 [18: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 0E 01 00 00 82 B7 06 01 FF BF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 8A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 DD 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 09 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DE 97 4D 4B 7A AD 65 84 47 74 84 33 97 B2 [18:18:49]CheckFolder [18:18:49]dirname=/storage/ofd_packets [18:18:49]CheckFolder done [18:18:49]ProducePacketName [18:18:49]name=ofd_packets/00139737 [18:18:49]NVStorageSaveData ofd_packets/00139737 [18:18:49]File name is /storage/ofd_packets/00139737 [18:18:49]Write 300 bytes [18:18:49]NVStorageSaveData done [18:18:49]OFDSenderStorePacket done [18:18:49]KKMCreateOFDPacket done [18:18:49]NVStorageSaveData kkm_last_timestamp [18:18:49]File name is /storage/kkm_last_timestamp [18:18:49]Write 4 bytes [18:18:49]NVStorageSaveData done [18:18:49]ExternCall_PrintAddStr [18:18:49]wPrintStart [18:18:49]Write to MH i2c: 01 00 00 54 1A 6E [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: 01 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: 01 07 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: 01 07 00 54 1A 00 00 00 00 00 FF 0F 83 [18:18:49]RasterBufferAndPrint [18:18:49]line Счет N : (1)1095382 [18:18:49]line ИНН: 02508201610067 [18:18:49]line Контрольно-Кассовый Чек [18:18:49]line ПРОДАЖА [18:18:49]line ТРК (МРК, ГНК) : 81 [18:18:49]line Товар: 2711190000 [18:18:49]line ГАЗ-К-5 [18:18:49]line 35.550 * 38.30 [18:18:49]line = 1361.57 [18:18:49]line НДС 12% НСП 1% [18:18:49]line > о реализуемом товаре [18:18:49]line ИТОГО: 1361.57 [18:18:49]line НСП 1% : 12.05 [18:18:49]line НДС 12% : 144.59 [18:18:49]line Наличными: 0.00 [18:18:49]line Безнал.: 1361.57 [18:18:49]line Место: АЗС № 101 "Партнер Нефть" [18:18:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:18:49]line СНО: Общий режим [18:18:49]line Чек 214 31.10.2024 18:18 [18:18:49]line Смена: 557 ФФД: 1.0 [18:18:49]line ЗНМ: 0300000081 [18:18:49]line РНМ: 0000000000091631 [18:18:49]line Версия ККМ: 001 [18:18:49]line Платежная система: Mbank [18:18:49]line ФМ: 0000000000874669 [18:18:49]line ФД: 139737 [18:18:49]line ФПД: 244741418220205 [18:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T181849&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139737&fm=244741418220205&tin=02508201610067®Number=0000000000091631&sum=136157 [18:18:49]OFD Sender: Processing packet 139737 [packets to send 34, broken 33] [18:18:49]ProducePacketName [18:18:49]name=ofd_packets/00139737 [18:18:49]OFD Sender: To server: pG, [18:18:49]CommunicateWithHost lk.salyk.kg:30040 [18:18:49]ConnectInit lk.salyk.kg [18:18:49]written 0, free lines is 4095 [18:18:50]Connected sock=9 [18:18: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 82 B7 06 01 FF BF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 8A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 DD 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 09 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 DE 97 4D 4B 7A AD 65 84 47 74 84 33 97 B2 [18:18: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 24 BF 47 00 47 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 21 02 00 F4 03 04 00 B6 75 23 67 B6 04 01 00 00 A3 F5 7A 5C 4F 8E 3D 24 [18:18:50]CommunicateWithHost err = 0 [18:18:50]CheckOFDResponse [18:18:50]1017 (14) - 77093643461234 [18:18:50]1041 (16) - 0000000000874669 [18:18:50]1040 (4) - 139737 [18:18:50]1012 (4) - 31.10.2024 12:19 [18:18:50]1206 (1) - 0 [18:18:50]OFD Sender: Remove packet 139737 [18:18:50]ProducePacketName [18:18:50]name=ofd_packets/00139737 [18:18:50]NVStorageDeleteData [18:18:50]Write to MH i2c: 01 00 00 7D 1A 97 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 07 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 07 00 7D 1A 00 00 00 00 00 12 0D BD [18:18:50]RasterBufferAndPrint [18:18:50]line [18:18:50]line [18:18:50]line [18:18:50]line [18:18:50]line [18:18:50]written 0, free lines is 3353 [18:18:50]MH_Cut [18:18:50]Write to MH i2c: D1 01 00 84 1A 01 70 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: D1 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: D1 01 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: D1 01 00 84 1A 00 6F [18:18:50]Write to MH i2c: 01 00 00 85 1A 9F [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]OFD Sender: No OFD packet to send [18:18:51]*** Cut start [18:18:51]*** Partial cut [18:18:51]*** CUTSNS_PIN = 1 [18:18:51]*** CUTSNS_PIN = 0 [18:18:51]*** Brake cut motor [18:18:51]Read from MH i2c: 01 [18:18:51]MH_I2C_Read... [18:18:51]*** Stop cut motor [18:18:51]*** Cut end [18:18:51]Read from MH i2c: 01 07 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 FF 0F B4 [18:18:51]process_action close_receipt done [18:18:51]requested_data is exist [18:18:51]produce_requested_data [18:18:51]requested_item fm.sn is exist - process it [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 11 00 00 [18:18:51]Write to MH i2c: E2 08 00 86 1A 80 11 00 00 00 00 00 00 1A [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 17 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 17 00 86 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 75 [18: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 [18:18:51]wFMCommunicate OK [18:18:51]requested_item fd.num is exist - process it [18:18:51]SAM_PROTO_GetFieldsCounters [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 13 00 00 [18:18:51]Write to MH i2c: E2 08 00 87 1A 80 13 00 00 00 00 00 00 1D [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 62 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 62 00 87 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [18: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 D9 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:51]wFMCommunicate OK [18:18:51]SAM_PROTO_GetFieldsCounters done [18:18:51]requested_item shift.num is exist - process it [18:18:51]requested_item shift.opened is exist - process it [18:18:51]req_shift_opened [18:18:51]FM_GetShiftState [18:18:51]SAM_PROTO_GetShiftState [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 13 01 00 [18:18:51]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 0E 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 48 [18:18:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:18:51]wFMCommunicate OK [18:18:51]SAM_PROTO_GetShiftState done [18:18:51]FM_GetShiftState done [18:18:51]req_shift_opened done [18:18:51]requested_item shift.open_date is exist - process it [18:18:51]req_shift_open_date [18:18:51]req_shift_open_date done [18:18:51]produce_requested_data done [18:18:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139737,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:18:51]process_action_free close_receipt [18:18:51]json_value_free [18:18:51]json_value_free done [18:18:51]process_json_proto returns [18:18:51]Send response to host [18:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139737,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:18:51]free response buf [18:18:51]execute_script done [18:18:51]execute_script returns [18:18:51]free content buf [18:18:51]Sock 10.Close socket [18:18:51]Sock 10.Thread stoped [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:14]accept exits with 7 [18:19:14]New connection [18:19:14]New thread 3066654052 created [18:19:14]Thread 3066510692 joined [18:19:14]Waiting for new connection... [18:19:14] Sock 7.Parse request [18:19:14]Sock 7.Check first char [18:19:14]Sock 7.First char is OK [18:19:14]request: POST /json_proto HTTP/1.0 [18:19:14]Method: POST [18:19:14]URL: /json_proto [18:19:14]Method is POST - this is cgi request [18:19:14]url: /json_proto [18:19:14]query_string will be loaded in cgi processing [18:19:14]execute_cgi json_proto POST (null) [18:19:14]execute_cgi path=json_proto method=POST [18:19:14]POST find Content-Length [18:19:14]Host: 172.17.50.196:8080 [18:19:14]Content-Length: 620 [18:19:14]Content-Type: application/json [18:19:14] [18:19:14]POST finish read [18:19:14]Found Content-Length = 620 [18:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335579", "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" ] } } [18:19:14]execute_script... [18:19: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)335579", "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" ] } } [18:19:14]POST & json_proto [18:19:14]process_json_proto [18:19:14]json parsed OK: [18:19:14]protocol is kg_v1.0 [18:19:14]action value=close_receipt [18:19:14]process_action close_receipt [18:19:14]cmd_close_receipt [18:19:14]MH_GetDate [18:19:14]Write to MH i2c: F0 00 00 89 1A 92 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: F0 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: F0 09 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: F0 09 00 89 1A 00 24 CA 23 67 72 0D 1C 67 15 [18:19:14]GetLastDocTimeStamp 1730398729 [18:19:14]current date 1730398756 [18:19:14]FM_GetShiftState [18:19:14]SAM_PROTO_GetShiftState [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 13 01 00 [18:19:14]Write to MH i2c: E2 08 00 8A 1A 80 13 01 00 00 00 00 00 21 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 0E 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 0E 00 8A 1A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4A [18:19:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:19:14]wFMCommunicate OK [18:19:14]SAM_PROTO_GetShiftState done [18:19:14]FM_GetShiftState done [18:19:14]opened in 1730332621 [18:19:14]opened+sec_in_day 1730419021 [18:19:14]quantity*price = 13900 [18:19:14]sum+1 = 13901 [18:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 215 31.10.2024 18:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139738 ФПД: 220187064637076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T181916&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139738&fm=220187064637076&tin=02508201610067®Number=0000000000091631&sum=13900 0 [18:19:15]StoreToDocumentArchive [18:19:15]shift 557 fd 139738 [18:19:15]save to /storage/0557/doc_00139738 [18:19:15]save last doc name /storage/0557/doc_00139738 to /storage/kkm_last_doc_name [18:19:15]save OK [18:19:15]Clear old archive folders... [18:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:19:15]tlvbuf is 00A88E60 [18:19:15]SAM_PROTO_ClearQueue [18:19:15]wFMCommunicate request_size=4 [18:19:15]MH_SAM_APDU [18:19:15]CAPDU: 80 09 00 00 [18:19:15]Write to MH i2c: E2 08 00 97 1A 80 09 00 00 00 00 00 00 23 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [18:19:15]RAPDU: 90 00 [18:19:15]wFMCommunicate OK [18:19:15]SAM_PROTO_ClearQueue done [18:19:15]KKMCreateOFDPacket [18:19:15]OFDProtocolAddRootSTLVToBuf [18:19:15]FM_MakeSignedData [18:19:15]FM_MakeSignedData [18:19:15]SAM_PROTO_SignData [18:19:15]wFMCommunicate request_size=4 [18:19:15]MH_SAM_APDU [18:19:15]CAPDU: 80 0D 01 02 [18:19:15]Write to MH i2c: E2 08 00 98 1A 80 0D 01 02 00 00 00 00 2B [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [18:19:15]RAPDU: 90 00 [18:19:15]wFMCommunicate OK [18:19:15]wFMCommunicate request_size=255 [18:19:15]MH_SAM_APDU [18:19:15]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 D7 00 00 00 F4 03 04 00 24 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [18:19:15]Write to MH i2c: E2 02 01 99 1A 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 D7 00 00 00 F4 03 04 00 24 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 D5 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]OFD Sender: No OFD packet to send [18:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [18:19:15]RAPDU: 90 00 [18:19:15]wFMCommunicate OK [18:19:15]wFMCommunicate request_size=31 [18:19:15]MH_SAM_APDU [18:19:15]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 DA 21 02 00 35 04 06 00 C8 42 4B C5 96 94 [18:19:15]Write to MH i2c: E2 22 00 9A 1A 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 DA 21 02 00 35 04 06 00 C8 42 4B C5 96 94 00 00 A2 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [18:19:15]RAPDU: 90 00 [18:19:15]wFMCommunicate OK [18:19:15]wFMCommunicate request_size=4 [18:19:15]MH_SAM_APDU [18:19:15]CAPDU: 80 0D 03 02 [18:19:15]Write to MH i2c: E2 08 00 9B 1A 80 0D 03 02 00 00 00 00 30 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:15]Read from MH i2c: E2 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 0B 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: E2 0B 00 9B 1A 00 BB 68 A5 B3 74 C9 81 47 90 00 B1 [18:19:15]RAPDU: BB 68 A5 B3 74 C9 81 47 90 00 [18:19:16]wFMCommunicate OK [18:19:16]SAM_PROTO_SignData done [18:19:16]FM_MakeSignedData done [18:19:16]CreateOFDProtocolMessage [18:19:16]wFMCommunicate request_size=4 [18:19:16]MH_SAM_APDU [18:19:16]CAPDU: 80 11 00 00 [18:19:16]Write to MH i2c: E2 08 00 9C 1A 80 11 00 00 00 00 00 00 30 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:16]Read from MH i2c: E2 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 17 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 17 00 9C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8B [18: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 [18:19:16]wFMCommunicate OK [18:19:16]CreateOFDProtocolMessage done [18:19:16]OFDSenderStorePacket 139738 [18:19:16]StoreOFDPacket docnum=139738 [18:19: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 24 01 00 00 1A DB 1C 01 B3 50 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 D7 00 00 00 F4 03 04 00 24 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C8 42 4B C5 96 94 BB 68 A5 B3 74 C9 81 47 [18:19:16]CheckFolder [18:19:16]dirname=/storage/ofd_packets [18:19:16]CheckFolder done [18:19:16]ProducePacketName [18:19:16]name=ofd_packets/00139738 [18:19:16]NVStorageSaveData ofd_packets/00139738 [18:19:16]File name is /storage/ofd_packets/00139738 [18:19:16]Write 322 bytes [18:19:16]NVStorageSaveData done [18:19:16]OFDSenderStorePacket done [18:19:16]KKMCreateOFDPacket done [18:19:16]NVStorageSaveData kkm_last_timestamp [18:19:16]File name is /storage/kkm_last_timestamp [18:19:16]Write 4 bytes [18:19:16]NVStorageSaveData done [18:19:16]ExternCall_PrintAddStr [18:19:16]wPrintStart [18:19:16]Write to MH i2c: 01 00 00 9D 1A B7 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 07 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [18:19:16]RasterBufferAndPrint [18:19:16]line Счет N : (3)335579 [18:19:16]line ИНН: 02508201610067 [18:19:16]line Контрольно-Кассовый Чек [18:19:16]line ПРОДАЖА [18:19:16]line Товар: 48745000 [18:19:16]line Сигареты Winston Purple Mix [18:19:16]line 1.000 * 139.00 [18:19:16]line = 139.00 [18:19:16]line НДС 12% НСП 1% [18:19:16]line > о реализуемом товаре [18:19:16]line ИТОГО: 139.00 [18:19:16]line НСП 1% : 1.23 [18:19:16]line НДС 12% : 14.76 [18:19:16]line Наличными: 139.00 [18:19:16]line Безнал.: 0.00 [18:19:16]line Место: АЗС № 101 "Партнер Нефть" [18:19:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:19:16]line СНО: Общий режим [18:19:16]line Чек 215 31.10.2024 18:19 [18:19:16]line Смена: 557 ФФД: 1.0 [18:19:16]line ЗНМ: 0300000081 [18:19:16]line РНМ: 0000000000091631 [18:19:16]line Версия ККМ: 001 [18:19:16]line ФМ: 0000000000874669 [18:19:16]line ФД: 139738 [18:19:16]line ФПД: 220187064637076 [18:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T181916&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139738&fm=220187064637076&tin=02508201610067®Number=0000000000091631&sum=13900 [18:19:16]OFD Sender: Processing packet 139738 [packets to send 34, broken 33] [18:19:16]ProducePacketName [18:19:16]name=ofd_packets/00139738 [18:19:16]OFD Sender: To server: pG, [18:19:16]CommunicateWithHost lk.salyk.kg:30040 [18:19:16]ConnectInit lk.salyk.kg [18:19:16]line 0 [18:19:16]written 0, free lines is 4095 [18:19:16]Connected sock=10 [18:19: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 24 01 00 00 1A DB 1C 01 B3 50 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 D7 00 00 00 F4 03 04 00 24 CA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 C8 42 4B C5 96 94 BB 68 A5 B3 74 C9 81 47 [18:19: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 3D 8E 47 00 F2 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 DA 21 02 00 F4 03 04 00 D1 75 23 67 B6 04 01 00 00 6D E6 BE E3 16 FA 2F F2 [18:19:16]CommunicateWithHost err = 0 [18:19:16]CheckOFDResponse [18:19:16]1017 (14) - 77093643461234 [18:19:16]1041 (16) - 0000000000874669 [18:19:16]1040 (4) - 139738 [18:19:16]1012 (4) - 31.10.2024 12:19 [18:19:16]1206 (1) - 0 [18:19:16]OFD Sender: Remove packet 139738 [18:19:16]ProducePacketName [18:19:16]name=ofd_packets/00139738 [18:19:16]NVStorageDeleteData [18:19:16]Write to MH i2c: 01 00 00 C5 1A DF [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 07 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 07 00 C5 1A 00 00 00 00 00 13 0D 06 [18:19:16]RasterBufferAndPrint [18:19:16]line [18:19:16]line [18:19:16]line [18:19:16]line [18:19:16]line [18:19:16]written 0, free lines is 3353 [18:19:16]MH_Cut [18:19:16]Write to MH i2c: D1 01 00 CC 1A 01 B8 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: D1 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: D1 01 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: D1 01 00 CC 1A 00 B7 [18:19:16]Write to MH i2c: 01 00 00 CD 1A E7 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:17]OFD Sender: No OFD packet to send [18:19:17]*** Cut start [18:19:17]*** Partial cut [18:19:17]*** CUTSNS_PIN = 1 [18:19:17]*** CUTSNS_PIN = 0 [18:19:17]*** Brake cut motor [18:19:18]Read from MH i2c: 01 [18:19:18]MH_I2C_Read... [18:19:18]*** Stop cut motor [18:19:18]*** Cut end [18:19:18]Read from MH i2c: 01 07 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: 01 07 00 CD 1A 00 00 00 00 00 FF 0F FC [18:19:18]process_action close_receipt done [18:19:18]requested_data is exist [18:19:18]produce_requested_data [18:19:18]requested_item fm.sn is exist - process it [18:19:18]wFMCommunicate request_size=4 [18:19:18]MH_SAM_APDU [18:19:18]CAPDU: 80 11 00 00 [18:19:18]Write to MH i2c: E2 08 00 CE 1A 80 11 00 00 00 00 00 00 62 [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:18]Read from MH i2c: E2 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 17 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 17 00 CE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [18:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:19:18]wFMCommunicate OK [18:19:18]requested_item fd.num is exist - process it [18:19:18]SAM_PROTO_GetFieldsCounters [18:19:18]wFMCommunicate request_size=4 [18:19:18]MH_SAM_APDU [18:19:18]CAPDU: 80 13 00 00 [18:19:18]Write to MH i2c: E2 08 00 CF 1A 80 13 00 00 00 00 00 00 65 [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:18]Read from MH i2c: E2 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 62 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 62 00 CF 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [18:19: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 DA 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:18]wFMCommunicate OK [18:19:18]SAM_PROTO_GetFieldsCounters done [18:19:18]requested_item shift.num is exist - process it [18:19:18]requested_item shift.opened is exist - process it [18:19:18]req_shift_opened [18:19:18]FM_GetShiftState [18:19:18]SAM_PROTO_GetShiftState [18:19:18]wFMCommunicate request_size=4 [18:19:18]MH_SAM_APDU [18:19:18]CAPDU: 80 13 01 00 [18:19:18]Write to MH i2c: E2 08 00 D0 1A 80 13 01 00 00 00 00 00 67 [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:18]Read from MH i2c: E2 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 0E 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 0E 00 D0 1A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 90 [18:19:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:19:18]wFMCommunicate OK [18:19:18]SAM_PROTO_GetShiftState done [18:19:18]FM_GetShiftState done [18:19:18]req_shift_opened done [18:19:18]requested_item shift.open_date is exist - process it [18:19:18]req_shift_open_date [18:19:18]req_shift_open_date done [18:19:18]produce_requested_data done [18:19:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139738,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:19:18]process_action_free close_receipt [18:19:18]json_value_free [18:19:18]json_value_free done [18:19:18]process_json_proto returns [18:19:18]Send response to host [18:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139738,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:19:18]free response buf [18:19:18]execute_script done [18:19:18]execute_script returns [18:19:18]free content buf [18:19:18]Sock 7.Close socket [18:19:18]Sock 7.Thread stoped [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:53]accept exits with 9 [18:27:53]New connection [18:27:53]New thread 3066510692 created [18:27:53]Thread 3066654052 joined [18:27:53]Waiting for new connection... [18:27:53] Sock 9.Parse request [18:27:53]Sock 9.Check first char [18:27:53]Sock 9.First char is OK [18:27:53]request: POST /json_proto HTTP/1.0 [18:27:53]Method: POST [18:27:53]URL: /json_proto [18:27:53]Method is POST - this is cgi request [18:27:53]url: /json_proto [18:27:53]query_string will be loaded in cgi processing [18:27:53]execute_cgi json_proto POST (null) [18:27:53]execute_cgi path=json_proto method=POST [18:27:53]POST find Content-Length [18:27:53]Host: 172.17.50.196:8080 [18:27:53]Content-Length: 917 [18:27:53]Content-Type: application/json [18:27:53] [18:27:53]POST finish read [18:27:53]Found Content-Length = 917 [18:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335580", "tax_sys" : 0, "items" : [ { "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 3.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 522.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:53]execute_script... [18:27: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)335580", "tax_sys" : 0, "items" : [ { "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 3.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 522.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:53]POST & json_proto [18:27:53]process_json_proto [18:27:53]json parsed OK: [18:27:53]protocol is kg_v1.0 [18:27:53]action value=close_receipt [18:27:53]process_action close_receipt [18:27:53]cmd_close_receipt [18:27:53]MH_GetDate [18:27:53]Write to MH i2c: F0 00 00 D1 1A DA [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: F0 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: F0 09 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: F0 09 00 D1 1A 00 2B CC 23 67 72 0D 1C 67 66 [18:27:53]GetLastDocTimeStamp 1730398756 [18:27:53]current date 1730399275 [18:27:53]FM_GetShiftState [18:27:53]SAM_PROTO_GetShiftState [18:27:53]wFMCommunicate request_size=4 [18:27:53]MH_SAM_APDU [18:27:53]CAPDU: 80 13 01 00 [18:27:53]Write to MH i2c: E2 08 00 D2 1A 80 13 01 00 00 00 00 00 69 [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:53]Read from MH i2c: E2 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 0E 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 0E 00 D2 1A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 92 [18:27:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:27:53]wFMCommunicate OK [18:27:53]SAM_PROTO_GetShiftState done [18:27:53]FM_GetShiftState done [18:27:53]opened in 1730332621 [18:27:53]opened+sec_in_day 1730419021 [18:27:53]quantity*price = 37500 [18:27:53]sum+1 = 37501 [18:27:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46214645 Р/ж mentos pure white клуб 16/15,5г 3.000 * 49.00 = 147.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 522.00 НСП 1% : 4.62 НДС 12% : 55.43 Наличными: 522.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 216 31.10.2024 18:27 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139739 ФПД: 150433545910888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T182755&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139739&fm=150433545910888&tin=02508201610067®Number=0000000000091631&sum=52200 0 [18:27:54]StoreToDocumentArchive [18:27:54]shift 557 fd 139739 [18:27:54]save to /storage/0557/doc_00139739 [18:27:54]save last doc name /storage/0557/doc_00139739 to /storage/kkm_last_doc_name [18:27:54]save OK [18:27:54]Clear old archive folders... [18:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=404 [18:27:54]tlvbuf is 00ADA8F0 [18:27:54]SAM_PROTO_ClearQueue [18:27:54]wFMCommunicate request_size=4 [18:27:54]MH_SAM_APDU [18:27:54]CAPDU: 80 09 00 00 [18:27:54]Write to MH i2c: E2 08 00 DF 1A 80 09 00 00 00 00 00 00 6B [18:27:54]Write i2c OK [18:27:54]MH_I2C_Read... [18:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:54]Read from MH i2c: E2 [18:27:54]MH_I2C_Read... [18:27:54]Read from MH i2c: E2 03 00 [18:27:54]MH_I2C_Read... [18:27:54]Read from MH i2c: E2 03 00 DF 1A 00 90 00 6D [18:27:54]RAPDU: 90 00 [18:27:54]wFMCommunicate OK [18:27:54]SAM_PROTO_ClearQueue done [18:27:54]KKMCreateOFDPacket [18:27:54]OFDProtocolAddRootSTLVToBuf [18:27:54]FM_MakeSignedData [18:27:54]FM_MakeSignedData [18:27:54]SAM_PROTO_SignData [18:27:54]wFMCommunicate request_size=4 [18:27:54]MH_SAM_APDU [18:27:54]CAPDU: 80 0D 01 02 [18:27:54]Write to MH i2c: E2 08 00 E0 1A 80 0D 01 02 00 00 00 00 73 [18:27:54]Write i2c OK [18:27:54]MH_I2C_Read... [18:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:54]Read from MH i2c: E2 [18:27:54]MH_I2C_Read... [18:27:54]Read from MH i2c: E2 03 00 [18:27:54]MH_I2C_Read... [18:27:54]Read from MH i2c: E2 03 00 E0 1A 00 90 00 6E [18:27:54]RAPDU: 90 00 [18:27:54]wFMCommunicate OK [18:27:54]wFMCommunicate request_size=255 [18:27:54]MH_SAM_APDU [18:27:54]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 [18:27:54]Write to MH i2c: E2 02 01 E1 1A 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 00 00 D5 [18:27:54]Write i2c OK [18:27:54]MH_I2C_Read... [18:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:55]Read from MH i2c: E2 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 03 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 03 00 E1 1A 00 90 00 6F [18:27:55]RAPDU: 90 00 [18:27:55]wFMCommunicate OK [18:27:55]wFMCommunicate request_size=163 [18:27:55]MH_SAM_APDU [18:27:55]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 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 15 00 00 00 00 07 04 06 00 E8 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2B CC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 88 D1 8A 10 FA 68 [18:27:55]Write to MH i2c: E2 A6 00 E2 1A 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 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 15 00 00 00 00 07 04 06 00 E8 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2B CC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 88 D1 8A 10 FA 68 00 00 0B [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:55]Read from MH i2c: E2 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 03 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [18:27:55]RAPDU: 90 00 [18:27:55]wFMCommunicate OK [18:27:55]wFMCommunicate request_size=4 [18:27:55]MH_SAM_APDU [18:27:55]CAPDU: 80 0D 03 02 [18:27:55]Write to MH i2c: E2 08 00 E3 1A 80 0D 03 02 00 00 00 00 78 [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:55]Read from MH i2c: E2 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 0B 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 0B 00 E3 1A 00 FA AE FD F2 8E E4 3B 16 90 00 D3 [18:27:55]RAPDU: FA AE FD F2 8E E4 3B 16 90 00 [18:27:55]wFMCommunicate OK [18:27:55]SAM_PROTO_SignData done [18:27:55]FM_MakeSignedData done [18:27:55]CreateOFDProtocolMessage [18:27:55]wFMCommunicate request_size=4 [18:27:55]MH_SAM_APDU [18:27:55]CAPDU: 80 11 00 00 [18:27:55]Write to MH i2c: E2 08 00 E4 1A 80 11 00 00 00 00 00 00 78 [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:55]Read from MH i2c: E2 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 17 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 17 00 E4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D3 [18:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:27:55]wFMCommunicate OK [18:27:55]CreateOFDProtocolMessage done [18:27:55]OFDSenderStorePacket 139739 [18:27:55]StoreOFDPacket docnum=139739 [18:27: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 A8 01 00 00 A6 AA A0 01 F9 3A 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 15 00 00 00 00 07 04 06 00 E8 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2B CC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 88 D1 8A 10 FA 68 FA AE FD F2 8E E4 3B 16 [18:27:55]CheckFolder [18:27:55]dirname=/storage/ofd_packets [18:27:55]CheckFolder done [18:27:55]ProducePacketName [18:27:55]name=ofd_packets/00139739 [18:27:55]NVStorageSaveData ofd_packets/00139739 [18:27:55]File name is /storage/ofd_packets/00139739 [18:27:55]Write 454 bytes [18:27:55]NVStorageSaveData done [18:27:55]OFDSenderStorePacket done [18:27:55]KKMCreateOFDPacket done [18:27:55]NVStorageSaveData kkm_last_timestamp [18:27:55]File name is /storage/kkm_last_timestamp [18:27:55]Write 4 bytes [18:27:55]NVStorageSaveData done [18:27:55]ExternCall_PrintAddStr [18:27:55]wPrintStart [18:27:55]Write to MH i2c: 01 00 00 E5 1A FF [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: 01 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: 01 07 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: 01 07 00 E5 1A 00 00 00 00 00 FF 0F 14 [18:27:55]RasterBufferAndPrint [18:27:55]line Счет N : (3)335580 [18:27:55]line ИНН: 02508201610067 [18:27:55]line Контрольно-Кассовый Чек [18:27:55]line ПРОДАЖА [18:27:55]line Товар: 4602441014019 [18:27:55]line Напиток Лимонад 0,5л ст (Gabb trade) [18:27:55]line 3.000 * 125.00 [18:27:55]line = 375.00 [18:27:55]line НДС 12% НСП 1% [18:27:55]line > о реализуемом товаре [18:27:55]line Товар: 46214645 [18:27:55]line Р/ж mentos pure white клуб 16/15,5г [18:27:55]line 3.000 * 49.00 [18:27:55]line = 147.00 [18:27:55]line НДС 12% НСП 1% [18:27:55]line > о реализуемом товаре [18:27:55]line ИТОГО: 522.00 [18:27:55]line НСП 1% : 4.62 [18:27:55]line НДС 12% : 55.43 [18:27:55]line Наличными: 522.00 [18:27:55]line Безнал.: 0.00 [18:27:55]line Место: АЗС № 101 "Партнер Нефть" [18:27:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:27:55]line СНО: Общий режим [18:27:55]line Чек 216 31.10.2024 18:27 [18:27:55]line Смена: 557 ФФД: 1.0 [18:27:55]line ЗНМ: 0300000081 [18:27:55]line РНМ: 0000000000091631 [18:27:55]line Версия ККМ: 001 [18:27:55]line ФМ: 0000000000874669 [18:27:55]line ФД: 139739 [18:27:55]line ФПД: 150433545910888 [18:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T182755&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139739&fm=150433545910888&tin=02508201610067®Number=0000000000091631&sum=52200 [18:27:55]line 0 [18:27:55]OFD Sender: Processing packet 139739 [packets to send 34, broken 33] [18:27:55]ProducePacketName [18:27:55]name=ofd_packets/00139739 [18:27:55]OFD Sender: To server: pG, [18:27:55]CommunicateWithHost lk.salyk.kg:30040 [18:27:55]ConnectInit lk.salyk.kg [18:27:55]written 0, free lines is 4095 [18:27:55]Connected sock=10 [18:27: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 A8 01 00 00 A6 AA A0 01 F9 3A 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 15 00 00 00 00 07 04 06 00 E8 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2B CC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 88 D1 8A 10 FA 68 FA AE FD F2 8E E4 3B 16 [18:27: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 A8 E7 47 00 3C F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 21 02 00 F4 03 04 00 D8 77 23 67 B6 04 01 00 00 60 4A 73 00 5D 45 F0 EB [18:27:56]CommunicateWithHost err = 0 [18:27:56]CheckOFDResponse [18:27:56]1017 (14) - 77093643461234 [18:27:56]1041 (16) - 0000000000874669 [18:27:56]1040 (4) - 139739 [18:27:56]1012 (4) - 31.10.2024 12:28 [18:27:56]1206 (1) - 0 [18:27:56]OFD Sender: Remove packet 139739 [18:27:56]ProducePacketName [18:27:56]name=ofd_packets/00139739 [18:27:56]NVStorageDeleteData [18:27:56]Write to MH i2c: 01 00 00 15 1B 30 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: 01 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: 01 07 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 B3 0C F6 [18:27:56]RasterBufferAndPrint [18:27:56]line [18:27:56]line [18:27:56]line [18:27:56]line [18:27:56]line [18:27:56]written 0, free lines is 3258 [18:27:56]MH_Cut [18:27:56]Write to MH i2c: D1 01 00 1C 1B 01 09 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: D1 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: D1 01 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: D1 01 00 1C 1B 00 08 [18:27:56]Write to MH i2c: 01 00 00 1D 1B 38 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]OFD Sender: No OFD packet to send [18:27:57]*** Cut start [18:27:57]*** Partial cut [18:27:57]*** CUTSNS_PIN = 1 [18:27:57]*** CUTSNS_PIN = 0 [18:27:57]*** Brake cut motor [18:27:57]Read from MH i2c: 01 [18:27:57]MH_I2C_Read... [18:27:57]*** Stop cut motor [18:27:57]*** Cut end [18:27:57]Read from MH i2c: 01 07 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [18:27:57]process_action close_receipt done [18:27:57]requested_data is exist [18:27:57]produce_requested_data [18:27:57]requested_item fm.sn is exist - process it [18:27:57]wFMCommunicate request_size=4 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 11 00 00 [18:27:57]Write to MH i2c: E2 08 00 1E 1B 80 11 00 00 00 00 00 00 B3 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 17 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 17 00 1E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [18:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:27:57]wFMCommunicate OK [18:27:57]requested_item fd.num is exist - process it [18:27:57]SAM_PROTO_GetFieldsCounters [18:27:57]wFMCommunicate request_size=4 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 13 00 00 [18:27:57]Write to MH i2c: E2 08 00 1F 1B 80 13 00 00 00 00 00 00 B6 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 62 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 62 00 1F 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [18:27: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 DB 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:57]wFMCommunicate OK [18:27:57]SAM_PROTO_GetFieldsCounters done [18:27:57]requested_item shift.num is exist - process it [18:27:57]requested_item shift.opened is exist - process it [18:27:57]req_shift_opened [18:27:57]FM_GetShiftState [18:27:57]SAM_PROTO_GetShiftState [18:27:57]wFMCommunicate request_size=4 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 13 01 00 [18:27:57]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:57]Read from MH i2c: E2 0E 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E1 [18:27:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:27:57]wFMCommunicate OK [18:27:57]SAM_PROTO_GetShiftState done [18:27:57]FM_GetShiftState done [18:27:57]req_shift_opened done [18:27:57]requested_item shift.open_date is exist - process it [18:27:57]req_shift_open_date [18:27:57]req_shift_open_date done [18:27:57]produce_requested_data done [18:27:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139739,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:27:57]process_action_free close_receipt [18:27:57]json_value_free [18:27:57]json_value_free done [18:27:57]process_json_proto returns [18:27:57]Send response to host [18:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139739,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:27:57]free response buf [18:27:57]execute_script done [18:27:57]execute_script returns [18:27:57]free content buf [18:27:57]Sock 9.Close socket [18:27:57]Sock 9.Thread stoped [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:01]accept exits with 7 [18:42:01]New connection [18:42:01]New thread 3066654052 created [18:42:01]Thread 3066510692 joined [18:42:01]Waiting for new connection... [18:42:01] Sock 7.Parse request [18:42:01]Sock 7.Check first char [18:42:01]Sock 7.First char is OK [18:42:01]request: POST /json_proto HTTP/1.0 [18:42:01]Method: POST [18:42:01]URL: /json_proto [18:42:01]Method is POST - this is cgi request [18:42:01]url: /json_proto [18:42:01]query_string will be loaded in cgi processing [18:42:01]execute_cgi json_proto POST (null) [18:42:01]execute_cgi path=json_proto method=POST [18:42:01]POST find Content-Length [18:42:01]Host: 172.17.50.196:8080 [18:42:01]Content-Length: 856 [18:42:01]Content-Type: application/json [18:42:01] [18:42:01]POST finish read [18:42:01]Found Content-Length = 856 [18:42:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335581", "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 }]} ,{ "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" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:01]execute_script... [18:42: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)335581", "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 }]} ,{ "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" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:01]POST & json_proto [18:42:01]process_json_proto [18:42:01]json parsed OK: [18:42:01]protocol is kg_v1.0 [18:42:01]action value=close_receipt [18:42:01]process_action close_receipt [18:42:01]cmd_close_receipt [18:42:01]MH_GetDate [18:42:01]Write to MH i2c: F0 00 00 21 1B 2B [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: F0 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: F0 09 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: F0 09 00 21 1B 00 7B CF 23 67 72 0D 1C 67 0A [18:42:01]GetLastDocTimeStamp 1730399275 [18:42:01]current date 1730400123 [18:42:01]FM_GetShiftState [18:42:01]SAM_PROTO_GetShiftState [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 13 01 00 [18:42:01]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 0E 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E3 [18:42:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:42:01]wFMCommunicate OK [18:42:01]SAM_PROTO_GetShiftState done [18:42:01]FM_GetShiftState done [18:42:01]opened in 1730332621 [18:42:01]opened+sec_in_day 1730419021 [18:42:01]quantity*price = 14400 [18:42:01]sum+1 = 14401 [18:42:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.54 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 217 31.10.2024 18:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139740 ФПД: 185846498916500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T184203&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139740&fm=185846498916500&tin=02508201610067®Number=0000000000091631&sum=28800 0 [18:42:02]StoreToDocumentArchive [18:42:02]shift 557 fd 139740 [18:42:02]save to /storage/0557/doc_00139740 [18:42:02]save last doc name /storage/0557/doc_00139740 to /storage/kkm_last_doc_name [18:42:02]save OK [18:42:02]Clear old archive folders... [18:42:02]ProcessDocumentItem done err = 0, tmpTLVsize=374 [18:42:02]tlvbuf is 00A94580 [18:42:02]SAM_PROTO_ClearQueue [18:42:02]wFMCommunicate request_size=4 [18:42:02]MH_SAM_APDU [18:42:02]CAPDU: 80 09 00 00 [18:42:02]Write to MH i2c: E2 08 00 2F 1B 80 09 00 00 00 00 00 00 BC [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [18:42:02]RAPDU: 90 00 [18:42:02]wFMCommunicate OK [18:42:02]SAM_PROTO_ClearQueue done [18:42:02]KKMCreateOFDPacket [18:42:02]OFDProtocolAddRootSTLVToBuf [18:42:02]FM_MakeSignedData [18:42:02]FM_MakeSignedData [18:42:02]SAM_PROTO_SignData [18:42:02]wFMCommunicate request_size=4 [18:42:02]MH_SAM_APDU [18:42:02]CAPDU: 80 0D 01 02 [18:42:02]Write to MH i2c: E2 08 00 30 1B 80 0D 01 02 00 00 00 00 C4 [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [18:42:02]RAPDU: 90 00 [18:42:02]wFMCommunicate OK [18:42:02]wFMCommunicate request_size=255 [18:42:02]MH_SAM_APDU [18:42:02]CAPDU: 80 0D 02 02 FA 03 00 76 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 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 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 [18:42:02]Write to MH i2c: E2 02 01 31 1B 80 0D 02 02 FA 00 03 00 76 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 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 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 00 00 DD [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:03]Read from MH i2c: E2 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 03 00 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [18:42:03]RAPDU: 90 00 [18:42:03]wFMCommunicate OK [18:42:03]wFMCommunicate request_size=133 [18:42:03]MH_SAM_APDU [18:42:03]CAPDU: 80 0D 02 02 80 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 D9 00 00 00 F4 03 04 00 7B CF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A9 06 C2 8C F8 94 [18:42:03]Write to MH i2c: E2 88 00 32 1B 80 0D 02 02 80 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 D9 00 00 00 F4 03 04 00 7B CF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A9 06 C2 8C F8 94 00 00 48 [18:42:03]Write i2c OK [18:42:03]MH_I2C_Read... [18:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:03]Read from MH i2c: E2 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 03 00 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [18:42:03]RAPDU: 90 00 [18:42:03]wFMCommunicate OK [18:42:03]wFMCommunicate request_size=4 [18:42:03]MH_SAM_APDU [18:42:03]CAPDU: 80 0D 03 02 [18:42:03]Write to MH i2c: E2 08 00 33 1B 80 0D 03 02 00 00 00 00 C9 [18:42:03]Write i2c OK [18:42:03]MH_I2C_Read... [18:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:03]Read from MH i2c: E2 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 0B 00 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 0B 00 33 1B 00 8F 06 78 8D BD 86 0F 21 90 00 D7 [18:42:03]RAPDU: 8F 06 78 8D BD 86 0F 21 90 00 [18:42:03]wFMCommunicate OK [18:42:03]SAM_PROTO_SignData done [18:42:03]FM_MakeSignedData done [18:42:03]CreateOFDProtocolMessage [18:42:03]wFMCommunicate request_size=4 [18:42:03]MH_SAM_APDU [18:42:03]CAPDU: 80 11 00 00 [18:42:03]Write to MH i2c: E2 08 00 34 1B 80 11 00 00 00 00 00 00 C9 [18:42:03]Write i2c OK [18:42:03]MH_I2C_Read... [18:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:03]Read from MH i2c: E2 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 17 00 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: E2 17 00 34 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 24 [18:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:42:03]wFMCommunicate OK [18:42:03]CreateOFDProtocolMessage done [18:42:03]OFDSenderStorePacket 139740 [18:42:03]StoreOFDPacket docnum=139740 [18:42: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 8A 01 00 00 F7 3D 82 01 9E E7 5A 03 01 00 03 00 76 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 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 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 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 D9 00 00 00 F4 03 04 00 7B CF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A9 06 C2 8C F8 94 8F 06 78 8D BD 86 0F 21 [18:42:03]CheckFolder [18:42:03]dirname=/storage/ofd_packets [18:42:03]CheckFolder done [18:42:03]ProducePacketName [18:42:03]name=ofd_packets/00139740 [18:42:03]NVStorageSaveData ofd_packets/00139740 [18:42:03]File name is /storage/ofd_packets/00139740 [18:42:03]Write 424 bytes [18:42:03]NVStorageSaveData done [18:42:03]OFDSenderStorePacket done [18:42:03]KKMCreateOFDPacket done [18:42:03]NVStorageSaveData kkm_last_timestamp [18:42:03]File name is /storage/kkm_last_timestamp [18:42:03]Write 4 bytes [18:42:03]NVStorageSaveData done [18:42:03]ExternCall_PrintAddStr [18:42:03]wPrintStart [18:42:03]Write to MH i2c: 01 00 00 35 1B 50 [18:42:03]Write i2c OK [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: 01 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: 01 07 00 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 FF 0F 65 [18:42:03]RasterBufferAndPrint [18:42:03]line Счет N : (3)335581 [18:42:03]line ИНН: 02508201610067 [18:42:03]line Контрольно-Кассовый Чек [18:42:03]line ПРОДАЖА [18:42:03]line Товар: 47802995 [18:42:03]line Сигареты Winston XS Silver [18:42:03]line 1.000 * 144.00 [18:42:03]line = 144.00 [18:42:03]line НДС 12% НСП 1% [18:42:03]line > о реализуемом товаре [18:42:03]line Товар: 48747059 [18:42:03]line Сигареты Winston Legend Blue [18:42:03]line 1.000 * 144.00 [18:42:03]line = 144.00 [18:42:03]line НДС 12% НСП 1% [18:42:03]line > о реализуемом товаре [18:42:03]line ИТОГО: 288.00 [18:42:03]line НСП 1% : 2.54 [18:42:03]line НДС 12% : 30.58 [18:42:03]line Наличными: 288.00 [18:42:03]line Безнал.: 0.00 [18:42:03]line Место: АЗС № 101 "Партнер Нефть" [18:42:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:42:03]line СНО: Общий режим [18:42:03]line Чек 217 31.10.2024 18:42 [18:42:03]line Смена: 557 ФФД: 1.0 [18:42:03]line ЗНМ: 0300000081 [18:42:03]line РНМ: 0000000000091631 [18:42:03]line Версия ККМ: 001 [18:42:03]line ФМ: 0000000000874669 [18:42:03]line ФД: 139740 [18:42:03]line ФПД: 185846498916500 [18:42:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T184203&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139740&fm=185846498916500&tin=02508201610067®Number=0000000000091631&sum=28800 [18:42:03]line 0 [18:42:03]OFD Sender: Processing packet 139740 [packets to send 34, broken 33] [18:42:03]ProducePacketName [18:42:03]name=ofd_packets/00139740 [18:42:03]OFD Sender: To server: pG, [18:42:03]CommunicateWithHost lk.salyk.kg:30040 [18:42:03]ConnectInit lk.salyk.kg [18:42:03]written 0, free lines is 4095 [18:42:03]Connected sock=10 [18:42: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 8A 01 00 00 F7 3D 82 01 9E E7 5A 03 01 00 03 00 76 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 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 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 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 D9 00 00 00 F4 03 04 00 7B CF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A9 06 C2 8C F8 94 8F 06 78 8D BD 86 0F 21 [18:42: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 5E 4D 47 00 AF 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 21 02 00 F4 03 04 00 28 7B 23 67 B6 04 01 00 00 49 79 F3 D5 4C C8 33 AD [18:42:03]CommunicateWithHost err = 0 [18:42:03]CheckOFDResponse [18:42:03]1017 (14) - 77093643461234 [18:42:03]1041 (16) - 0000000000874669 [18:42:03]1040 (4) - 139740 [18:42:03]1012 (4) - 31.10.2024 12:42 [18:42:03]1206 (1) - 0 [18:42:03]OFD Sender: Remove packet 139740 [18:42:03]ProducePacketName [18:42:03]name=ofd_packets/00139740 [18:42:03]NVStorageDeleteData [18:42:04]Write to MH i2c: 01 00 00 64 1B 7F [18:42:04]Write i2c OK [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: 01 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: 01 07 00 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: 01 07 00 64 1B 00 00 00 00 00 A7 0C 39 [18:42:04]RasterBufferAndPrint [18:42:04]line [18:42:04]line [18:42:04]line [18:42:04]line [18:42:04]line [18:42:04]written 0, free lines is 3245 [18:42:04]MH_Cut [18:42:04]Write to MH i2c: D1 01 00 6B 1B 01 58 [18:42:04]Write i2c OK [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: D1 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: D1 01 00 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: D1 01 00 6B 1B 00 57 [18:42:04]Write to MH i2c: 01 00 00 6C 1B 87 [18:42:04]Write i2c OK [18:42:04]MH_I2C_Read... [18:42:04]OFD Sender: No OFD packet to send [18:42:04]*** Cut start [18:42:04]*** Partial cut [18:42:04]*** CUTSNS_PIN = 1 [18:42:04]*** CUTSNS_PIN = 0 [18:42:05]*** Brake cut motor [18:42:05]Read from MH i2c: 01 [18:42:05]MH_I2C_Read... [18:42:05]*** Stop cut motor [18:42:05]*** Cut end [18:42:05]Read from MH i2c: 01 07 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: 01 07 00 6C 1B 00 00 00 00 00 FF 0F 9C [18:42:05]process_action close_receipt done [18:42:05]requested_data is exist [18:42:05]produce_requested_data [18:42:05]requested_item fm.sn is exist - process it [18:42:05]wFMCommunicate request_size=4 [18:42:05]MH_SAM_APDU [18:42:05]CAPDU: 80 11 00 00 [18:42:05]Write to MH i2c: E2 08 00 6D 1B 80 11 00 00 00 00 00 00 02 [18:42:05]Write i2c OK [18:42:05]MH_I2C_Read... [18:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:05]Read from MH i2c: E2 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 17 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 17 00 6D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5D [18:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:42:05]wFMCommunicate OK [18:42:05]requested_item fd.num is exist - process it [18:42:05]SAM_PROTO_GetFieldsCounters [18:42:05]wFMCommunicate request_size=4 [18:42:05]MH_SAM_APDU [18:42:05]CAPDU: 80 13 00 00 [18:42:05]Write to MH i2c: E2 08 00 6E 1B 80 13 00 00 00 00 00 00 05 [18:42:05]Write i2c OK [18:42:05]MH_I2C_Read... [18:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:05]Read from MH i2c: E2 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 62 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 62 00 6E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [18:42: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 DC 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:05]wFMCommunicate OK [18:42:05]SAM_PROTO_GetFieldsCounters done [18:42:05]requested_item shift.num is exist - process it [18:42:05]requested_item shift.opened is exist - process it [18:42:05]req_shift_opened [18:42:05]FM_GetShiftState [18:42:05]SAM_PROTO_GetShiftState [18:42:05]wFMCommunicate request_size=4 [18:42:05]MH_SAM_APDU [18:42:05]CAPDU: 80 13 01 00 [18:42:05]Write to MH i2c: E2 08 00 6F 1B 80 13 01 00 00 00 00 00 07 [18:42:05]Write i2c OK [18:42:05]MH_I2C_Read... [18:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:05]Read from MH i2c: E2 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 0E 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 0E 00 6F 1B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 30 [18:42:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:42:05]wFMCommunicate OK [18:42:05]SAM_PROTO_GetShiftState done [18:42:05]FM_GetShiftState done [18:42:05]req_shift_opened done [18:42:05]requested_item shift.open_date is exist - process it [18:42:05]req_shift_open_date [18:42:05]req_shift_open_date done [18:42:05]produce_requested_data done [18:42:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139740,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:42:05]process_action_free close_receipt [18:42:05]json_value_free [18:42:05]json_value_free done [18:42:05]process_json_proto returns [18:42:05]Send response to host [18:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139740,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:42:05]free response buf [18:42:05]execute_script done [18:42:05]execute_script returns [18:42:05]free content buf [18:42:05]Sock 7.Close socket [18:42:05]Sock 7.Thread stoped [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:48]accept exits with 9 [18:53:48]New connection [18:53:48]New thread 3066510692 created [18:53:48]Thread 3066654052 joined [18:53:48]Waiting for new connection... [18:53:48] Sock 9.Parse request [18:53:48]Sock 9.Check first char [18:53:48]Sock 9.First char is OK [18:53:48]request: POST /json_proto HTTP/1.0 [18:53:48]Method: POST [18:53:48]URL: /json_proto [18:53:48]Method is POST - this is cgi request [18:53:48]url: /json_proto [18:53:48]query_string will be loaded in cgi processing [18:53:48]execute_cgi json_proto POST (null) [18:53:48]execute_cgi path=json_proto method=POST [18:53:48]POST find Content-Length [18:53:48]Host: 172.17.50.196:8080 [18:53:48]Content-Length: 696 [18:53:48]Content-Type: application/json [18:53:48] [18:53:48]POST finish read [18:53:48]Found Content-Length = 696 [18:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335583", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 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" ] } } [18:53:48]execute_script... [18:53: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)335583", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 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" ] } } [18:53:48]POST & json_proto [18:53:48]process_json_proto [18:53:48]json parsed OK: [18:53:48]protocol is kg_v1.0 [18:53:48]action value=close_receipt [18:53:48]process_action close_receipt [18:53:48]cmd_close_receipt [18:53:48]MH_GetDate [18:53:48]Write to MH i2c: F0 00 00 70 1B 7A [18:53:48]Write i2c OK [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: F0 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: F0 09 00 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: F0 09 00 70 1B 00 3E D2 23 67 72 0D 1C 67 1F [18:53:48]GetLastDocTimeStamp 1730400123 [18:53:48]current date 1730400830 [18:53:48]FM_GetShiftState [18:53:48]SAM_PROTO_GetShiftState [18:53:48]wFMCommunicate request_size=4 [18:53:48]MH_SAM_APDU [18:53:48]CAPDU: 80 13 01 00 [18:53:48]Write to MH i2c: E2 08 00 71 1B 80 13 01 00 00 00 00 00 09 [18:53:48]Write i2c OK [18:53:48]MH_I2C_Read... [18:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:48]Read from MH i2c: E2 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 0E 00 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 0E 00 71 1B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 32 [18:53:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:53:48]wFMCommunicate OK [18:53:48]SAM_PROTO_GetShiftState done [18:53:48]FM_GetShiftState done [18:53:48]opened in 1730332621 [18:53:48]opened+sec_in_day 1730419021 [18:53:48]quantity*price = 9500 [18:53:48]sum+1 = 9501 [18:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 218 31.10.2024 18:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139741 ФПД: 162965898656162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185350&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139741&fm=162965898656162&tin=02508201610067®Number=0000000000091631&sum=9500 0 [18:53:49]StoreToDocumentArchive [18:53:49]shift 557 fd 139741 [18:53:49]save to /storage/0557/doc_00139741 [18:53:49]save last doc name /storage/0557/doc_00139741 to /storage/kkm_last_doc_name [18:53:49]save OK [18:53:49]Clear old archive folders... [18:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=299 [18:53:49]tlvbuf is 00A7EB60 [18:53:49]SAM_PROTO_ClearQueue [18:53:49]wFMCommunicate request_size=4 [18:53:49]MH_SAM_APDU [18:53:49]CAPDU: 80 09 00 00 [18:53:49]Write to MH i2c: E2 08 00 7E 1B 80 09 00 00 00 00 00 00 0B [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:49]Read from MH i2c: E2 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [18:53:49]RAPDU: 90 00 [18:53:49]wFMCommunicate OK [18:53:49]SAM_PROTO_ClearQueue done [18:53:49]KKMCreateOFDPacket [18:53:49]OFDProtocolAddRootSTLVToBuf [18:53:49]FM_MakeSignedData [18:53:49]FM_MakeSignedData [18:53:49]SAM_PROTO_SignData [18:53:49]wFMCommunicate request_size=4 [18:53:49]MH_SAM_APDU [18:53:49]CAPDU: 80 0D 01 02 [18:53:49]Write to MH i2c: E2 08 00 7F 1B 80 0D 01 02 00 00 00 00 13 [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:49]Read from MH i2c: E2 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 7F 1B 00 90 00 0E [18:53:49]RAPDU: 90 00 [18:53:49]wFMCommunicate OK [18:53:49]wFMCommunicate request_size=255 [18:53:49]MH_SAM_APDU [18:53: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 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DA 00 00 00 F4 03 04 00 3E D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [18:53:49]Write to MH i2c: E2 02 01 80 1B 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DA 00 00 00 F4 03 04 00 3E D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 E7 [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:49]Read from MH i2c: E2 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 80 1B 00 90 00 0F [18:53:49]RAPDU: 90 00 [18:53:49]wFMCommunicate OK [18:53:49]wFMCommunicate request_size=58 [18:53:49]MH_SAM_APDU [18:53: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 DD 21 02 00 35 04 06 00 94 37 74 7F F9 A2 [18:53:49]Write to MH i2c: E2 3D 00 81 1B 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 DD 21 02 00 35 04 06 00 94 37 74 7F F9 A2 00 00 61 [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:49]Read from MH i2c: E2 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 03 00 81 1B 00 90 00 10 [18:53:49]RAPDU: 90 00 [18:53:49]wFMCommunicate OK [18:53:49]wFMCommunicate request_size=4 [18:53:49]MH_SAM_APDU [18:53:49]CAPDU: 80 0D 03 02 [18:53:49]Write to MH i2c: E2 08 00 82 1B 80 0D 03 02 00 00 00 00 18 [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:50]Read from MH i2c: E2 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: E2 0B 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: E2 0B 00 82 1B 00 F3 C8 CA F4 73 A6 DC F7 90 00 7E [18:53:50]RAPDU: F3 C8 CA F4 73 A6 DC F7 90 00 [18:53:50]wFMCommunicate OK [18:53:50]SAM_PROTO_SignData done [18:53:50]FM_MakeSignedData done [18:53:50]CreateOFDProtocolMessage [18:53:50]wFMCommunicate request_size=4 [18:53:50]MH_SAM_APDU [18:53:50]CAPDU: 80 11 00 00 [18:53:50]Write to MH i2c: E2 08 00 83 1B 80 11 00 00 00 00 00 00 18 [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:50]Read from MH i2c: E2 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: E2 17 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: E2 17 00 83 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 73 [18:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:53:50]wFMCommunicate OK [18:53:50]CreateOFDProtocolMessage done [18:53:50]OFDSenderStorePacket 139741 [18:53:50]StoreOFDPacket docnum=139741 [18:53: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 3F 01 00 00 AE C9 37 01 9D E3 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DA 00 00 00 F4 03 04 00 3E D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 94 37 74 7F F9 A2 F3 C8 CA F4 73 A6 DC F7 [18:53:50]CheckFolder [18:53:50]dirname=/storage/ofd_packets [18:53:50]CheckFolder done [18:53:50]ProducePacketName [18:53:50]name=ofd_packets/00139741 [18:53:50]NVStorageSaveData ofd_packets/00139741 [18:53:50]File name is /storage/ofd_packets/00139741 [18:53:50]Write 349 bytes [18:53:50]NVStorageSaveData done [18:53:50]OFDSenderStorePacket done [18:53:50]KKMCreateOFDPacket done [18:53:50]NVStorageSaveData kkm_last_timestamp [18:53:50]File name is /storage/kkm_last_timestamp [18:53:50]Write 4 bytes [18:53:50]NVStorageSaveData done [18:53:50]ExternCall_PrintAddStr [18:53:50]wPrintStart [18:53:50]Write to MH i2c: 01 00 00 84 1B 9F [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 84 1B 00 00 00 00 00 FF 0F B4 [18:53:50]RasterBufferAndPrint [18:53:50]line Счет N : (3)335583 [18:53:50]line ИНН: 02508201610067 [18:53:50]line Контрольно-Кассовый Чек [18:53:50]line ПРОДАЖА [18:53:50]line Товар: 4700000480364 [18:53:50]line Напиток энерг Nitro экзотик 0.45 ж/б [18:53:50]line 1.000 * 95.00 [18:53:50]line = 95.00 [18:53:50]line НДС 12% НСП 1% [18:53:50]line > о реализуемом товаре [18:53:50]line ИТОГО: 95.00 [18:53:50]line НСП 1% : 0.84 [18:53:50]line НДС 12% : 10.09 [18:53:50]line Наличными: 95.00 [18:53:50]line Безнал.: 0.00 [18:53:50]line Место: АЗС № 101 "Партнер Нефть" [18:53:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:53:50]line СНО: Общий режим [18:53:50]line Чек 218 31.10.2024 18:53 [18:53:50]line Смена: 557 ФФД: 1.0 [18:53:50]line ЗНМ: 0300000081 [18:53:50]line РНМ: 0000000000091631 [18:53:50]line Версия ККМ: 001 [18:53:50]line ФМ: 0000000000874669 [18:53:50]line ФД: 139741 [18:53:50]line ФПД: 162965898656162 [18:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185350&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139741&fm=162965898656162&tin=02508201610067®Number=0000000000091631&sum=9500 [18:53:50]line 0 [18:53:50]written 0, free lines is 4095 [18:53:50]OFD Sender: Processing packet 139741 [packets to send 34, broken 33] [18:53:50]ProducePacketName [18:53:50]name=ofd_packets/00139741 [18:53:50]OFD Sender: To server: pG, [18:53:50]CommunicateWithHost lk.salyk.kg:30040 [18:53:50]ConnectInit lk.salyk.kg [18:53:50]Connected sock=10 [18: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 3F 01 00 00 AE C9 37 01 9D E3 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DA 00 00 00 F4 03 04 00 3E D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 94 37 74 7F F9 A2 F3 C8 CA F4 73 A6 DC F7 [18: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 56 67 47 00 6F 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 DD 21 02 00 F4 03 04 00 EA 7D 23 67 B6 04 01 00 00 C1 0E 8F 83 B3 70 7D C4 [18:53:50]CommunicateWithHost err = 0 [18:53:50]CheckOFDResponse [18:53:50]1017 (14) - 77093643461234 [18:53:50]1041 (16) - 0000000000874669 [18:53:50]1040 (4) - 139741 [18:53:50]1012 (4) - 31.10.2024 12:54 [18:53:50]1206 (1) - 0 [18:53:50]OFD Sender: Remove packet 139741 [18:53:50]ProducePacketName [18:53:50]name=ofd_packets/00139741 [18:53:50]NVStorageDeleteData [18:53:50]Write to MH i2c: 01 00 00 AD 1B C8 [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 AD 1B 00 00 00 00 00 04 0D E0 [18:53:50]RasterBufferAndPrint [18:53:50]line [18:53:50]line [18:53:50]line [18:53:50]line [18:53:50]line [18:53:50]written 0, free lines is 3338 [18:53:50]MH_Cut [18:53:50]Write to MH i2c: D1 01 00 B4 1B 01 A1 [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: D1 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: D1 01 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: D1 01 00 B4 1B 00 A0 [18:53:50]Write to MH i2c: 01 00 00 B5 1B D0 [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]OFD Sender: No OFD packet to send [18:53:51]*** Cut start [18:53:51]*** Partial cut [18:53:51]*** CUTSNS_PIN = 1 [18:53:51]*** CUTSNS_PIN = 0 [18:53:51]*** Brake cut motor [18:53:51]Read from MH i2c: 01 [18:53:51]MH_I2C_Read... [18:53:51]*** Stop cut motor [18:53:51]*** Cut end [18:53:51]Read from MH i2c: 01 07 00 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: 01 07 00 B5 1B 00 00 00 00 00 FF 0F E5 [18:53:51]process_action close_receipt done [18:53:51]requested_data is exist [18:53:51]produce_requested_data [18:53:51]requested_item fm.sn is exist - process it [18:53:51]wFMCommunicate request_size=4 [18:53:51]MH_SAM_APDU [18:53:51]CAPDU: 80 11 00 00 [18:53:51]Write to MH i2c: E2 08 00 B6 1B 80 11 00 00 00 00 00 00 4B [18:53:51]Write i2c OK [18:53:51]MH_I2C_Read... [18:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:51]Read from MH i2c: E2 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 17 00 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 17 00 B6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A6 [18: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 [18:53:51]wFMCommunicate OK [18:53:51]requested_item fd.num is exist - process it [18:53:51]SAM_PROTO_GetFieldsCounters [18:53:51]wFMCommunicate request_size=4 [18:53:51]MH_SAM_APDU [18:53:51]CAPDU: 80 13 00 00 [18:53:51]Write to MH i2c: E2 08 00 B7 1B 80 13 00 00 00 00 00 00 4E [18:53:51]Write i2c OK [18:53:51]MH_I2C_Read... [18:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:51]Read from MH i2c: E2 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 62 00 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 62 00 B7 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [18: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 DD 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:51]wFMCommunicate OK [18:53:51]SAM_PROTO_GetFieldsCounters done [18:53:51]requested_item shift.num is exist - process it [18:53:51]requested_item shift.opened is exist - process it [18:53:51]req_shift_opened [18:53:51]FM_GetShiftState [18:53:51]SAM_PROTO_GetShiftState [18:53:51]wFMCommunicate request_size=4 [18:53:51]MH_SAM_APDU [18:53:51]CAPDU: 80 13 01 00 [18:53:51]Write to MH i2c: E2 08 00 B8 1B 80 13 01 00 00 00 00 00 50 [18:53:51]Write i2c OK [18:53:51]MH_I2C_Read... [18:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:52]Read from MH i2c: E2 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 0E 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 0E 00 B8 1B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 79 [18:53:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:53:52]wFMCommunicate OK [18:53:52]SAM_PROTO_GetShiftState done [18:53:52]FM_GetShiftState done [18:53:52]req_shift_opened done [18:53:52]requested_item shift.open_date is exist - process it [18:53:52]req_shift_open_date [18:53:52]req_shift_open_date done [18:53:52]produce_requested_data done [18:53:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139741,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:53:52]process_action_free close_receipt [18:53:52]json_value_free [18:53:52]json_value_free done [18:53:52]process_json_proto returns [18:53:52]Send response to host [18:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139741,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:53:52]free response buf [18:53:52]execute_script done [18:53:52]execute_script returns [18:53:52]free content buf [18:53:52]Sock 9.Close socket [18:53:52]Sock 9.Thread stoped [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:13]accept exits with 7 [18:54:13]New connection [18:54:13]New thread 3066654052 created [18:54:13]Thread 3066510692 joined [18:54:13]Waiting for new connection... [18:54:13] Sock 7.Parse request [18:54:13]Sock 7.Check first char [18:54:13]Sock 7.First char is OK [18:54:13]request: POST /json_proto HTTP/1.0 [18:54:13]Method: POST [18:54:13]URL: /json_proto [18:54:13]Method is POST - this is cgi request [18:54:13]url: /json_proto [18:54:13]query_string will be loaded in cgi processing [18:54:13]execute_cgi json_proto POST (null) [18:54:13]execute_cgi path=json_proto method=POST [18:54:13]POST find Content-Length [18:54:13]Host: 172.17.50.196:8080 [18:54:13]Content-Length: 683 [18:54:13]Content-Type: application/json [18:54:13] [18:54:13]POST finish read [18:54:13]Found Content-Length = 683 [18:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095410", "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 }]} ], "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" ] } } [18:54:13]execute_script... [18:54: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 : (1)1095410", "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 }]} ], "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" ] } } [18:54:13]POST & json_proto [18:54:13]process_json_proto [18:54:13]json parsed OK: [18:54:13]protocol is kg_v1.0 [18:54:13]action value=close_receipt [18:54:13]process_action close_receipt [18:54:13]cmd_close_receipt [18:54:13]MH_GetDate [18:54:13]Write to MH i2c: F0 00 00 B9 1B C3 [18:54:13]Write i2c OK [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: F0 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: F0 09 00 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: F0 09 00 B9 1B 00 57 D2 23 67 72 0D 1C 67 81 [18:54:13]GetLastDocTimeStamp 1730400830 [18:54:13]current date 1730400855 [18:54:13]FM_GetShiftState [18:54:13]SAM_PROTO_GetShiftState [18:54:13]wFMCommunicate request_size=4 [18:54:13]MH_SAM_APDU [18:54:13]CAPDU: 80 13 01 00 [18:54:13]Write to MH i2c: E2 08 00 BA 1B 80 13 01 00 00 00 00 00 52 [18:54:13]Write i2c OK [18:54:13]MH_I2C_Read... [18:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:13]Read from MH i2c: E2 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: E2 0E 00 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: E2 0E 00 BA 1B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7B [18:54:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:54:13]wFMCommunicate OK [18:54:13]SAM_PROTO_GetShiftState done [18:54:13]FM_GetShiftState done [18:54:13]opened in 1730332621 [18:54:13]opened+sec_in_day 1730419021 [18:54:13]quantity*price = 150032 [18:54:13]sum+1 = 150033 [18:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 219 31.10.2024 18:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139742 ФПД: 123729103144110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185415&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139742&fm=123729103144110&tin=02508201610067®Number=0000000000091631&sum=150000 [18:54:14]StoreToDocumentArchive [18:54:14]shift 557 fd 139742 [18:54:14]save to /storage/0557/doc_00139742 [18:54:14]save last doc name /storage/0557/doc_00139742 to /storage/kkm_last_doc_name [18:54:14]save OK [18:54:14]Clear old archive folders... [18:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:14]tlvbuf is 00ADA6F0 [18:54:14]SAM_PROTO_ClearQueue [18:54:14]wFMCommunicate request_size=4 [18:54:14]MH_SAM_APDU [18:54:14]CAPDU: 80 09 00 00 [18:54:14]Write to MH i2c: E2 08 00 C7 1B 80 09 00 00 00 00 00 00 54 [18:54:14]Write i2c OK [18:54:14]MH_I2C_Read... [18:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:14]Read from MH i2c: E2 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [18:54:14]RAPDU: 90 00 [18:54:14]wFMCommunicate OK [18:54:14]SAM_PROTO_ClearQueue done [18:54:14]KKMCreateOFDPacket [18:54:14]OFDProtocolAddRootSTLVToBuf [18:54:14]FM_MakeSignedData [18:54:14]FM_MakeSignedData [18:54:14]SAM_PROTO_SignData [18:54:14]wFMCommunicate request_size=4 [18:54:14]MH_SAM_APDU [18:54:14]CAPDU: 80 0D 01 02 [18:54:14]Write to MH i2c: E2 08 00 C8 1B 80 0D 01 02 00 00 00 00 5C [18:54:14]Write i2c OK [18:54:14]MH_I2C_Read... [18:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:14]Read from MH i2c: E2 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [18:54:14]RAPDU: 90 00 [18:54:14]wFMCommunicate OK [18:54:14]wFMCommunicate request_size=255 [18:54:14]MH_SAM_APDU [18:54:14]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 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 DB 00 00 00 F4 03 04 00 57 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 [18:54:14]Write to MH i2c: E2 02 01 C9 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 DB 00 00 00 F4 03 04 00 57 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 00 00 7D [18:54:14]Write i2c OK [18:54:14]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 C9 1B 00 90 00 58 [18:54:15]RAPDU: 90 00 [18:54:15]wFMCommunicate OK [18:54:15]wFMCommunicate request_size=10 [18:54:15]MH_SAM_APDU [18:54:15]CAPDU: 80 0D 02 02 05 87 ED 3D C4 AE [18:54:15]Write to MH i2c: E2 0D 00 CA 1B 80 0D 02 02 05 00 87 ED 3D C4 AE 00 00 8C [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 CA 1B 00 90 00 59 [18:54:15]RAPDU: 90 00 [18:54:15]wFMCommunicate OK [18:54:15]wFMCommunicate request_size=4 [18:54:15]MH_SAM_APDU [18:54:15]CAPDU: 80 0D 03 02 [18:54:15]Write to MH i2c: E2 08 00 CB 1B 80 0D 03 02 00 00 00 00 61 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 0B 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 0B 00 CB 1B 00 56 CA 92 A8 8C 1B 18 07 90 00 82 [18:54:15]RAPDU: 56 CA 92 A8 8C 1B 18 07 90 00 [18:54:15]wFMCommunicate OK [18:54:15]SAM_PROTO_SignData done [18:54:15]FM_MakeSignedData done [18:54:15]CreateOFDProtocolMessage [18:54:15]wFMCommunicate request_size=4 [18:54:15]MH_SAM_APDU [18:54:15]CAPDU: 80 11 00 00 [18:54:15]Write to MH i2c: E2 08 00 CC 1B 80 11 00 00 00 00 00 00 61 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 17 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 17 00 CC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BC [18:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:54:15]wFMCommunicate OK [18:54:15]CreateOFDProtocolMessage done [18:54:15]OFDSenderStorePacket 139742 [18:54:15]StoreOFDPacket docnum=139742 [18:54: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 0F 01 00 00 68 D2 07 01 69 F5 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 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 DB 00 00 00 F4 03 04 00 57 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 87 ED 3D C4 AE 56 CA 92 A8 8C 1B 18 07 [18:54:15]CheckFolder [18:54:15]dirname=/storage/ofd_packets [18:54:15]CheckFolder done [18:54:15]ProducePacketName [18:54:15]name=ofd_packets/00139742 [18:54:15]NVStorageSaveData ofd_packets/00139742 [18:54:15]File name is /storage/ofd_packets/00139742 [18:54:15]Write 301 bytes [18:54:15]NVStorageSaveData done [18:54:15]OFDSenderStorePacket done [18:54:15]KKMCreateOFDPacket done [18:54:15]NVStorageSaveData kkm_last_timestamp [18:54:15]File name is /storage/kkm_last_timestamp [18:54:15]Write 4 bytes [18:54:15]NVStorageSaveData done [18:54:15]ExternCall_PrintAddStr [18:54:15]wPrintStart [18:54:15]Write to MH i2c: 01 00 00 CD 1B E8 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [18:54:15]RasterBufferAndPrint [18:54:15]line Счет N : (1)1095410 [18:54:15]line ИНН: 02508201610067 [18:54:15]line Контрольно-Кассовый Чек [18:54:15]line ПРОДАЖА [18:54:15]line ТРК (МРК, ГНК) : 44 [18:54:15]line Товар: 2710124500 [18:54:15]line Аи-95-К-3 [18:54:15]line 20.220 * 74.20 [18:54:15]line = 1500.32 [18:54:15]line НДС 12% НСП 1% [18:54:15]line > о реализуемом товаре [18:54:15]line ОКРУГЛЕНИЕ: -0.32 [18:54:15]line ИТОГО: 1500.00 [18:54:15]line Внесено: 1500.00 [18:54:15]line СДАЧА: 0.00 [18:54:15]line НСП 1% : 13.28 [18:54:15]line НДС 12% : 159.33 [18:54:15]line Наличными: 1500.00 [18:54:15]line Безнал.: 0.00 [18:54:15]line Место: АЗС № 101 "Партнер Нефть" [18:54:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:54:15]line СНО: Общий режим [18:54:15]line Чек 219 31.10.2024 18:54 [18:54:15]line Смена: 557 ФФД: 1.0 [18:54:15]line ЗНМ: 0300000081 [18:54:15]line РНМ: 0000000000091631 [18:54:15]line Версия ККМ: 001 [18:54:15]line ФМ: 0000000000874669 [18:54:15]line ФД: 139742 [18:54:15]line ФПД: 123729103144110 [18:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185415&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139742&fm=123729103144110&tin=02508201610067®Number=0000000000091631&sum=150000 [18:54:15]OFD Sender: Processing packet 139742 [packets to send 34, broken 33] [18:54:15]ProducePacketName [18:54:15]name=ofd_packets/00139742 [18:54:15]OFD Sender: To server: pG, [18:54:15]CommunicateWithHost lk.salyk.kg:30040 [18:54:15]ConnectInit lk.salyk.kg [18:54:15]written 0, free lines is 4095 [18:54:15]Connected sock=11 [18:54: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 0F 01 00 00 68 D2 07 01 69 F5 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 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 DB 00 00 00 F4 03 04 00 57 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 87 ED 3D C4 AE 56 CA 92 A8 8C 1B 18 07 [18:54:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 09 26 47 00 3C 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 DE 21 02 00 F4 03 04 00 04 7E 23 67 B6 04 01 00 00 38 F9 39 83 36 F0 95 54 [18:54:15]CommunicateWithHost err = 0 [18:54:15]CheckOFDResponse [18:54:15]1017 (14) - 77093643461234 [18:54:15]1041 (16) - 0000000000874669 [18:54:15]1040 (4) - 139742 [18:54:15]1012 (4) - 31.10.2024 12:54 [18:54:15]1206 (1) - 0 [18:54:15]OFD Sender: Remove packet 139742 [18:54:15]ProducePacketName [18:54:15]name=ofd_packets/00139742 [18:54:15]NVStorageDeleteData [18:54:16]Write to MH i2c: 01 00 00 F8 1B 13 [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: 01 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: 01 07 00 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: 01 07 00 F8 1B 00 00 00 00 00 01 0D 28 [18:54:16]RasterBufferAndPrint [18:54:16]line [18:54:16]line [18:54:16]line [18:54:16]line [18:54:16]line [18:54:16]written 0, free lines is 3335 [18:54:16]MH_Cut [18:54:16]Write to MH i2c: D1 01 00 FF 1B 01 EC [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: D1 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: D1 01 00 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: D1 01 00 FF 1B 00 EB [18:54:16]Write to MH i2c: 01 00 00 00 1C 1C [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]OFD Sender: No OFD packet to send [18:54:16]*** Cut start [18:54:16]*** Partial cut [18:54:16]*** CUTSNS_PIN = 1 [18:54:16]*** CUTSNS_PIN = 0 [18:54:17]*** Brake cut motor [18:54:17]Read from MH i2c: 01 [18:54:17]MH_I2C_Read... [18:54:17]*** Stop cut motor [18:54:17]*** Cut end [18:54:17]Read from MH i2c: 01 07 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: 01 07 00 00 1C 00 00 00 00 00 FF 0F 31 [18:54:17]process_action close_receipt done [18:54:17]requested_data is exist [18:54:17]produce_requested_data [18:54:17]requested_item fm.sn is exist - process it [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 11 00 00 [18:54:17]Write to MH i2c: E2 08 00 01 1C 80 11 00 00 00 00 00 00 97 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 01 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F2 [18:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:54:17]wFMCommunicate OK [18:54:17]requested_item fd.num is exist - process it [18:54:17]SAM_PROTO_GetFieldsCounters [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 13 00 00 [18:54:17]Write to MH i2c: E2 08 00 02 1C 80 13 00 00 00 00 00 00 9A [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 62 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 62 00 02 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:54: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 DE 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_GetFieldsCounters done [18:54:17]requested_item shift.num is exist - process it [18:54:17]requested_item shift.opened is exist - process it [18:54:17]req_shift_opened [18:54:17]FM_GetShiftState [18:54:17]SAM_PROTO_GetShiftState [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 13 01 00 [18:54:17]Write to MH i2c: E2 08 00 03 1C 80 13 01 00 00 00 00 00 9C [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0E 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0E 00 03 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C5 [18:54:17]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_GetShiftState done [18:54:17]FM_GetShiftState done [18:54:17]req_shift_opened done [18:54:17]requested_item shift.open_date is exist - process it [18:54:17]req_shift_open_date [18:54:17]req_shift_open_date done [18:54:17]produce_requested_data done [18:54:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139742,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:54:17]process_action_free close_receipt [18:54:17]json_value_free [18:54:17]json_value_free done [18:54:17]process_json_proto returns [18:54:17]Send response to host [18:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139742,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:54:17]free response buf [18:54:17]execute_script done [18:54:17]execute_script returns [18:54:17]free content buf [18:54:17]Sock 7.Close socket [18:54:17]Sock 7.Thread stoped [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:37]accept exits with 9 [18:54:37]New connection [18:54:37]New thread 3066510692 created [18:54:37]Thread 3066654052 joined [18:54:37]Waiting for new connection... [18:54:37] Sock 9.Parse request [18:54:37]Sock 9.Check first char [18:54:37]Sock 9.First char is OK [18:54:37]request: POST /json_proto HTTP/1.0 [18:54:37]Method: POST [18:54:37]URL: /json_proto [18:54:37]Method is POST - this is cgi request [18:54:37]url: /json_proto [18:54:37]query_string will be loaded in cgi processing [18:54:37]execute_cgi json_proto POST (null) [18:54:37]execute_cgi path=json_proto method=POST [18:54:37]POST find Content-Length [18:54:37]Host: 172.17.50.196:8080 [18:54:37]Content-Length: 678 [18:54:37]Content-Type: application/json [18:54:37] [18:54:37]POST finish read [18:54:37]Found Content-Length = 678 [18:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095412", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:37]execute_script... [18:54: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)1095412", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:37]POST & json_proto [18:54:37]process_json_proto [18:54:37]json parsed OK: [18:54:37]protocol is kg_v1.0 [18:54:37]action value=close_receipt [18:54:37]process_action close_receipt [18:54:37]cmd_close_receipt [18:54:37]MH_GetDate [18:54:37]Write to MH i2c: F0 00 00 04 1C 0F [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: F0 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: F0 09 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: F0 09 00 04 1C 00 6F D2 23 67 72 0D 1C 67 E5 [18:54:37]GetLastDocTimeStamp 1730400855 [18:54:37]current date 1730400879 [18:54:37]FM_GetShiftState [18:54:37]SAM_PROTO_GetShiftState [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 13 01 00 [18:54:37]Write to MH i2c: E2 08 00 05 1C 80 13 01 00 00 00 00 00 9E [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 0E 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 0E 00 05 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C7 [18:54:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:54:37]wFMCommunicate OK [18:54:37]SAM_PROTO_GetShiftState done [18:54:37]FM_GetShiftState done [18:54:37]opened in 1730332621 [18:54:37]opened+sec_in_day 1730419021 [18:54:37]quantity*price = 30038 [18:54:37]sum+1 = 30039 [18:54:37]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 СНО: Общий режим Чек 220 31.10.2024 18:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139743 ФПД: 275468024752538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185439&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139743&fm=275468024752538&tin=02508201610067®Number=0000000000091631&sum=30000 [18:54:38]StoreToDocumentArchive [18:54:38]shift 557 fd 139743 [18:54:38]save to /storage/0557/doc_00139743 [18:54:38]save last doc name /storage/0557/doc_00139743 to /storage/kkm_last_doc_name [18:54:38]save OK [18:54:38]Clear old archive folders... [18:54:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:38]tlvbuf is 00A62700 [18:54:38]SAM_PROTO_ClearQueue [18:54:38]wFMCommunicate request_size=4 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 09 00 00 [18:54:38]Write to MH i2c: E2 08 00 12 1C 80 09 00 00 00 00 00 00 A0 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [18:54:38]RAPDU: 90 00 [18:54:38]wFMCommunicate OK [18:54:38]SAM_PROTO_ClearQueue done [18:54:38]KKMCreateOFDPacket [18:54:38]OFDProtocolAddRootSTLVToBuf [18:54:38]FM_MakeSignedData [18:54:38]FM_MakeSignedData [18:54:38]SAM_PROTO_SignData [18:54:38]wFMCommunicate request_size=4 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 0D 01 02 [18:54:38]Write to MH i2c: E2 08 00 13 1C 80 0D 01 02 00 00 00 00 A8 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 13 1C 00 90 00 A3 [18:54:38]RAPDU: 90 00 [18:54:38]wFMCommunicate OK [18:54:38]wFMCommunicate request_size=255 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DC 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FA [18:54:38]Write to MH i2c: E2 02 01 14 1C 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 DC 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FA 00 00 FD [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 14 1C 00 90 00 A4 [18:54:38]RAPDU: 90 00 [18:54:38]wFMCommunicate OK [18:54:38]wFMCommunicate request_size=10 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 0D 02 02 05 89 65 C3 29 9A [18:54:38]Write to MH i2c: E2 0D 00 15 1C 80 0D 02 02 05 00 89 65 C3 29 9A 00 00 29 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 03 00 15 1C 00 90 00 A5 [18:54:38]RAPDU: 90 00 [18:54:38]wFMCommunicate OK [18:54:38]wFMCommunicate request_size=4 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 0D 03 02 [18:54:38]Write to MH i2c: E2 08 00 16 1C 80 0D 03 02 00 00 00 00 AD [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 0B 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 0B 00 16 1C 00 17 C4 15 AE 9A 14 DF 4B 90 00 24 [18:54:38]RAPDU: 17 C4 15 AE 9A 14 DF 4B 90 00 [18:54:38]wFMCommunicate OK [18:54:38]SAM_PROTO_SignData done [18:54:38]FM_MakeSignedData done [18:54:38]CreateOFDProtocolMessage [18:54:38]wFMCommunicate request_size=4 [18:54:38]MH_SAM_APDU [18:54:38]CAPDU: 80 11 00 00 [18:54:38]Write to MH i2c: E2 08 00 17 1C 80 11 00 00 00 00 00 00 AD [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:38]Read from MH i2c: E2 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 17 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: E2 17 00 17 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 08 [18:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:54:38]wFMCommunicate OK [18:54:38]CreateOFDProtocolMessage done [18:54:38]OFDSenderStorePacket 139743 [18:54:38]StoreOFDPacket docnum=139743 [18:54: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 0F 01 00 00 BB A8 07 01 0C 34 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 DC 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FA 89 65 C3 29 9A 17 C4 15 AE 9A 14 DF 4B [18:54:38]CheckFolder [18:54:38]dirname=/storage/ofd_packets [18:54:38]CheckFolder done [18:54:38]ProducePacketName [18:54:38]name=ofd_packets/00139743 [18:54:38]NVStorageSaveData ofd_packets/00139743 [18:54:38]File name is /storage/ofd_packets/00139743 [18:54:38]Write 301 bytes [18:54:38]NVStorageSaveData done [18:54:38]OFDSenderStorePacket done [18:54:38]KKMCreateOFDPacket done [18:54:38]NVStorageSaveData kkm_last_timestamp [18:54:38]File name is /storage/kkm_last_timestamp [18:54:38]Write 4 bytes [18:54:38]NVStorageSaveData done [18:54:38]OFD Sender: Processing packet 139743 [packets to send 34, broken 33] [18:54:38]ProducePacketName [18:54:38]name=ofd_packets/00139743 [18:54:38]OFD Sender: To server: pG, [18:54:38]CommunicateWithHost lk.salyk.kg:30040 [18:54:38]ConnectInit lk.salyk.kg [18:54:38]ExternCall_PrintAddStr [18:54:38]wPrintStart [18:54:38]Write to MH i2c: 01 00 00 18 1C 34 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: 01 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: 01 07 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: 01 07 00 18 1C 00 00 00 00 00 FF 0F 49 [18:54:38]RasterBufferAndPrint [18:54:38]line Счет N : (1)1095412 [18:54:38]line ИНН: 02508201610067 [18:54:38]line Контрольно-Кассовый Чек [18:54:38]line ПРОДАЖА [18:54:38]line ТРК (МРК, ГНК) : 53 [18:54:38]line Товар: 2710124130 [18:54:38]line Аи-92-К-2 [18:54:38]line 4.490 * 66.90 [18:54:38]line = 300.38 [18:54:38]line НДС 12% НСП 1% [18:54:38]line > о реализуемом товаре [18:54:38]line ОКРУГЛЕНИЕ: -0.38 [18:54:38]line ИТОГО: 300.00 [18:54:38]line Внесено: 300.00 [18:54:38]line СДАЧА: 0.00 [18:54:38]line НСП 1% : 2.66 [18:54:38]line НДС 12% : 31.90 [18:54:38]line Наличными: 300.00 [18:54:38]line Безнал.: 0.00 [18:54:38]line Место: АЗС № 101 "Партнер Нефть" [18:54:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:54:38]line СНО: Общий режим [18:54:38]line Чек 220 31.10.2024 18:54 [18:54:38]line Смена: 557 ФФД: 1.0 [18:54:38]line ЗНМ: 0300000081 [18:54:38]line РНМ: 0000000000091631 [18:54:38]line Версия ККМ: 001 [18:54:38]line ФМ: 0000000000874669 [18:54:38]line ФД: 139743 [18:54:38]line ФПД: 275468024752538 [18:54:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185439&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139743&fm=275468024752538&tin=02508201610067®Number=0000000000091631&sum=30000 [18:54:39]Connected sock=11 [18:54: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 BB A8 07 01 0C 34 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 DC 00 00 00 F4 03 04 00 6F D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 FA 89 65 C3 29 9A 17 C4 15 AE 9A 14 DF 4B [18:54:39]written 0, free lines is 4095 [18:54: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 B3 AF 47 00 B5 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 DF 21 02 00 F4 03 04 00 1C 7E 23 67 B6 04 01 00 00 14 DA F0 2A E6 C4 75 E6 [18:54:39]CommunicateWithHost err = 0 [18:54:39]CheckOFDResponse [18:54:39]1017 (14) - 77093643461234 [18:54:39]1041 (16) - 0000000000874669 [18:54:39]1040 (4) - 139743 [18:54:39]1012 (4) - 31.10.2024 12:54 [18:54:39]1206 (1) - 0 [18:54:39]OFD Sender: Remove packet 139743 [18:54:39]ProducePacketName [18:54:39]name=ofd_packets/00139743 [18:54:39]NVStorageDeleteData [18:54:39]Write to MH i2c: 01 00 00 43 1C 5F [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 43 1C 00 00 00 00 00 EB 0C 5D [18:54:39]RasterBufferAndPrint [18:54:39]line [18:54:39]line [18:54:39]line [18:54:39]line [18:54:39]line [18:54:39]written 0, free lines is 3317 [18:54:39]MH_Cut [18:54:39]Write to MH i2c: D1 01 00 4A 1C 01 38 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: D1 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: D1 01 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: D1 01 00 4A 1C 00 37 [18:54:39]Write to MH i2c: 01 00 00 4B 1C 67 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]OFD Sender: No OFD packet to send [18:54:40]*** Cut start [18:54:40]*** Partial cut [18:54:40]*** CUTSNS_PIN = 1 [18:54:40]*** CUTSNS_PIN = 0 [18:54:40]*** Brake cut motor [18:54:41]Read from MH i2c: 01 [18:54:41]MH_I2C_Read... [18:54:41]*** Stop cut motor [18:54:41]*** Cut end [18:54:41]Read from MH i2c: 01 07 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: 01 07 00 4B 1C 00 00 00 00 00 FF 0F 7C [18:54:41]process_action close_receipt done [18:54:41]requested_data is exist [18:54:41]produce_requested_data [18:54:41]requested_item fm.sn is exist - process it [18:54:41]wFMCommunicate request_size=4 [18:54:41]MH_SAM_APDU [18:54:41]CAPDU: 80 11 00 00 [18:54:41]Write to MH i2c: E2 08 00 4C 1C 80 11 00 00 00 00 00 00 E2 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:41]Read from MH i2c: E2 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 17 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 17 00 4C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [18:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:54:41]wFMCommunicate OK [18:54:41]requested_item fd.num is exist - process it [18:54:41]SAM_PROTO_GetFieldsCounters [18:54:41]wFMCommunicate request_size=4 [18:54:41]MH_SAM_APDU [18:54:41]CAPDU: 80 13 00 00 [18:54:41]Write to MH i2c: E2 08 00 4D 1C 80 13 00 00 00 00 00 00 E5 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:41]Read from MH i2c: E2 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 62 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 62 00 4D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:54: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 DF 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:41]wFMCommunicate OK [18:54:41]SAM_PROTO_GetFieldsCounters done [18:54:41]requested_item shift.num is exist - process it [18:54:41]requested_item shift.opened is exist - process it [18:54:41]req_shift_opened [18:54:41]FM_GetShiftState [18:54:41]SAM_PROTO_GetShiftState [18:54:41]wFMCommunicate request_size=4 [18:54:41]MH_SAM_APDU [18:54:41]CAPDU: 80 13 01 00 [18:54:41]Write to MH i2c: E2 08 00 4E 1C 80 13 01 00 00 00 00 00 E7 [18:54:41]Write i2c OK [18:54:41]MH_I2C_Read... [18:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:41]Read from MH i2c: E2 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 0E 00 [18:54:41]MH_I2C_Read... [18:54:41]Read from MH i2c: E2 0E 00 4E 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 10 [18:54:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:54:41]wFMCommunicate OK [18:54:41]SAM_PROTO_GetShiftState done [18:54:41]FM_GetShiftState done [18:54:41]req_shift_opened done [18:54:41]requested_item shift.open_date is exist - process it [18:54:41]req_shift_open_date [18:54:41]req_shift_open_date done [18:54:41]produce_requested_data done [18:54:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139743,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:54:41]process_action_free close_receipt [18:54:41]json_value_free [18:54:41]json_value_free done [18:54:41]process_json_proto returns [18:54:41]Send response to host [18:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139743,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:54:41]free response buf [18:54:41]execute_script done [18:54:41]execute_script returns [18:54:41]free content buf [18:54:41]Sock 9.Close socket [18:54:41]Sock 9.Thread stoped [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:36]accept exits with 7 [18:55:36]New connection [18:55:36]New thread 3066654052 created [18:55:36]Thread 3066510692 joined [18:55:36]Waiting for new connection... [18:55:36] Sock 7.Parse request [18:55:36]Sock 7.Check first char [18:55:36]Sock 7.First char is OK [18:55:36]request: POST /json_proto HTTP/1.0 [18:55:36]Method: POST [18:55:36]URL: /json_proto [18:55:36]Method is POST - this is cgi request [18:55:36]url: /json_proto [18:55:36]query_string will be loaded in cgi processing [18:55:36]execute_cgi json_proto POST (null) [18:55:36]execute_cgi path=json_proto method=POST [18:55:36]POST find Content-Length [18:55:36]Host: 172.17.50.196:8080 [18:55:36]Content-Length: 684 [18:55:36]Content-Type: application/json [18:55:36] [18:55:36]POST finish read [18:55:36]Found Content-Length = 684 [18:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095414", "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" : 9.140, "sum" : 705.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 705.00, "total" : 705.00, "payments": [ { "type": 0, "sum" : 705.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:36]execute_script... [18:55:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095414", "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" : 9.140, "sum" : 705.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 705.00, "total" : 705.00, "payments": [ { "type": 0, "sum" : 705.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:36]POST & json_proto [18:55:36]process_json_proto [18:55:36]json parsed OK: [18:55:36]protocol is kg_v1.0 [18:55:36]action value=close_receipt [18:55:36]process_action close_receipt [18:55:36]cmd_close_receipt [18:55:36]MH_GetDate [18:55:36]Write to MH i2c: F0 00 00 4F 1C 5A [18:55:36]Write i2c OK [18:55:36]MH_I2C_Read... [18:55:36]Read from MH i2c: F0 [18:55:36]MH_I2C_Read... [18:55:36]Read from MH i2c: F0 09 00 [18:55:36]MH_I2C_Read... [18:55:36]Read from MH i2c: F0 09 00 4F 1C 00 AA D2 23 67 72 0D 1C 67 6B [18:55:36]GetLastDocTimeStamp 1730400879 [18:55:36]current date 1730400938 [18:55:36]FM_GetShiftState [18:55:36]SAM_PROTO_GetShiftState [18:55:36]wFMCommunicate request_size=4 [18:55:36]MH_SAM_APDU [18:55:36]CAPDU: 80 13 01 00 [18:55:36]Write to MH i2c: E2 08 00 50 1C 80 13 01 00 00 00 00 00 E9 [18:55:36]Write i2c OK [18:55:36]MH_I2C_Read... [18:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:36]Read from MH i2c: E2 [18:55:36]MH_I2C_Read... [18:55:36]Read from MH i2c: E2 0E 00 [18:55:36]MH_I2C_Read... [18:55:36]Read from MH i2c: E2 0E 00 50 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 12 [18:55:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:55:36]wFMCommunicate OK [18:55:36]SAM_PROTO_GetShiftState done [18:55:36]FM_GetShiftState done [18:55:36]opened in 1730332621 [18:55:36]opened+sec_in_day 1730419021 [18:55:36]quantity*price = 70560 [18:55:36]sum+1 = 70562 [18:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 705.00 Внесено: 705.00 СДАЧА: 0.00 НСП 1% : 6.24 НДС 12% : 74.93 Наличными: 705.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 221 31.10.2024 18:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139744 ФПД: 106781263059100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185538&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139744&fm=106781263059100&tin=02508201610067®Number=0000000000091631&sum=70500 [18:55:37]StoreToDocumentArchive [18:55:37]shift 557 fd 139744 [18:55:37]save to /storage/0557/doc_00139744 [18:55:37]save last doc name /storage/0557/doc_00139744 to /storage/kkm_last_doc_name [18:55:37]save OK [18:55:37]Clear old archive folders... [18:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:55:37]tlvbuf is B6E5F890 [18:55:37]SAM_PROTO_ClearQueue [18:55:37]wFMCommunicate request_size=4 [18:55:37]MH_SAM_APDU [18:55:37]CAPDU: 80 09 00 00 [18:55:37]Write to MH i2c: E2 08 00 5D 1C 80 09 00 00 00 00 00 00 EB [18:55:37]Write i2c OK [18:55:37]MH_I2C_Read... [18:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:37]Read from MH i2c: E2 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 03 00 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [18:55:37]RAPDU: 90 00 [18:55:37]wFMCommunicate OK [18:55:37]SAM_PROTO_ClearQueue done [18:55:37]KKMCreateOFDPacket [18:55:37]OFDProtocolAddRootSTLVToBuf [18:55:37]FM_MakeSignedData [18:55:37]FM_MakeSignedData [18:55:37]SAM_PROTO_SignData [18:55:37]wFMCommunicate request_size=4 [18:55:37]MH_SAM_APDU [18:55:37]CAPDU: 80 0D 01 02 [18:55:37]Write to MH i2c: E2 08 00 5E 1C 80 0D 01 02 00 00 00 00 F3 [18:55:37]Write i2c OK [18:55:37]MH_I2C_Read... [18:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:37]Read from MH i2c: E2 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 03 00 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 03 00 5E 1C 00 90 00 EE [18:55:37]RAPDU: 90 00 [18:55:37]wFMCommunicate OK [18:55:37]wFMCommunicate request_size=255 [18:55:37]MH_SAM_APDU [18:55:37]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 B4 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AA D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 [18:55:37]Write to MH i2c: E2 02 01 5F 1C 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 B4 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AA D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 00 19 [18:55:37]Write i2c OK [18:55:37]MH_I2C_Read... [18:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:37]Read from MH i2c: E2 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 03 00 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 03 00 5F 1C 00 90 00 EF [18:55:37]RAPDU: 90 00 [18:55:37]wFMCommunicate OK [18:55:37]wFMCommunicate request_size=16 [18:55:37]MH_SAM_APDU [18:55:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 61 1D F3 40 D8 9C [18:55:37]Write to MH i2c: E2 13 00 60 1C 80 0D 02 02 0B 00 00 35 04 06 00 61 1D F3 40 D8 9C 00 00 70 [18:55:37]Write i2c OK [18:55:37]MH_I2C_Read... [18:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:38]Read from MH i2c: E2 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: E2 03 00 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: E2 03 00 60 1C 00 90 00 F0 [18:55:38]RAPDU: 90 00 [18:55:38]wFMCommunicate OK [18:55:38]wFMCommunicate request_size=4 [18:55:38]MH_SAM_APDU [18:55:38]CAPDU: 80 0D 03 02 [18:55:38]Write to MH i2c: E2 08 00 61 1C 80 0D 03 02 00 00 00 00 F8 [18:55:38]Write i2c OK [18:55:38]MH_I2C_Read... [18:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:38]Read from MH i2c: E2 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: E2 0B 00 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: E2 0B 00 61 1C 00 C6 D4 09 B6 D4 D9 E3 DF 90 00 C1 [18:55:38]RAPDU: C6 D4 09 B6 D4 D9 E3 DF 90 00 [18:55:38]wFMCommunicate OK [18:55:38]SAM_PROTO_SignData done [18:55:38]FM_MakeSignedData done [18:55:38]CreateOFDProtocolMessage [18:55:38]wFMCommunicate request_size=4 [18:55:38]MH_SAM_APDU [18:55:38]CAPDU: 80 11 00 00 [18:55:38]Write to MH i2c: E2 08 00 62 1C 80 11 00 00 00 00 00 00 F8 [18:55:38]Write i2c OK [18:55:38]MH_I2C_Read... [18:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:38]Read from MH i2c: E2 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: E2 17 00 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: E2 17 00 62 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [18:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:55:38]wFMCommunicate OK [18:55:38]CreateOFDProtocolMessage done [18:55:38]OFDSenderStorePacket 139744 [18:55:38]StoreOFDPacket docnum=139744 [18:55: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 15 01 00 00 7C 32 0D 01 07 63 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 B4 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AA D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 61 1D F3 40 D8 9C C6 D4 09 B6 D4 D9 E3 DF [18:55:38]CheckFolder [18:55:38]dirname=/storage/ofd_packets [18:55:38]CheckFolder done [18:55:38]ProducePacketName [18:55:38]name=ofd_packets/00139744 [18:55:38]NVStorageSaveData ofd_packets/00139744 [18:55:38]File name is /storage/ofd_packets/00139744 [18:55:38]Write 307 bytes [18:55:38]NVStorageSaveData done [18:55:38]OFDSenderStorePacket done [18:55:38]KKMCreateOFDPacket done [18:55:38]NVStorageSaveData kkm_last_timestamp [18:55:38]File name is /storage/kkm_last_timestamp [18:55:38]Write 4 bytes [18:55:38]NVStorageSaveData done [18:55:38]ExternCall_PrintAddStr [18:55:38]wPrintStart [18:55:38]Write to MH i2c: 01 00 00 63 1C 7F [18:55:38]Write i2c OK [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: 01 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: 01 07 00 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 FF 0F 94 [18:55:38]RasterBufferAndPrint [18:55:38]line Счет N : (1)1095414 [18:55:38]line ИНН: 02508201610067 [18:55:38]line Контрольно-Кассовый Чек [18:55:38]line ПРОДАЖА [18:55:38]line ТРК (МРК, ГНК) : 22 [18:55:38]line Товар: 2710194800 [18:55:38]line D-ENERGY Дт-К-2 [18:55:38]line 9.140 * 77.20 [18:55:38]line = 705.61 [18:55:38]line НДС 12% НСП 1% [18:55:38]line > о реализуемом товаре [18:55:38]line ОКРУГЛЕНИЕ: -0.61 [18:55:38]line ИТОГО: 705.00 [18:55:38]line Внесено: 705.00 [18:55:38]line СДАЧА: 0.00 [18:55:38]line НСП 1% : 6.24 [18:55:38]line НДС 12% : 74.93 [18:55:38]line Наличными: 705.00 [18:55:38]line Безнал.: 0.00 [18:55:38]line Место: АЗС № 101 "Партнер Нефть" [18:55:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:55:38]line СНО: Общий режим [18:55:38]line Чек 221 31.10.2024 18:55 [18:55:38]line Смена: 557 ФФД: 1.0 [18:55:38]line ЗНМ: 0300000081 [18:55:38]line РНМ: 0000000000091631 [18:55:38]line Версия ККМ: 001 [18:55:38]line ФМ: 0000000000874669 [18:55:38]line ФД: 139744 [18:55:38]line ФПД: 106781263059100 [18:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185538&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139744&fm=106781263059100&tin=02508201610067®Number=0000000000091631&sum=70500 [18:55:38]OFD Sender: Processing packet 139744 [packets to send 34, broken 33] [18:55:38]ProducePacketName [18:55:38]name=ofd_packets/00139744 [18:55:38]OFD Sender: To server: pG, [18:55:38]CommunicateWithHost lk.salyk.kg:30040 [18:55:38]ConnectInit lk.salyk.kg [18:55:38]written 0, free lines is 4095 [18:55:38]Connected sock=10 [18:55:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 7C 32 0D 01 07 63 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 B4 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AA D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 61 1D F3 40 D8 9C C6 D4 09 B6 D4 D9 E3 DF [18:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 62 FF 47 00 8B 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 21 02 00 F4 03 04 00 57 7E 23 67 B6 04 01 00 00 F9 BB B2 50 D5 01 42 2B [18:55:38]CommunicateWithHost err = 0 [18:55:38]CheckOFDResponse [18:55:38]1017 (14) - 77093643461234 [18:55:38]1041 (16) - 0000000000874669 [18:55:38]1040 (4) - 139744 [18:55:38]1012 (4) - 31.10.2024 12:55 [18:55:38]1206 (1) - 0 [18:55:38]OFD Sender: Remove packet 139744 [18:55:38]ProducePacketName [18:55:38]name=ofd_packets/00139744 [18:55:38]NVStorageDeleteData [18:55:38]Write to MH i2c: 01 00 00 8E 1C AA [18:55:38]Write i2c OK [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: 01 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: 01 07 00 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: 01 07 00 8E 1C 00 00 00 00 00 ED 0C AA [18:55:38]RasterBufferAndPrint [18:55:38]line [18:55:38]line [18:55:38]line [18:55:38]line [18:55:38]line [18:55:38]written 0, free lines is 3318 [18:55:38]MH_Cut [18:55:38]Write to MH i2c: D1 01 00 95 1C 01 83 [18:55:38]Write i2c OK [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: D1 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: D1 01 00 [18:55:38]MH_I2C_Read... [18:55:38]Read from MH i2c: D1 01 00 95 1C 00 82 [18:55:38]Write to MH i2c: 01 00 00 96 1C B2 [18:55:38]Write i2c OK [18:55:38]MH_I2C_Read... [18:55:39]OFD Sender: No OFD packet to send [18:55:39]*** Cut start [18:55:39]*** Partial cut [18:55:39]*** CUTSNS_PIN = 1 [18:55:39]*** CUTSNS_PIN = 0 [18:55:39]*** Brake cut motor [18:55:40]Read from MH i2c: 01 [18:55:40]MH_I2C_Read... [18:55:40]*** Stop cut motor [18:55:40]*** Cut end [18:55:40]Read from MH i2c: 01 07 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: 01 07 00 96 1C 00 00 00 00 00 FF 0F C7 [18:55:40]process_action close_receipt done [18:55:40]requested_data is exist [18:55:40]produce_requested_data [18:55:40]requested_item fm.sn is exist - process it [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 11 00 00 [18:55:40]Write to MH i2c: E2 08 00 97 1C 80 11 00 00 00 00 00 00 2D [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 17 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 17 00 97 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 88 [18:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:55:40]wFMCommunicate OK [18:55:40]requested_item fd.num is exist - process it [18:55:40]SAM_PROTO_GetFieldsCounters [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 13 00 00 [18:55:40]Write to MH i2c: E2 08 00 98 1C 80 13 00 00 00 00 00 00 30 [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 62 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 62 00 98 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [18:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:40]wFMCommunicate OK [18:55:40]SAM_PROTO_GetFieldsCounters done [18:55:40]requested_item shift.num is exist - process it [18:55:40]requested_item shift.opened is exist - process it [18:55:40]req_shift_opened [18:55:40]FM_GetShiftState [18:55:40]SAM_PROTO_GetShiftState [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 13 01 00 [18:55:40]Write to MH i2c: E2 08 00 99 1C 80 13 01 00 00 00 00 00 32 [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 0E 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 0E 00 99 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5B [18:55:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:55:40]wFMCommunicate OK [18:55:40]SAM_PROTO_GetShiftState done [18:55:40]FM_GetShiftState done [18:55:40]req_shift_opened done [18:55:40]requested_item shift.open_date is exist - process it [18:55:40]req_shift_open_date [18:55:40]req_shift_open_date done [18:55:40]produce_requested_data done [18:55:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139744,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:55:40]process_action_free close_receipt [18:55:40]json_value_free [18:55:40]json_value_free done [18:55:40]process_json_proto returns [18:55:40]Send response to host [18:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139744,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:55:40]free response buf [18:55:40]execute_script done [18:55:40]execute_script returns [18:55:40]free content buf [18:55:40]Sock 7.Close socket [18:55:40]Sock 7.Thread stoped [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:33]accept exits with 9 [18:56:33]New connection [18:56:33]New thread 3066510692 created [18:56:33]Thread 3066654052 joined [18:56:33]Waiting for new connection... [18:56:33] Sock 9.Parse request [18:56:33]Sock 9.Check first char [18:56:33]Sock 9.First char is OK [18:56:33]request: POST /json_proto HTTP/1.0 [18:56:33]Method: POST [18:56:33]URL: /json_proto [18:56:33]Method is POST - this is cgi request [18:56:33]url: /json_proto [18:56:33]query_string will be loaded in cgi processing [18:56:33]execute_cgi json_proto POST (null) [18:56:33]execute_cgi path=json_proto method=POST [18:56:33]POST find Content-Length [18:56:33]Host: 172.17.50.196:8080 [18:56:33]Content-Length: 688 [18:56:33]Content-Type: application/json [18:56:33] [18:56:33]POST finish read [18:56:33]Found Content-Length = 688 [18:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 36.780, "sum" : 2802.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9999.00, "total" : 2802.00, "payments": [ { "type": 0, "sum" : 2802.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:33]execute_script... [18:56:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 36.780, "sum" : 2802.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9999.00, "total" : 2802.00, "payments": [ { "type": 0, "sum" : 2802.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:33]POST & json_proto [18:56:33]process_json_proto [18:56:33]json parsed OK: [18:56:33]protocol is kg_v1.0 [18:56:33]action value=close_receipt [18:56:33]process_action close_receipt [18:56:33]cmd_close_receipt [18:56:33]MH_GetDate [18:56:33]Write to MH i2c: F0 00 00 9A 1C A5 [18:56:33]Write i2c OK [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: F0 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: F0 09 00 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: F0 09 00 9A 1C 00 E3 D2 23 67 72 0D 1C 67 EF [18:56:33]GetLastDocTimeStamp 1730400938 [18:56:33]current date 1730400995 [18:56:33]FM_GetShiftState [18:56:33]SAM_PROTO_GetShiftState [18:56:33]wFMCommunicate request_size=4 [18:56:33]MH_SAM_APDU [18:56:33]CAPDU: 80 13 01 00 [18:56:33]Write to MH i2c: E2 08 00 9B 1C 80 13 01 00 00 00 00 00 34 [18:56:33]Write i2c OK [18:56:33]MH_I2C_Read... [18:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:33]Read from MH i2c: E2 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: E2 0E 00 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: E2 0E 00 9B 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5D [18:56:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:56:33]wFMCommunicate OK [18:56:33]SAM_PROTO_GetShiftState done [18:56:33]FM_GetShiftState done [18:56:33]opened in 1730332621 [18:56:33]opened+sec_in_day 1730419021 [18:56:33]quantity*price = 280263 [18:56:33]sum+1 = 280265 [18:56:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 2802.00 Внесено: 9999.00 СДАЧА: 7197.00 НСП 1% : 24.80 НДС 12% : 297.62 Наличными: 2802.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 222 31.10.2024 18:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139745 ФПД: 138142182591508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185635&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139745&fm=138142182591508&tin=02508201610067®Number=0000000000091631&sum=280200 [18:56:34]StoreToDocumentArchive [18:56:34]shift 557 fd 139745 [18:56:34]save to /storage/0557/doc_00139745 [18:56:34]save last doc name /storage/0557/doc_00139745 to /storage/kkm_last_doc_name [18:56:34]save OK [18:56:34]Clear old archive folders... [18:56:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:56:34]tlvbuf is 00AE60A0 [18:56:34]SAM_PROTO_ClearQueue [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 09 00 00 [18:56:34]Write to MH i2c: E2 08 00 A8 1C 80 09 00 00 00 00 00 00 36 [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 A8 1C 00 90 00 38 [18:56:34]RAPDU: 90 00 [18:56:34]wFMCommunicate OK [18:56:34]SAM_PROTO_ClearQueue done [18:56:34]KKMCreateOFDPacket [18:56:34]OFDProtocolAddRootSTLVToBuf [18:56:34]FM_MakeSignedData [18:56:34]FM_MakeSignedData [18:56:34]SAM_PROTO_SignData [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 0D 01 02 [18:56:34]Write to MH i2c: E2 08 00 A9 1C 80 0D 01 02 00 00 00 00 3E [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:35]Read from MH i2c: E2 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 03 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 03 00 A9 1C 00 90 00 39 [18:56:35]RAPDU: 90 00 [18:56:35]wFMCommunicate OK [18:56:35]wFMCommunicate request_size=255 [18:56:35]MH_SAM_APDU [18:56: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 AC 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 46 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 46 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 74 00 00 00 00 07 04 06 00 88 46 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [18:56:35]Write to MH i2c: E2 02 01 AA 1C 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 AC 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 46 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 46 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 74 00 00 00 00 07 04 06 00 88 46 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 14 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:35]Read from MH i2c: E2 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 03 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 03 00 AA 1C 00 90 00 3A [18:56:35]RAPDU: 90 00 [18:56:35]wFMCommunicate OK [18:56:35]wFMCommunicate request_size=11 [18:56:35]MH_SAM_APDU [18:56:35]CAPDU: 80 0D 02 02 06 7D A3 BB B8 CC 14 [18:56:35]Write to MH i2c: E2 0E 00 AB 1C 80 0D 02 02 06 00 7D A3 BB B8 CC 14 00 00 C0 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:35]Read from MH i2c: E2 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 03 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 03 00 AB 1C 00 90 00 3B [18:56:35]RAPDU: 90 00 [18:56:35]wFMCommunicate OK [18:56:35]wFMCommunicate request_size=4 [18:56:35]MH_SAM_APDU [18:56:35]CAPDU: 80 0D 03 02 [18:56:35]Write to MH i2c: E2 08 00 AC 1C 80 0D 03 02 00 00 00 00 43 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:35]Read from MH i2c: E2 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 0B 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 0B 00 AC 1C 00 80 06 E0 6A A9 62 21 51 90 00 91 [18:56:35]RAPDU: 80 06 E0 6A A9 62 21 51 90 00 [18:56:35]wFMCommunicate OK [18:56:35]SAM_PROTO_SignData done [18:56:35]FM_MakeSignedData done [18:56:35]CreateOFDProtocolMessage [18:56:35]wFMCommunicate request_size=4 [18:56:35]MH_SAM_APDU [18:56:35]CAPDU: 80 11 00 00 [18:56:35]Write to MH i2c: E2 08 00 AD 1C 80 11 00 00 00 00 00 00 43 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:35]Read from MH i2c: E2 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 17 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 17 00 AD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9E [18:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:56:35]wFMCommunicate OK [18:56:35]CreateOFDProtocolMessage done [18:56:35]OFDSenderStorePacket 139745 [18:56:35]StoreOFDPacket docnum=139745 [18:56: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 10 01 00 00 D2 82 08 01 E0 7F 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 AC 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 46 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 46 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 74 00 00 00 00 07 04 06 00 88 46 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7D A3 BB B8 CC 14 80 06 E0 6A A9 62 21 51 [18:56:35]CheckFolder [18:56:35]dirname=/storage/ofd_packets [18:56:35]CheckFolder done [18:56:35]ProducePacketName [18:56:35]name=ofd_packets/00139745 [18:56:35]NVStorageSaveData ofd_packets/00139745 [18:56:35]File name is /storage/ofd_packets/00139745 [18:56:35]Write 302 bytes [18:56:35]NVStorageSaveData done [18:56:35]OFDSenderStorePacket done [18:56:35]KKMCreateOFDPacket done [18:56:35]NVStorageSaveData kkm_last_timestamp [18:56:35]File name is /storage/kkm_last_timestamp [18:56:35]Write 4 bytes [18:56:35]NVStorageSaveData done [18:56:35]ExternCall_PrintAddStr [18:56:35]wPrintStart [18:56:35]Write to MH i2c: 01 00 00 AE 1C CA [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: 01 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: 01 07 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: 01 07 00 AE 1C 00 00 00 00 00 FF 0F DF [18:56:35]RasterBufferAndPrint [18:56:35]line Счет N : (1)1095413 [18:56:35]line ИНН: 02508201610067 [18:56:35]line Контрольно-Кассовый Чек [18:56:35]line ПРОДАЖА [18:56:35]line ТРК (МРК, ГНК) : 61 [18:56:35]line Товар: 2710194210 [18:56:35]line ДТ(л)-К-2 [18:56:35]line 36.780 * 76.20 [18:56:35]line = 2802.64 [18:56:35]line НДС 12% НСП 1% [18:56:35]line > о реализуемом товаре [18:56:35]line ОКРУГЛЕНИЕ: -0.64 [18:56:35]line ИТОГО: 2802.00 [18:56:35]line Внесено: 9999.00 [18:56:35]line СДАЧА: 7197.00 [18:56:35]line НСП 1% : 24.80 [18:56:35]line НДС 12% : 297.62 [18:56:35]line Наличными: 2802.00 [18:56:35]line Безнал.: 0.00 [18:56:35]line Место: АЗС № 101 "Партнер Нефть" [18:56:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:56:35]line СНО: Общий режим [18:56:35]line Чек 222 31.10.2024 18:56 [18:56:35]line Смена: 557 ФФД: 1.0 [18:56:35]line ЗНМ: 0300000081 [18:56:35]line РНМ: 0000000000091631 [18:56:35]line Версия ККМ: 001 [18:56:35]line ФМ: 0000000000874669 [18:56:35]line ФД: 139745 [18:56:35]line ФПД: 138142182591508 [18:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T185635&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139745&fm=138142182591508&tin=02508201610067®Number=0000000000091631&sum=280200 [18:56:35]OFD Sender: Processing packet 139745 [packets to send 34, broken 33] [18:56:35]ProducePacketName [18:56:35]name=ofd_packets/00139745 [18:56:35]OFD Sender: To server: pG, [18:56:35]CommunicateWithHost lk.salyk.kg:30040 [18:56:35]ConnectInit lk.salyk.kg [18:56:35]written 0, free lines is 4095 [18:56:35]Connected sock=10 [18:56:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 D2 82 08 01 E0 7F 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 AC 8F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 46 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 46 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 74 00 00 00 00 07 04 06 00 88 46 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E3 D2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7D A3 BB B8 CC 14 80 06 E0 6A A9 62 21 51 [18:56: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 68 DB 47 00 55 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 21 02 00 F4 03 04 00 90 7E 23 67 B6 04 01 00 00 0B 7F 6C C8 7D 9E 7D 78 [18:56:36]CommunicateWithHost err = 0 [18:56:36]CheckOFDResponse [18:56:36]1017 (14) - 77093643461234 [18:56:36]1041 (16) - 0000000000874669 [18:56:36]1040 (4) - 139745 [18:56:36]1012 (4) - 31.10.2024 12:56 [18:56:36]1206 (1) - 0 [18:56:36]OFD Sender: Remove packet 139745 [18:56:36]ProducePacketName [18:56:36]name=ofd_packets/00139745 [18:56:36]NVStorageDeleteData [18:56:36]Write to MH i2c: 01 00 00 D9 1C F5 [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: 01 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: 01 07 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: 01 07 00 D9 1C 00 00 00 00 00 FE 0C 06 [18:56:36]RasterBufferAndPrint [18:56:36]line [18:56:36]line [18:56:36]line [18:56:36]line [18:56:36]line [18:56:36]written 0, free lines is 3335 [18:56:36]MH_Cut [18:56:36]Write to MH i2c: D1 01 00 E0 1C 01 CE [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: D1 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: D1 01 00 [18:56:36]MH_I2C_Read... [18:56:36]Read from MH i2c: D1 01 00 E0 1C 00 CD [18:56:36]Write to MH i2c: 01 00 00 E1 1C FD [18:56:36]Write i2c OK [18:56:36]MH_I2C_Read... [18:56:36]OFD Sender: No OFD packet to send [18:56:36]*** Cut start [18:56:36]*** Partial cut [18:56:36]*** CUTSNS_PIN = 1 [18:56:36]*** CUTSNS_PIN = 0 [18:56:37]*** Brake cut motor [18:56:37]Read from MH i2c: 01 [18:56:37]MH_I2C_Read... [18:56:37]*** Stop cut motor [18:56:37]*** Cut end [18:56:37]Read from MH i2c: 01 07 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 07 00 E1 1C 00 00 00 00 00 FF 0F 12 [18:56:37]process_action close_receipt done [18:56:37]requested_data is exist [18:56:37]produce_requested_data [18:56:37]requested_item fm.sn is exist - process it [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 11 00 00 [18:56:37]Write to MH i2c: E2 08 00 E2 1C 80 11 00 00 00 00 00 00 78 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 17 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 17 00 E2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D3 [18:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:56:37]wFMCommunicate OK [18:56:37]requested_item fd.num is exist - process it [18:56:37]SAM_PROTO_GetFieldsCounters [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 13 00 00 [18:56:37]Write to MH i2c: E2 08 00 E3 1C 80 13 00 00 00 00 00 00 7B [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 62 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 62 00 E3 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [18:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:37]wFMCommunicate OK [18:56:37]SAM_PROTO_GetFieldsCounters done [18:56:37]requested_item shift.num is exist - process it [18:56:37]requested_item shift.opened is exist - process it [18:56:37]req_shift_opened [18:56:37]FM_GetShiftState [18:56:37]SAM_PROTO_GetShiftState [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 13 01 00 [18:56:37]Write to MH i2c: E2 08 00 E4 1C 80 13 01 00 00 00 00 00 7D [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 0E 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 0E 00 E4 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A6 [18:56:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [18:56:37]wFMCommunicate OK [18:56:37]SAM_PROTO_GetShiftState done [18:56:37]FM_GetShiftState done [18:56:37]req_shift_opened done [18:56:37]requested_item shift.open_date is exist - process it [18:56:37]req_shift_open_date [18:56:37]req_shift_open_date done [18:56:37]produce_requested_data done [18:56:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139745,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [18:56:37]process_action_free close_receipt [18:56:37]json_value_free [18:56:37]json_value_free done [18:56:37]process_json_proto returns [18:56:37]Send response to host [18:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139745,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [18:56:37]free response buf [18:56:37]execute_script done [18:56:37]execute_script returns [18:56:37]free content buf [18:56:37]Sock 9.Close socket [18:56:37]Sock 9.Thread stoped [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]accept exits with 7 [19:02:26]New connection [19:02:26]New thread 3066654052 created [19:02:26]Thread 3066510692 joined [19:02:26]Waiting for new connection... [19:02:26] Sock 7.Parse request [19:02:26]Sock 7.Check first char [19:02:26]Sock 7.First char is OK [19:02:26]request: POST /json_proto HTTP/1.0 [19:02:26]Method: POST [19:02:26]URL: /json_proto [19:02:26]Method is POST - this is cgi request [19:02:26]url: /json_proto [19:02:26]query_string will be loaded in cgi processing [19:02:26]execute_cgi json_proto POST (null) [19:02:26]execute_cgi path=json_proto method=POST [19:02:26]POST find Content-Length [19:02:26]Host: 172.17.50.196:8080 [19:02:26]Content-Length: 686 [19:02:26]Content-Type: application/json [19:02:26] [19:02:26]POST finish read [19:02:26]Found Content-Length = 686 [19:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095416", "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" : 39.170, "sum" : 1500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:26]execute_script... [19:02:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095416", "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" : 39.170, "sum" : 1500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:26]POST & json_proto [19:02:26]process_json_proto [19:02:26]json parsed OK: [19:02:26]protocol is kg_v1.0 [19:02:26]action value=close_receipt [19:02:26]process_action close_receipt [19:02:26]cmd_close_receipt [19:02:26]MH_GetDate [19:02:26]Write to MH i2c: F0 00 00 E5 1C F0 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 09 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 09 00 E5 1C 00 44 D4 23 67 72 0D 1C 67 9D [19:02:26]GetLastDocTimeStamp 1730400995 [19:02:26]current date 1730401348 [19:02:26]FM_GetShiftState [19:02:26]SAM_PROTO_GetShiftState [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 13 01 00 [19:02:26]Write to MH i2c: E2 08 00 E6 1C 80 13 01 00 00 00 00 00 7F [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0E 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0E 00 E6 1C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A8 [19:02:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:02:26]wFMCommunicate OK [19:02:26]SAM_PROTO_GetShiftState done [19:02:26]FM_GetShiftState done [19:02:26]opened in 1730332621 [19:02:26]opened+sec_in_day 1730419021 [19:02:26]quantity*price = 150021 [19:02:26]sum+1 = 150022 [19:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 223 31.10.2024 19:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139746 ФПД: 261988801311405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139746&fm=261988801311405&tin=02508201610067®Number=0000000000091631&sum=150000 [19:02:27]StoreToDocumentArchive [19:02:27]shift 557 fd 139746 [19:02:27]save to /storage/0557/doc_00139746 [19:02:27]save last doc name /storage/0557/doc_00139746 to /storage/kkm_last_doc_name [19:02:27]save OK [19:02:27]Clear old archive folders... [19:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:02:27]tlvbuf is 00A6B210 [19:02:27]SAM_PROTO_ClearQueue [19:02:27]wFMCommunicate request_size=4 [19:02:27]MH_SAM_APDU [19:02:27]CAPDU: 80 09 00 00 [19:02:27]Write to MH i2c: E2 08 00 F3 1C 80 09 00 00 00 00 00 00 81 [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:27]Read from MH i2c: E2 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [19:02:27]RAPDU: 90 00 [19:02:27]wFMCommunicate OK [19:02:27]SAM_PROTO_ClearQueue done [19:02:27]KKMCreateOFDPacket [19:02:27]OFDProtocolAddRootSTLVToBuf [19:02:27]FM_MakeSignedData [19:02:27]FM_MakeSignedData [19:02:27]SAM_PROTO_SignData [19:02:27]wFMCommunicate request_size=4 [19:02:27]MH_SAM_APDU [19:02:27]CAPDU: 80 0D 01 02 [19:02:27]Write to MH i2c: E2 08 00 F4 1C 80 0D 01 02 00 00 00 00 89 [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:27]Read from MH i2c: E2 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 F4 1C 00 90 00 84 [19:02:27]RAPDU: 90 00 [19:02:27]wFMCommunicate OK [19:02:27]wFMCommunicate request_size=255 [19:02:27]MH_SAM_APDU [19:02:27]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 02 99 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 05 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 3B 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 DF 00 00 00 F4 03 04 00 44 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EE 47 [19:02:28]Write to MH i2c: E2 02 01 F5 1C 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 02 99 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 05 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 3B 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 DF 00 00 00 F4 03 04 00 44 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EE 47 00 00 3B [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 F5 1C 00 90 00 85 [19:02:28]RAPDU: 90 00 [19:02:28]wFMCommunicate OK [19:02:28]wFMCommunicate request_size=9 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 0D 02 02 04 05 6F F2 AD [19:02:28]Write to MH i2c: E2 0C 00 F6 1C 80 0D 02 02 04 00 05 6F F2 AD 00 00 A7 [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 F6 1C 00 90 00 86 [19:02:28]RAPDU: 90 00 [19:02:28]wFMCommunicate OK [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 0D 03 02 [19:02:28]Write to MH i2c: E2 08 00 F7 1C 80 0D 03 02 00 00 00 00 8E [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0B 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0B 00 F7 1C 00 98 38 5F 5D 98 A0 55 95 90 00 3D [19:02:28]RAPDU: 98 38 5F 5D 98 A0 55 95 90 00 [19:02:28]wFMCommunicate OK [19:02:28]SAM_PROTO_SignData done [19:02:28]FM_MakeSignedData done [19:02:28]CreateOFDProtocolMessage [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 11 00 00 [19:02:28]Write to MH i2c: E2 08 00 F8 1C 80 11 00 00 00 00 00 00 8E [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 17 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 17 00 F8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E9 [19:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:02:28]wFMCommunicate OK [19:02:28]CreateOFDProtocolMessage done [19:02:28]OFDSenderStorePacket 139746 [19:02:28]StoreOFDPacket docnum=139746 [19:02:28]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 E7 AC 06 01 98 E7 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 02 99 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 05 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 3B 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 DF 00 00 00 F4 03 04 00 44 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EE 47 05 6F F2 AD 98 38 5F 5D 98 A0 55 95 [19:02:28]CheckFolder [19:02:28]dirname=/storage/ofd_packets [19:02:28]CheckFolder done [19:02:28]ProducePacketName [19:02:28]name=ofd_packets/00139746 [19:02:28]NVStorageSaveData ofd_packets/00139746 [19:02:28]File name is /storage/ofd_packets/00139746 [19:02:28]Write 300 bytes [19:02:28]NVStorageSaveData done [19:02:28]OFDSenderStorePacket done [19:02:28]KKMCreateOFDPacket done [19:02:28]NVStorageSaveData kkm_last_timestamp [19:02:28]File name is /storage/kkm_last_timestamp [19:02:28]Write 4 bytes [19:02:28]NVStorageSaveData done [19:02:28]ExternCall_PrintAddStr [19:02:28]wPrintStart [19:02:28]Write to MH i2c: 01 00 00 F9 1C 15 [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 07 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [19:02:28]RasterBufferAndPrint [19:02:28]line Счет N : (1)1095416 [19:02:28]line ИНН: 02508201610067 [19:02:28]line Контрольно-Кассовый Чек [19:02:28]line ПРОДАЖА [19:02:28]line ТРК (МРК, ГНК) : 81 [19:02:28]line Товар: 2711190000 [19:02:28]line ГАЗ-К-5 [19:02:28]line 39.170 * 38.30 [19:02:28]line = 1500.21 [19:02:28]line НДС 12% НСП 1% [19:02:28]line > о реализуемом товаре [19:02:28]line ОКРУГЛЕНИЕ: -0.21 [19:02:28]line ИТОГО: 1500.00 [19:02:28]line Внесено: 1500.00 [19:02:28]line СДАЧА: 0.00 [19:02:28]line НСП 1% : 13.28 [19:02:28]line НДС 12% : 159.31 [19:02:28]line Наличными: 1500.00 [19:02:28]line Безнал.: 0.00 [19:02:28]line Место: АЗС № 101 "Партнер Нефть" [19:02:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:02:28]line СНО: Общий режим [19:02:28]line Чек 223 31.10.2024 19:02 [19:02:28]line Смена: 557 ФФД: 1.0 [19:02:28]line ЗНМ: 0300000081 [19:02:28]line РНМ: 0000000000091631 [19:02:28]line Версия ККМ: 001 [19:02:28]line ФМ: 0000000000874669 [19:02:28]line ФД: 139746 [19:02:28]line ФПД: 261988801311405 [19:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139746&fm=261988801311405&tin=02508201610067®Number=0000000000091631&sum=150000 [19:02:28]OFD Sender: Processing packet 139746 [packets to send 34, broken 33] [19:02:28]ProducePacketName [19:02:28]name=ofd_packets/00139746 [19:02:28]OFD Sender: To server: pG, [19:02:28]CommunicateWithHost lk.salyk.kg:30040 [19:02:28]ConnectInit lk.salyk.kg [19:02:28]written 0, free lines is 4095 [19:02:28]Connected sock=10 [19:02: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 0E 01 00 00 E7 AC 06 01 98 E7 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 02 99 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 05 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 3B 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 DF 00 00 00 F4 03 04 00 44 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 EE 47 05 6F F2 AD 98 38 5F 5D 98 A0 55 95 [19:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 EA DB 47 00 FD EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 21 02 00 F4 03 04 00 F1 7F 23 67 B6 04 01 00 00 63 34 E9 88 97 98 D3 30 [19:02:29]CommunicateWithHost err = 0 [19:02:29]CheckOFDResponse [19:02:29]1017 (14) - 77093643461234 [19:02:29]1041 (16) - 0000000000874669 [19:02:29]1040 (4) - 139746 [19:02:29]1012 (4) - 31.10.2024 13:02 [19:02:29]1206 (1) - 0 [19:02:29]OFD Sender: Remove packet 139746 [19:02:29]ProducePacketName [19:02:29]name=ofd_packets/00139746 [19:02:29]NVStorageDeleteData [19:02:29]Write to MH i2c: 01 00 00 24 1D 41 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: 01 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: 01 07 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: 01 07 00 24 1D 00 00 00 00 00 F3 0C 47 [19:02:29]RasterBufferAndPrint [19:02:29]line [19:02:29]line [19:02:29]line [19:02:29]line [19:02:29]line [19:02:29]written 0, free lines is 3322 [19:02:29]MH_Cut [19:02:29]Write to MH i2c: D1 01 00 2B 1D 01 1A [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: D1 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: D1 01 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: D1 01 00 2B 1D 00 19 [19:02:29]Write to MH i2c: 01 00 00 2C 1D 49 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]OFD Sender: No OFD packet to send [19:02:29]*** Cut start [19:02:29]*** Partial cut [19:02:29]*** CUTSNS_PIN = 1 [19:02:29]*** CUTSNS_PIN = 0 [19:02:30]*** Brake cut motor [19:02:30]Read from MH i2c: 01 [19:02:30]MH_I2C_Read... [19:02:30]*** Stop cut motor [19:02:30]*** Cut end [19:02:30]Read from MH i2c: 01 07 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: 01 07 00 2C 1D 00 00 00 00 00 FF 0F 5E [19:02:30]process_action close_receipt done [19:02:30]requested_data is exist [19:02:30]produce_requested_data [19:02:30]requested_item fm.sn is exist - process it [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 11 00 00 [19:02:30]Write to MH i2c: E2 08 00 2D 1D 80 11 00 00 00 00 00 00 C4 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 17 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 17 00 2D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [19:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:02:30]wFMCommunicate OK [19:02:30]requested_item fd.num is exist - process it [19:02:30]SAM_PROTO_GetFieldsCounters [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 13 00 00 [19:02:30]Write to MH i2c: E2 08 00 2E 1D 80 13 00 00 00 00 00 00 C7 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 62 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 62 00 2E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [19:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:30]wFMCommunicate OK [19:02:30]SAM_PROTO_GetFieldsCounters done [19:02:30]requested_item shift.num is exist - process it [19:02:30]requested_item shift.opened is exist - process it [19:02:30]req_shift_opened [19:02:30]FM_GetShiftState [19:02:30]SAM_PROTO_GetShiftState [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 13 01 00 [19:02:30]Write to MH i2c: E2 08 00 2F 1D 80 13 01 00 00 00 00 00 C9 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 0E 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 0E 00 2F 1D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F2 [19:02:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:02:30]wFMCommunicate OK [19:02:30]SAM_PROTO_GetShiftState done [19:02:30]FM_GetShiftState done [19:02:30]req_shift_opened done [19:02:30]requested_item shift.open_date is exist - process it [19:02:30]req_shift_open_date [19:02:30]req_shift_open_date done [19:02:30]produce_requested_data done [19:02:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139746,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:02:30]process_action_free close_receipt [19:02:30]json_value_free [19:02:30]json_value_free done [19:02:30]process_json_proto returns [19:02:30]Send response to host [19:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139746,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:02:30]free response buf [19:02:30]execute_script done [19:02:30]execute_script returns [19:02:30]free content buf [19:02:30]Sock 7.Close socket [19:02:30]Sock 7.Thread stoped [19:02:33]accept exits with 9 [19:02:33]New connection [19:02:33]New thread 3066510692 created [19:02:33]Thread 3066654052 joined [19:02:33]Waiting for new connection... [19:02:33] Sock 9.Parse request [19:02:33]Sock 9.Check first char [19:02:33]Sock 9.First char is OK [19:02:33]request: POST /json_proto HTTP/1.0 [19:02:33]Method: POST [19:02:33]URL: /json_proto [19:02:33]Method is POST - this is cgi request [19:02:33]url: /json_proto [19:02:33]query_string will be loaded in cgi processing [19:02:33]execute_cgi json_proto POST (null) [19:02:33]execute_cgi path=json_proto method=POST [19:02:33]POST find Content-Length [19:02:33]Host: 172.17.50.196:8080 [19:02:33]Content-Length: 767 [19:02:33]Content-Type: application/json [19:02:33] [19:02:33]POST finish read [19:02:33]Found Content-Length = 767 [19:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095418", "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 }]} ], "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" ] } } [19:02:33]execute_script... [19:02:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095418", "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 }]} ], "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" ] } } [19:02:33]POST & json_proto [19:02:33]process_json_proto [19:02:33]json parsed OK: [19:02:33]protocol is kg_v1.0 [19:02:33]action value=close_receipt [19:02:33]process_action close_receipt [19:02:33]cmd_close_receipt [19:02:33]MH_GetDate [19:02:33]Write to MH i2c: F0 00 00 30 1D 3C [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: F0 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: F0 09 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: F0 09 00 30 1D 00 4B D4 23 67 72 0D 1C 67 F0 [19:02:33]GetLastDocTimeStamp 1730401348 [19:02:33]current date 1730401355 [19:02:33]FM_GetShiftState [19:02:33]SAM_PROTO_GetShiftState [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 13 01 00 [19:02:33]Write to MH i2c: E2 08 00 31 1D 80 13 01 00 00 00 00 00 CB [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 31 1D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F4 [19:02:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_GetShiftState done [19:02:33]FM_GetShiftState done [19:02:33]opened in 1730332621 [19:02:33]opened+sec_in_day 1730419021 [19:02:33]quantity*price = 50041 [19:02:33]sum+1 = 50042 [19:02:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 224 31.10.2024 19:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139747 ФПД: 79202377971096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190235&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139747&fm=79202377971096&tin=02508201610067®Number=0000000000091631&sum=50041 [19:02:35]StoreToDocumentArchive [19:02:35]shift 557 fd 139747 [19:02:35]save to /storage/0557/doc_00139747 [19:02:35]save last doc name /storage/0557/doc_00139747 to /storage/kkm_last_doc_name [19:02:35]save OK [19:02:35]Clear old archive folders... [19:02:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:35]tlvbuf is 00A78BC0 [19:02:35]SAM_PROTO_ClearQueue [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 09 00 00 [19:02:35]Write to MH i2c: E2 08 00 3E 1D 80 09 00 00 00 00 00 00 CD [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [19:02:35]RAPDU: 90 00 [19:02:35]wFMCommunicate OK [19:02:35]SAM_PROTO_ClearQueue done [19:02:35]KKMCreateOFDPacket [19:02:35]OFDProtocolAddRootSTLVToBuf [19:02:35]FM_MakeSignedData [19:02:35]FM_MakeSignedData [19:02:35]SAM_PROTO_SignData [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 0D 01 02 [19:02:35]Write to MH i2c: E2 08 00 3F 1D 80 0D 01 02 00 00 00 00 D5 [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 3F 1D 00 90 00 D0 [19:02:35]RAPDU: 90 00 [19:02:35]wFMCommunicate OK [19:02:35]wFMCommunicate request_size=255 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 4B D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 48 [19:02:35]Write to MH i2c: E2 02 01 40 1D 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 E0 00 00 00 F4 03 04 00 4B D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 48 00 00 BC [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 40 1D 00 90 00 D1 [19:02:35]RAPDU: 90 00 [19:02:35]wFMCommunicate OK [19:02:35]wFMCommunicate request_size=10 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 0D 02 02 05 08 BD 9A B5 98 [19:02:35]Write to MH i2c: E2 0D 00 41 1D 80 0D 02 02 05 00 08 BD 9A B5 98 00 00 8E [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 03 00 41 1D 00 90 00 D2 [19:02:35]RAPDU: 90 00 [19:02:35]wFMCommunicate OK [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 0D 03 02 [19:02:35]Write to MH i2c: E2 08 00 42 1D 80 0D 03 02 00 00 00 00 DA [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 0B 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 0B 00 42 1D 00 A7 19 B4 37 B9 D2 81 1D 90 00 AF [19:02:35]RAPDU: A7 19 B4 37 B9 D2 81 1D 90 00 [19:02:35]wFMCommunicate OK [19:02:35]SAM_PROTO_SignData done [19:02:35]FM_MakeSignedData done [19:02:35]CreateOFDProtocolMessage [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 11 00 00 [19:02:35]Write to MH i2c: E2 08 00 43 1D 80 11 00 00 00 00 00 00 DA [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 17 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 17 00 43 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 35 [19:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:02:35]wFMCommunicate OK [19:02:35]CreateOFDProtocolMessage done [19:02:35]OFDSenderStorePacket 139747 [19:02:35]StoreOFDPacket docnum=139747 [19:02: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 0F 01 00 00 10 09 07 01 B6 15 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 E0 00 00 00 F4 03 04 00 4B D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 48 08 BD 9A B5 98 A7 19 B4 37 B9 D2 81 1D [19:02:35]CheckFolder [19:02:35]dirname=/storage/ofd_packets [19:02:35]CheckFolder done [19:02:35]ProducePacketName [19:02:35]name=ofd_packets/00139747 [19:02:35]NVStorageSaveData ofd_packets/00139747 [19:02:35]File name is /storage/ofd_packets/00139747 [19:02:35]Write 301 bytes [19:02:35]NVStorageSaveData done [19:02:35]OFDSenderStorePacket done [19:02:35]KKMCreateOFDPacket done [19:02:35]NVStorageSaveData kkm_last_timestamp [19:02:35]File name is /storage/kkm_last_timestamp [19:02:35]Write 4 bytes [19:02:35]NVStorageSaveData done [19:02:35]ExternCall_PrintAddStr [19:02:35]wPrintStart [19:02:35]Write to MH i2c: 01 00 00 44 1D 61 [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 07 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 07 00 44 1D 00 00 00 00 00 FF 0F 76 [19:02:35]RasterBufferAndPrint [19:02:35]line Счет N : (1)1095418 [19:02:35]line ИНН: 02508201610067 [19:02:35]line Контрольно-Кассовый Чек [19:02:35]line ПРОДАЖА [19:02:35]line ТРК (МРК, ГНК) : 43 [19:02:35]line Товар: 2710124130 [19:02:35]line Аи-92-К-2 [19:02:35]line 7.480 * 66.90 [19:02:35]line = 500.41 [19:02:35]line НДС 12% НСП 1% [19:02:35]line > о реализуемом товаре [19:02:35]line ИТОГО: 500.41 [19:02:35]line НСП 1% : 4.43 [19:02:35]line НДС 12% : 53.14 [19:02:35]line Наличными: 0.00 [19:02:35]line Безнал.: 500.41 [19:02:35]line Место: АЗС № 101 "Партнер Нефть" [19:02:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:02:35]line СНО: Общий режим [19:02:35]line Чек 224 31.10.2024 19:02 [19:02:35]line Смена: 557 ФФД: 1.0 [19:02:35]line ЗНМ: 0300000081 [19:02:35]line РНМ: 0000000000091631 [19:02:35]line Версия ККМ: 001 [19:02:35]line Платежная система: Mbank [19:02:35]line ФМ: 0000000000874669 [19:02:35]line ФД: 139747 [19:02:35]line ФПД: 79202377971096 [19:02:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190235&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139747&fm=79202377971096&tin=02508201610067®Number=0000000000091631&sum=50041 [19:02:35]written 0, free lines is 4095 [19:02:35]OFD Sender: Processing packet 139747 [packets to send 34, broken 33] [19:02:35]ProducePacketName [19:02:35]name=ofd_packets/00139747 [19:02:35]OFD Sender: To server: pG, [19:02:35]CommunicateWithHost lk.salyk.kg:30040 [19:02:35]ConnectInit lk.salyk.kg [19:02:35]Connected sock=10 [19:02: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 0F 01 00 00 10 09 07 01 B6 15 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 E0 00 00 00 F4 03 04 00 4B D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 48 08 BD 9A B5 98 A7 19 B4 37 B9 D2 81 1D [19:02: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 EE 3E 47 00 D0 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 E3 21 02 00 F4 03 04 00 F8 7F 23 67 B6 04 01 00 00 35 03 D5 0C B3 EC 01 72 [19:02:35]CommunicateWithHost err = 0 [19:02:35]CheckOFDResponse [19:02:35]1017 (14) - 77093643461234 [19:02:35]1041 (16) - 0000000000874669 [19:02:35]1040 (4) - 139747 [19:02:35]1012 (4) - 31.10.2024 13:02 [19:02:35]1206 (1) - 0 [19:02:35]OFD Sender: Remove packet 139747 [19:02:35]ProducePacketName [19:02:35]name=ofd_packets/00139747 [19:02:35]NVStorageDeleteData [19:02:36]Write to MH i2c: 01 00 00 6D 1D 8A [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 07 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 1C 0D BA [19:02:36]RasterBufferAndPrint [19:02:36]line [19:02:36]line [19:02:36]line [19:02:36]line [19:02:36]line [19:02:36]written 0, free lines is 3368 [19:02:36]MH_Cut [19:02:36]Write to MH i2c: D1 01 00 74 1D 01 63 [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: D1 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: D1 01 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: D1 01 00 74 1D 00 62 [19:02:36]Write to MH i2c: 01 00 00 75 1D 92 [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]OFD Sender: No OFD packet to send [19:02:36]*** Cut start [19:02:36]*** Partial cut [19:02:36]*** CUTSNS_PIN = 1 [19:02:36]*** CUTSNS_PIN = 0 [19:02:36]*** Brake cut motor [19:02:37]Read from MH i2c: 01 [19:02:37]MH_I2C_Read... [19:02:37]*** Stop cut motor [19:02:37]*** Cut end [19:02:37]Read from MH i2c: 01 07 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 FF 0F A7 [19:02:37]process_action close_receipt done [19:02:37]requested_data is exist [19:02:37]produce_requested_data [19:02:37]requested_item fm.sn is exist - process it [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 11 00 00 [19:02:37]Write to MH i2c: E2 08 00 76 1D 80 11 00 00 00 00 00 00 0D [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 17 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 17 00 76 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 68 [19:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:02:37]wFMCommunicate OK [19:02:37]requested_item fd.num is exist - process it [19:02:37]SAM_PROTO_GetFieldsCounters [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 13 00 00 [19:02:37]Write to MH i2c: E2 08 00 77 1D 80 13 00 00 00 00 00 00 10 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 62 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 62 00 77 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [19:02: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 E3 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_GetFieldsCounters done [19:02:37]requested_item shift.num is exist - process it [19:02:37]requested_item shift.opened is exist - process it [19:02:37]req_shift_opened [19:02:37]FM_GetShiftState [19:02:37]SAM_PROTO_GetShiftState [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 13 01 00 [19:02:37]Write to MH i2c: E2 08 00 78 1D 80 13 01 00 00 00 00 00 12 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 0E 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 0E 00 78 1D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3B [19:02:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_GetShiftState done [19:02:37]FM_GetShiftState done [19:02:37]req_shift_opened done [19:02:37]requested_item shift.open_date is exist - process it [19:02:37]req_shift_open_date [19:02:37]req_shift_open_date done [19:02:37]produce_requested_data done [19:02:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139747,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:02:37]process_action_free close_receipt [19:02:37]json_value_free [19:02:37]json_value_free done [19:02:37]process_json_proto returns [19:02:37]Send response to host [19:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139747,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:02:37]free response buf [19:02:37]execute_script done [19:02:37]execute_script returns [19:02:37]free content buf [19:02:37]Sock 9.Close socket [19:02:37]Sock 9.Thread stoped [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:28]accept exits with 7 [19:04:28]New connection [19:04:28]New thread 3066654052 created [19:04:28]Thread 3066510692 joined [19:04:28]Waiting for new connection... [19:04:28] Sock 7.Parse request [19:04:28]Sock 7.Check first char [19:04:28]Sock 7.First char is OK [19:04:28]request: POST /json_proto HTTP/1.0 [19:04:28]Method: POST [19:04:28]URL: /json_proto [19:04:28]Method is POST - this is cgi request [19:04:28]url: /json_proto [19:04:28]query_string will be loaded in cgi processing [19:04:28]execute_cgi json_proto POST (null) [19:04:28]execute_cgi path=json_proto method=POST [19:04:28]POST find Content-Length [19:04:28]Host: 172.17.50.196:8080 [19:04:28]Content-Length: 903 [19:04:28]Content-Type: application/json [19:04:28] [19:04:28]POST finish read [19:04:28]Found Content-Length = 903 [19:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335584", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:28]execute_script... [19:04: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)335584", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:28]POST & json_proto [19:04:28]process_json_proto [19:04:28]json parsed OK: [19:04:28]protocol is kg_v1.0 [19:04:28]action value=close_receipt [19:04:28]process_action close_receipt [19:04:28]cmd_close_receipt [19:04:28]MH_GetDate [19:04:28]Write to MH i2c: F0 00 00 79 1D 85 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: F0 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: F0 09 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: F0 09 00 79 1D 00 BD D4 23 67 72 0D 1C 67 AB [19:04:28]GetLastDocTimeStamp 1730401355 [19:04:28]current date 1730401469 [19:04:28]FM_GetShiftState [19:04:28]SAM_PROTO_GetShiftState [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 13 01 00 [19:04:28]Write to MH i2c: E2 08 00 7A 1D 80 13 01 00 00 00 00 00 14 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0E 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0E 00 7A 1D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3D [19:04:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:04:28]wFMCommunicate OK [19:04:28]SAM_PROTO_GetShiftState done [19:04:28]FM_GetShiftState done [19:04:28]opened in 1730332621 [19:04:28]opened+sec_in_day 1730419021 [19:04:28]quantity*price = 6500 [19:04:28]sum+1 = 6501 [19:04:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.60 НДС 12% : 31.32 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 225 31.10.2024 19:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139748 ФПД: 100160123766095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139748&fm=100160123766095&tin=02508201610067®Number=0000000000091631&sum=29500 0 [19:04:29]StoreToDocumentArchive [19:04:29]shift 557 fd 139748 [19:04:29]save to /storage/0557/doc_00139748 [19:04:29]save last doc name /storage/0557/doc_00139748 to /storage/kkm_last_doc_name [19:04:29]save OK [19:04:29]Clear old archive folders... [19:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=399 [19:04:29]tlvbuf is 00A3B300 [19:04:29]SAM_PROTO_ClearQueue [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 09 00 00 [19:04:29]Write to MH i2c: E2 08 00 87 1D 80 09 00 00 00 00 00 00 16 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]SAM_PROTO_ClearQueue done [19:04:29]KKMCreateOFDPacket [19:04:29]OFDProtocolAddRootSTLVToBuf [19:04:29]FM_MakeSignedData [19:04:29]FM_MakeSignedData [19:04:29]SAM_PROTO_SignData [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 01 02 [19:04:29]Write to MH i2c: E2 08 00 88 1D 80 0D 01 02 00 00 00 00 1E [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=255 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 FC 03 06 00 3C 73 00 00 00 00 EB 03 [19:04:29]Write to MH i2c: E2 02 01 89 1D 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 FC 03 06 00 3C 73 00 00 00 00 EB 03 00 00 77 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=158 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 5B 18 58 99 05 4F [19:04:29]Write to MH i2c: E2 A1 00 8A 1D 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 5B 18 58 99 05 4F 00 00 8B [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 8A 1D 00 90 00 1B [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 03 02 [19:04:29]Write to MH i2c: E2 08 00 8B 1D 80 0D 03 02 00 00 00 00 23 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0B 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0B 00 8B 1D 00 0B 35 0A D5 F0 FD 23 7C 90 00 CF [19:04:29]RAPDU: 0B 35 0A D5 F0 FD 23 7C 90 00 [19:04:29]wFMCommunicate OK [19:04:29]SAM_PROTO_SignData done [19:04:29]FM_MakeSignedData done [19:04:29]CreateOFDProtocolMessage [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 11 00 00 [19:04:29]Write to MH i2c: E2 08 00 8C 1D 80 11 00 00 00 00 00 00 23 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 17 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 17 00 8C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [19: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 [19:04:29]wFMCommunicate OK [19:04:29]CreateOFDProtocolMessage done [19:04:29]OFDSenderStorePacket 139748 [19:04:29]StoreOFDPacket docnum=139748 [19:04: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 A3 01 00 00 33 8A 9B 01 3C 8F 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 5B 18 58 99 05 4F 0B 35 0A D5 F0 FD 23 7C [19:04:29]CheckFolder [19:04:29]dirname=/storage/ofd_packets [19:04:29]CheckFolder done [19:04:29]ProducePacketName [19:04:29]name=ofd_packets/00139748 [19:04:29]NVStorageSaveData ofd_packets/00139748 [19:04:29]File name is /storage/ofd_packets/00139748 [19:04:29]Write 449 bytes [19:04:29]NVStorageSaveData done [19:04:29]OFDSenderStorePacket done [19:04:29]KKMCreateOFDPacket done [19:04:29]NVStorageSaveData kkm_last_timestamp [19:04:29]File name is /storage/kkm_last_timestamp [19:04:29]Write 4 bytes [19:04:29]NVStorageSaveData done [19:04:29]ExternCall_PrintAddStr [19:04:29]wPrintStart [19:04:29]Write to MH i2c: 01 00 00 8D 1D AA [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 07 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 07 00 8D 1D 00 00 00 00 00 FF 0F BF [19:04:29]RasterBufferAndPrint [19:04:30]line Счет N : (3)335584 [19:04:30]line ИНН: 02508201610067 [19:04:30]line Контрольно-Кассовый Чек [19:04:30]line ПРОДАЖА [19:04:30]line Товар: 4620016307540 [19:04:30]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [19:04:30]line 1.000 * 65.00 [19:04:30]line = 65.00 [19:04:30]line НДС 12% НСП 1% [19:04:30]line > о реализуемом товаре [19:04:30]line Товар: 2000036240010 [19:04:30]line Кофе Латте (GABB TRADE) [19:04:30]line 2.000 * 115.00 [19:04:30]line = 230.00 [19:04:30]line НДС 12% НСП 1% [19:04:30]line > о реализуемом товаре [19:04:30]line ИТОГО: 295.00 [19:04:30]line НСП 1% : 2.60 [19:04:30]line НДС 12% : 31.32 [19:04:30]line Наличными: 295.00 [19:04:30]line Безнал.: 0.00 [19:04:30]line Место: АЗС № 101 "Партнер Нефть" [19:04:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:04:30]line СНО: Общий режим [19:04:30]line Чек 225 31.10.2024 19:04 [19:04:30]line Смена: 557 ФФД: 1.0 [19:04:30]line ЗНМ: 0300000081 [19:04:30]line РНМ: 0000000000091631 [19:04:30]line Версия ККМ: 001 [19:04:30]line ФМ: 0000000000874669 [19:04:30]line ФД: 139748 [19:04:30]line ФПД: 100160123766095 [19:04:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139748&fm=100160123766095&tin=02508201610067®Number=0000000000091631&sum=29500 [19:04:30]line 0 [19:04:30]OFD Sender: Processing packet 139748 [packets to send 34, broken 33] [19:04:30]ProducePacketName [19:04:30]name=ofd_packets/00139748 [19:04:30]OFD Sender: To server: pG, [19:04:30]CommunicateWithHost lk.salyk.kg:30040 [19:04:30]ConnectInit lk.salyk.kg [19:04:30]written 0, free lines is 4095 [19:04:30]Connected sock=10 [19:04: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 A3 01 00 00 33 8A 9B 01 3C 8F 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 5B 18 58 99 05 4F 0B 35 0A D5 F0 FD 23 7C [19:04: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 EA 65 47 00 68 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 E4 21 02 00 F4 03 04 00 6B 80 23 67 B6 04 01 00 00 4B 68 C1 86 9D 15 50 19 [19:04:30]CommunicateWithHost err = 0 [19:04:30]CheckOFDResponse [19:04:30]1017 (14) - 77093643461234 [19:04:30]1041 (16) - 0000000000874669 [19:04:30]1040 (4) - 139748 [19:04:30]1012 (4) - 31.10.2024 13:04 [19:04:30]1206 (1) - 0 [19:04:30]OFD Sender: Remove packet 139748 [19:04:30]ProducePacketName [19:04:30]name=ofd_packets/00139748 [19:04:30]NVStorageDeleteData [19:04:30]Write to MH i2c: 01 00 00 BC 1D D9 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 BC 1D 00 00 00 00 00 D6 0C C2 [19:04:30]RasterBufferAndPrint [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]written 0, free lines is 3295 [19:04:30]MH_Cut [19:04:30]Write to MH i2c: D1 01 00 C3 1D 01 B2 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 01 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 01 00 C3 1D 00 B1 [19:04:30]Write to MH i2c: 01 00 00 C4 1D E1 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]OFD Sender: No OFD packet to send [19:04:31]*** Cut start [19:04:31]*** Partial cut [19:04:31]*** CUTSNS_PIN = 1 [19:04:31]*** CUTSNS_PIN = 0 [19:04:31]*** Brake cut motor [19:04:32]Read from MH i2c: 01 [19:04:32]MH_I2C_Read... [19:04:32]*** Stop cut motor [19:04:32]*** Cut end [19:04:32]Read from MH i2c: 01 07 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: 01 07 00 C4 1D 00 00 00 00 00 FF 0F F6 [19:04:32]process_action close_receipt done [19:04:32]requested_data is exist [19:04:32]produce_requested_data [19:04:32]requested_item fm.sn is exist - process it [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 11 00 00 [19:04:32]Write to MH i2c: E2 08 00 C5 1D 80 11 00 00 00 00 00 00 5C [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:32]Read from MH i2c: E2 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 17 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 17 00 C5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B7 [19:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:04:32]wFMCommunicate OK [19:04:32]requested_item fd.num is exist - process it [19:04:32]SAM_PROTO_GetFieldsCounters [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 13 00 00 [19:04:32]Write to MH i2c: E2 08 00 C6 1D 80 13 00 00 00 00 00 00 5F [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:32]Read from MH i2c: E2 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 62 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 62 00 C6 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [19:04: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 E4 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:32]wFMCommunicate OK [19:04:32]SAM_PROTO_GetFieldsCounters done [19:04:32]requested_item shift.num is exist - process it [19:04:32]requested_item shift.opened is exist - process it [19:04:32]req_shift_opened [19:04:32]FM_GetShiftState [19:04:32]SAM_PROTO_GetShiftState [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 13 01 00 [19:04:32]Write to MH i2c: E2 08 00 C7 1D 80 13 01 00 00 00 00 00 61 [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:32]Read from MH i2c: E2 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 0E 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 0E 00 C7 1D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8A [19:04:32]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:04:32]wFMCommunicate OK [19:04:32]SAM_PROTO_GetShiftState done [19:04:32]FM_GetShiftState done [19:04:32]req_shift_opened done [19:04:32]requested_item shift.open_date is exist - process it [19:04:32]req_shift_open_date [19:04:32]req_shift_open_date done [19:04:32]produce_requested_data done [19:04:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139748,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:04:32]process_action_free close_receipt [19:04:32]json_value_free [19:04:32]json_value_free done [19:04:32]process_json_proto returns [19:04:32]Send response to host [19:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139748,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:04:32]free response buf [19:04:32]execute_script done [19:04:32]execute_script returns [19:04:32]free content buf [19:04:32]Sock 7.Close socket [19:04:32]Sock 7.Thread stoped [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]accept exits with 9 [19:04:55]New connection [19:04:55]New thread 3066510692 created [19:04:55]Thread 3066654052 joined [19:04:55]Waiting for new connection... [19:04:55] Sock 9.Parse request [19:04:55]Sock 9.Check first char [19:04:55]Sock 9.First char is OK [19:04:55]request: POST /json_proto HTTP/1.0 [19:04:55]Method: POST [19:04:55]URL: /json_proto [19:04:55]Method is POST - this is cgi request [19:04:55]url: /json_proto [19:04:55]query_string will be loaded in cgi processing [19:04:55]execute_cgi json_proto POST (null) [19:04:55]execute_cgi path=json_proto method=POST [19:04:55]POST find Content-Length [19:04:55]Host: 172.17.50.196:8080 [19:04:55]Content-Length: 656 [19:04:55]Content-Type: application/json [19:04:55] [19:04:55]POST finish read [19:04:55]Found Content-Length = 656 [19:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335585", "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" ] } } [19:04:55]execute_script... [19:04: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)335585", "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" ] } } [19:04:55]POST & json_proto [19:04:55]process_json_proto [19:04:55]json parsed OK: [19:04:55]protocol is kg_v1.0 [19:04:55]action value=close_receipt [19:04:55]process_action close_receipt [19:04:55]cmd_close_receipt [19:04:55]MH_GetDate [19:04:55]Write to MH i2c: F0 00 00 C8 1D D4 [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: F0 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: F0 09 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: F0 09 00 C8 1D 00 D9 D4 23 67 72 0D 1C 67 16 [19:04:55]GetLastDocTimeStamp 1730401469 [19:04:55]current date 1730401497 [19:04:55]FM_GetShiftState [19:04:55]SAM_PROTO_GetShiftState [19:04:55]wFMCommunicate request_size=4 [19:04:55]MH_SAM_APDU [19:04:55]CAPDU: 80 13 01 00 [19:04:55]Write to MH i2c: E2 08 00 C9 1D 80 13 01 00 00 00 00 00 63 [19:04:55]Write i2c OK [19:04:55]MH_I2C_Read... [19:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:55]Read from MH i2c: E2 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 0E 00 [19:04:55]MH_I2C_Read... [19:04:55]Read from MH i2c: E2 0E 00 C9 1D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8C [19:04:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:04:55]wFMCommunicate OK [19:04:55]SAM_PROTO_GetShiftState done [19:04:55]FM_GetShiftState done [19:04:55]opened in 1730332621 [19:04:55]opened+sec_in_day 1730419021 [19:04:55]quantity*price = 8600 [19:04:55]sum+1 = 8601 [19:04:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 86.00 НСП 1% : 0.76 НДС 12% : 9.13 Наличными: 86.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 226 31.10.2024 19:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139749 ФПД: 151096640726128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190457&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139749&fm=151096640726128&tin=02508201610067®Number=0000000000091631&sum=8600 0 [19:04:56]StoreToDocumentArchive [19:04:56]shift 557 fd 139749 [19:04:56]save to /storage/0557/doc_00139749 [19:04:56]save last doc name /storage/0557/doc_00139749 to /storage/kkm_last_doc_name [19:04:56]save OK [19:04:56]Clear old archive folders... [19:04:56]ProcessDocumentItem done err = 0, tmpTLVsize=283 [19:04:56]tlvbuf is B6E780E0 [19:04:56]SAM_PROTO_ClearQueue [19:04:56]wFMCommunicate request_size=4 [19:04:56]MH_SAM_APDU [19:04:56]CAPDU: 80 09 00 00 [19:04:56]Write to MH i2c: E2 08 00 D6 1D 80 09 00 00 00 00 00 00 65 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:56]Read from MH i2c: E2 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 D6 1D 00 90 00 67 [19:04:56]RAPDU: 90 00 [19:04:56]wFMCommunicate OK [19:04:56]SAM_PROTO_ClearQueue done [19:04:56]KKMCreateOFDPacket [19:04:56]OFDProtocolAddRootSTLVToBuf [19:04:56]FM_MakeSignedData [19:04:56]FM_MakeSignedData [19:04:56]SAM_PROTO_SignData [19:04:56]wFMCommunicate request_size=4 [19:04:56]MH_SAM_APDU [19:04:56]CAPDU: 80 0D 01 02 [19:04:56]Write to MH i2c: E2 08 00 D7 1D 80 0D 01 02 00 00 00 00 6D [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:56]Read from MH i2c: E2 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 D7 1D 00 90 00 68 [19:04:56]RAPDU: 90 00 [19:04:56]wFMCommunicate OK [19:04:56]wFMCommunicate request_size=255 [19:04:56]MH_SAM_APDU [19:04:56]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 E2 00 00 00 F4 03 04 00 D9 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 [19:04:56]Write to MH i2c: E2 02 01 D8 1D 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 E2 00 00 00 F4 03 04 00 D9 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 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 F0 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:56]Read from MH i2c: E2 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 D8 1D 00 90 00 69 [19:04:56]RAPDU: 90 00 [19:04:56]wFMCommunicate OK [19:04:56]wFMCommunicate request_size=42 [19:04:56]MH_SAM_APDU [19:04:56]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 E5 21 02 00 35 04 06 00 89 6B ED 98 E4 70 [19:04:56]Write to MH i2c: E2 2D 00 D9 1D 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 E5 21 02 00 35 04 06 00 89 6B ED 98 E4 70 00 00 22 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:56]Read from MH i2c: E2 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 03 00 D9 1D 00 90 00 6A [19:04:56]RAPDU: 90 00 [19:04:56]wFMCommunicate OK [19:04:56]wFMCommunicate request_size=4 [19:04:56]MH_SAM_APDU [19:04:56]CAPDU: 80 0D 03 02 [19:04:56]Write to MH i2c: E2 08 00 DA 1D 80 0D 03 02 00 00 00 00 72 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:56]Read from MH i2c: E2 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 0B 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 0B 00 DA 1D 00 19 2B CD 80 13 FD DA D9 90 00 C7 [19:04:56]RAPDU: 19 2B CD 80 13 FD DA D9 90 00 [19:04:56]wFMCommunicate OK [19:04:56]SAM_PROTO_SignData done [19:04:56]FM_MakeSignedData done [19:04:56]CreateOFDProtocolMessage [19:04:56]wFMCommunicate request_size=4 [19:04:56]MH_SAM_APDU [19:04:56]CAPDU: 80 11 00 00 [19:04:56]Write to MH i2c: E2 08 00 DB 1D 80 11 00 00 00 00 00 00 72 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:56]Read from MH i2c: E2 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 17 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: E2 17 00 DB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CD [19:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:04:56]wFMCommunicate OK [19:04:56]CreateOFDProtocolMessage done [19:04:56]OFDSenderStorePacket 139749 [19:04:56]StoreOFDPacket docnum=139749 [19:04: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 2F 01 00 00 39 B1 27 01 99 11 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 E2 00 00 00 F4 03 04 00 D9 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 89 6B ED 98 E4 70 19 2B CD 80 13 FD DA D9 [19:04:56]CheckFolder [19:04:56]dirname=/storage/ofd_packets [19:04:56]CheckFolder done [19:04:56]ProducePacketName [19:04:56]name=ofd_packets/00139749 [19:04:56]NVStorageSaveData ofd_packets/00139749 [19:04:56]File name is /storage/ofd_packets/00139749 [19:04:56]Write 333 bytes [19:04:56]NVStorageSaveData done [19:04:56]OFDSenderStorePacket done [19:04:56]KKMCreateOFDPacket done [19:04:56]NVStorageSaveData kkm_last_timestamp [19:04:56]File name is /storage/kkm_last_timestamp [19:04:56]Write 4 bytes [19:04:56]NVStorageSaveData done [19:04:56]ExternCall_PrintAddStr [19:04:56]wPrintStart [19:04:56]Write to MH i2c: 01 00 00 DC 1D F9 [19:04:56]Write i2c OK [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: 01 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: 01 07 00 [19:04:56]MH_I2C_Read... [19:04:56]Read from MH i2c: 01 07 00 DC 1D 00 00 00 00 00 FF 0F 0E [19:04:56]RasterBufferAndPrint [19:04:56]line Счет N : (3)335585 [19:04:56]line ИНН: 02508201610067 [19:04:56]line Контрольно-Кассовый Чек [19:04:56]line ПРОДАЖА [19:04:56]line Товар: 4603290004831 [19:04:56]line Печ.зат.TONDI Сэнд.шок.вк. [19:04:56]line 1.000 * 86.00 [19:04:56]line = 86.00 [19:04:56]line НДС 12% НСП 1% [19:04:56]line > о реализуемом товаре [19:04:56]line ИТОГО: 86.00 [19:04:56]line НСП 1% : 0.76 [19:04:56]line НДС 12% : 9.13 [19:04:56]line Наличными: 86.00 [19:04:56]line Безнал.: 0.00 [19:04:56]line Место: АЗС № 101 "Партнер Нефть" [19:04:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:04:56]line СНО: Общий режим [19:04:56]line Чек 226 31.10.2024 19:04 [19:04:56]line Смена: 557 ФФД: 1.0 [19:04:56]line ЗНМ: 0300000081 [19:04:56]line РНМ: 0000000000091631 [19:04:56]line Версия ККМ: 001 [19:04:56]line ФМ: 0000000000874669 [19:04:56]line ФД: 139749 [19:04:56]line ФПД: 151096640726128 [19:04:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190457&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139749&fm=151096640726128&tin=02508201610067®Number=0000000000091631&sum=8600 [19:04:57]OFD Sender: Processing packet 139749 [packets to send 34, broken 33] [19:04:57]ProducePacketName [19:04:57]name=ofd_packets/00139749 [19:04:57]OFD Sender: To server: pG, [19:04:57]CommunicateWithHost lk.salyk.kg:30040 [19:04:57]ConnectInit lk.salyk.kg [19:04:57]line 0 [19:04:57]written 0, free lines is 4095 [19:04:57]Connected sock=10 [19:04: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 2F 01 00 00 39 B1 27 01 99 11 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 E2 00 00 00 F4 03 04 00 D9 D4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 89 6B ED 98 E4 70 19 2B CD 80 13 FD DA D9 [19:04: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 B2 0B 47 00 F1 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 E5 21 02 00 F4 03 04 00 86 80 23 67 B6 04 01 00 00 DF 81 17 21 36 18 EE C5 [19:04:57]CommunicateWithHost err = 0 [19:04:57]CheckOFDResponse [19:04:57]1017 (14) - 77093643461234 [19:04:57]1041 (16) - 0000000000874669 [19:04:57]1040 (4) - 139749 [19:04:57]1012 (4) - 31.10.2024 13:05 [19:04:57]1206 (1) - 0 [19:04:57]OFD Sender: Remove packet 139749 [19:04:57]ProducePacketName [19:04:57]name=ofd_packets/00139749 [19:04:57]NVStorageDeleteData [19:04:57]Write to MH i2c: 01 00 00 04 1E 22 [19:04:57]Write i2c OK [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: 01 [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: 01 07 00 [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: 01 07 00 04 1E 00 00 00 00 00 16 0D 4C [19:04:57]RasterBufferAndPrint [19:04:57]line [19:04:57]line [19:04:57]line [19:04:57]line [19:04:57]line [19:04:57]written 0, free lines is 3357 [19:04:57]MH_Cut [19:04:57]Write to MH i2c: D1 01 00 0B 1E 01 FB [19:04:57]Write i2c OK [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: D1 [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: D1 01 00 [19:04:57]MH_I2C_Read... [19:04:57]Read from MH i2c: D1 01 00 0B 1E 00 FA [19:04:57]Write to MH i2c: 01 00 00 0C 1E 2A [19:04:57]Write i2c OK [19:04:57]MH_I2C_Read... [19:04:57]OFD Sender: No OFD packet to send [19:04:58]*** Cut start [19:04:58]*** Partial cut [19:04:58]*** CUTSNS_PIN = 1 [19:04:58]*** CUTSNS_PIN = 0 [19:04:58]*** Brake cut motor [19:04:58]Read from MH i2c: 01 [19:04:58]MH_I2C_Read... [19:04:58]*** Stop cut motor [19:04:58]Read from MH i2c: 01 07 00 [19:04:58]MH_I2C_Read... [19:04:58]*** Cut end [19:04:58]Read from MH i2c: 01 07 00 0C 1E 00 00 00 00 00 FF 0F 3F [19:04:58]process_action close_receipt done [19:04:58]requested_data is exist [19:04:58]produce_requested_data [19:04:58]requested_item fm.sn is exist - process it [19:04:58]wFMCommunicate request_size=4 [19:04:58]MH_SAM_APDU [19:04:58]CAPDU: 80 11 00 00 [19:04:58]Write to MH i2c: E2 08 00 0D 1E 80 11 00 00 00 00 00 00 A5 [19:04:58]Write i2c OK [19:04:58]MH_I2C_Read... [19:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:58]Read from MH i2c: E2 [19:04:58]MH_I2C_Read... [19:04:58]Read from MH i2c: E2 17 00 [19:04:58]MH_I2C_Read... [19:04:58]Read from MH i2c: E2 17 00 0D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 00 [19:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:04:58]wFMCommunicate OK [19:04:58]requested_item fd.num is exist - process it [19:04:58]SAM_PROTO_GetFieldsCounters [19:04:58]wFMCommunicate request_size=4 [19:04:58]MH_SAM_APDU [19:04:58]CAPDU: 80 13 00 00 [19:04:58]Write to MH i2c: E2 08 00 0E 1E 80 13 00 00 00 00 00 00 A8 [19:04:58]Write i2c OK [19:04:58]MH_I2C_Read... [19:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:59]Read from MH i2c: E2 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: E2 62 00 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: E2 62 00 0E 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [19:04: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 E5 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:59]wFMCommunicate OK [19:04:59]SAM_PROTO_GetFieldsCounters done [19:04:59]requested_item shift.num is exist - process it [19:04:59]requested_item shift.opened is exist - process it [19:04:59]req_shift_opened [19:04:59]FM_GetShiftState [19:04:59]SAM_PROTO_GetShiftState [19:04:59]wFMCommunicate request_size=4 [19:04:59]MH_SAM_APDU [19:04:59]CAPDU: 80 13 01 00 [19:04:59]Write to MH i2c: E2 08 00 0F 1E 80 13 01 00 00 00 00 00 AA [19:04:59]Write i2c OK [19:04:59]MH_I2C_Read... [19:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:59]Read from MH i2c: E2 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: E2 0E 00 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: E2 0E 00 0F 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D3 [19:04:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:04:59]wFMCommunicate OK [19:04:59]SAM_PROTO_GetShiftState done [19:04:59]FM_GetShiftState done [19:04:59]req_shift_opened done [19:04:59]requested_item shift.open_date is exist - process it [19:04:59]req_shift_open_date [19:04:59]req_shift_open_date done [19:04:59]produce_requested_data done [19:04:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139749,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:04:59]process_action_free close_receipt [19:04:59]json_value_free [19:04:59]json_value_free done [19:04:59]process_json_proto returns [19:04:59]Send response to host [19:04:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139749,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:04:59]free response buf [19:04:59]execute_script done [19:04:59]execute_script returns [19:04:59]free content buf [19:04:59]Sock 9.Close socket [19:04:59]Sock 9.Thread stoped [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:07]accept exits with 7 [19:08:07]New connection [19:08:07]New thread 3066654052 created [19:08:07]Thread 3066510692 joined [19:08:07]Waiting for new connection... [19:08:07] Sock 7.Parse request [19:08:07]Sock 7.Check first char [19:08:07]Sock 7.First char is OK [19:08:07]request: POST /json_proto HTTP/1.0 [19:08:07]Method: POST [19:08:07]URL: /json_proto [19:08:07]Method is POST - this is cgi request [19:08:07]url: /json_proto [19:08:07]query_string will be loaded in cgi processing [19:08:07]execute_cgi json_proto POST (null) [19:08:07]execute_cgi path=json_proto method=POST [19:08:07]POST find Content-Length [19:08:07]Host: 172.17.50.196:8080 [19:08:07]Content-Length: 770 [19:08:07]Content-Type: application/json [19:08:07] [19:08:07]POST finish read [19:08:07]Found Content-Length = 770 [19:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095424", "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" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:07]execute_script... [19:08: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)1095424", "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" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:07]POST & json_proto [19:08:07]process_json_proto [19:08:07]json parsed OK: [19:08:07]protocol is kg_v1.0 [19:08:07]action value=close_receipt [19:08:07]process_action close_receipt [19:08:07]cmd_close_receipt [19:08:07]MH_GetDate [19:08:07]Write to MH i2c: F0 00 00 10 1E 1D [19:08:07]Write i2c OK [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: F0 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: F0 09 00 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: F0 09 00 10 1E 00 99 D5 23 67 72 0D 1C 67 20 [19:08:07]GetLastDocTimeStamp 1730401497 [19:08:07]current date 1730401689 [19:08:07]FM_GetShiftState [19:08:07]SAM_PROTO_GetShiftState [19:08:07]wFMCommunicate request_size=4 [19:08:07]MH_SAM_APDU [19:08:07]CAPDU: 80 13 01 00 [19:08:07]Write to MH i2c: E2 08 00 11 1E 80 13 01 00 00 00 00 00 AC [19:08:07]Write i2c OK [19:08:07]MH_I2C_Read... [19:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:07]Read from MH i2c: E2 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: E2 0E 00 [19:08:07]MH_I2C_Read... [19:08:07]Read from MH i2c: E2 0E 00 11 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D5 [19:08:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:08:07]wFMCommunicate OK [19:08:07]SAM_PROTO_GetShiftState done [19:08:07]FM_GetShiftState done [19:08:07]opened in 1730332621 [19:08:07]opened+sec_in_day 1730419021 [19:08:07]quantity*price = 100021 [19:08:07]sum+1 = 100023 [19:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 227 31.10.2024 19:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139750 ФПД: 223397926994804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190809&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139750&fm=223397926994804&tin=02508201610067®Number=0000000000091631&sum=100022 [19:08:08]StoreToDocumentArchive [19:08:08]shift 557 fd 139750 [19:08:08]save to /storage/0557/doc_00139750 [19:08:08]save last doc name /storage/0557/doc_00139750 to /storage/kkm_last_doc_name [19:08:08]save OK [19:08:08]Clear old archive folders... [19:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:08]tlvbuf is 00A864F0 [19:08:08]SAM_PROTO_ClearQueue [19:08:08]wFMCommunicate request_size=4 [19:08:08]MH_SAM_APDU [19:08:08]CAPDU: 80 09 00 00 [19:08:08]Write to MH i2c: E2 08 00 1E 1E 80 09 00 00 00 00 00 00 AE [19:08:08]Write i2c OK [19:08:08]MH_I2C_Read... [19:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:08]Read from MH i2c: E2 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 03 00 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [19:08:08]RAPDU: 90 00 [19:08:08]wFMCommunicate OK [19:08:08]SAM_PROTO_ClearQueue done [19:08:08]KKMCreateOFDPacket [19:08:08]OFDProtocolAddRootSTLVToBuf [19:08:08]FM_MakeSignedData [19:08:08]FM_MakeSignedData [19:08:08]SAM_PROTO_SignData [19:08:08]wFMCommunicate request_size=4 [19:08:08]MH_SAM_APDU [19:08:08]CAPDU: 80 0D 01 02 [19:08:08]Write to MH i2c: E2 08 00 1F 1E 80 0D 01 02 00 00 00 00 B6 [19:08:08]Write i2c OK [19:08:08]MH_I2C_Read... [19:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:08]Read from MH i2c: E2 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 03 00 [19:08:08]MH_I2C_Read... [19:08:08]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [19:08:08]RAPDU: 90 00 [19:08:08]wFMCommunicate OK [19:08:08]wFMCommunicate request_size=255 [19:08:08]MH_SAM_APDU [19:08:08]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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 99 D5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CB [19:08:08]Write to MH i2c: E2 02 01 20 1E 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 99 D5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CB 00 00 6D [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 20 1E 00 90 00 B2 [19:08:09]RAPDU: 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=10 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 0D 02 02 05 2D E2 15 03 74 [19:08:09]Write to MH i2c: E2 0D 00 21 1E 80 0D 02 02 05 00 2D E2 15 03 74 00 00 5E [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [19:08:09]RAPDU: 90 00 [19:08:09]wFMCommunicate OK [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 0D 03 02 [19:08:09]Write to MH i2c: E2 08 00 22 1E 80 0D 03 02 00 00 00 00 BB [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 0B 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 0B 00 22 1E 00 EF F8 00 4D 48 EF A5 8A 90 00 56 [19:08:09]RAPDU: EF F8 00 4D 48 EF A5 8A 90 00 [19:08:09]wFMCommunicate OK [19:08:09]SAM_PROTO_SignData done [19:08:09]FM_MakeSignedData done [19:08:09]CreateOFDProtocolMessage [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 11 00 00 [19:08:09]Write to MH i2c: E2 08 00 23 1E 80 11 00 00 00 00 00 00 BB [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 17 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 17 00 23 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 16 [19:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:08:09]wFMCommunicate OK [19:08:09]CreateOFDProtocolMessage done [19:08:09]OFDSenderStorePacket 139750 [19:08:09]StoreOFDPacket docnum=139750 [19:08: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 22 16 07 01 25 61 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 99 D5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CB 2D E2 15 03 74 EF F8 00 4D 48 EF A5 8A [19:08:09]CheckFolder [19:08:09]dirname=/storage/ofd_packets [19:08:09]CheckFolder done [19:08:09]ProducePacketName [19:08:09]name=ofd_packets/00139750 [19:08:09]NVStorageSaveData ofd_packets/00139750 [19:08:09]File name is /storage/ofd_packets/00139750 [19:08:09]Write 301 bytes [19:08:09]NVStorageSaveData done [19:08:09]OFDSenderStorePacket done [19:08:09]KKMCreateOFDPacket done [19:08:09]NVStorageSaveData kkm_last_timestamp [19:08:09]File name is /storage/kkm_last_timestamp [19:08:09]Write 4 bytes [19:08:09]NVStorageSaveData done [19:08:09]ExternCall_PrintAddStr [19:08:09]wPrintStart [19:08:09]Write to MH i2c: 01 00 00 24 1E 42 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 24 1E 00 00 00 00 00 FF 0F 57 [19:08:09]RasterBufferAndPrint [19:08:09]line Счет N : (1)1095424 [19:08:09]line ИНН: 02508201610067 [19:08:09]line Контрольно-Кассовый Чек [19:08:09]line ПРОДАЖА [19:08:09]line ТРК (МРК, ГНК) : 54 [19:08:09]line Товар: 2710124500 [19:08:09]line Аи-95-К-3 [19:08:09]line 13.480 * 74.20 [19:08:09]line = 1000.22 [19:08:09]line НДС 12% НСП 1% [19:08:09]line > о реализуемом товаре [19:08:09]line ИТОГО: 1000.22 [19:08:09]line НСП 1% : 8.85 [19:08:09]line НДС 12% : 106.22 [19:08:09]line Наличными: 0.00 [19:08:09]line Безнал.: 1000.22 [19:08:09]line Место: АЗС № 101 "Партнер Нефть" [19:08:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:08:09]line СНО: Общий режим [19:08:09]line Чек 227 31.10.2024 19:08 [19:08:09]line Смена: 557 ФФД: 1.0 [19:08:09]line ЗНМ: 0300000081 [19:08:09]line РНМ: 0000000000091631 [19:08:09]line Версия ККМ: 001 [19:08:09]line Платежная система: Mbank [19:08:09]line ФМ: 0000000000874669 [19:08:09]line ФД: 139750 [19:08:09]line ФПД: 223397926994804 [19:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T190809&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139750&fm=223397926994804&tin=02508201610067®Number=0000000000091631&sum=100022 [19:08:09]written 0, free lines is 4095 [19:08:09]OFD Sender: Processing packet 139750 [packets to send 34, broken 33] [19:08:09]ProducePacketName [19:08:09]name=ofd_packets/00139750 [19:08:09]OFD Sender: To server: pG, [19:08:09]CommunicateWithHost lk.salyk.kg:30040 [19:08:09]ConnectInit lk.salyk.kg [19:08:09]Connected sock=10 [19:08: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 0F 01 00 00 22 16 07 01 25 61 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 99 D5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 CB 2D E2 15 03 74 EF F8 00 4D 48 EF A5 8A [19:08: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 8D F2 47 00 62 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 21 02 00 F4 03 04 00 46 81 23 67 B6 04 01 00 00 83 51 13 1C A1 37 E8 41 [19:08:09]CommunicateWithHost err = 0 [19:08:09]CheckOFDResponse [19:08:09]1017 (14) - 77093643461234 [19:08:09]1041 (16) - 0000000000874669 [19:08:09]1040 (4) - 139750 [19:08:09]1012 (4) - 31.10.2024 13:08 [19:08:09]1206 (1) - 0 [19:08:09]OFD Sender: Remove packet 139750 [19:08:09]ProducePacketName [19:08:09]name=ofd_packets/00139750 [19:08:09]NVStorageDeleteData [19:08:09]Write to MH i2c: 01 00 00 4D 1E 6B [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 20 0D 9F [19:08:09]RasterBufferAndPrint [19:08:09]line [19:08:09]line [19:08:09]line [19:08:09]line [19:08:09]line [19:08:09]written 0, free lines is 3366 [19:08:09]MH_Cut [19:08:09]Write to MH i2c: D1 01 00 54 1E 01 44 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: D1 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: D1 01 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: D1 01 00 54 1E 00 43 [19:08:09]Write to MH i2c: 01 00 00 55 1E 73 [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:10]OFD Sender: No OFD packet to send [19:08:10]*** Cut start [19:08:10]*** Partial cut [19:08:10]*** CUTSNS_PIN = 1 [19:08:10]*** CUTSNS_PIN = 0 [19:08:10]*** Brake cut motor [19:08:11]Read from MH i2c: 01 [19:08:11]MH_I2C_Read... [19:08:11]*** Stop cut motor [19:08:11]*** Cut end [19:08:11]Read from MH i2c: 01 07 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 FF 0F 88 [19:08:11]process_action close_receipt done [19:08:11]requested_data is exist [19:08:11]produce_requested_data [19:08:11]requested_item fm.sn is exist - process it [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 11 00 00 [19:08:11]Write to MH i2c: E2 08 00 56 1E 80 11 00 00 00 00 00 00 EE [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 56 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 49 [19:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:08:11]wFMCommunicate OK [19:08:11]requested_item fd.num is exist - process it [19:08:11]SAM_PROTO_GetFieldsCounters [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 13 00 00 [19:08:11]Write to MH i2c: E2 08 00 57 1E 80 13 00 00 00 00 00 00 F1 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 62 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 62 00 57 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [19:08: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 E6 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_GetFieldsCounters done [19:08:11]requested_item shift.num is exist - process it [19:08:11]requested_item shift.opened is exist - process it [19:08:11]req_shift_opened [19:08:11]FM_GetShiftState [19:08:11]SAM_PROTO_GetShiftState [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 13 01 00 [19:08:11]Write to MH i2c: E2 08 00 58 1E 80 13 01 00 00 00 00 00 F3 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0E 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0E 00 58 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1C [19:08:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_GetShiftState done [19:08:11]FM_GetShiftState done [19:08:11]req_shift_opened done [19:08:11]requested_item shift.open_date is exist - process it [19:08:11]req_shift_open_date [19:08:11]req_shift_open_date done [19:08:11]produce_requested_data done [19:08:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139750,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:08:11]process_action_free close_receipt [19:08:11]json_value_free [19:08:11]json_value_free done [19:08:11]process_json_proto returns [19:08:11]Send response to host [19:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139750,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:08:11]free response buf [19:08:11]execute_script done [19:08:11]execute_script returns [19:08:11]free content buf [19:08:11]Sock 7.Close socket [19:08:11]Sock 7.Thread stoped [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:15]accept exits with 9 [19:15:15]New connection [19:15:15]New thread 3066510692 created [19:15:15]Thread 3066654052 joined [19:15:15]Waiting for new connection... [19:15:15] Sock 9.Parse request [19:15:15]Sock 9.Check first char [19:15:15]Sock 9.First char is OK [19:15:15]request: POST /json_proto HTTP/1.0 [19:15:15]Method: POST [19:15:15]URL: /json_proto [19:15:15]Method is POST - this is cgi request [19:15:15]url: /json_proto [19:15:15]query_string will be loaded in cgi processing [19:15:15]execute_cgi json_proto POST (null) [19:15:15]execute_cgi path=json_proto method=POST [19:15:15]POST find Content-Length [19:15:15]Host: 172.17.50.196:8080 [19:15:15]Content-Length: 688 [19:15:15]Content-Type: application/json [19:15:15] [19:15:15]POST finish read [19:15:15]Found Content-Length = 688 [19:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095430", "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" : 26.250, "sum" : 2000.25, "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" ] } } [19:15:15]execute_script... [19:15:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095430", "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" : 26.250, "sum" : 2000.25, "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" ] } } [19:15:15]POST & json_proto [19:15:15]process_json_proto [19:15:15]json parsed OK: [19:15:15]protocol is kg_v1.0 [19:15:15]action value=close_receipt [19:15:15]process_action close_receipt [19:15:15]cmd_close_receipt [19:15:15]MH_GetDate [19:15:15]Write to MH i2c: F0 00 00 59 1E 66 [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: F0 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: F0 09 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: F0 09 00 59 1E 00 45 D7 23 67 72 0D 1C 67 17 [19:15:15]GetLastDocTimeStamp 1730401689 [19:15:15]current date 1730402117 [19:15:15]FM_GetShiftState [19:15:15]SAM_PROTO_GetShiftState [19:15:15]wFMCommunicate request_size=4 [19:15:15]MH_SAM_APDU [19:15:15]CAPDU: 80 13 01 00 [19:15:15]Write to MH i2c: E2 08 00 5A 1E 80 13 01 00 00 00 00 00 F5 [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 5A 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1E [19:15:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:15:15]wFMCommunicate OK [19:15:15]SAM_PROTO_GetShiftState done [19:15:15]FM_GetShiftState done [19:15:15]opened in 1730332621 [19:15:15]opened+sec_in_day 1730419021 [19:15:15]quantity*price = 200025 [19:15:15]sum+1 = 200026 [19:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 228 31.10.2024 19:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139751 ФПД: 48766963593563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T191517&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139751&fm=48766963593563&tin=02508201610067®Number=0000000000091631&sum=200000 [19:15:16]StoreToDocumentArchive [19:15:16]shift 557 fd 139751 [19:15:16]save to /storage/0557/doc_00139751 [19:15:16]save last doc name /storage/0557/doc_00139751 to /storage/kkm_last_doc_name [19:15:16]save OK [19:15:16]Clear old archive folders... [19:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:15:16]tlvbuf is 00A3B120 [19:15:16]SAM_PROTO_ClearQueue [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 09 00 00 [19:15:16]Write to MH i2c: E2 08 00 67 1E 80 09 00 00 00 00 00 00 F7 [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 03 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [19:15:16]RAPDU: 90 00 [19:15:16]wFMCommunicate OK [19:15:16]SAM_PROTO_ClearQueue done [19:15:16]KKMCreateOFDPacket [19:15:16]OFDProtocolAddRootSTLVToBuf [19:15:16]FM_MakeSignedData [19:15:16]FM_MakeSignedData [19:15:16]SAM_PROTO_SignData [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 0D 01 02 [19:15:16]Write to MH i2c: E2 08 00 68 1E 80 0D 01 02 00 00 00 00 FF [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 03 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [19:15:16]RAPDU: 90 00 [19:15:16]wFMCommunicate OK [19:15:16]wFMCommunicate request_size=255 [19:15:16]MH_SAM_APDU [19:15:16]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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 E4 00 00 00 F4 03 04 00 45 D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 [19:15:16]Write to MH i2c: E2 02 01 69 1E 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 E4 00 00 00 F4 03 04 00 45 D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 00 00 1D [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=11 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 02 02 06 2C 5A 71 8A B1 5B [19:15:17]Write to MH i2c: E2 0E 00 6A 1E 80 0D 02 02 06 00 2C 5A 71 8A B1 5B 00 00 9B [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 03 02 [19:15:17]Write to MH i2c: E2 08 00 6B 1E 80 0D 03 02 00 00 00 00 04 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0B 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0B 00 6B 1E 00 A4 D4 7A 17 A2 0D 48 23 90 00 28 [19:15:17]RAPDU: A4 D4 7A 17 A2 0D 48 23 90 00 [19:15:17]wFMCommunicate OK [19:15:17]SAM_PROTO_SignData done [19:15:17]FM_MakeSignedData done [19:15:17]CreateOFDProtocolMessage [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 11 00 00 [19:15:17]Write to MH i2c: E2 08 00 6C 1E 80 11 00 00 00 00 00 00 04 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 17 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 17 00 6C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5F [19:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:15:17]wFMCommunicate OK [19:15:17]CreateOFDProtocolMessage done [19:15:17]OFDSenderStorePacket 139751 [19:15:17]StoreOFDPacket docnum=139751 [19:15: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 10 01 00 00 52 EC 08 01 00 45 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 E4 00 00 00 F4 03 04 00 45 D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2C 5A 71 8A B1 5B A4 D4 7A 17 A2 0D 48 23 [19:15:17]CheckFolder [19:15:17]dirname=/storage/ofd_packets [19:15:17]CheckFolder done [19:15:17]ProducePacketName [19:15:17]name=ofd_packets/00139751 [19:15:17]NVStorageSaveData ofd_packets/00139751 [19:15:17]File name is /storage/ofd_packets/00139751 [19:15:17]Write 302 bytes [19:15:17]NVStorageSaveData done [19:15:17]OFDSenderStorePacket done [19:15:17]KKMCreateOFDPacket done [19:15:17]NVStorageSaveData kkm_last_timestamp [19:15:17]File name is /storage/kkm_last_timestamp [19:15:17]Write 4 bytes [19:15:17]NVStorageSaveData done [19:15:17]ExternCall_PrintAddStr [19:15:17]wPrintStart [19:15:17]Write to MH i2c: 01 00 00 6D 1E 8B [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 07 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 FF 0F A0 [19:15:17]RasterBufferAndPrint [19:15:17]line Счет N : (1)1095430 [19:15:17]line ИНН: 02508201610067 [19:15:17]line Контрольно-Кассовый Чек [19:15:17]line ПРОДАЖА [19:15:17]line ТРК (МРК, ГНК) : 41 [19:15:17]line Товар: 2710194210 [19:15:17]line ДТ(л)-К-2 [19:15:17]line 26.250 * 76.20 [19:15:17]line = 2000.25 [19:15:17]line НДС 12% НСП 1% [19:15:17]line > о реализуемом товаре [19:15:17]line ОКРУГЛЕНИЕ: -0.25 [19:15:17]line ИТОГО: 2000.00 [19:15:17]line Внесено: 2000.00 [19:15:17]line СДАЧА: 0.00 [19:15:17]line НСП 1% : 17.70 [19:15:17]line НДС 12% : 212.42 [19:15:17]line Наличными: 2000.00 [19:15:17]line Безнал.: 0.00 [19:15:17]line Место: АЗС № 101 "Партнер Нефть" [19:15:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:15:17]line СНО: Общий режим [19:15:17]line Чек 228 31.10.2024 19:15 [19:15:17]line Смена: 557 ФФД: 1.0 [19:15:17]line ЗНМ: 0300000081 [19:15:17]line РНМ: 0000000000091631 [19:15:17]line Версия ККМ: 001 [19:15:17]line ФМ: 0000000000874669 [19:15:17]line ФД: 139751 [19:15:17]line ФПД: 48766963593563 [19:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T191517&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139751&fm=48766963593563&tin=02508201610067®Number=0000000000091631&sum=200000 [19:15:17]written 0, free lines is 4095 [19:15:17]OFD Sender: Processing packet 139751 [packets to send 34, broken 33] [19:15:17]ProducePacketName [19:15:17]name=ofd_packets/00139751 [19:15:17]OFD Sender: To server: pG, [19:15:17]CommunicateWithHost lk.salyk.kg:30040 [19:15:17]ConnectInit lk.salyk.kg [19:15:17]Connected sock=10 [19:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 52 EC 08 01 00 45 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 E4 00 00 00 F4 03 04 00 45 D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2C 5A 71 8A B1 5B A4 D4 7A 17 A2 0D 48 23 [19:15: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 A9 7C 47 00 FB 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 21 02 00 F4 03 04 00 F2 82 23 67 B6 04 01 00 00 5E 1C 85 0D 70 35 A0 3E [19:15:17]CommunicateWithHost err = 0 [19:15:17]CheckOFDResponse [19:15:17]1017 (14) - 77093643461234 [19:15:17]1041 (16) - 0000000000874669 [19:15:17]1040 (4) - 139751 [19:15:17]1012 (4) - 31.10.2024 13:15 [19:15:17]1206 (1) - 0 [19:15:17]OFD Sender: Remove packet 139751 [19:15:17]ProducePacketName [19:15:17]name=ofd_packets/00139751 [19:15:17]NVStorageDeleteData [19:15:18]Write to MH i2c: 01 00 00 98 1E B6 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 EE 0C B7 [19:15:18]RasterBufferAndPrint [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]written 0, free lines is 3316 [19:15:18]MH_Cut [19:15:18]Write to MH i2c: D1 01 00 9F 1E 01 8F [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 01 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 01 00 9F 1E 00 8E [19:15:18]Write to MH i2c: 01 00 00 A0 1E BE [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]OFD Sender: No OFD packet to send [19:15:18]*** Cut start [19:15:18]*** Partial cut [19:15:18]*** CUTSNS_PIN = 1 [19:15:18]*** CUTSNS_PIN = 0 [19:15:19]*** Brake cut motor [19:15:19]Read from MH i2c: 01 [19:15:19]MH_I2C_Read... [19:15:19]*** Stop cut motor [19:15:19]*** Cut end [19:15:19]Read from MH i2c: 01 07 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 FF 0F D3 [19:15:19]process_action close_receipt done [19:15:19]requested_data is exist [19:15:19]produce_requested_data [19:15:19]requested_item fm.sn is exist - process it [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 11 00 00 [19:15:19]Write to MH i2c: E2 08 00 A1 1E 80 11 00 00 00 00 00 00 39 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 17 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 17 00 A1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [19:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:15:19]wFMCommunicate OK [19:15:19]requested_item fd.num is exist - process it [19:15:19]SAM_PROTO_GetFieldsCounters [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 13 00 00 [19:15:19]Write to MH i2c: E2 08 00 A2 1E 80 13 00 00 00 00 00 00 3C [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 62 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 62 00 A2 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [19:15: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 E7 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:19]wFMCommunicate OK [19:15:19]SAM_PROTO_GetFieldsCounters done [19:15:19]requested_item shift.num is exist - process it [19:15:19]requested_item shift.opened is exist - process it [19:15:19]req_shift_opened [19:15:19]FM_GetShiftState [19:15:19]SAM_PROTO_GetShiftState [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 13 01 00 [19:15:19]Write to MH i2c: E2 08 00 A3 1E 80 13 01 00 00 00 00 00 3E [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 0E 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 0E 00 A3 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 67 [19:15:19]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:15:19]wFMCommunicate OK [19:15:19]SAM_PROTO_GetShiftState done [19:15:19]FM_GetShiftState done [19:15:19]req_shift_opened done [19:15:19]requested_item shift.open_date is exist - process it [19:15:19]req_shift_open_date [19:15:19]req_shift_open_date done [19:15:19]produce_requested_data done [19:15:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139751,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:15:19]process_action_free close_receipt [19:15:19]json_value_free [19:15:19]json_value_free done [19:15:19]process_json_proto returns [19:15:19]Send response to host [19:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139751,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:15:19]free response buf [19:15:19]execute_script done [19:15:19]execute_script returns [19:15:19]free content buf [19:15:19]Sock 9.Close socket [19:15:19]Sock 9.Thread stoped [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:17]accept exits with 7 [19:18:17]New connection [19:18:17]New thread 3066654052 created [19:18:17]Thread 3066510692 joined [19:18:17]Waiting for new connection... [19:18:17] Sock 7.Parse request [19:18:17]Sock 7.Check first char [19:18:17]Sock 7.First char is OK [19:18:17]request: POST /json_proto HTTP/1.0 [19:18:17]Method: POST [19:18:17]URL: /json_proto [19:18:17]Method is POST - this is cgi request [19:18:17]url: /json_proto [19:18:17]query_string will be loaded in cgi processing [19:18:17]execute_cgi json_proto POST (null) [19:18:17]execute_cgi path=json_proto method=POST [19:18:17]POST find Content-Length [19:18:17]Host: 172.17.50.196:8080 [19:18:17]Content-Length: 639 [19:18:17]Content-Type: application/json [19:18:17] [19:18:17]POST finish read [19:18:17]Found Content-Length = 639 [19:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335586", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:17]execute_script... [19:18:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335586", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:17]POST & json_proto [19:18:17]process_json_proto [19:18:17]json parsed OK: [19:18:17]protocol is kg_v1.0 [19:18:17]action value=close_receipt [19:18:17]process_action close_receipt [19:18:17]cmd_close_receipt [19:18:17]MH_GetDate [19:18:17]Write to MH i2c: F0 00 00 A4 1E B1 [19:18:17]Write i2c OK [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: F0 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: F0 09 00 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: F0 09 00 A4 1E 00 FB D7 23 67 72 0D 1C 67 18 [19:18:17]GetLastDocTimeStamp 1730402117 [19:18:17]current date 1730402299 [19:18:17]FM_GetShiftState [19:18:17]SAM_PROTO_GetShiftState [19:18:17]wFMCommunicate request_size=4 [19:18:17]MH_SAM_APDU [19:18:17]CAPDU: 80 13 01 00 [19:18:17]Write to MH i2c: E2 08 00 A5 1E 80 13 01 00 00 00 00 00 40 [19:18:17]Write i2c OK [19:18:17]MH_I2C_Read... [19:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:17]Read from MH i2c: E2 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: E2 0E 00 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: E2 0E 00 A5 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 69 [19:18:17]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:18:17]wFMCommunicate OK [19:18:17]SAM_PROTO_GetShiftState done [19:18:17]FM_GetShiftState done [19:18:17]opened in 1730332621 [19:18:17]opened+sec_in_day 1730419021 [19:18:17]quantity*price = 12500 [19:18:17]sum+1 = 12501 [19:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 229 31.10.2024 19:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139752 ФПД: 123446485795141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T191819&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139752&fm=123446485795141&tin=02508201610067®Number=0000000000091631&sum=12500 0 [19:18:18]StoreToDocumentArchive [19:18:18]shift 557 fd 139752 [19:18:18]save to /storage/0557/doc_00139752 [19:18:18]save last doc name /storage/0557/doc_00139752 to /storage/kkm_last_doc_name [19:18:18]save OK [19:18:18]Clear old archive folders... [19:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:18:18]tlvbuf is B6F0F600 [19:18:18]SAM_PROTO_ClearQueue [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 09 00 00 [19:18:18]Write to MH i2c: E2 08 00 B2 1E 80 09 00 00 00 00 00 00 42 [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [19:18:18]RAPDU: 90 00 [19:18:18]wFMCommunicate OK [19:18:18]SAM_PROTO_ClearQueue done [19:18:18]KKMCreateOFDPacket [19:18:18]OFDProtocolAddRootSTLVToBuf [19:18:18]FM_MakeSignedData [19:18:18]FM_MakeSignedData [19:18:18]SAM_PROTO_SignData [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 0D 01 02 [19:18:18]Write to MH i2c: E2 08 00 B3 1E 80 0D 01 02 00 00 00 00 4A [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [19:18:18]RAPDU: 90 00 [19:18:18]wFMCommunicate OK [19:18:18]wFMCommunicate request_size=255 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FB D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:18:18]Write to MH i2c: E2 02 01 B4 1E 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FB D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 BA [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]OFD Sender: No OFD packet to send [19:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [19:18:18]RAPDU: 90 00 [19:18:18]wFMCommunicate OK [19:18:18]wFMCommunicate request_size=30 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 E8 21 02 00 35 04 06 00 70 46 1F EF 41 45 [19:18:18]Write to MH i2c: E2 21 00 B5 1E 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 E8 21 02 00 35 04 06 00 70 46 1F EF 41 45 00 00 A3 [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [19:18:18]RAPDU: 90 00 [19:18:18]wFMCommunicate OK [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 0D 03 02 [19:18:18]Write to MH i2c: E2 08 00 B6 1E 80 0D 03 02 00 00 00 00 4F [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 0B 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 0B 00 B6 1E 00 74 9C 71 2E DC F2 83 48 90 00 98 [19:18:18]RAPDU: 74 9C 71 2E DC F2 83 48 90 00 [19:18:18]wFMCommunicate OK [19:18:18]SAM_PROTO_SignData done [19:18:18]FM_MakeSignedData done [19:18:18]CreateOFDProtocolMessage [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 11 00 00 [19:18:18]Write to MH i2c: E2 08 00 B7 1E 80 11 00 00 00 00 00 00 4F [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:19]Read from MH i2c: E2 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 17 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: E2 17 00 B7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [19:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:18:19]wFMCommunicate OK [19:18:19]CreateOFDProtocolMessage done [19:18:19]OFDSenderStorePacket 139752 [19:18:19]StoreOFDPacket docnum=139752 [19:18:19]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 CB 9E 1B 01 F3 90 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FB D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 46 1F EF 41 45 74 9C 71 2E DC F2 83 48 [19:18:19]CheckFolder [19:18:19]dirname=/storage/ofd_packets [19:18:19]CheckFolder done [19:18:19]ProducePacketName [19:18:19]name=ofd_packets/00139752 [19:18:19]NVStorageSaveData ofd_packets/00139752 [19:18:19]File name is /storage/ofd_packets/00139752 [19:18:19]Write 321 bytes [19:18:19]NVStorageSaveData done [19:18:19]OFDSenderStorePacket done [19:18:19]KKMCreateOFDPacket done [19:18:19]NVStorageSaveData kkm_last_timestamp [19:18:19]File name is /storage/kkm_last_timestamp [19:18:19]Write 4 bytes [19:18:19]NVStorageSaveData done [19:18:19]ExternCall_PrintAddStr [19:18:19]wPrintStart [19:18:19]Write to MH i2c: 01 00 00 B8 1E D6 [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 07 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 FF 0F EB [19:18:19]RasterBufferAndPrint [19:18:19]line Счет N : (3)335586 [19:18:19]line ИНН: 02508201610067 [19:18:19]line Контрольно-Кассовый Чек [19:18:19]line ПРОДАЖА [19:18:19]line Товар: 5449000006271 [19:18:19]line Напиток Фанта 1л [19:18:19]line 1.000 * 125.00 [19:18:19]line = 125.00 [19:18:19]line НДС 12% НСП 1% [19:18:19]line > о реализуемом товаре [19:18:19]line ИТОГО: 125.00 [19:18:19]line НСП 1% : 1.11 [19:18:19]line НДС 12% : 13.27 [19:18:19]line Наличными: 125.00 [19:18:19]line Безнал.: 0.00 [19:18:19]line Место: АЗС № 101 "Партнер Нефть" [19:18:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:18:19]line СНО: Общий режим [19:18:19]line Чек 229 31.10.2024 19:18 [19:18:19]line Смена: 557 ФФД: 1.0 [19:18:19]line ЗНМ: 0300000081 [19:18:19]line РНМ: 0000000000091631 [19:18:19]line Версия ККМ: 001 [19:18:19]line ФМ: 0000000000874669 [19:18:19]line ФД: 139752 [19:18:19]line ФПД: 123446485795141 [19:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T191819&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139752&fm=123446485795141&tin=02508201610067®Number=0000000000091631&sum=12500 [19:18:19]OFD Sender: Processing packet 139752 [packets to send 34, broken 33] [19:18:19]ProducePacketName [19:18:19]name=ofd_packets/00139752 [19:18:19]OFD Sender: To server: pG, [19:18:19]CommunicateWithHost lk.salyk.kg:30040 [19:18:19]ConnectInit lk.salyk.kg [19:18:19]line 0 [19:18:19]written 0, free lines is 4095 [19:18:19]Connected sock=10 [19:18: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 23 01 00 00 CB 9E 1B 01 F3 90 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FB D7 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 70 46 1F EF 41 45 74 9C 71 2E DC F2 83 48 [19:18: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 58 82 47 00 DD 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 21 02 00 F4 03 04 00 A8 83 23 67 B6 04 01 00 00 D1 9C 91 79 CD 90 A4 45 [19:18:19]CommunicateWithHost err = 0 [19:18:19]CheckOFDResponse [19:18:19]1017 (14) - 77093643461234 [19:18:19]1041 (16) - 0000000000874669 [19:18:19]1040 (4) - 139752 [19:18:19]1012 (4) - 31.10.2024 13:18 [19:18:19]1206 (1) - 0 [19:18:19]OFD Sender: Remove packet 139752 [19:18:19]ProducePacketName [19:18:19]name=ofd_packets/00139752 [19:18:19]NVStorageDeleteData [19:18:19]Write to MH i2c: 01 00 00 E0 1E FE [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 07 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: 01 07 00 E0 1E 00 00 00 00 00 16 0D 28 [19:18:19]RasterBufferAndPrint [19:18:19]line [19:18:19]line [19:18:19]line [19:18:19]line [19:18:19]line [19:18:19]written 0, free lines is 3357 [19:18:19]MH_Cut [19:18:19]Write to MH i2c: D1 01 00 E7 1E 01 D7 [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: D1 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: D1 01 00 [19:18:19]MH_I2C_Read... [19:18:19]Read from MH i2c: D1 01 00 E7 1E 00 D6 [19:18:19]Write to MH i2c: 01 00 00 E8 1E 06 [19:18:19]Write i2c OK [19:18:19]MH_I2C_Read... [19:18:20]OFD Sender: No OFD packet to send [19:18:20]*** Cut start [19:18:20]*** Partial cut [19:18:20]*** CUTSNS_PIN = 1 [19:18:20]*** CUTSNS_PIN = 0 [19:18:20]*** Brake cut motor [19:18:21]Read from MH i2c: 01 [19:18:21]MH_I2C_Read... [19:18:21]*** Stop cut motor [19:18:21]*** Cut end [19:18:21]Read from MH i2c: 01 07 00 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: 01 07 00 E8 1E 00 00 00 00 00 FF 0F 1B [19:18:21]process_action close_receipt done [19:18:21]requested_data is exist [19:18:21]produce_requested_data [19:18:21]requested_item fm.sn is exist - process it [19:18:21]wFMCommunicate request_size=4 [19:18:21]MH_SAM_APDU [19:18:21]CAPDU: 80 11 00 00 [19:18:21]Write to MH i2c: E2 08 00 E9 1E 80 11 00 00 00 00 00 00 81 [19:18:21]Write i2c OK [19:18:21]MH_I2C_Read... [19:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:21]Read from MH i2c: E2 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 17 00 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 17 00 E9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DC [19:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:18:21]wFMCommunicate OK [19:18:21]requested_item fd.num is exist - process it [19:18:21]SAM_PROTO_GetFieldsCounters [19:18:21]wFMCommunicate request_size=4 [19:18:21]MH_SAM_APDU [19:18:21]CAPDU: 80 13 00 00 [19:18:21]Write to MH i2c: E2 08 00 EA 1E 80 13 00 00 00 00 00 00 84 [19:18:21]Write i2c OK [19:18:21]MH_I2C_Read... [19:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:21]Read from MH i2c: E2 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 62 00 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 62 00 EA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [19:18: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 E8 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:21]wFMCommunicate OK [19:18:21]SAM_PROTO_GetFieldsCounters done [19:18:21]requested_item shift.num is exist - process it [19:18:21]requested_item shift.opened is exist - process it [19:18:21]req_shift_opened [19:18:21]FM_GetShiftState [19:18:21]SAM_PROTO_GetShiftState [19:18:21]wFMCommunicate request_size=4 [19:18:21]MH_SAM_APDU [19:18:21]CAPDU: 80 13 01 00 [19:18:21]Write to MH i2c: E2 08 00 EB 1E 80 13 01 00 00 00 00 00 86 [19:18:21]Write i2c OK [19:18:21]MH_I2C_Read... [19:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:21]Read from MH i2c: E2 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 0E 00 [19:18:21]MH_I2C_Read... [19:18:21]Read from MH i2c: E2 0E 00 EB 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AF [19:18:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:18:21]wFMCommunicate OK [19:18:21]SAM_PROTO_GetShiftState done [19:18:21]FM_GetShiftState done [19:18:21]req_shift_opened done [19:18:21]requested_item shift.open_date is exist - process it [19:18:21]req_shift_open_date [19:18:21]req_shift_open_date done [19:18:21]produce_requested_data done [19:18:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139752,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:18:21]process_action_free close_receipt [19:18:21]json_value_free [19:18:21]json_value_free done [19:18:21]process_json_proto returns [19:18:21]Send response to host [19:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139752,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:18:21]free response buf [19:18:21]execute_script done [19:18:21]execute_script returns [19:18:21]free content buf [19:18:21]Sock 7.Close socket [19:18:21]Sock 7.Thread stoped [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:51]accept exits with 9 [19:23:51]New connection [19:23:51]New thread 3066510692 created [19:23:51]Thread 3066654052 joined [19:23:51]Waiting for new connection... [19:23:51] Sock 9.Parse request [19:23:51]Sock 9.Check first char [19:23:51]Sock 9.First char is OK [19:23:51]request: POST /json_proto HTTP/1.0 [19:23:51]Method: POST [19:23:51]URL: /json_proto [19:23:51]Method is POST - this is cgi request [19:23:51]url: /json_proto [19:23:51]query_string will be loaded in cgi processing [19:23:51]execute_cgi json_proto POST (null) [19:23:51]execute_cgi path=json_proto method=POST [19:23:51]POST find Content-Length [19:23:51]Host: 172.17.50.196:8080 [19:23:51]Content-Length: 678 [19:23:51]Content-Type: application/json [19:23:51] [19:23:51]POST finish read [19:23:51]Found Content-Length = 678 [19:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095437", "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 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:51]execute_script... [19:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095437", "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 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:51]POST & json_proto [19:23:51]process_json_proto [19:23:51]json parsed OK: [19:23:51]protocol is kg_v1.0 [19:23:51]action value=close_receipt [19:23:51]process_action close_receipt [19:23:51]cmd_close_receipt [19:23:51]MH_GetDate [19:23:51]Write to MH i2c: F0 00 00 EC 1E F9 [19:23:51]Write i2c OK [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: F0 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: F0 09 00 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: F0 09 00 EC 1E 00 49 D9 23 67 72 0D 1C 67 B0 [19:23:51]GetLastDocTimeStamp 1730402299 [19:23:51]current date 1730402633 [19:23:51]FM_GetShiftState [19:23:51]SAM_PROTO_GetShiftState [19:23:51]wFMCommunicate request_size=4 [19:23:51]MH_SAM_APDU [19:23:51]CAPDU: 80 13 01 00 [19:23:51]Write to MH i2c: E2 08 00 ED 1E 80 13 01 00 00 00 00 00 88 [19:23:51]Write i2c OK [19:23:51]MH_I2C_Read... [19:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:51]Read from MH i2c: E2 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: E2 0E 00 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: E2 0E 00 ED 1E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B1 [19:23:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:23:51]wFMCommunicate OK [19:23:51]SAM_PROTO_GetShiftState done [19:23:51]FM_GetShiftState done [19:23:51]opened in 1730332621 [19:23:51]opened+sec_in_day 1730419021 [19:23:51]quantity*price = 60009 [19:23:51]sum+1 = 60010 [19:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 230 31.10.2024 19:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139753 ФПД: 108636157317661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T192353&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139753&fm=108636157317661&tin=02508201610067®Number=0000000000091631&sum=60000 [19:23:52]StoreToDocumentArchive [19:23:52]shift 557 fd 139753 [19:23:52]save to /storage/0557/doc_00139753 [19:23:52]save last doc name /storage/0557/doc_00139753 to /storage/kkm_last_doc_name [19:23:52]save OK [19:23:52]Clear old archive folders... [19:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:52]tlvbuf is B6E5F090 [19:23:52]SAM_PROTO_ClearQueue [19:23:52]wFMCommunicate request_size=4 [19:23:52]MH_SAM_APDU [19:23:52]CAPDU: 80 09 00 00 [19:23:52]Write to MH i2c: E2 08 00 FA 1E 80 09 00 00 00 00 00 00 8A [19:23:52]Write i2c OK [19:23:52]MH_I2C_Read... [19:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:52]Read from MH i2c: E2 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: E2 03 00 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [19:23:52]RAPDU: 90 00 [19:23:52]wFMCommunicate OK [19:23:52]SAM_PROTO_ClearQueue done [19:23:52]KKMCreateOFDPacket [19:23:52]OFDProtocolAddRootSTLVToBuf [19:23:52]FM_MakeSignedData [19:23:52]FM_MakeSignedData [19:23:52]SAM_PROTO_SignData [19:23:52]wFMCommunicate request_size=4 [19:23:52]MH_SAM_APDU [19:23:52]CAPDU: 80 0D 01 02 [19:23:52]Write to MH i2c: E2 08 00 FB 1E 80 0D 01 02 00 00 00 00 92 [19:23:52]Write i2c OK [19:23:52]MH_I2C_Read... [19:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:52]Read from MH i2c: E2 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: E2 03 00 [19:23:52]MH_I2C_Read... [19:23:52]Read from MH i2c: E2 03 00 FB 1E 00 90 00 8D [19:23:52]RAPDU: 90 00 [19:23:52]wFMCommunicate OK [19:23:52]wFMCommunicate request_size=255 [19:23:52]MH_SAM_APDU [19:23:52]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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 D9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 62 [19:23:52]Write to MH i2c: E2 02 01 FC 1E 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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 D9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 62 00 00 2D [19:23:52]Write i2c OK [19:23:52]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 FC 1E 00 90 00 8E [19:23:53]RAPDU: 90 00 [19:23:53]wFMCommunicate OK [19:23:53]wFMCommunicate request_size=10 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 0D 02 02 05 CD D3 91 12 1D [19:23:53]Write to MH i2c: E2 0D 00 FD 1E 80 0D 02 02 05 00 CD D3 91 12 1D 00 00 FF [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [19:23:53]RAPDU: 90 00 [19:23:53]wFMCommunicate OK [19:23:53]wFMCommunicate request_size=4 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 0D 03 02 [19:23:53]Write to MH i2c: E2 08 00 FE 1E 80 0D 03 02 00 00 00 00 97 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 0B 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 0B 00 FE 1E 00 D2 68 58 76 87 A3 69 EE 90 00 21 [19:23:53]RAPDU: D2 68 58 76 87 A3 69 EE 90 00 [19:23:53]wFMCommunicate OK [19:23:53]SAM_PROTO_SignData done [19:23:53]FM_MakeSignedData done [19:23:53]CreateOFDProtocolMessage [19:23:53]wFMCommunicate request_size=4 [19:23:53]MH_SAM_APDU [19:23:53]CAPDU: 80 11 00 00 [19:23:53]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:53]Read from MH i2c: E2 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 17 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F2 [19:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:23:53]wFMCommunicate OK [19:23:53]CreateOFDProtocolMessage done [19:23:53]OFDSenderStorePacket 139753 [19:23:53]StoreOFDPacket docnum=139753 [19:23: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 0F 01 00 00 C3 FE 07 01 51 21 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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 D9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 62 CD D3 91 12 1D D2 68 58 76 87 A3 69 EE [19:23:53]CheckFolder [19:23:53]dirname=/storage/ofd_packets [19:23:53]CheckFolder done [19:23:53]ProducePacketName [19:23:53]name=ofd_packets/00139753 [19:23:53]NVStorageSaveData ofd_packets/00139753 [19:23:53]File name is /storage/ofd_packets/00139753 [19:23:53]Write 301 bytes [19:23:53]NVStorageSaveData done [19:23:53]OFDSenderStorePacket done [19:23:53]KKMCreateOFDPacket done [19:23:53]NVStorageSaveData kkm_last_timestamp [19:23:53]File name is /storage/kkm_last_timestamp [19:23:53]Write 4 bytes [19:23:53]NVStorageSaveData done [19:23:53]ExternCall_PrintAddStr [19:23:53]wPrintStart [19:23:53]Write to MH i2c: 01 00 00 00 1F 1F [19:23:53]Write i2c OK [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: 01 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: 01 07 00 [19:23:53]MH_I2C_Read... [19:23:53]Read from MH i2c: 01 07 00 00 1F 00 00 00 00 00 FF 0F 34 [19:23:53]RasterBufferAndPrint [19:23:53]line Счет N : (1)1095437 [19:23:53]line ИНН: 02508201610067 [19:23:53]line Контрольно-Кассовый Чек [19:23:53]line ПРОДАЖА [19:23:53]line ТРК (МРК, ГНК) : 63 [19:23:53]line Товар: 2710124130 [19:23:53]line Аи-92-К-2 [19:23:53]line 8.970 * 66.90 [19:23:53]line = 600.09 [19:23:53]line НДС 12% НСП 1% [19:23:53]line > о реализуемом товаре [19:23:53]line ОКРУГЛЕНИЕ: -0.09 [19:23:53]line ИТОГО: 600.00 [19:23:53]line Внесено: 600.00 [19:23:53]line СДАЧА: 0.00 [19:23:53]line НСП 1% : 5.31 [19:23:53]line НДС 12% : 63.73 [19:23:53]line Наличными: 600.00 [19:23:53]line Безнал.: 0.00 [19:23:53]line Место: АЗС № 101 "Партнер Нефть" [19:23:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:23:53]line СНО: Общий режим [19:23:53]line Чек 230 31.10.2024 19:23 [19:23:53]line Смена: 557 ФФД: 1.0 [19:23:53]line ЗНМ: 0300000081 [19:23:53]line РНМ: 0000000000091631 [19:23:53]line Версия ККМ: 001 [19:23:53]line ФМ: 0000000000874669 [19:23:53]line ФД: 139753 [19:23:53]line ФПД: 108636157317661 [19:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T192353&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139753&fm=108636157317661&tin=02508201610067®Number=0000000000091631&sum=60000 [19:23:53]OFD Sender: Processing packet 139753 [packets to send 34, broken 33] [19:23:53]ProducePacketName [19:23:53]name=ofd_packets/00139753 [19:23:53]OFD Sender: To server: pG, [19:23:53]CommunicateWithHost lk.salyk.kg:30040 [19:23:53]ConnectInit lk.salyk.kg [19:23:53]written 0, free lines is 4095 [19:23:53]Connected sock=10 [19:23: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 0F 01 00 00 C3 FE 07 01 51 21 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 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 D9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 62 CD D3 91 12 1D D2 68 58 76 87 A3 69 EE [19:23: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 9F 9D 47 00 00 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 E9 21 02 00 F4 03 04 00 F6 84 23 67 B6 04 01 00 00 8D 96 A3 E3 AC B9 BD 45 [19:23:53]CommunicateWithHost err = 0 [19:23:53]CheckOFDResponse [19:23:53]1017 (14) - 77093643461234 [19:23:53]1041 (16) - 0000000000874669 [19:23:53]1040 (4) - 139753 [19:23:53]1012 (4) - 31.10.2024 13:24 [19:23:53]1206 (1) - 0 [19:23:53]OFD Sender: Remove packet 139753 [19:23:53]ProducePacketName [19:23:53]name=ofd_packets/00139753 [19:23:53]NVStorageDeleteData [19:23:54]Write to MH i2c: 01 00 00 2B 1F 4A [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: 01 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: 01 07 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: 01 07 00 2B 1F 00 00 00 00 00 EC 0C 49 [19:23:54]RasterBufferAndPrint [19:23:54]line [19:23:54]line [19:23:54]line [19:23:54]line [19:23:54]line [19:23:54]written 0, free lines is 3314 [19:23:54]MH_Cut [19:23:54]Write to MH i2c: D1 01 00 32 1F 01 23 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: D1 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: D1 01 00 [19:23:54]MH_I2C_Read... [19:23:54]Read from MH i2c: D1 01 00 32 1F 00 22 [19:23:54]Write to MH i2c: 01 00 00 33 1F 52 [19:23:54]Write i2c OK [19:23:54]MH_I2C_Read... [19:23:54]OFD Sender: No OFD packet to send [19:23:54]*** Cut start [19:23:54]*** Partial cut [19:23:54]*** CUTSNS_PIN = 1 [19:23:54]*** CUTSNS_PIN = 0 [19:23:54]*** Brake cut motor [19:23:55]Read from MH i2c: 01 [19:23:55]MH_I2C_Read... [19:23:55]*** Stop cut motor [19:23:55]*** Cut end [19:23:55]Read from MH i2c: 01 07 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: 01 07 00 33 1F 00 00 00 00 00 FF 0F 67 [19:23:55]process_action close_receipt done [19:23:55]requested_data is exist [19:23:55]produce_requested_data [19:23:55]requested_item fm.sn is exist - process it [19:23:55]wFMCommunicate request_size=4 [19:23:55]MH_SAM_APDU [19:23:55]CAPDU: 80 11 00 00 [19:23:55]Write to MH i2c: E2 08 00 34 1F 80 11 00 00 00 00 00 00 CD [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:55]Read from MH i2c: E2 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 17 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 17 00 34 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 28 [19:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:23:55]wFMCommunicate OK [19:23:55]requested_item fd.num is exist - process it [19:23:55]SAM_PROTO_GetFieldsCounters [19:23:55]wFMCommunicate request_size=4 [19:23:55]MH_SAM_APDU [19:23:55]CAPDU: 80 13 00 00 [19:23:55]Write to MH i2c: E2 08 00 35 1F 80 13 00 00 00 00 00 00 D0 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:55]Read from MH i2c: E2 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 62 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 62 00 35 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [19:23: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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:55]wFMCommunicate OK [19:23:55]SAM_PROTO_GetFieldsCounters done [19:23:55]requested_item shift.num is exist - process it [19:23:55]requested_item shift.opened is exist - process it [19:23:55]req_shift_opened [19:23:55]FM_GetShiftState [19:23:55]SAM_PROTO_GetShiftState [19:23:55]wFMCommunicate request_size=4 [19:23:55]MH_SAM_APDU [19:23:55]CAPDU: 80 13 01 00 [19:23:55]Write to MH i2c: E2 08 00 36 1F 80 13 01 00 00 00 00 00 D2 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:55]Read from MH i2c: E2 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0E 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0E 00 36 1F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FB [19:23:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:23:55]wFMCommunicate OK [19:23:55]SAM_PROTO_GetShiftState done [19:23:55]FM_GetShiftState done [19:23:55]req_shift_opened done [19:23:55]requested_item shift.open_date is exist - process it [19:23:55]req_shift_open_date [19:23:55]req_shift_open_date done [19:23:55]produce_requested_data done [19:23:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139753,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:23:55]process_action_free close_receipt [19:23:55]json_value_free [19:23:55]json_value_free done [19:23:55]process_json_proto returns [19:23:55]Send response to host [19:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139753,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:23:55]free response buf [19:23:55]execute_script done [19:23:55]execute_script returns [19:23:55]free content buf [19:23:55]Sock 9.Close socket [19:23:55]Sock 9.Thread stoped [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:01]accept exits with 7 [19:30:01]New connection [19:30:01]New thread 3066654052 created [19:30:01]Thread 3066510692 joined [19:30:01]Waiting for new connection... [19:30:01] Sock 7.Parse request [19:30:01]Sock 7.Check first char [19:30:01]Sock 7.First char is OK [19:30:01]request: POST /json_proto HTTP/1.0 [19:30:01]Method: POST [19:30:01]URL: /json_proto [19:30:01]Method is POST - this is cgi request [19:30:01]url: /json_proto [19:30:01]query_string will be loaded in cgi processing [19:30:01]execute_cgi json_proto POST (null) [19:30:01]execute_cgi path=json_proto method=POST [19:30:01]POST find Content-Length [19:30:01]Host: 172.17.50.196:8080 [19:30:01]Content-Length: 1716 [19:30:01]Content-Type: application/json [19:30:01] [19:30:01]POST finish read [19:30:01]Found Content-Length = 1716 [19:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335587", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 478.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:01]execute_script... [19:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335587", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 478.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:02]POST & json_proto [19:30:02]process_json_proto [19:30:02]json parsed OK: [19:30:02]protocol is kg_v1.0 [19:30:02]action value=close_receipt [19:30:02]process_action close_receipt [19:30:02]cmd_close_receipt [19:30:02]MH_GetDate [19:30:02]Write to MH i2c: F0 00 00 37 1F 45 [19:30:02]Write i2c OK [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: F0 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: F0 09 00 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: F0 09 00 37 1F 00 BC DA 23 67 72 0D 1C 67 70 [19:30:02]GetLastDocTimeStamp 1730402633 [19:30:02]current date 1730403004 [19:30:02]FM_GetShiftState [19:30:02]SAM_PROTO_GetShiftState [19:30:02]wFMCommunicate request_size=4 [19:30:02]MH_SAM_APDU [19:30:02]CAPDU: 80 13 01 00 [19:30:02]Write to MH i2c: E2 08 00 38 1F 80 13 01 00 00 00 00 00 D4 [19:30:02]Write i2c OK [19:30:02]MH_I2C_Read... [19:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:02]Read from MH i2c: E2 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: E2 0E 00 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: E2 0E 00 38 1F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FD [19:30:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:30:02]wFMCommunicate OK [19:30:02]SAM_PROTO_GetShiftState done [19:30:02]FM_GetShiftState done [19:30:02]opened in 1730332621 [19:30:02]opened+sec_in_day 1730419021 [19:30:02]quantity*price = 15500 [19:30:02]sum+1 = 15501 [19:30:02]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 478.00 НСП 1% : 4.23 НДС 12% : 50.75 Наличными: 478.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 231 31.10.2024 19:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139754 ФПД: 238452585977169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193004&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139754&fm=238452585977169&tin=02508201610067®Number=0000000000091631&sum=47800 0 [19:30:03]StoreToDocumentArchive [19:30:03]shift 557 fd 139754 [19:30:03]save to /storage/0557/doc_00139754 [19:30:03]save last doc name /storage/0557/doc_00139754 to /storage/kkm_last_doc_name [19:30:03]save OK [19:30:03]Clear old archive folders... [19:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=714 [19:30:03]tlvbuf is 00A94910 [19:30:03]SAM_PROTO_ClearQueue [19:30:03]wFMCommunicate request_size=4 [19:30:03]MH_SAM_APDU [19:30:03]CAPDU: 80 09 00 00 [19:30:03]Write to MH i2c: E2 08 00 45 1F 80 09 00 00 00 00 00 00 D6 [19:30:03]Write i2c OK [19:30:03]MH_I2C_Read... [19:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:03]Read from MH i2c: E2 [19:30:03]MH_I2C_Read... [19:30:03]Read from MH i2c: E2 03 00 [19:30:03]MH_I2C_Read... [19:30:03]Read from MH i2c: E2 03 00 45 1F 00 90 00 D8 [19:30:03]RAPDU: 90 00 [19:30:03]wFMCommunicate OK [19:30:03]SAM_PROTO_ClearQueue done [19:30:03]KKMCreateOFDPacket [19:30:03]OFDProtocolAddRootSTLVToBuf [19:30:03]FM_MakeSignedData [19:30:03]FM_MakeSignedData [19:30:03]SAM_PROTO_SignData [19:30:03]wFMCommunicate request_size=4 [19:30:03]MH_SAM_APDU [19:30:03]CAPDU: 80 0D 01 02 [19:30:03]Write to MH i2c: E2 08 00 46 1F 80 0D 01 02 00 00 00 00 DE [19:30:03]Write i2c OK [19:30:03]MH_I2C_Read... [19:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:03]Read from MH i2c: E2 [19:30:03]MH_I2C_Read... [19:30:03]Read from MH i2c: E2 03 00 [19:30:03]MH_I2C_Read... [19:30:03]Read from MH i2c: E2 03 00 46 1F 00 90 00 D9 [19:30:03]RAPDU: 90 00 [19:30:03]wFMCommunicate OK [19:30:03]wFMCommunicate request_size=255 [19:30:03]MH_SAM_APDU [19:30:03]CAPDU: 80 0D 02 02 FA 03 00 CA 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 [19:30:03]Write to MH i2c: E2 02 01 47 1F 80 0D 02 02 FA 00 03 00 CA 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 00 00 21 [19:30:03]Write i2c OK [19:30:03]MH_I2C_Read... [19:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:03]Read from MH i2c: E2 [19:30:03]MH_I2C_Read... [19:30:03]Read from MH i2c: E2 03 00 [19:30:03]MH_I2C_Read... [19:30:03]Read from MH i2c: E2 03 00 47 1F 00 90 00 DA [19:30:03]RAPDU: 90 00 [19:30:03]wFMCommunicate OK [19:30:03]wFMCommunicate request_size=255 [19:30:03]MH_SAM_APDU [19:30:03]CAPDU: 80 0D 02 02 FA 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [19:30:03]Write to MH i2c: E2 02 01 48 1F 80 0D 02 02 FA 00 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 F5 [19:30:03]Write i2c OK [19:30:03]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 48 1F 00 90 00 DB [19:30:04]RAPDU: 90 00 [19:30:04]wFMCommunicate OK [19:30:04]wFMCommunicate request_size=223 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 0D 02 02 DA 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 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BC DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D8 DF 11 AE D5 51 [19:30:04]Write to MH i2c: E2 E2 00 49 1F 80 0D 02 02 DA 00 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 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BC DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D8 DF 11 AE D5 51 00 00 FF [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [19:30:04]RAPDU: 90 00 [19:30:04]wFMCommunicate OK [19:30:04]wFMCommunicate request_size=4 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 0D 03 02 [19:30:04]Write to MH i2c: E2 08 00 4A 1F 80 0D 03 02 00 00 00 00 E4 [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 0B 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 0B 00 4A 1F 00 39 CA 23 B1 25 97 E0 C3 90 00 1B [19:30:04]RAPDU: 39 CA 23 B1 25 97 E0 C3 90 00 [19:30:04]wFMCommunicate OK [19:30:04]SAM_PROTO_SignData done [19:30:04]FM_MakeSignedData done [19:30:04]CreateOFDProtocolMessage [19:30:04]wFMCommunicate request_size=4 [19:30:04]MH_SAM_APDU [19:30:04]CAPDU: 80 11 00 00 [19:30:04]Write to MH i2c: E2 08 00 4B 1F 80 11 00 00 00 00 00 00 E4 [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:04]Read from MH i2c: E2 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 17 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: E2 17 00 4B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3F [19:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:30:04]wFMCommunicate OK [19:30:04]CreateOFDProtocolMessage done [19:30:04]OFDSenderStorePacket 139754 [19:30:04]StoreOFDPacket docnum=139754 [19:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 DE 02 00 00 B2 75 D6 02 B9 E7 5A 03 01 00 03 00 CA 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BC DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D8 DF 11 AE D5 51 39 CA 23 B1 25 97 E0 C3 [19:30:04]CheckFolder [19:30:04]dirname=/storage/ofd_packets [19:30:04]CheckFolder done [19:30:04]ProducePacketName [19:30:04]name=ofd_packets/00139754 [19:30:04]NVStorageSaveData ofd_packets/00139754 [19:30:04]File name is /storage/ofd_packets/00139754 [19:30:04]Write 764 bytes [19:30:04]NVStorageSaveData done [19:30:04]OFDSenderStorePacket done [19:30:04]KKMCreateOFDPacket done [19:30:04]NVStorageSaveData kkm_last_timestamp [19:30:04]File name is /storage/kkm_last_timestamp [19:30:04]Write 4 bytes [19:30:04]NVStorageSaveData done [19:30:04]ExternCall_PrintAddStr [19:30:04]wPrintStart [19:30:04]Write to MH i2c: 01 00 00 4C 1F 6B [19:30:04]OFD Sender: No OFD packet to send [19:30:04]Write i2c OK [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: 01 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: 01 07 00 [19:30:04]MH_I2C_Read... [19:30:04]Read from MH i2c: 01 07 00 4C 1F 00 00 00 00 00 FF 0F 80 [19:30:04]RasterBufferAndPrint [19:30:04]line Счет N : (3)335587 [19:30:04]line ИНН: 02508201610067 [19:30:04]line Контрольно-Кассовый Чек [19:30:04]line ПРОДАЖА [19:30:04]line Товар: 5449000000439 [19:30:04]line Напиток Кока-Кола 1,5л [19:30:04]line 1.000 * 155.00 [19:30:04]line = 155.00 [19:30:04]line НДС 12% НСП 1% [19:30:04]line > о реализуемом товаре [19:30:04]line Товар: 2000031750019 [19:30:04]line Пакет Партнер Нефть [19:30:04]line 2.000 * 4.00 [19:30:04]line = 8.00 [19:30:04]line НДС 12% НСП 1% [19:30:04]line > о реализуемом товаре [19:30:04]line Товар: 5449000006271 [19:30:04]line Напиток Фанта 1л [19:30:04]line 1.000 * 125.00 [19:30:04]line = 125.00 [19:30:04]line НДС 12% НСП 1% [19:30:04]line > о реализуемом товаре [19:30:04]line Товар: 4870112002775 [19:30:04]line Шок батончик ALBENI BITES 80гр [19:30:04]line 1.000 * 75.00 [19:30:04]line = 75.00 [19:30:04]line НДС 12% НСП 1% [19:30:04]line > о реализуемом товаре [19:30:04]line Товар: 2000036210013 [19:30:04]line Кофе Капучино (GABB TRADE) [19:30:04]line 1.000 * 115.00 [19:30:04]line = 115.00 [19:30:04]line НДС 12% НСП 1% [19:30:04]line > о реализуемом товаре [19:30:04]line ИТОГО: 478.00 [19:30:04]line НСП 1% : 4.23 [19:30:04]line НДС 12% : 50.75 [19:30:04]line Наличными: 478.00 [19:30:04]line Безнал.: 0.00 [19:30:04]line Место: АЗС № 101 "Партнер Нефть" [19:30:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:30:04]line СНО: Общий режим [19:30:04]line Чек 231 31.10.2024 19:30 [19:30:04]line Смена: 557 ФФД: 1.0 [19:30:04]line ЗНМ: 0300000081 [19:30:04]line РНМ: 0000000000091631 [19:30:04]line Версия ККМ: 001 [19:30:04]line ФМ: 0000000000874669 [19:30:04]line ФД: 139754 [19:30:04]line ФПД: 238452585977169 [19:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193004&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139754&fm=238452585977169&tin=02508201610067®Number=0000000000091631&sum=47800 [19:30:04]line 0 [19:30:04]written 0, free lines is 4095 [19:30:04]OFD Sender: Processing packet 139754 [packets to send 34, broken 33] [19:30:04]ProducePacketName [19:30:04]name=ofd_packets/00139754 [19:30:04]OFD Sender: To server: pG, [19:30:04]CommunicateWithHost lk.salyk.kg:30040 [19:30:04]ConnectInit lk.salyk.kg [19:30:04]Connected sock=10 [19:30: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 DE 02 00 00 B2 75 D6 02 B9 E7 5A 03 01 00 03 00 CA 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 B8 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 13 00 00 00 00 07 04 06 00 B8 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BC DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 D8 DF 11 AE D5 51 39 CA 23 B1 25 97 E0 C3 [19:30: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 E9 B7 47 00 FF 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 21 02 00 F4 03 04 00 69 86 23 67 B6 04 01 00 00 50 0F FE 14 88 CF 3A D3 [19:30:05]CommunicateWithHost err = 0 [19:30:05]CheckOFDResponse [19:30:05]1017 (14) - 77093643461234 [19:30:05]1041 (16) - 0000000000874669 [19:30:05]1040 (4) - 139754 [19:30:05]1012 (4) - 31.10.2024 13:30 [19:30:05]1206 (1) - 0 [19:30:05]OFD Sender: Remove packet 139754 [19:30:05]ProducePacketName [19:30:05]name=ofd_packets/00139754 [19:30:05]NVStorageDeleteData [19:30:05]Write to MH i2c: 01 00 00 8D 1F AC [19:30:05]Write i2c OK [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: 01 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: 01 07 00 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 E6 0B A4 [19:30:05]RasterBufferAndPrint [19:30:05]line [19:30:05]line [19:30:05]line [19:30:05]line [19:30:05]line [19:30:05]written 0, free lines is 3056 [19:30:05]MH_Cut [19:30:05]Write to MH i2c: D1 01 00 94 1F 01 85 [19:30:05]Write i2c OK [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: D1 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: D1 01 00 [19:30:05]MH_I2C_Read... [19:30:05]Read from MH i2c: D1 01 00 94 1F 00 84 [19:30:05]Write to MH i2c: 01 00 00 95 1F B4 [19:30:05]Write i2c OK [19:30:05]MH_I2C_Read... [19:30:05]OFD Sender: No OFD packet to send [19:30:06]*** Cut start [19:30:06]*** Partial cut [19:30:06]*** CUTSNS_PIN = 1 [19:30:06]*** CUTSNS_PIN = 0 [19:30:06]*** Brake cut motor [19:30:06]Read from MH i2c: 01 [19:30:06]MH_I2C_Read... [19:30:06]*** Stop cut motor [19:30:06]*** Cut end [19:30:06]Read from MH i2c: 01 07 00 [19:30:06]MH_I2C_Read... [19:30:06]Read from MH i2c: 01 07 00 95 1F 00 00 00 00 00 FF 0F C9 [19:30:06]process_action close_receipt done [19:30:06]requested_data is exist [19:30:06]produce_requested_data [19:30:06]requested_item fm.sn is exist - process it [19:30:06]wFMCommunicate request_size=4 [19:30:06]MH_SAM_APDU [19:30:06]CAPDU: 80 11 00 00 [19:30:06]Write to MH i2c: E2 08 00 96 1F 80 11 00 00 00 00 00 00 2F [19:30:06]Write i2c OK [19:30:06]MH_I2C_Read... [19:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:07]Read from MH i2c: E2 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 17 00 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 17 00 96 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8A [19:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:30:07]wFMCommunicate OK [19:30:07]requested_item fd.num is exist - process it [19:30:07]SAM_PROTO_GetFieldsCounters [19:30:07]wFMCommunicate request_size=4 [19:30:07]MH_SAM_APDU [19:30:07]CAPDU: 80 13 00 00 [19:30:07]Write to MH i2c: E2 08 00 97 1F 80 13 00 00 00 00 00 00 32 [19:30:07]Write i2c OK [19:30:07]MH_I2C_Read... [19:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:07]Read from MH i2c: E2 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 62 00 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 62 00 97 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [19:30: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 EA 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:07]wFMCommunicate OK [19:30:07]SAM_PROTO_GetFieldsCounters done [19:30:07]requested_item shift.num is exist - process it [19:30:07]requested_item shift.opened is exist - process it [19:30:07]req_shift_opened [19:30:07]FM_GetShiftState [19:30:07]SAM_PROTO_GetShiftState [19:30:07]wFMCommunicate request_size=4 [19:30:07]MH_SAM_APDU [19:30:07]CAPDU: 80 13 01 00 [19:30:07]Write to MH i2c: E2 08 00 98 1F 80 13 01 00 00 00 00 00 34 [19:30:07]Write i2c OK [19:30:07]MH_I2C_Read... [19:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:07]Read from MH i2c: E2 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 0E 00 [19:30:07]MH_I2C_Read... [19:30:07]Read from MH i2c: E2 0E 00 98 1F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5D [19:30:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:30:07]wFMCommunicate OK [19:30:07]SAM_PROTO_GetShiftState done [19:30:07]FM_GetShiftState done [19:30:07]req_shift_opened done [19:30:07]requested_item shift.open_date is exist - process it [19:30:07]req_shift_open_date [19:30:07]req_shift_open_date done [19:30:07]produce_requested_data done [19:30:07]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139754,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:30:07]process_action_free close_receipt [19:30:07]json_value_free [19:30:07]json_value_free done [19:30:07]process_json_proto returns [19:30:07]Send response to host [19:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139754,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:30:07]free response buf [19:30:07]execute_script done [19:30:07]execute_script returns [19:30:07]free content buf [19:30:07]Sock 7.Close socket [19:30:07]Sock 7.Thread stoped [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:26]accept exits with 9 [19:30:26]New connection [19:30:26]New thread 3066510692 created [19:30:26]Thread 3066654052 joined [19:30:26]Waiting for new connection... [19:30:26] Sock 9.Parse request [19:30:26]Sock 9.Check first char [19:30:26]Sock 9.First char is OK [19:30:26]request: POST /json_proto HTTP/1.0 [19:30:26]Method: POST [19:30:26]URL: /json_proto [19:30:26]Method is POST - this is cgi request [19:30:26]url: /json_proto [19:30:26]query_string will be loaded in cgi processing [19:30:26]execute_cgi json_proto POST (null) [19:30:26]execute_cgi path=json_proto method=POST [19:30:26]POST find Content-Length [19:30:26]Host: 172.17.50.196:8080 [19:30:26]Content-Length: 1161 [19:30:26]Content-Type: application/json [19:30:26] [19:30:26]POST finish read [19:30:26]Found Content-Length = 1161 [19:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335589", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:26]execute_script... [19:30:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335589", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:26]POST & json_proto [19:30:26]process_json_proto [19:30:26]json parsed OK: [19:30:26]protocol is kg_v1.0 [19:30:26]action value=close_receipt [19:30:26]process_action close_receipt [19:30:26]cmd_close_receipt [19:30:26]MH_GetDate [19:30:26]Write to MH i2c: F0 00 00 99 1F A7 [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: F0 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: F0 09 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: F0 09 00 99 1F 00 D4 DA 23 67 72 0D 1C 67 EA [19:30:26]GetLastDocTimeStamp 1730403004 [19:30:26]current date 1730403028 [19:30:26]FM_GetShiftState [19:30:26]SAM_PROTO_GetShiftState [19:30:26]wFMCommunicate request_size=4 [19:30:26]MH_SAM_APDU [19:30:26]CAPDU: 80 13 01 00 [19:30:26]Write to MH i2c: E2 08 00 9A 1F 80 13 01 00 00 00 00 00 36 [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:26]Read from MH i2c: E2 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 0E 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 0E 00 9A 1F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5F [19:30:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:30:26]wFMCommunicate OK [19:30:26]SAM_PROTO_GetShiftState done [19:30:26]FM_GetShiftState done [19:30:26]opened in 1730332621 [19:30:26]opened+sec_in_day 1730419021 [19:30:26]quantity*price = 8400 [19:30:26]sum+1 = 8401 [19:30:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000273673 Сок Piko Pulpy красный виноград ПЭТ 1л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.29 НДС 12% : 27.50 Наличными: 0.00 Безнал.: 259.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 232 31.10.2024 19:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139755 ФПД: 200393692236150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193028&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139755&fm=200393692236150&tin=02508201610067®Number=0000000000091631&sum=25900 0 [19:30:27]StoreToDocumentArchive [19:30:27]shift 557 fd 139755 [19:30:27]save to /storage/0557/doc_00139755 [19:30:27]save last doc name /storage/0557/doc_00139755 to /storage/kkm_last_doc_name [19:30:27]save OK [19:30:27]Clear old archive folders... [19:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=434 [19:30:27]tlvbuf is 00A88F70 [19:30:27]SAM_PROTO_ClearQueue [19:30:27]wFMCommunicate request_size=4 [19:30:27]MH_SAM_APDU [19:30:27]CAPDU: 80 09 00 00 [19:30:27]Write to MH i2c: E2 08 00 A7 1F 80 09 00 00 00 00 00 00 38 [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:27]Read from MH i2c: E2 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 A7 1F 00 90 00 3A [19:30:27]RAPDU: 90 00 [19:30:27]wFMCommunicate OK [19:30:27]SAM_PROTO_ClearQueue done [19:30:27]KKMCreateOFDPacket [19:30:27]OFDProtocolAddRootSTLVToBuf [19:30:27]FM_MakeSignedData [19:30:27]FM_MakeSignedData [19:30:27]SAM_PROTO_SignData [19:30:27]wFMCommunicate request_size=4 [19:30:27]MH_SAM_APDU [19:30:27]CAPDU: 80 0D 01 02 [19:30:27]Write to MH i2c: E2 08 00 A8 1F 80 0D 01 02 00 00 00 00 40 [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:27]Read from MH i2c: E2 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [19:30:27]RAPDU: 90 00 [19:30:27]wFMCommunicate OK [19:30:27]wFMCommunicate request_size=255 [19:30:27]MH_SAM_APDU [19:30:27]CAPDU: 80 0D 02 02 FA 03 00 B2 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 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 [19:30:27]Write to MH i2c: E2 02 01 A9 1F 80 0D 02 02 FA 00 03 00 B2 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 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 00 00 82 [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:27]Read from MH i2c: E2 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 [19:30:27]MH_I2C_Read... [19:30:27]Read from MH i2c: E2 03 00 A9 1F 00 90 00 3C [19:30:27]RAPDU: 90 00 [19:30:27]wFMCommunicate OK [19:30:27]wFMCommunicate request_size=193 [19:30:27]MH_SAM_APDU [19:30:27]CAPDU: 80 0D 02 02 BC 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 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 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 D4 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B6 41 CA D7 49 76 [19:30:27]Write to MH i2c: E2 C4 00 AA 1F 80 0D 02 02 BC 00 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 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 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 D4 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B6 41 CA D7 49 76 00 00 DD [19:30:27]Write i2c OK [19:30:27]MH_I2C_Read... [19:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:28]Read from MH i2c: E2 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 03 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 03 00 AA 1F 00 90 00 3D [19:30:28]RAPDU: 90 00 [19:30:28]wFMCommunicate OK [19:30:28]wFMCommunicate request_size=4 [19:30:28]MH_SAM_APDU [19:30:28]CAPDU: 80 0D 03 02 [19:30:28]Write to MH i2c: E2 08 00 AB 1F 80 0D 03 02 00 00 00 00 45 [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:28]Read from MH i2c: E2 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 0B 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 0B 00 AB 1F 00 1F 42 9C 41 90 EF 67 C9 90 00 33 [19:30:28]RAPDU: 1F 42 9C 41 90 EF 67 C9 90 00 [19:30:28]wFMCommunicate OK [19:30:28]SAM_PROTO_SignData done [19:30:28]FM_MakeSignedData done [19:30:28]CreateOFDProtocolMessage [19:30:28]wFMCommunicate request_size=4 [19:30:28]MH_SAM_APDU [19:30:28]CAPDU: 80 11 00 00 [19:30:28]Write to MH i2c: E2 08 00 AC 1F 80 11 00 00 00 00 00 00 45 [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:28]Read from MH i2c: E2 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 17 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 17 00 AC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A0 [19:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:30:28]wFMCommunicate OK [19:30:28]CreateOFDProtocolMessage done [19:30:28]OFDSenderStorePacket 139755 [19:30:28]StoreOFDPacket docnum=139755 [19:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C6 01 00 00 F0 68 BE 01 97 82 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 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 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 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 D4 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B6 41 CA D7 49 76 1F 42 9C 41 90 EF 67 C9 [19:30:28]CheckFolder [19:30:28]dirname=/storage/ofd_packets [19:30:28]CheckFolder done [19:30:28]ProducePacketName [19:30:28]name=ofd_packets/00139755 [19:30:28]NVStorageSaveData ofd_packets/00139755 [19:30:28]File name is /storage/ofd_packets/00139755 [19:30:28]Write 484 bytes [19:30:28]NVStorageSaveData done [19:30:28]OFDSenderStorePacket done [19:30:28]KKMCreateOFDPacket done [19:30:28]NVStorageSaveData kkm_last_timestamp [19:30:28]File name is /storage/kkm_last_timestamp [19:30:28]Write 4 bytes [19:30:28]NVStorageSaveData done [19:30:28]ExternCall_PrintAddStr [19:30:28]wPrintStart [19:30:28]Write to MH i2c: 01 00 00 AD 1F CC [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]OFD Sender: Processing packet 139755 [packets to send 34, broken 33] [19:30:28]ProducePacketName [19:30:28]name=ofd_packets/00139755 [19:30:28]OFD Sender: To server: pG, [19:30:28]CommunicateWithHost lk.salyk.kg:30040 [19:30:28]ConnectInit lk.salyk.kg [19:30:28]Read from MH i2c: 01 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: 01 07 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: 01 07 00 AD 1F 00 00 00 00 00 FF 0F E1 [19:30:28]RasterBufferAndPrint [19:30:28]line Счет N : (3)335589 [19:30:28]line ИНН: 02508201610067 [19:30:28]line Контрольно-Кассовый Чек [19:30:28]line ПРОДАЖА [19:30:28]line Товар: 4870001571030 [19:30:28]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [19:30:28]line 1.000 * 84.00 [19:30:28]line = 84.00 [19:30:28]line НДС 12% НСП 1% [19:30:28]line > о реализуемом товаре [19:30:28]line Товар: 5449000273673 [19:30:28]line Сок Piko Pulpy красный виноград ПЭТ 1л [19:30:28]line 1.000 * 175.00 [19:30:28]line = 175.00 [19:30:28]line НДС 12% НСП 1% [19:30:28]line > о реализуемом товаре [19:30:28]line ИТОГО: 259.00 [19:30:28]line НСП 1% : 2.29 [19:30:28]line НДС 12% : 27.50 [19:30:28]line Наличными: 0.00 [19:30:28]line Безнал.: 259.00 [19:30:28]line Место: АЗС № 101 "Партнер Нефть" [19:30:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:30:28]line СНО: Общий режим [19:30:28]line Чек 232 31.10.2024 19:30 [19:30:28]line Смена: 557 ФФД: 1.0 [19:30:28]line ЗНМ: 0300000081 [19:30:28]line РНМ: 0000000000091631 [19:30:28]line Версия ККМ: 001 [19:30:28]line Платежная система: Mbank [19:30:28]line ФМ: 0000000000874669 [19:30:28]line ФД: 139755 [19:30:28]line ФПД: 200393692236150 [19:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193028&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139755&fm=200393692236150&tin=02508201610067®Number=0000000000091631&sum=25900 [19:30:28]line 0 [19:30:28]written 0, free lines is 4095 [19:30:28]Connected sock=10 [19:30: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 C6 01 00 00 F0 68 BE 01 97 82 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 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 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 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 D4 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 B6 41 CA D7 49 76 1F 42 9C 41 90 EF 67 C9 [19:30: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 5B E2 47 00 A1 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 21 02 00 F4 03 04 00 81 86 23 67 B6 04 01 00 00 C8 68 9E 0C 6E EE 2F DA [19:30:28]CommunicateWithHost err = 0 [19:30:28]CheckOFDResponse [19:30:28]1017 (14) - 77093643461234 [19:30:28]1041 (16) - 0000000000874669 [19:30:28]1040 (4) - 139755 [19:30:28]1012 (4) - 31.10.2024 13:30 [19:30:28]1206 (1) - 0 [19:30:28]OFD Sender: Remove packet 139755 [19:30:28]ProducePacketName [19:30:28]name=ofd_packets/00139755 [19:30:28]NVStorageDeleteData [19:30:29]Write to MH i2c: 01 00 00 DE 1F FD [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: 01 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: 01 07 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: 01 07 00 DE 1F 00 00 00 00 00 B7 0C C7 [19:30:29]RasterBufferAndPrint [19:30:29]line [19:30:29]line [19:30:29]line [19:30:29]line [19:30:29]line [19:30:29]written 0, free lines is 3264 [19:30:29]MH_Cut [19:30:29]Write to MH i2c: D1 01 00 E5 1F 01 D6 [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: D1 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: D1 01 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: D1 01 00 E5 1F 00 D5 [19:30:29]Write to MH i2c: 01 00 00 E6 1F 05 [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]OFD Sender: No OFD packet to send [19:30:29]*** Cut start [19:30:29]*** Partial cut [19:30:29]*** CUTSNS_PIN = 1 [19:30:29]*** CUTSNS_PIN = 0 [19:30:30]*** Brake cut motor [19:30:30]Read from MH i2c: 01 [19:30:30]MH_I2C_Read... [19:30:30]*** Stop cut motor [19:30:30]*** Cut end [19:30:30]Read from MH i2c: 01 07 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: 01 07 00 E6 1F 00 00 00 00 00 FF 0F 1A [19:30:30]process_action close_receipt done [19:30:30]requested_data is exist [19:30:30]produce_requested_data [19:30:30]requested_item fm.sn is exist - process it [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 11 00 00 [19:30:30]Write to MH i2c: E2 08 00 E7 1F 80 11 00 00 00 00 00 00 80 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 17 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 17 00 E7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DB [19:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:30:30]wFMCommunicate OK [19:30:30]requested_item fd.num is exist - process it [19:30:30]SAM_PROTO_GetFieldsCounters [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 13 00 00 [19:30:30]Write to MH i2c: E2 08 00 E8 1F 80 13 00 00 00 00 00 00 83 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 62 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 62 00 E8 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [19:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:30]wFMCommunicate OK [19:30:30]SAM_PROTO_GetFieldsCounters done [19:30:30]requested_item shift.num is exist - process it [19:30:30]requested_item shift.opened is exist - process it [19:30:30]req_shift_opened [19:30:30]FM_GetShiftState [19:30:30]SAM_PROTO_GetShiftState [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 13 01 00 [19:30:30]Write to MH i2c: E2 08 00 E9 1F 80 13 01 00 00 00 00 00 85 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0E 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0E 00 E9 1F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AE [19:30:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:30:30]wFMCommunicate OK [19:30:30]SAM_PROTO_GetShiftState done [19:30:30]FM_GetShiftState done [19:30:30]req_shift_opened done [19:30:30]requested_item shift.open_date is exist - process it [19:30:30]req_shift_open_date [19:30:30]req_shift_open_date done [19:30:30]produce_requested_data done [19:30:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139755,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:30:30]process_action_free close_receipt [19:30:30]json_value_free [19:30:30]json_value_free done [19:30:30]process_json_proto returns [19:30:30]Send response to host [19:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139755,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:30:30]free response buf [19:30:30]execute_script done [19:30:30]execute_script returns [19:30:30]free content buf [19:30:30]Sock 9.Close socket [19:30:30]Sock 9.Thread stoped [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:55]accept exits with 7 [19:30:55]New connection [19:30:55]New thread 3066654052 created [19:30:55]Thread 3066510692 joined [19:30:55]Waiting for new connection... [19:30:55] Sock 7.Parse request [19:30:55]Sock 7.Check first char [19:30:55]Sock 7.First char is OK [19:30:55]request: POST /json_proto HTTP/1.0 [19:30:55]Method: POST [19:30:55]URL: /json_proto [19:30:55]Method is POST - this is cgi request [19:30:55]url: /json_proto [19:30:55]query_string will be loaded in cgi processing [19:30:55]execute_cgi json_proto POST (null) [19:30:55]execute_cgi path=json_proto method=POST [19:30:55]POST find Content-Length [19:30:55]Host: 172.17.50.196:8080 [19:30:55]Content-Length: 621 [19:30:55]Content-Type: application/json [19:30:55] [19:30:55]POST finish read [19:30:55]Found Content-Length = 621 [19:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335590", "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 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:55]execute_script... [19:30:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335590", "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 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:55]POST & json_proto [19:30:55]process_json_proto [19:30:55]json parsed OK: [19:30:55]protocol is kg_v1.0 [19:30:55]action value=close_receipt [19:30:55]process_action close_receipt [19:30:55]cmd_close_receipt [19:30:55]MH_GetDate [19:30:55]Write to MH i2c: F0 00 00 EA 1F F8 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: F0 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: F0 09 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: F0 09 00 EA 1F 00 F1 DA 23 67 72 0D 1C 67 58 [19:30:55]GetLastDocTimeStamp 1730403028 [19:30:55]current date 1730403057 [19:30:55]FM_GetShiftState [19:30:55]SAM_PROTO_GetShiftState [19:30:55]wFMCommunicate request_size=4 [19:30:55]MH_SAM_APDU [19:30:55]CAPDU: 80 13 01 00 [19:30:55]Write to MH i2c: E2 08 00 EB 1F 80 13 01 00 00 00 00 00 87 [19:30:55]Write i2c OK [19:30:55]MH_I2C_Read... [19:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:55]Read from MH i2c: E2 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 0E 00 [19:30:55]MH_I2C_Read... [19:30:55]Read from MH i2c: E2 0E 00 EB 1F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B0 [19:30:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:30:55]wFMCommunicate OK [19:30:55]SAM_PROTO_GetShiftState done [19:30:55]FM_GetShiftState done [19:30:55]opened in 1730332621 [19:30:55]opened+sec_in_day 1730419021 [19:30:55]quantity*price = 14400 [19:30:55]sum+1 = 14401 [19:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 233 31.10.2024 19:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139756 ФПД: 49139724193353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193057&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139756&fm=49139724193353&tin=02508201610067®Number=0000000000091631&sum=14400 0 [19:30:56]StoreToDocumentArchive [19:30:56]shift 557 fd 139756 [19:30:56]save to /storage/0557/doc_00139756 [19:30:56]save last doc name /storage/0557/doc_00139756 to /storage/kkm_last_doc_name [19:30:56]save OK [19:30:56]Clear old archive folders... [19:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:30:56]tlvbuf is 00B0DD20 [19:30:56]SAM_PROTO_ClearQueue [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 09 00 00 [19:30:56]Write to MH i2c: E2 08 00 F8 1F 80 09 00 00 00 00 00 00 89 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 F8 1F 00 90 00 8B [19:30:56]RAPDU: 90 00 [19:30:56]wFMCommunicate OK [19:30:56]SAM_PROTO_ClearQueue done [19:30:56]KKMCreateOFDPacket [19:30:56]OFDProtocolAddRootSTLVToBuf [19:30:56]FM_MakeSignedData [19:30:56]FM_MakeSignedData [19:30:56]SAM_PROTO_SignData [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 0D 01 02 [19:30:56]Write to MH i2c: E2 08 00 F9 1F 80 0D 01 02 00 00 00 00 91 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 F9 1F 00 90 00 8C [19:30:56]RAPDU: 90 00 [19:30:56]wFMCommunicate OK [19:30:56]wFMCommunicate request_size=255 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 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 E9 00 00 00 F4 03 04 00 F1 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [19:30:56]Write to MH i2c: E2 02 01 FA 1F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 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 E9 00 00 00 F4 03 04 00 F1 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 63 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 FA 1F 00 90 00 8D [19:30:56]RAPDU: 90 00 [19:30:56]wFMCommunicate OK [19:30:56]wFMCommunicate request_size=32 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 21 02 00 35 04 06 00 2C B1 3B CE 0E 49 [19:30:56]Write to MH i2c: E2 23 00 FB 1F 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 21 02 00 35 04 06 00 2C B1 3B CE 0E 49 00 00 45 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 03 00 FB 1F 00 90 00 8E [19:30:56]RAPDU: 90 00 [19:30:56]wFMCommunicate OK [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 0D 03 02 [19:30:56]Write to MH i2c: E2 08 00 FC 1F 80 0D 03 02 00 00 00 00 96 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 0B 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 0B 00 FC 1F 00 ED E9 DB 99 41 51 D0 1C 90 00 5F [19:30:56]RAPDU: ED E9 DB 99 41 51 D0 1C 90 00 [19:30:56]wFMCommunicate OK [19:30:56]SAM_PROTO_SignData done [19:30:56]FM_MakeSignedData done [19:30:56]CreateOFDProtocolMessage [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 11 00 00 [19:30:56]Write to MH i2c: E2 08 00 FD 1F 80 11 00 00 00 00 00 00 96 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 17 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 17 00 FD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F1 [19:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:30:56]wFMCommunicate OK [19:30:56]CreateOFDProtocolMessage done [19:30:56]OFDSenderStorePacket 139756 [19:30:56]StoreOFDPacket docnum=139756 [19:30: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 25 01 00 00 62 68 1D 01 2D 97 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 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 E9 00 00 00 F4 03 04 00 F1 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2C B1 3B CE 0E 49 ED E9 DB 99 41 51 D0 1C [19:30:56]CheckFolder [19:30:56]dirname=/storage/ofd_packets [19:30:56]CheckFolder done [19:30:56]ProducePacketName [19:30:56]name=ofd_packets/00139756 [19:30:56]NVStorageSaveData ofd_packets/00139756 [19:30:56]File name is /storage/ofd_packets/00139756 [19:30:56]Write 323 bytes [19:30:56]NVStorageSaveData done [19:30:56]OFDSenderStorePacket done [19:30:56]KKMCreateOFDPacket done [19:30:56]NVStorageSaveData kkm_last_timestamp [19:30:56]File name is /storage/kkm_last_timestamp [19:30:56]Write 4 bytes [19:30:56]NVStorageSaveData done [19:30:56]ExternCall_PrintAddStr [19:30:56]wPrintStart [19:30:56]Write to MH i2c: 01 00 00 FE 1F 1D [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 07 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: 01 07 00 FE 1F 00 00 00 00 00 FF 0F 32 [19:30:56]RasterBufferAndPrint [19:30:56]line Счет N : (3)335590 [19:30:56]line ИНН: 02508201610067 [19:30:56]line Контрольно-Кассовый Чек [19:30:56]line ПРОДАЖА [19:30:56]line Товар: 48743570 [19:30:56]line Сигареты Winston XStyle Blue [19:30:56]line 1.000 * 144.00 [19:30:56]line = 144.00 [19:30:56]line НДС 12% НСП 1% [19:30:56]line > о реализуемом товаре [19:30:56]line ИТОГО: 144.00 [19:30:56]line НСП 1% : 1.27 [19:30:56]line НДС 12% : 15.29 [19:30:56]line Наличными: 144.00 [19:30:56]line Безнал.: 0.00 [19:30:56]line Место: АЗС № 101 "Партнер Нефть" [19:30:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:30:56]line СНО: Общий режим [19:30:56]line Чек 233 31.10.2024 19:30 [19:30:56]line Смена: 557 ФФД: 1.0 [19:30:56]line ЗНМ: 0300000081 [19:30:56]line РНМ: 0000000000091631 [19:30:56]line Версия ККМ: 001 [19:30:56]line ФМ: 0000000000874669 [19:30:56]line ФД: 139756 [19:30:56]line ФПД: 49139724193353 [19:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193057&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139756&fm=49139724193353&tin=02508201610067®Number=0000000000091631&sum=14400 [19:30:57]OFD Sender: Processing packet 139756 [packets to send 34, broken 33] [19:30:57]ProducePacketName [19:30:57]name=ofd_packets/00139756 [19:30:57]OFD Sender: To server: pG, [19:30:57]CommunicateWithHost lk.salyk.kg:30040 [19:30:57]ConnectInit lk.salyk.kg [19:30:57]line 0 [19:30:57]written 0, free lines is 4095 [19:30:57]Connected sock=10 [19:30: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 25 01 00 00 62 68 1D 01 2D 97 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 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 E9 00 00 00 F4 03 04 00 F1 DA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 2C B1 3B CE 0E 49 ED E9 DB 99 41 51 D0 1C [19:30: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 D7 FE 47 00 05 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 21 02 00 F4 03 04 00 9E 86 23 67 B6 04 01 00 00 79 DD EF AC 81 59 F9 2C [19:30:57]CommunicateWithHost err = 0 [19:30:57]CheckOFDResponse [19:30:57]1017 (14) - 77093643461234 [19:30:57]1041 (16) - 0000000000874669 [19:30:57]1040 (4) - 139756 [19:30:57]1012 (4) - 31.10.2024 13:31 [19:30:57]1206 (1) - 0 [19:30:57]OFD Sender: Remove packet 139756 [19:30:57]ProducePacketName [19:30:57]name=ofd_packets/00139756 [19:30:57]NVStorageDeleteData [19:30:57]Write to MH i2c: 01 00 00 26 20 46 [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: 01 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: 01 07 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: 01 07 00 26 20 00 00 00 00 00 27 0D 81 [19:30:57]RasterBufferAndPrint [19:30:57]line [19:30:57]line [19:30:57]line [19:30:57]line [19:30:57]line [19:30:57]written 0, free lines is 3377 [19:30:57]MH_Cut [19:30:57]Write to MH i2c: D1 01 00 2D 20 01 1F [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: D1 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: D1 01 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: D1 01 00 2D 20 00 1E [19:30:57]Write to MH i2c: 01 00 00 2E 20 4E [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]OFD Sender: No OFD packet to send [19:30:58]*** Cut start [19:30:58]*** Partial cut [19:30:58]*** CUTSNS_PIN = 1 [19:30:58]*** CUTSNS_PIN = 0 [19:30:58]*** Brake cut motor [19:30:58]Read from MH i2c: 01 [19:30:58]MH_I2C_Read... [19:30:58]*** Stop cut motor [19:30:58]*** Cut end [19:30:58]Read from MH i2c: 01 07 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: 01 07 00 2E 20 00 00 00 00 00 FF 0F 63 [19:30:58]process_action close_receipt done [19:30:58]requested_data is exist [19:30:58]produce_requested_data [19:30:58]requested_item fm.sn is exist - process it [19:30:58]wFMCommunicate request_size=4 [19:30:58]MH_SAM_APDU [19:30:58]CAPDU: 80 11 00 00 [19:30:58]Write to MH i2c: E2 08 00 2F 20 80 11 00 00 00 00 00 00 C9 [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:58]Read from MH i2c: E2 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 17 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 17 00 2F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 24 [19:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:30:58]wFMCommunicate OK [19:30:58]requested_item fd.num is exist - process it [19:30:58]SAM_PROTO_GetFieldsCounters [19:30:58]wFMCommunicate request_size=4 [19:30:58]MH_SAM_APDU [19:30:58]CAPDU: 80 13 00 00 [19:30:58]Write to MH i2c: E2 08 00 30 20 80 13 00 00 00 00 00 00 CC [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:59]Read from MH i2c: E2 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 62 00 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 62 00 30 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [19:30: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 EC 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:59]wFMCommunicate OK [19:30:59]SAM_PROTO_GetFieldsCounters done [19:30:59]requested_item shift.num is exist - process it [19:30:59]requested_item shift.opened is exist - process it [19:30:59]req_shift_opened [19:30:59]FM_GetShiftState [19:30:59]SAM_PROTO_GetShiftState [19:30:59]wFMCommunicate request_size=4 [19:30:59]MH_SAM_APDU [19:30:59]CAPDU: 80 13 01 00 [19:30:59]Write to MH i2c: E2 08 00 31 20 80 13 01 00 00 00 00 00 CE [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:59]Read from MH i2c: E2 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 0E 00 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: E2 0E 00 31 20 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F7 [19:30:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:30:59]wFMCommunicate OK [19:30:59]SAM_PROTO_GetShiftState done [19:30:59]FM_GetShiftState done [19:30:59]req_shift_opened done [19:30:59]requested_item shift.open_date is exist - process it [19:30:59]req_shift_open_date [19:30:59]req_shift_open_date done [19:30:59]produce_requested_data done [19:30:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139756,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:30:59]process_action_free close_receipt [19:30:59]json_value_free [19:30:59]json_value_free done [19:30:59]process_json_proto returns [19:30:59]Send response to host [19:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139756,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:30:59]free response buf [19:30:59]execute_script done [19:30:59]execute_script returns [19:30:59]free content buf [19:30:59]Sock 7.Close socket [19:30:59]Sock 7.Thread stoped [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:14]accept exits with 9 [19:31:14]New connection [19:31:14]New thread 3066510692 created [19:31:14]Thread 3066654052 joined [19:31:14]Waiting for new connection... [19:31:14] Sock 9.Parse request [19:31:14]Sock 9.Check first char [19:31:14]Sock 9.First char is OK [19:31:14]request: POST /json_proto HTTP/1.0 [19:31:14]Method: POST [19:31:14]URL: /json_proto [19:31:14]Method is POST - this is cgi request [19:31:14]url: /json_proto [19:31:14]query_string will be loaded in cgi processing [19:31:14]execute_cgi json_proto POST (null) [19:31:14]execute_cgi path=json_proto method=POST [19:31:14]POST find Content-Length [19:31:14]Host: 172.17.50.196:8080 [19:31:14]Content-Length: 773 [19:31:14]Content-Type: application/json [19:31:14] [19:31:14]POST finish read [19:31:14]Found Content-Length = 773 [19:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335591", "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" ] } } [19:31:14]execute_script... [19:31: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)335591", "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" ] } } [19:31:14]POST & json_proto [19:31:14]process_json_proto [19:31:14]json parsed OK: [19:31:14]protocol is kg_v1.0 [19:31:14]action value=close_receipt [19:31:14]process_action close_receipt [19:31:14]cmd_close_receipt [19:31:14]MH_GetDate [19:31:14]Write to MH i2c: F0 00 00 32 20 41 [19:31:14]Write i2c OK [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: F0 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: F0 09 00 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: F0 09 00 32 20 00 04 DB 23 67 72 0D 1C 67 B5 [19:31:14]GetLastDocTimeStamp 1730403057 [19:31:14]current date 1730403076 [19:31:14]FM_GetShiftState [19:31:14]SAM_PROTO_GetShiftState [19:31:14]wFMCommunicate request_size=4 [19:31:14]MH_SAM_APDU [19:31:14]CAPDU: 80 13 01 00 [19:31:14]Write to MH i2c: E2 08 00 33 20 80 13 01 00 00 00 00 00 D0 [19:31:14]Write i2c OK [19:31:14]MH_I2C_Read... [19:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:14]Read from MH i2c: E2 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: E2 0E 00 [19:31:14]MH_I2C_Read... [19:31:14]Read from MH i2c: E2 0E 00 33 20 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F9 [19:31:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:31:14]wFMCommunicate OK [19:31:14]SAM_PROTO_GetShiftState done [19:31:14]FM_GetShiftState done [19:31:14]opened in 1730332621 [19:31:14]opened+sec_in_day 1730419021 [19:31:14]quantity*price = 13000 [19:31:14]sum+1 = 13001 [19:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 234 31.10.2024 19:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139757 ФПД: 250636779562375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193116&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139757&fm=250636779562375&tin=02508201610067®Number=0000000000091631&sum=13000 0 [19:31:15]StoreToDocumentArchive [19:31:15]shift 557 fd 139757 [19:31:15]save to /storage/0557/doc_00139757 [19:31:15]save last doc name /storage/0557/doc_00139757 to /storage/kkm_last_doc_name [19:31:15]save OK [19:31:15]Clear old archive folders... [19:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:31:15]tlvbuf is 00A265F0 [19:31:15]SAM_PROTO_ClearQueue [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 09 00 00 [19:31:15]Write to MH i2c: E2 08 00 40 20 80 09 00 00 00 00 00 00 D2 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 40 20 00 90 00 D4 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]SAM_PROTO_ClearQueue done [19:31:15]KKMCreateOFDPacket [19:31:15]OFDProtocolAddRootSTLVToBuf [19:31:15]FM_MakeSignedData [19:31:15]FM_MakeSignedData [19:31:15]SAM_PROTO_SignData [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 01 02 [19:31:15]Write to MH i2c: E2 08 00 41 20 80 0D 01 02 00 00 00 00 DA [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 41 20 00 90 00 D5 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=255 [19:31:15]MH_SAM_APDU [19:31:15]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 EA 00 00 00 F4 03 04 00 04 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [19:31:15]Write to MH i2c: E2 02 01 42 20 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 EA 00 00 00 F4 03 04 00 04 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 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 66 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 42 20 00 90 00 D6 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=41 [19:31:15]MH_SAM_APDU [19:31:15]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 ED 21 02 00 35 04 06 00 E3 F3 EC 36 A5 87 [19:31:15]Write to MH i2c: E2 2C 00 43 20 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 ED 21 02 00 35 04 06 00 E3 F3 EC 36 A5 87 00 00 E8 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 43 20 00 90 00 D7 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 03 02 [19:31:15]Write to MH i2c: E2 08 00 44 20 80 0D 03 02 00 00 00 00 DF [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 0B 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 0B 00 44 20 00 80 AA 53 B3 5E 10 8F 84 90 00 91 [19:31:15]RAPDU: 80 AA 53 B3 5E 10 8F 84 90 00 [19:31:15]wFMCommunicate OK [19:31:15]SAM_PROTO_SignData done [19:31:15]FM_MakeSignedData done [19:31:15]CreateOFDProtocolMessage [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 11 00 00 [19:31:15]Write to MH i2c: E2 08 00 45 20 80 11 00 00 00 00 00 00 DF [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 17 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 17 00 45 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3A [19:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:31:15]wFMCommunicate OK [19:31:15]CreateOFDProtocolMessage done [19:31:15]OFDSenderStorePacket 139757 [19:31:15]StoreOFDPacket docnum=139757 [19:31: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 2E 01 00 00 55 B5 26 01 25 97 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 EA 00 00 00 F4 03 04 00 04 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E3 F3 EC 36 A5 87 80 AA 53 B3 5E 10 8F 84 [19:31:15]CheckFolder [19:31:15]dirname=/storage/ofd_packets [19:31:15]CheckFolder done [19:31:15]ProducePacketName [19:31:15]name=ofd_packets/00139757 [19:31:15]NVStorageSaveData ofd_packets/00139757 [19:31:15]File name is /storage/ofd_packets/00139757 [19:31:15]Write 332 bytes [19:31:15]NVStorageSaveData done [19:31:15]OFDSenderStorePacket done [19:31:15]KKMCreateOFDPacket done [19:31:15]NVStorageSaveData kkm_last_timestamp [19:31:15]File name is /storage/kkm_last_timestamp [19:31:15]Write 4 bytes [19:31:15]NVStorageSaveData done [19:31:15]ExternCall_PrintAddStr [19:31:15]wPrintStart [19:31:15]Write to MH i2c: 01 00 00 46 20 66 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 07 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 07 00 46 20 00 00 00 00 00 FF 0F 7B [19:31:15]RasterBufferAndPrint [19:31:15]line Счет N : (3)335591 [19:31:15]line ИНН: 02508201610067 [19:31:15]line Контрольно-Кассовый Чек [19:31:15]line ПРОДАЖА [19:31:15]line Товар: 2000036220012 [19:31:15]line Кофе Капучино XL(GABB TRADE) [19:31:15]line 1.000 * 130.00 [19:31:15]line = 130.00 [19:31:15]line НДС 12% НСП 1% [19:31:15]line > о реализуемом товаре [19:31:15]line ИТОГО: 130.00 [19:31:15]line НСП 1% : 1.15 [19:31:15]line НДС 12% : 13.80 [19:31:15]line Наличными: 0.00 [19:31:15]line Безнал.: 130.00 [19:31:15]line Место: АЗС № 101 "Партнер Нефть" [19:31:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:31:15]line СНО: Общий режим [19:31:15]line Чек 234 31.10.2024 19:31 [19:31:15]line Смена: 557 ФФД: 1.0 [19:31:15]line ЗНМ: 0300000081 [19:31:15]line РНМ: 0000000000091631 [19:31:15]line Версия ККМ: 001 [19:31:15]line Платежная система: Mbank [19:31:15]line ФМ: 0000000000874669 [19:31:15]line ФД: 139757 [19:31:15]line ФПД: 250636779562375 [19:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193116&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139757&fm=250636779562375&tin=02508201610067®Number=0000000000091631&sum=13000 [19:31:16]line 0 [19:31:16]OFD Sender: Processing packet 139757 [packets to send 34, broken 33] [19:31:16]ProducePacketName [19:31:16]name=ofd_packets/00139757 [19:31:16]OFD Sender: To server: pG, [19:31:16]CommunicateWithHost lk.salyk.kg:30040 [19:31:16]ConnectInit lk.salyk.kg [19:31:16]written 0, free lines is 4095 [19:31:16]Connected sock=10 [19:31: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 2E 01 00 00 55 B5 26 01 25 97 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 EA 00 00 00 F4 03 04 00 04 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 E3 F3 EC 36 A5 87 80 AA 53 B3 5E 10 8F 84 [19:31: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 62 F0 47 00 01 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 ED 21 02 00 F4 03 04 00 B1 86 23 67 B6 04 01 00 00 42 00 38 A2 7E 70 65 93 [19:31:16]CommunicateWithHost err = 0 [19:31:16]CheckOFDResponse [19:31:16]1017 (14) - 77093643461234 [19:31:16]1041 (16) - 0000000000874669 [19:31:16]1040 (4) - 139757 [19:31:16]1012 (4) - 31.10.2024 13:31 [19:31:16]1206 (1) - 0 [19:31:16]OFD Sender: Remove packet 139757 [19:31:16]ProducePacketName [19:31:16]name=ofd_packets/00139757 [19:31:16]NVStorageDeleteData [19:31:16]Write to MH i2c: 01 00 00 70 20 90 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 07 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 07 00 70 20 00 00 00 00 00 02 0D A6 [19:31:16]RasterBufferAndPrint [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]written 0, free lines is 3336 [19:31:16]MH_Cut [19:31:16]Write to MH i2c: D1 01 00 77 20 01 69 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: D1 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: D1 01 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: D1 01 00 77 20 00 68 [19:31:16]Write to MH i2c: 01 00 00 78 20 98 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]OFD Sender: No OFD packet to send [19:31:17]*** Cut start [19:31:17]*** Partial cut [19:31:17]*** CUTSNS_PIN = 1 [19:31:17]*** CUTSNS_PIN = 0 [19:31:17]*** Brake cut motor [19:31:17]Read from MH i2c: 01 [19:31:17]MH_I2C_Read... [19:31:17]*** Stop cut motor [19:31:17]*** Cut end [19:31:17]Read from MH i2c: 01 07 00 [19:31:17]MH_I2C_Read... [19:31:17]Read from MH i2c: 01 07 00 78 20 00 00 00 00 00 FF 0F AD [19:31:17]process_action close_receipt done [19:31:17]requested_data is exist [19:31:17]produce_requested_data [19:31:17]requested_item fm.sn is exist - process it [19:31:17]wFMCommunicate request_size=4 [19:31:17]MH_SAM_APDU [19:31:17]CAPDU: 80 11 00 00 [19:31:17]Write to MH i2c: E2 08 00 79 20 80 11 00 00 00 00 00 00 13 [19:31:17]Write i2c OK [19:31:17]MH_I2C_Read... [19:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:17]Read from MH i2c: E2 [19:31:17]MH_I2C_Read... [19:31:17]Read from MH i2c: E2 17 00 [19:31:17]MH_I2C_Read... [19:31:17]Read from MH i2c: E2 17 00 79 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6E [19:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:31:17]wFMCommunicate OK [19:31:17]requested_item fd.num is exist - process it [19:31:17]SAM_PROTO_GetFieldsCounters [19:31:17]wFMCommunicate request_size=4 [19:31:17]MH_SAM_APDU [19:31:17]CAPDU: 80 13 00 00 [19:31:17]Write to MH i2c: E2 08 00 7A 20 80 13 00 00 00 00 00 00 16 [19:31:17]Write i2c OK [19:31:17]MH_I2C_Read... [19:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:18]Read from MH i2c: E2 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 62 00 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 62 00 7A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [19:31: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 ED 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:18]wFMCommunicate OK [19:31:18]SAM_PROTO_GetFieldsCounters done [19:31:18]requested_item shift.num is exist - process it [19:31:18]requested_item shift.opened is exist - process it [19:31:18]req_shift_opened [19:31:18]FM_GetShiftState [19:31:18]SAM_PROTO_GetShiftState [19:31:18]wFMCommunicate request_size=4 [19:31:18]MH_SAM_APDU [19:31:18]CAPDU: 80 13 01 00 [19:31:18]Write to MH i2c: E2 08 00 7B 20 80 13 01 00 00 00 00 00 18 [19:31:18]Write i2c OK [19:31:18]MH_I2C_Read... [19:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:18]Read from MH i2c: E2 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 0E 00 [19:31:18]MH_I2C_Read... [19:31:18]Read from MH i2c: E2 0E 00 7B 20 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 41 [19:31:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:31:18]wFMCommunicate OK [19:31:18]SAM_PROTO_GetShiftState done [19:31:18]FM_GetShiftState done [19:31:18]req_shift_opened done [19:31:18]requested_item shift.open_date is exist - process it [19:31:18]req_shift_open_date [19:31:18]req_shift_open_date done [19:31:18]produce_requested_data done [19:31:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139757,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:31:18]process_action_free close_receipt [19:31:18]json_value_free [19:31:18]json_value_free done [19:31:18]process_json_proto returns [19:31:18]Send response to host [19:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139757,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:31:18]free response buf [19:31:18]execute_script done [19:31:18]execute_script returns [19:31:18]free content buf [19:31:18]Sock 9.Close socket [19:31:18]Sock 9.Thread stoped [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]accept exits with 7 [19:32:16]New connection [19:32:16]New thread 3066654052 created [19:32:16]Thread 3066510692 joined [19:32:16]Waiting for new connection... [19:32:16] Sock 7.Parse request [19:32:16]Sock 7.Check first char [19:32:16]Sock 7.First char is OK [19:32:16]request: POST /json_proto HTTP/1.0 [19:32:16]Method: POST [19:32:16]URL: /json_proto [19:32:16]Method is POST - this is cgi request [19:32:16]url: /json_proto [19:32:16]query_string will be loaded in cgi processing [19:32:16]execute_cgi json_proto POST (null) [19:32:16]execute_cgi path=json_proto method=POST [19:32:16]POST find Content-Length [19:32:16]Host: 172.17.50.196:8080 [19:32:16]Content-Length: 1587 [19:32:16]Content-Type: application/json [19:32:16] [19:32:16]POST finish read [19:32:16]Found Content-Length = 1587 [19:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335592", "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" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.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" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 928.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:16]execute_script... [19:32: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)335592", "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" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.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" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 928.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:16]POST & json_proto [19:32:16]process_json_proto [19:32:16]json parsed OK: [19:32:16]protocol is kg_v1.0 [19:32:16]action value=close_receipt [19:32:16]process_action close_receipt [19:32:16]cmd_close_receipt [19:32:16]MH_GetDate [19:32:16]Write to MH i2c: F0 00 00 7C 20 8B [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: F0 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: F0 09 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: F0 09 00 7C 20 00 42 DB 23 67 72 0D 1C 67 3D [19:32:16]GetLastDocTimeStamp 1730403076 [19:32:16]current date 1730403138 [19:32:16]FM_GetShiftState [19:32:16]SAM_PROTO_GetShiftState [19:32:16]wFMCommunicate request_size=4 [19:32:16]MH_SAM_APDU [19:32:16]CAPDU: 80 13 01 00 [19:32:16]Write to MH i2c: E2 08 00 7D 20 80 13 01 00 00 00 00 00 1A [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:16]Read from MH i2c: E2 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 0E 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 0E 00 7D 20 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 43 [19:32:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:32:16]wFMCommunicate OK [19:32:16]SAM_PROTO_GetShiftState done [19:32:16]FM_GetShiftState done [19:32:16]opened in 1730332621 [19:32:16]opened+sec_in_day 1730419021 [19:32:16]quantity*price = 800 [19:32:16]sum+1 = 801 [19:32:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001610043 Пиво Арпа 1,5л ПЭТ 1.000 * 325.00 = 325.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003150936 Новая Водка Organic 40% 0,48л 1.000 * 560.00 = 560.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 5.000 * 7.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 928.00 НСП 1% : 8.22 НДС 12% : 98.55 Наличными: 0.00 Безнал.: 928.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 235 31.10.2024 19:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139758 ФПД: 59117035331611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193218&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139758&fm=59117035331611&tin=02508201610067®Number=0000000000091631&sum=92800 0 [19:32:17]StoreToDocumentArchive [19:32:17]shift 557 fd 139758 [19:32:17]save to /storage/0557/doc_00139758 [19:32:17]save last doc name /storage/0557/doc_00139758 to /storage/kkm_last_doc_name [19:32:17]save OK [19:32:17]Clear old archive folders... [19:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=609 [19:32:17]tlvbuf is 00A597F0 [19:32:17]SAM_PROTO_ClearQueue [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 09 00 00 [19:32:17]Write to MH i2c: E2 08 00 8A 20 80 09 00 00 00 00 00 00 1C [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:17]Read from MH i2c: E2 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 03 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 03 00 8A 20 00 90 00 1E [19:32:17]RAPDU: 90 00 [19:32:17]wFMCommunicate OK [19:32:17]SAM_PROTO_ClearQueue done [19:32:17]KKMCreateOFDPacket [19:32:17]OFDProtocolAddRootSTLVToBuf [19:32:17]FM_MakeSignedData [19:32:17]FM_MakeSignedData [19:32:17]SAM_PROTO_SignData [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 0D 01 02 [19:32:17]Write to MH i2c: E2 08 00 8B 20 80 0D 01 02 00 00 00 00 24 [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 8B 20 00 90 00 1F [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=255 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 02 02 FA 03 00 61 02 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 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 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 [19:32:18]Write to MH i2c: E2 02 01 8C 20 80 0D 02 02 FA 00 03 00 61 02 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 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 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 00 00 8A [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 8C 20 00 90 00 20 [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=255 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 02 02 FA D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 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 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 26 00 00 00 00 [19:32:18]Write to MH i2c: E2 02 01 8D 20 80 0D 02 02 FA 00 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 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 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 26 00 00 00 00 00 00 7D [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 8D 20 00 90 00 21 [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=118 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 02 02 71 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 42 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 C4 41 E4 20 1B [19:32:18]Write to MH i2c: E2 79 00 8E 20 80 0D 02 02 71 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 42 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 C4 41 E4 20 1B 00 00 5D [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 8E 20 00 90 00 22 [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 03 02 [19:32:18]Write to MH i2c: E2 08 00 8F 20 80 0D 03 02 00 00 00 00 2A [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0B 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0B 00 8F 20 00 0A 06 02 B7 24 3C 8C CE 90 00 AE [19:32:18]RAPDU: 0A 06 02 B7 24 3C 8C CE 90 00 [19:32:18]wFMCommunicate OK [19:32:18]SAM_PROTO_SignData done [19:32:18]FM_MakeSignedData done [19:32:18]CreateOFDProtocolMessage [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 11 00 00 [19:32:18]Write to MH i2c: E2 08 00 90 20 80 11 00 00 00 00 00 00 2A [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 17 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 17 00 90 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 85 [19:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:32:18]wFMCommunicate OK [19:32:18]CreateOFDProtocolMessage done [19:32:18]OFDSenderStorePacket 139758 [19:32:18]StoreOFDPacket docnum=139758 [19:32: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 75 02 00 00 E4 2B 6D 02 CA 02 5A 03 01 00 03 00 61 02 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 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 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 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 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 42 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 C4 41 E4 20 1B 0A 06 02 B7 24 3C 8C CE [19:32:18]CheckFolder [19:32:18]dirname=/storage/ofd_packets [19:32:18]CheckFolder done [19:32:18]ProducePacketName [19:32:18]name=ofd_packets/00139758 [19:32:18]NVStorageSaveData ofd_packets/00139758 [19:32:18]File name is /storage/ofd_packets/00139758 [19:32:18]Write 659 bytes [19:32:18]NVStorageSaveData done [19:32:18]OFDSenderStorePacket done [19:32:18]KKMCreateOFDPacket done [19:32:18]NVStorageSaveData kkm_last_timestamp [19:32:18]File name is /storage/kkm_last_timestamp [19:32:18]Write 4 bytes [19:32:18]NVStorageSaveData done [19:32:18]ExternCall_PrintAddStr [19:32:18]wPrintStart [19:32:18]Write to MH i2c: 01 00 00 91 20 B1 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: 01 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: 01 07 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: 01 07 00 91 20 00 00 00 00 00 FF 0F C6 [19:32:18]RasterBufferAndPrint [19:32:18]line Счет N : (3)335592 [19:32:18]line ИНН: 02508201610067 [19:32:19]line Контрольно-Кассовый Чек [19:32:19]line ПРОДАЖА [19:32:19]line Товар: 2000031750019 [19:32:19]line Пакет Партнер Нефть [19:32:19]line 2.000 * 4.00 [19:32:19]line = 8.00 [19:32:19]line НДС 12% НСП 1% [19:32:19]line > о реализуемом товаре [19:32:19]line Товар: 4700001610043 [19:32:19]line Пиво Арпа 1,5л ПЭТ [19:32:19]line 1.000 * 325.00 [19:32:19]line = 325.00 [19:32:19]line НДС 12% НСП 1% [19:32:19]line > о реализуемом товаре [19:32:19]line Товар: 4700003150936 [19:32:19]line Новая Водка Organic 40% 0,48л [19:32:19]line 1.000 * 560.00 [19:32:19]line = 560.00 [19:32:19]line НДС 12% НСП 1% [19:32:19]line > о реализуемом товаре [19:32:19]line Товар: 2000053020015 [19:32:19]line Бумажные стаканы 250мл 1шт [19:32:19]line 5.000 * 7.00 [19:32:19]line = 35.00 [19:32:19]line НДС 12% НСП 1% [19:32:19]line > о реализуемом товаре [19:32:19]line ИТОГО: 928.00 [19:32:19]line НСП 1% : 8.22 [19:32:19]line НДС 12% : 98.55 [19:32:19]line Наличными: 0.00 [19:32:19]line Безнал.: 928.00 [19:32:19]line Место: АЗС № 101 "Партнер Нефть" [19:32:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:32:19]line СНО: Общий режим [19:32:19]line Чек 235 31.10.2024 19:32 [19:32:19]line Смена: 557 ФФД: 1.0 [19:32:19]line ЗНМ: 0300000081 [19:32:19]line РНМ: 0000000000091631 [19:32:19]line Версия ККМ: 001 [19:32:19]line Платежная система: Mbank [19:32:19]line ФМ: 0000000000874669 [19:32:19]line ФД: 139758 [19:32:19]line ФПД: 59117035331611 [19:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193218&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139758&fm=59117035331611&tin=02508201610067®Number=0000000000091631&sum=92800 [19:32:19]OFD Sender: Processing packet 139758 [packets to send 34, broken 33] [19:32:19]ProducePacketName [19:32:19]name=ofd_packets/00139758 [19:32:19]OFD Sender: To server: pG, [19:32:19]CommunicateWithHost lk.salyk.kg:30040 [19:32:19]ConnectInit lk.salyk.kg [19:32:19]line 0 [19:32:19]written 0, free lines is 4095 [19:32:19]Connected sock=10 [19:32: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 75 02 00 00 E4 2B 6D 02 CA 02 5A 03 01 00 03 00 61 02 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 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 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 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 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 42 DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 35 C4 41 E4 20 1B 0A 06 02 B7 24 3C 8C CE [19:32: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 AD 8D 47 00 9E 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 EE 21 02 00 F4 03 04 00 F0 86 23 67 B6 04 01 00 00 EC 31 BD 9D 70 00 AA C9 [19:32:19]CommunicateWithHost err = 0 [19:32:19]CheckOFDResponse [19:32:19]1017 (14) - 77093643461234 [19:32:19]1041 (16) - 0000000000874669 [19:32:19]1040 (4) - 139758 [19:32:19]1012 (4) - 31.10.2024 13:32 [19:32:19]1206 (1) - 0 [19:32:19]OFD Sender: Remove packet 139758 [19:32:19]ProducePacketName [19:32:19]name=ofd_packets/00139758 [19:32:19]NVStorageDeleteData [19:32:19]Write to MH i2c: 01 00 00 CE 20 EE [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 CE 20 00 00 00 00 00 05 0C 06 [19:32:19]RasterBufferAndPrint [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]written 0, free lines is 3084 [19:32:19]MH_Cut [19:32:19]Write to MH i2c: D1 01 00 D5 20 01 C7 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 01 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 01 00 D5 20 00 C6 [19:32:19]Write to MH i2c: 01 00 00 D6 20 F6 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]OFD Sender: No OFD packet to send [19:32:20]*** Cut start [19:32:20]*** Partial cut [19:32:20]*** CUTSNS_PIN = 1 [19:32:20]*** CUTSNS_PIN = 0 [19:32:20]*** Brake cut motor [19:32:21]Read from MH i2c: 01 [19:32:21]MH_I2C_Read... [19:32:21]*** Stop cut motor [19:32:21]*** Cut end [19:32:21]Read from MH i2c: 01 07 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 07 00 D6 20 00 00 00 00 00 FF 0F 0B [19:32:21]process_action close_receipt done [19:32:21]requested_data is exist [19:32:21]produce_requested_data [19:32:21]requested_item fm.sn is exist - process it [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 11 00 00 [19:32:21]Write to MH i2c: E2 08 00 D7 20 80 11 00 00 00 00 00 00 71 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 17 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 17 00 D7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [19:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:32:21]wFMCommunicate OK [19:32:21]requested_item fd.num is exist - process it [19:32:21]SAM_PROTO_GetFieldsCounters [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 13 00 00 [19:32:21]Write to MH i2c: E2 08 00 D8 20 80 13 00 00 00 00 00 00 74 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 62 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 62 00 D8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:32: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 EE 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:21]wFMCommunicate OK [19:32:21]SAM_PROTO_GetFieldsCounters done [19:32:21]requested_item shift.num is exist - process it [19:32:21]requested_item shift.opened is exist - process it [19:32:21]req_shift_opened [19:32:21]FM_GetShiftState [19:32:21]SAM_PROTO_GetShiftState [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 13 01 00 [19:32:21]Write to MH i2c: E2 08 00 D9 20 80 13 01 00 00 00 00 00 76 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 D9 20 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9F [19:32:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:32:21]wFMCommunicate OK [19:32:21]SAM_PROTO_GetShiftState done [19:32:21]FM_GetShiftState done [19:32:21]req_shift_opened done [19:32:21]requested_item shift.open_date is exist - process it [19:32:21]req_shift_open_date [19:32:21]req_shift_open_date done [19:32:21]produce_requested_data done [19:32:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139758,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:32:21]process_action_free close_receipt [19:32:21]json_value_free [19:32:21]json_value_free done [19:32:21]process_json_proto returns [19:32:21]Send response to host [19:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139758,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:32:21]free response buf [19:32:21]execute_script done [19:32:21]execute_script returns [19:32:21]free content buf [19:32:21]Sock 7.Close socket [19:32:21]Sock 7.Thread stoped [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:00]accept exits with 9 [19:33:00]New connection [19:33:00]New thread 3066510692 created [19:33:00]Thread 3066654052 joined [19:33:00]Waiting for new connection... [19:33:00] Sock 9.Parse request [19:33:00]Sock 9.Check first char [19:33:00]Sock 9.First char is OK [19:33:00]request: POST /json_proto HTTP/1.0 [19:33:00]Method: POST [19:33:00]URL: /json_proto [19:33:00]Method is POST - this is cgi request [19:33:00]url: /json_proto [19:33:00]query_string will be loaded in cgi processing [19:33:00]execute_cgi json_proto POST (null) [19:33:00]execute_cgi path=json_proto method=POST [19:33:00]POST find Content-Length [19:33:00]Host: 172.17.50.196:8080 [19:33:00]Content-Length: 625 [19:33:00]Content-Type: application/json [19:33:00] [19:33:00]POST finish read [19:33:00]Found Content-Length = 625 [19:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335593", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:00]execute_script... [19:33:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335593", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:00]POST & json_proto [19:33:00]process_json_proto [19:33:00]json parsed OK: [19:33:00]protocol is kg_v1.0 [19:33:00]action value=close_receipt [19:33:00]process_action close_receipt [19:33:00]cmd_close_receipt [19:33:00]MH_GetDate [19:33:00]Write to MH i2c: F0 00 00 DA 20 E9 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: F0 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: F0 09 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: F0 09 00 DA 20 00 6E DB 23 67 72 0D 1C 67 C7 [19:33:00]GetLastDocTimeStamp 1730403138 [19:33:00]current date 1730403182 [19:33:00]FM_GetShiftState [19:33:00]SAM_PROTO_GetShiftState [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 13 01 00 [19:33:00]Write to MH i2c: E2 08 00 DB 20 80 13 01 00 00 00 00 00 78 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 DB 20 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [19:33:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_GetShiftState done [19:33:00]FM_GetShiftState done [19:33:00]opened in 1730332621 [19:33:00]opened+sec_in_day 1730419021 [19:33:00]quantity*price = 15400 [19:33:00]sum+1 = 15401 [19:33:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 236 31.10.2024 19:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139759 ФПД: 136515399460431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139759&fm=136515399460431&tin=02508201610067®Number=0000000000091631&sum=15400 0 [19:33:01]StoreToDocumentArchive [19:33:01]shift 557 fd 139759 [19:33:01]save to /storage/0557/doc_00139759 [19:33:01]save last doc name /storage/0557/doc_00139759 to /storage/kkm_last_doc_name [19:33:01]save OK [19:33:01]Clear old archive folders... [19:33:01]ProcessDocumentItem done err = 0, tmpTLVsize=277 [19:33:01]tlvbuf is 00A17010 [19:33:01]SAM_PROTO_ClearQueue [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 09 00 00 [19:33:01]Write to MH i2c: E2 08 00 E8 20 80 09 00 00 00 00 00 00 7A [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]SAM_PROTO_ClearQueue done [19:33:01]KKMCreateOFDPacket [19:33:01]OFDProtocolAddRootSTLVToBuf [19:33:01]FM_MakeSignedData [19:33:01]FM_MakeSignedData [19:33:01]SAM_PROTO_SignData [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 0D 01 02 [19:33:01]Write to MH i2c: E2 08 00 E9 20 80 0D 01 02 00 00 00 00 82 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]wFMCommunicate request_size=255 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 6E DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 [19:33:01]Write to MH i2c: E2 02 01 EA 20 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 6E DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 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 C8 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]wFMCommunicate request_size=36 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 21 02 00 35 04 06 00 7C 28 F7 E4 26 4F [19:33:01]Write to MH i2c: E2 27 00 EB 20 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 21 02 00 35 04 06 00 7C 28 F7 E4 26 4F 00 00 B8 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 0D 03 02 [19:33:01]Write to MH i2c: E2 08 00 EC 20 80 0D 03 02 00 00 00 00 87 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 0B 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 0B 00 EC 20 00 D6 B8 9C C1 0B BC D6 3A 90 00 4A [19:33:01]RAPDU: D6 B8 9C C1 0B BC D6 3A 90 00 [19:33:01]wFMCommunicate OK [19:33:01]SAM_PROTO_SignData done [19:33:01]FM_MakeSignedData done [19:33:01]CreateOFDProtocolMessage [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 11 00 00 [19:33:01]Write to MH i2c: E2 08 00 ED 20 80 11 00 00 00 00 00 00 87 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 17 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 17 00 ED 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E2 [19:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:33:01]wFMCommunicate OK [19:33:01]CreateOFDProtocolMessage done [19:33:01]OFDSenderStorePacket 139759 [19:33:01]StoreOFDPacket docnum=139759 [19:33: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 29 01 00 00 E6 D5 21 01 F0 72 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 6E DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7C 28 F7 E4 26 4F D6 B8 9C C1 0B BC D6 3A [19:33:01]CheckFolder [19:33:01]dirname=/storage/ofd_packets [19:33:01]CheckFolder done [19:33:01]ProducePacketName [19:33:01]name=ofd_packets/00139759 [19:33:01]NVStorageSaveData ofd_packets/00139759 [19:33:01]File name is /storage/ofd_packets/00139759 [19:33:01]Write 327 bytes [19:33:01]NVStorageSaveData done [19:33:01]OFDSenderStorePacket done [19:33:01]KKMCreateOFDPacket done [19:33:01]NVStorageSaveData kkm_last_timestamp [19:33:01]File name is /storage/kkm_last_timestamp [19:33:01]Write 4 bytes [19:33:01]NVStorageSaveData done [19:33:01]ExternCall_PrintAddStr [19:33:01]wPrintStart [19:33:01]Write to MH i2c: 01 00 00 EE 20 0E [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 EE 20 00 00 00 00 00 FF 0F 23 [19:33:01]RasterBufferAndPrint [19:33:01]line Счет N : (3)335593 [19:33:01]line ИНН: 02508201610067 [19:33:01]line Контрольно-Кассовый Чек [19:33:01]line ПРОДАЖА [19:33:01]line Товар: 46230607 [19:33:01]line Сигареты Richmond Bronze Edition [19:33:01]line 1.000 * 154.00 [19:33:01]line = 154.00 [19:33:01]line НДС 12% НСП 1% [19:33:01]line > о реализуемом товаре [19:33:01]line ИТОГО: 154.00 [19:33:01]line НСП 1% : 1.36 [19:33:01]line НДС 12% : 16.35 [19:33:01]line Наличными: 154.00 [19:33:01]line Безнал.: 0.00 [19:33:01]line Место: АЗС № 101 "Партнер Нефть" [19:33:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:33:01]line СНО: Общий режим [19:33:01]line Чек 236 31.10.2024 19:33 [19:33:01]line Смена: 557 ФФД: 1.0 [19:33:01]line ЗНМ: 0300000081 [19:33:01]line РНМ: 0000000000091631 [19:33:01]line Версия ККМ: 001 [19:33:01]line ФМ: 0000000000874669 [19:33:01]line ФД: 139759 [19:33:01]line ФПД: 136515399460431 [19:33:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139759&fm=136515399460431&tin=02508201610067®Number=0000000000091631&sum=15400 [19:33:02]line 0 [19:33:02]OFD Sender: Processing packet 139759 [packets to send 34, broken 33] [19:33:02]ProducePacketName [19:33:02]name=ofd_packets/00139759 [19:33:02]OFD Sender: To server: pG, [19:33:02]CommunicateWithHost lk.salyk.kg:30040 [19:33:02]ConnectInit lk.salyk.kg [19:33:02]written 0, free lines is 4095 [19:33:02]Connected sock=10 [19:33: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 29 01 00 00 E6 D5 21 01 F0 72 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 6E DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 7C 28 F7 E4 26 4F D6 B8 9C C1 0B BC D6 3A [19:33: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 E4 E0 47 00 44 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 EF 21 02 00 F4 03 04 00 1B 87 23 67 B6 04 01 00 00 BD A4 13 24 C9 CE A5 64 [19:33:02]CommunicateWithHost err = 0 [19:33:02]CheckOFDResponse [19:33:02]1017 (14) - 77093643461234 [19:33:02]1041 (16) - 0000000000874669 [19:33:02]1040 (4) - 139759 [19:33:02]1012 (4) - 31.10.2024 13:33 [19:33:02]1206 (1) - 0 [19:33:02]OFD Sender: Remove packet 139759 [19:33:02]ProducePacketName [19:33:02]name=ofd_packets/00139759 [19:33:02]NVStorageDeleteData [19:33:02]Write to MH i2c: 01 00 00 17 21 38 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 07 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 07 00 17 21 00 00 00 00 00 E8 0C 33 [19:33:02]RasterBufferAndPrint [19:33:02]line [19:33:02]line [19:33:02]line [19:33:02]line [19:33:02]line [19:33:02]written 0, free lines is 3313 [19:33:02]MH_Cut [19:33:02]Write to MH i2c: D1 01 00 1E 21 01 11 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: D1 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: D1 01 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: D1 01 00 1E 21 00 10 [19:33:02]Write to MH i2c: 01 00 00 1F 21 40 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:03]OFD Sender: No OFD packet to send [19:33:03]*** Cut start [19:33:03]*** Partial cut [19:33:03]*** CUTSNS_PIN = 1 [19:33:03]*** CUTSNS_PIN = 0 [19:33:03]*** Brake cut motor [19:33:03]Read from MH i2c: 01 [19:33:03]MH_I2C_Read... [19:33:03]*** Stop cut motor [19:33:03]*** Cut end [19:33:03]Read from MH i2c: 01 07 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: 01 07 00 1F 21 00 00 00 00 00 FF 0F 55 [19:33:03]process_action close_receipt done [19:33:03]requested_data is exist [19:33:03]produce_requested_data [19:33:03]requested_item fm.sn is exist - process it [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 11 00 00 [19:33:03]Write to MH i2c: E2 08 00 20 21 80 11 00 00 00 00 00 00 BB [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 20 21 00 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:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:33:04]wFMCommunicate OK [19:33:04]requested_item fd.num is exist - process it [19:33:04]SAM_PROTO_GetFieldsCounters [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 13 00 00 [19:33:04]Write to MH i2c: E2 08 00 21 21 80 13 00 00 00 00 00 00 BE [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 62 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 62 00 21 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:33:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_GetFieldsCounters done [19:33:04]requested_item shift.num is exist - process it [19:33:04]requested_item shift.opened is exist - process it [19:33:04]req_shift_opened [19:33:04]FM_GetShiftState [19:33:04]SAM_PROTO_GetShiftState [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 13 01 00 [19:33:04]Write to MH i2c: E2 08 00 22 21 80 13 01 00 00 00 00 00 C0 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0E 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0E 00 22 21 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E9 [19:33:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_GetShiftState done [19:33:04]FM_GetShiftState done [19:33:04]req_shift_opened done [19:33:04]requested_item shift.open_date is exist - process it [19:33:04]req_shift_open_date [19:33:04]req_shift_open_date done [19:33:04]produce_requested_data done [19:33:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139759,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:33:04]process_action_free close_receipt [19:33:04]json_value_free [19:33:04]json_value_free done [19:33:04]process_json_proto returns [19:33:04]Send response to host [19:33:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139759,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:33:04]free response buf [19:33:04]execute_script done [19:33:04]execute_script returns [19:33:04]free content buf [19:33:04]Sock 9.Close socket [19:33:04]Sock 9.Thread stoped [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:33]accept exits with 7 [19:33:33]New connection [19:33:33]New thread 3066654052 created [19:33:33]Thread 3066510692 joined [19:33:33]Waiting for new connection... [19:33:33] Sock 7.Parse request [19:33:33]Sock 7.Check first char [19:33:33]Sock 7.First char is OK [19:33:33]request: POST /json_proto HTTP/1.0 [19:33:33]Method: POST [19:33:33]URL: /json_proto [19:33:33]Method is POST - this is cgi request [19:33:33]url: /json_proto [19:33:33]query_string will be loaded in cgi processing [19:33:33]execute_cgi json_proto POST (null) [19:33:33]execute_cgi path=json_proto method=POST [19:33:33]POST find Content-Length [19:33:33]Host: 172.17.50.196:8080 [19:33:33]Content-Length: 678 [19:33:33]Content-Type: application/json [19:33:33] [19:33:33]POST finish read [19:33:33]Found Content-Length = 678 [19:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095441", "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" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:33]execute_script... [19:33:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095441", "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" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:33]POST & json_proto [19:33:33]process_json_proto [19:33:33]json parsed OK: [19:33:33]protocol is kg_v1.0 [19:33:33]action value=close_receipt [19:33:33]process_action close_receipt [19:33:33]cmd_close_receipt [19:33:33]MH_GetDate [19:33:33]Write to MH i2c: F0 00 00 23 21 33 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: F0 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: F0 09 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: F0 09 00 23 21 00 8F DB 23 67 72 0D 1C 67 32 [19:33:33]GetLastDocTimeStamp 1730403182 [19:33:33]current date 1730403215 [19:33:33]FM_GetShiftState [19:33:33]SAM_PROTO_GetShiftState [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 13 01 00 [19:33:33]Write to MH i2c: E2 08 00 24 21 80 13 01 00 00 00 00 00 C2 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0E 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0E 00 24 21 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EB [19:33:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:33:33]wFMCommunicate OK [19:33:33]SAM_PROTO_GetShiftState done [19:33:33]FM_GetShiftState done [19:33:33]opened in 1730332621 [19:33:33]opened+sec_in_day 1730419021 [19:33:33]quantity*price = 40006 [19:33:33]sum+1 = 40007 [19:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 237 31.10.2024 19:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139760 ФПД: 122450558052350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193335&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139760&fm=122450558052350&tin=02508201610067®Number=0000000000091631&sum=40000 [19:33:34]StoreToDocumentArchive [19:33:34]shift 557 fd 139760 [19:33:34]save to /storage/0557/doc_00139760 [19:33:34]save last doc name /storage/0557/doc_00139760 to /storage/kkm_last_doc_name [19:33:34]save OK [19:33:34]Clear old archive folders... [19:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:34]tlvbuf is 00A17230 [19:33:34]SAM_PROTO_ClearQueue [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 09 00 00 [19:33:34]Write to MH i2c: E2 08 00 31 21 80 09 00 00 00 00 00 00 C4 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]SAM_PROTO_ClearQueue done [19:33:34]KKMCreateOFDPacket [19:33:34]OFDProtocolAddRootSTLVToBuf [19:33:34]FM_MakeSignedData [19:33:34]FM_MakeSignedData [19:33:34]SAM_PROTO_SignData [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 0D 01 02 [19:33:34]Write to MH i2c: E2 08 00 32 21 80 0D 01 02 00 00 00 00 CC [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]wFMCommunicate request_size=255 [19:33:34]MH_SAM_APDU [19:33:34]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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 8F DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F [19:33:34]Write to MH i2c: E2 02 01 33 21 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 8F DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F 00 00 BC [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]wFMCommunicate request_size=10 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 0D 02 02 05 5E 3E 03 E7 FE [19:33:34]Write to MH i2c: E2 0D 00 34 21 80 0D 02 02 05 00 5E 3E 03 E7 FE 00 00 5D [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [19:33:34]RAPDU: 90 00 [19:33:34]wFMCommunicate OK [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 0D 03 02 [19:33:34]Write to MH i2c: E2 08 00 35 21 80 0D 03 02 00 00 00 00 D1 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:35]Read from MH i2c: E2 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 0B 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 0B 00 35 21 00 F4 07 31 A5 73 E0 E9 4F 90 00 2E [19:33:35]RAPDU: F4 07 31 A5 73 E0 E9 4F 90 00 [19:33:35]wFMCommunicate OK [19:33:35]SAM_PROTO_SignData done [19:33:35]FM_MakeSignedData done [19:33:35]CreateOFDProtocolMessage [19:33:35]wFMCommunicate request_size=4 [19:33:35]MH_SAM_APDU [19:33:35]CAPDU: 80 11 00 00 [19:33:35]Write to MH i2c: E2 08 00 36 21 80 11 00 00 00 00 00 00 D1 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:35]Read from MH i2c: E2 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 17 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 17 00 36 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2C [19:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:33:35]wFMCommunicate OK [19:33:35]CreateOFDProtocolMessage done [19:33:35]OFDSenderStorePacket 139760 [19:33:35]StoreOFDPacket docnum=139760 [19:33: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 0F 01 00 00 F6 2C 07 01 61 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 8F DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F 5E 3E 03 E7 FE F4 07 31 A5 73 E0 E9 4F [19:33:35]CheckFolder [19:33:35]dirname=/storage/ofd_packets [19:33:35]CheckFolder done [19:33:35]ProducePacketName [19:33:35]name=ofd_packets/00139760 [19:33:35]NVStorageSaveData ofd_packets/00139760 [19:33:35]File name is /storage/ofd_packets/00139760 [19:33:35]Write 301 bytes [19:33:35]NVStorageSaveData done [19:33:35]OFDSenderStorePacket done [19:33:35]KKMCreateOFDPacket done [19:33:35]NVStorageSaveData kkm_last_timestamp [19:33:35]File name is /storage/kkm_last_timestamp [19:33:35]Write 4 bytes [19:33:35]NVStorageSaveData done [19:33:35]ExternCall_PrintAddStr [19:33:35]wPrintStart [19:33:35]Write to MH i2c: 01 00 00 37 21 58 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 07 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 07 00 37 21 00 00 00 00 00 FF 0F 6D [19:33:35]RasterBufferAndPrint [19:33:35]line Счет N : (1)1095441 [19:33:35]line ИНН: 02508201610067 [19:33:35]line Контрольно-Кассовый Чек [19:33:35]line ПРОДАЖА [19:33:35]line ТРК (МРК, ГНК) : 33 [19:33:35]line Товар: 2710124130 [19:33:35]line Аи-92-К-2 [19:33:35]line 5.980 * 66.90 [19:33:35]line = 400.06 [19:33:35]line НДС 12% НСП 1% [19:33:35]line > о реализуемом товаре [19:33:35]line ОКРУГЛЕНИЕ: -0.06 [19:33:35]line ИТОГО: 400.00 [19:33:35]line Внесено: 400.00 [19:33:35]line СДАЧА: 0.00 [19:33:35]line НСП 1% : 3.54 [19:33:35]line НДС 12% : 42.48 [19:33:35]line Наличными: 400.00 [19:33:35]line Безнал.: 0.00 [19:33:35]line Место: АЗС № 101 "Партнер Нефть" [19:33:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:33:35]line СНО: Общий режим [19:33:35]line Чек 237 31.10.2024 19:33 [19:33:35]line Смена: 557 ФФД: 1.0 [19:33:35]line ЗНМ: 0300000081 [19:33:35]line РНМ: 0000000000091631 [19:33:35]line Версия ККМ: 001 [19:33:35]line ФМ: 0000000000874669 [19:33:35]line ФД: 139760 [19:33:35]line ФПД: 122450558052350 [19:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193335&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139760&fm=122450558052350&tin=02508201610067®Number=0000000000091631&sum=40000 [19:33:35]written 0, free lines is 4095 [19:33:35]OFD Sender: Processing packet 139760 [packets to send 34, broken 33] [19:33:35]ProducePacketName [19:33:35]name=ofd_packets/00139760 [19:33:35]OFD Sender: To server: pG, [19:33:35]CommunicateWithHost lk.salyk.kg:30040 [19:33:35]ConnectInit lk.salyk.kg [19:33:35]Connected sock=10 [19:33: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 0F 01 00 00 F6 2C 07 01 61 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 8F DB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 6F 5E 3E 03 E7 FE F4 07 31 A5 73 E0 E9 4F [19:33: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 13 BD 47 00 F0 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 21 02 00 F4 03 04 00 3C 87 23 67 B6 04 01 00 00 8F 1A 72 95 F2 48 B2 80 [19:33:35]CommunicateWithHost err = 0 [19:33:35]CheckOFDResponse [19:33:35]1017 (14) - 77093643461234 [19:33:35]1041 (16) - 0000000000874669 [19:33:35]1040 (4) - 139760 [19:33:35]1012 (4) - 31.10.2024 13:33 [19:33:35]1206 (1) - 0 [19:33:35]OFD Sender: Remove packet 139760 [19:33:35]ProducePacketName [19:33:35]name=ofd_packets/00139760 [19:33:35]NVStorageDeleteData [19:33:35]Write to MH i2c: 01 00 00 62 21 83 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 07 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 F0 0C 86 [19:33:35]RasterBufferAndPrint [19:33:35]line [19:33:35]line [19:33:35]line [19:33:35]line [19:33:35]line [19:33:35]written 0, free lines is 3318 [19:33:35]MH_Cut [19:33:35]Write to MH i2c: D1 01 00 69 21 01 5C [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: D1 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: D1 01 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: D1 01 00 69 21 00 5B [19:33:35]Write to MH i2c: 01 00 00 6A 21 8B [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:36]OFD Sender: No OFD packet to send [19:33:36]*** Cut start [19:33:36]*** Partial cut [19:33:36]*** CUTSNS_PIN = 1 [19:33:36]*** CUTSNS_PIN = 0 [19:33:36]*** Brake cut motor [19:33:37]Read from MH i2c: 01 [19:33:37]MH_I2C_Read... [19:33:37]*** Stop cut motor [19:33:37]*** Cut end [19:33:37]Read from MH i2c: 01 07 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 6A 21 00 00 00 00 00 FF 0F A0 [19:33:37]process_action close_receipt done [19:33:37]requested_data is exist [19:33:37]produce_requested_data [19:33:37]requested_item fm.sn is exist - process it [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 11 00 00 [19:33:37]Write to MH i2c: E2 08 00 6B 21 80 11 00 00 00 00 00 00 06 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 17 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 17 00 6B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 61 [19: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 [19:33:37]wFMCommunicate OK [19:33:37]requested_item fd.num is exist - process it [19:33:37]SAM_PROTO_GetFieldsCounters [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 13 00 00 [19:33:37]Write to MH i2c: E2 08 00 6C 21 80 13 00 00 00 00 00 00 09 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 62 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 62 00 6C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [19:33: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 F0 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:37]wFMCommunicate OK [19:33:37]SAM_PROTO_GetFieldsCounters done [19:33:37]requested_item shift.num is exist - process it [19:33:37]requested_item shift.opened is exist - process it [19:33:37]req_shift_opened [19:33:37]FM_GetShiftState [19:33:37]SAM_PROTO_GetShiftState [19:33:37]wFMCommunicate request_size=4 [19:33:37]MH_SAM_APDU [19:33:37]CAPDU: 80 13 01 00 [19:33:37]Write to MH i2c: E2 08 00 6D 21 80 13 01 00 00 00 00 00 0B [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:37]Read from MH i2c: E2 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 0E 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: E2 0E 00 6D 21 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 34 [19:33:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:33:37]wFMCommunicate OK [19:33:37]SAM_PROTO_GetShiftState done [19:33:37]FM_GetShiftState done [19:33:37]req_shift_opened done [19:33:37]requested_item shift.open_date is exist - process it [19:33:37]req_shift_open_date [19:33:37]req_shift_open_date done [19:33:37]produce_requested_data done [19:33:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139760,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:33:37]process_action_free close_receipt [19:33:37]json_value_free [19:33:37]json_value_free done [19:33:37]process_json_proto returns [19:33:37]Send response to host [19:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139760,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:33:37]free response buf [19:33:37]execute_script done [19:33:37]execute_script returns [19:33:37]free content buf [19:33:37]Sock 7.Close socket [19:33:37]Sock 7.Thread stoped [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:42]accept exits with 9 [19:37:42]New connection [19:37:42]New thread 3066510692 created [19:37:42]Thread 3066654052 joined [19:37:42]Waiting for new connection... [19:37:42] Sock 9.Parse request [19:37:42]Sock 9.Check first char [19:37:42]Sock 9.First char is OK [19:37:42]request: POST /json_proto HTTP/1.0 [19:37:42]Method: POST [19:37:42]URL: /json_proto [19:37:42]Method is POST - this is cgi request [19:37:42]url: /json_proto [19:37:42]query_string will be loaded in cgi processing [19:37:42]execute_cgi json_proto POST (null) [19:37:42]execute_cgi path=json_proto method=POST [19:37:42]POST find Content-Length [19:37:42]Host: 172.17.50.196:8080 [19:37:42]Content-Length: 1215 [19:37:42]Content-Type: application/json [19:37:42] [19:37:42]POST finish read [19:37:42]Found Content-Length = 1215 [19:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335594", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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": "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" : 364.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:42]execute_script... [19:37:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335594", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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": "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" : 364.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:42]POST & json_proto [19:37:42]process_json_proto [19:37:42]json parsed OK: [19:37:42]protocol is kg_v1.0 [19:37:42]action value=close_receipt [19:37:42]process_action close_receipt [19:37:42]cmd_close_receipt [19:37:42]MH_GetDate [19:37:42]Write to MH i2c: F0 00 00 6E 21 7E [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: F0 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: F0 09 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: F0 09 00 6E 21 00 88 DC 23 67 72 0D 1C 67 77 [19:37:42]GetLastDocTimeStamp 1730403215 [19:37:42]current date 1730403464 [19:37:42]FM_GetShiftState [19:37:42]SAM_PROTO_GetShiftState [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 13 01 00 [19:37:42]Write to MH i2c: E2 08 00 6F 21 80 13 01 00 00 00 00 00 0D [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 0E 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 0E 00 6F 21 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 36 [19:37:42]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:37:42]wFMCommunicate OK [19:37:42]SAM_PROTO_GetShiftState done [19:37:42]FM_GetShiftState done [19:37:42]opened in 1730332621 [19:37:42]opened+sec_in_day 1730419021 [19:37:42]quantity*price = 4900 [19:37:42]sum+1 = 4901 [19:37:42]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% > о реализуемом товаре Товар: 4700003010032 Чай хол Let`s Go! чер персик ПЭТ 0,5л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 364.00 НСП 1% : 3.21 НДС 12% : 38.65 Наличными: 364.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 238 31.10.2024 19:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139761 ФПД: 148271745694620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193744&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139761&fm=148271745694620&tin=02508201610067®Number=0000000000091631&sum=36400 0 [19:37:43]StoreToDocumentArchive [19:37:43]shift 557 fd 139761 [19:37:43]save to /storage/0557/doc_00139761 [19:37:43]save last doc name /storage/0557/doc_00139761 to /storage/kkm_last_doc_name [19:37:43]save OK [19:37:43]Clear old archive folders... [19:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=515 [19:37:43]tlvbuf is 00A83D30 [19:37:43]SAM_PROTO_ClearQueue [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 09 00 00 [19:37:43]Write to MH i2c: E2 08 00 7C 21 80 09 00 00 00 00 00 00 0F [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [19:37:43]RAPDU: 90 00 [19:37:43]wFMCommunicate OK [19:37:43]SAM_PROTO_ClearQueue done [19:37:43]KKMCreateOFDPacket [19:37:43]OFDProtocolAddRootSTLVToBuf [19:37:43]FM_MakeSignedData [19:37:43]FM_MakeSignedData [19:37:43]SAM_PROTO_SignData [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 0D 01 02 [19:37:43]Write to MH i2c: E2 08 00 7D 21 80 0D 01 02 00 00 00 00 17 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [19:37:43]RAPDU: 90 00 [19:37:43]wFMCommunicate OK [19:37:43]wFMCommunicate request_size=255 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 0D 02 02 FA 03 00 03 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 [19:37:43]Write to MH i2c: E2 02 01 7E 21 80 0D 02 02 FA 00 03 00 03 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 00 35 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [19:37:44]RAPDU: 90 00 [19:37:44]wFMCommunicate OK [19:37:44]wFMCommunicate request_size=255 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 0D 02 02 FA 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 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 88 DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [19:37:44]Write to MH i2c: E2 02 01 7F 21 80 0D 02 02 FA 00 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 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 88 DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 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 04 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [19:37:44]RAPDU: 90 00 [19:37:44]wFMCommunicate OK [19:37:44]wFMCommunicate request_size=24 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 0D 02 02 13 39 10 04 04 00 F1 21 02 00 35 04 06 00 86 DA 34 BB 7B 9C [19:37:44]Write to MH i2c: E2 1B 00 80 21 80 0D 02 02 13 00 39 10 04 04 00 F1 21 02 00 35 04 06 00 86 DA 34 BB 7B 9C 00 00 4B [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [19:37:44]RAPDU: 90 00 [19:37:44]wFMCommunicate OK [19:37:44]wFMCommunicate request_size=4 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 0D 03 02 [19:37:44]Write to MH i2c: E2 08 00 81 21 80 0D 03 02 00 00 00 00 1D [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 0B 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 0B 00 81 21 00 89 D7 14 E8 7F 69 DE AB 90 00 EB [19:37:44]RAPDU: 89 D7 14 E8 7F 69 DE AB 90 00 [19:37:44]wFMCommunicate OK [19:37:44]SAM_PROTO_SignData done [19:37:44]FM_MakeSignedData done [19:37:44]CreateOFDProtocolMessage [19:37:44]wFMCommunicate request_size=4 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 11 00 00 [19:37:44]Write to MH i2c: E2 08 00 82 21 80 11 00 00 00 00 00 00 1D [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 17 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 17 00 82 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 78 [19:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:37:44]wFMCommunicate OK [19:37:44]CreateOFDProtocolMessage done [19:37:44]OFDSenderStorePacket 139761 [19:37:44]StoreOFDPacket docnum=139761 [19:37: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 17 02 00 00 7D F1 0F 02 0E AC 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 88 DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 86 DA 34 BB 7B 9C 89 D7 14 E8 7F 69 DE AB [19:37:44]CheckFolder [19:37:44]dirname=/storage/ofd_packets [19:37:44]CheckFolder done [19:37:44]ProducePacketName [19:37:44]name=ofd_packets/00139761 [19:37:44]NVStorageSaveData ofd_packets/00139761 [19:37:44]File name is /storage/ofd_packets/00139761 [19:37:44]Write 565 bytes [19:37:44]NVStorageSaveData done [19:37:44]OFDSenderStorePacket done [19:37:44]KKMCreateOFDPacket done [19:37:44]NVStorageSaveData kkm_last_timestamp [19:37:44]File name is /storage/kkm_last_timestamp [19:37:44]Write 4 bytes [19:37:44]NVStorageSaveData done [19:37:44]ExternCall_PrintAddStr [19:37:44]wPrintStart [19:37:44]Write to MH i2c: 01 00 00 83 21 A4 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 83 21 00 00 00 00 00 FF 0F B9 [19:37:44]RasterBufferAndPrint [19:37:44]line Счет N : (3)335594 [19:37:44]line ИНН: 02508201610067 [19:37:44]line Контрольно-Кассовый Чек [19:37:44]line ПРОДАЖА [19:37:44]line Товар: 4700000310036 [19:37:44]line Вода Жалалабат 27 0,5л [19:37:44]line 1.000 * 49.00 [19:37:44]line = 49.00 [19:37:44]line НДС 12% НСП 1% [19:37:44]line > о реализуемом товаре [19:37:44]line Товар: 90448300 [19:37:44]line Энерг напиток Red Bull 0,355л [19:37:44]line 1.000 * 265.00 [19:37:44]line = 265.00 [19:37:44]line НДС 12% НСП 1% [19:37:44]line > о реализуемом товаре [19:37:44]line Товар: 4700003010032 [19:37:44]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [19:37:44]line 1.000 * 50.00 [19:37:44]line = 50.00 [19:37:44]line НДС 12% НСП 1% [19:37:44]line > о реализуемом товаре [19:37:44]line ИТОГО: 364.00 [19:37:44]line НСП 1% : 3.21 [19:37:44]line НДС 12% : 38.65 [19:37:44]line Наличными: 364.00 [19:37:44]line Безнал.: 0.00 [19:37:44]line Место: АЗС № 101 "Партнер Нефть" [19:37:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:37:44]line СНО: Общий режим [19:37:44]line Чек 238 31.10.2024 19:37 [19:37:44]line Смена: 557 ФФД: 1.0 [19:37:44]line ЗНМ: 0300000081 [19:37:44]line РНМ: 0000000000091631 [19:37:44]line Версия ККМ: 001 [19:37:44]line ФМ: 0000000000874669 [19:37:44]line ФД: 139761 [19:37:44]line ФПД: 148271745694620 [19:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193744&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139761&fm=148271745694620&tin=02508201610067®Number=0000000000091631&sum=36400 [19:37:44]line 0 [19:37:44]OFD Sender: Processing packet 139761 [packets to send 34, broken 33] [19:37:44]ProducePacketName [19:37:44]name=ofd_packets/00139761 [19:37:44]OFD Sender: To server: pG, [19:37:44]CommunicateWithHost lk.salyk.kg:30040 [19:37:44]ConnectInit lk.salyk.kg [19:37:44]written 0, free lines is 4095 [19:37:45]Connected sock=10 [19:37:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 17 02 00 00 7D F1 0F 02 0E AC 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 88 DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 86 DA 34 BB 7B 9C 89 D7 14 E8 7F 69 DE AB [19:37:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BD 94 47 00 2F F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 21 02 00 F4 03 04 00 35 88 23 67 B6 04 01 00 00 F9 56 6C CF AB 37 7A 7F [19:37:45]CommunicateWithHost err = 0 [19:37:45]CheckOFDResponse [19:37:45]1017 (14) - 77093643461234 [19:37:45]1041 (16) - 0000000000874669 [19:37:45]1040 (4) - 139761 [19:37:45]1012 (4) - 31.10.2024 13:37 [19:37:45]1206 (1) - 0 [19:37:45]OFD Sender: Remove packet 139761 [19:37:45]ProducePacketName [19:37:45]name=ofd_packets/00139761 [19:37:45]NVStorageDeleteData [19:37:45]Write to MH i2c: 01 00 00 B8 21 D9 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 07 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 72 0C 5E [19:37:45]RasterBufferAndPrint [19:37:45]line [19:37:45]line [19:37:45]line [19:37:45]line [19:37:45]line [19:37:45]written 0, free lines is 3195 [19:37:45]MH_Cut [19:37:45]Write to MH i2c: D1 01 00 BF 21 01 B2 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: D1 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: D1 01 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: D1 01 00 BF 21 00 B1 [19:37:45]Write to MH i2c: 01 00 00 C0 21 E1 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]OFD Sender: No OFD packet to send [19:37:46]*** Cut start [19:37:46]*** Partial cut [19:37:46]*** CUTSNS_PIN = 1 [19:37:46]*** CUTSNS_PIN = 0 [19:37:46]*** Brake cut motor [19:37:46]Read from MH i2c: 01 [19:37:46]MH_I2C_Read... [19:37:46]*** Stop cut motor [19:37:46]*** Cut end [19:37:46]Read from MH i2c: 01 07 00 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: 01 07 00 C0 21 00 00 00 00 00 FF 0F F6 [19:37:46]process_action close_receipt done [19:37:46]requested_data is exist [19:37:46]produce_requested_data [19:37:46]requested_item fm.sn is exist - process it [19:37:46]wFMCommunicate request_size=4 [19:37:46]MH_SAM_APDU [19:37:46]CAPDU: 80 11 00 00 [19:37:46]Write to MH i2c: E2 08 00 C1 21 80 11 00 00 00 00 00 00 5C [19:37:46]Write i2c OK [19:37:46]MH_I2C_Read... [19:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:46]Read from MH i2c: E2 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: E2 17 00 [19:37:46]MH_I2C_Read... [19:37:46]Read from MH i2c: E2 17 00 C1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B7 [19:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:37:46]wFMCommunicate OK [19:37:46]requested_item fd.num is exist - process it [19:37:46]SAM_PROTO_GetFieldsCounters [19:37:46]wFMCommunicate request_size=4 [19:37:46]MH_SAM_APDU [19:37:46]CAPDU: 80 13 00 00 [19:37:46]Write to MH i2c: E2 08 00 C2 21 80 13 00 00 00 00 00 00 5F [19:37:46]Write i2c OK [19:37:46]MH_I2C_Read... [19:37:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:47]Read from MH i2c: E2 [19:37:47]MH_I2C_Read... [19:37:47]Read from MH i2c: E2 62 00 [19:37:47]MH_I2C_Read... [19:37:47]Read from MH i2c: E2 62 00 C2 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:37:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:47]wFMCommunicate OK [19:37:47]SAM_PROTO_GetFieldsCounters done [19:37:47]requested_item shift.num is exist - process it [19:37:47]requested_item shift.opened is exist - process it [19:37:47]req_shift_opened [19:37:47]FM_GetShiftState [19:37:47]SAM_PROTO_GetShiftState [19:37:47]wFMCommunicate request_size=4 [19:37:47]MH_SAM_APDU [19:37:47]CAPDU: 80 13 01 00 [19:37:47]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [19:37:47]Write i2c OK [19:37:47]MH_I2C_Read... [19:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:47]Read from MH i2c: E2 [19:37:47]MH_I2C_Read... [19:37:47]Read from MH i2c: E2 0E 00 [19:37:47]MH_I2C_Read... [19:37:47]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8A [19:37:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:37:47]wFMCommunicate OK [19:37:47]SAM_PROTO_GetShiftState done [19:37:47]FM_GetShiftState done [19:37:47]req_shift_opened done [19:37:47]requested_item shift.open_date is exist - process it [19:37:47]req_shift_open_date [19:37:47]req_shift_open_date done [19:37:47]produce_requested_data done [19:37:47]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139761,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:37:47]process_action_free close_receipt [19:37:47]json_value_free [19:37:47]json_value_free done [19:37:47]process_json_proto returns [19:37:47]Send response to host [19:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139761,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:37:47]free response buf [19:37:47]execute_script done [19:37:47]execute_script returns [19:37:47]free content buf [19:37:47]Sock 9.Close socket [19:37:47]Sock 9.Thread stoped [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:09]accept exits with 7 [19:39:09]New connection [19:39:09]New thread 3066654052 created [19:39:09]Thread 3066510692 joined [19:39:09]Waiting for new connection... [19:39:09] Sock 7.Parse request [19:39:09]Sock 7.Check first char [19:39:09]Sock 7.First char is OK [19:39:09]request: POST /json_proto HTTP/1.0 [19:39:09]Method: POST [19:39:09]URL: /json_proto [19:39:09]Method is POST - this is cgi request [19:39:09]url: /json_proto [19:39:09]query_string will be loaded in cgi processing [19:39:09]execute_cgi json_proto POST (null) [19:39:09]execute_cgi path=json_proto method=POST [19:39:09]POST find Content-Length [19:39:09]Host: 172.17.50.196:8080 [19:39:09]Content-Length: 620 [19:39:09]Content-Type: application/json [19:39:09] [19:39:09]POST finish read [19:39:09]Found Content-Length = 620 [19:39:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335595", "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" ] } } [19:39:09]execute_script... [19:39: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)335595", "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" ] } } [19:39:09]POST & json_proto [19:39:09]process_json_proto [19:39:09]json parsed OK: [19:39:09]protocol is kg_v1.0 [19:39:09]action value=close_receipt [19:39:09]process_action close_receipt [19:39:09]cmd_close_receipt [19:39:09]MH_GetDate [19:39:09]Write to MH i2c: F0 00 00 C4 21 D4 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: F0 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: F0 09 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: F0 09 00 C4 21 00 DF DC 23 67 72 0D 1C 67 24 [19:39:09]GetLastDocTimeStamp 1730403464 [19:39:09]current date 1730403551 [19:39:09]FM_GetShiftState [19:39:09]SAM_PROTO_GetShiftState [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 13 01 00 [19:39:09]Write to MH i2c: E2 08 00 C5 21 80 13 01 00 00 00 00 00 63 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 0E 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 0E 00 C5 21 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8C [19:39:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:39:09]wFMCommunicate OK [19:39:09]SAM_PROTO_GetShiftState done [19:39:09]FM_GetShiftState done [19:39:09]opened in 1730332621 [19:39:09]opened+sec_in_day 1730419021 [19:39:09]quantity*price = 13900 [19:39:09]sum+1 = 13901 [19:39:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 239 31.10.2024 19:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139762 ФПД: 179037066689856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193911&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139762&fm=179037066689856&tin=02508201610067®Number=0000000000091631&sum=13900 0 [19:39:10]StoreToDocumentArchive [19:39:10]shift 557 fd 139762 [19:39:10]save to /storage/0557/doc_00139762 [19:39:10]save last doc name /storage/0557/doc_00139762 to /storage/kkm_last_doc_name [19:39:10]save OK [19:39:10]Clear old archive folders... [19:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:39:10]tlvbuf is 00A943B0 [19:39:10]SAM_PROTO_ClearQueue [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 09 00 00 [19:39:10]Write to MH i2c: E2 08 00 D2 21 80 09 00 00 00 00 00 00 65 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]SAM_PROTO_ClearQueue done [19:39:10]KKMCreateOFDPacket [19:39:10]OFDProtocolAddRootSTLVToBuf [19:39:10]FM_MakeSignedData [19:39:10]FM_MakeSignedData [19:39:10]SAM_PROTO_SignData [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 0D 01 02 [19:39:10]Write to MH i2c: E2 08 00 D3 21 80 0D 01 02 00 00 00 00 6D [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]wFMCommunicate request_size=255 [19:39:10]MH_SAM_APDU [19:39:10]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 EF 00 00 00 F4 03 04 00 DF DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [19:39:10]Write to MH i2c: E2 02 01 D4 21 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 EF 00 00 00 F4 03 04 00 DF DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 FC [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]wFMCommunicate request_size=31 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 F2 21 02 00 35 04 06 00 A2 D5 50 C2 FD 40 [19:39:10]Write to MH i2c: E2 22 00 D5 21 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 F2 21 02 00 35 04 06 00 A2 D5 50 C2 FD 40 00 00 7E [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 0D 03 02 [19:39:10]Write to MH i2c: E2 08 00 D6 21 80 0D 03 02 00 00 00 00 72 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0B 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0B 00 D6 21 00 44 6A E8 77 A4 E8 46 36 90 00 88 [19:39:10]RAPDU: 44 6A E8 77 A4 E8 46 36 90 00 [19:39:10]wFMCommunicate OK [19:39:10]SAM_PROTO_SignData done [19:39:10]FM_MakeSignedData done [19:39:10]CreateOFDProtocolMessage [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 11 00 00 [19:39:10]Write to MH i2c: E2 08 00 D7 21 80 11 00 00 00 00 00 00 72 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 17 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 17 00 D7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CD [19:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:39:10]wFMCommunicate OK [19:39:10]CreateOFDProtocolMessage done [19:39:10]OFDSenderStorePacket 139762 [19:39:10]StoreOFDPacket docnum=139762 [19:39: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 24 01 00 00 85 F5 1C 01 95 37 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 EF 00 00 00 F4 03 04 00 DF DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A2 D5 50 C2 FD 40 44 6A E8 77 A4 E8 46 36 [19:39:10]CheckFolder [19:39:10]dirname=/storage/ofd_packets [19:39:10]CheckFolder done [19:39:10]ProducePacketName [19:39:10]name=ofd_packets/00139762 [19:39:10]NVStorageSaveData ofd_packets/00139762 [19:39:10]File name is /storage/ofd_packets/00139762 [19:39:10]Write 322 bytes [19:39:10]NVStorageSaveData done [19:39:10]OFDSenderStorePacket done [19:39:10]KKMCreateOFDPacket done [19:39:10]NVStorageSaveData kkm_last_timestamp [19:39:10]File name is /storage/kkm_last_timestamp [19:39:10]Write 4 bytes [19:39:10]NVStorageSaveData done [19:39:10]ExternCall_PrintAddStr [19:39:10]wPrintStart [19:39:10]Write to MH i2c: 01 00 00 D8 21 F9 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: 01 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: 01 07 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: 01 07 00 D8 21 00 00 00 00 00 FF 0F 0E [19:39:10]RasterBufferAndPrint [19:39:10]line Счет N : (3)335595 [19:39:10]line ИНН: 02508201610067 [19:39:10]line Контрольно-Кассовый Чек [19:39:10]line ПРОДАЖА [19:39:10]line Товар: 48745000 [19:39:10]line Сигареты Winston Purple Mix [19:39:10]line 1.000 * 139.00 [19:39:10]line = 139.00 [19:39:10]line НДС 12% НСП 1% [19:39:10]line > о реализуемом товаре [19:39:10]line ИТОГО: 139.00 [19:39:10]line НСП 1% : 1.23 [19:39:10]line НДС 12% : 14.76 [19:39:10]line Наличными: 139.00 [19:39:10]line Безнал.: 0.00 [19:39:10]line Место: АЗС № 101 "Партнер Нефть" [19:39:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:39:10]line СНО: Общий режим [19:39:10]line Чек 239 31.10.2024 19:39 [19:39:10]line Смена: 557 ФФД: 1.0 [19:39:10]line ЗНМ: 0300000081 [19:39:10]line РНМ: 0000000000091631 [19:39:10]line Версия ККМ: 001 [19:39:10]line ФМ: 0000000000874669 [19:39:10]line ФД: 139762 [19:39:10]line ФПД: 179037066689856 [19:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T193911&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139762&fm=179037066689856&tin=02508201610067®Number=0000000000091631&sum=13900 [19:39:10]line 0 [19:39:10]written 0, free lines is 4095 [19:39:10]OFD Sender: Processing packet 139762 [packets to send 34, broken 33] [19:39:10]ProducePacketName [19:39:10]name=ofd_packets/00139762 [19:39:10]OFD Sender: To server: pG, [19:39:10]CommunicateWithHost lk.salyk.kg:30040 [19:39:10]ConnectInit lk.salyk.kg [19:39:10]Connected sock=10 [19:39: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 24 01 00 00 85 F5 1C 01 95 37 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 EF 00 00 00 F4 03 04 00 DF DC 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 A2 D5 50 C2 FD 40 44 6A E8 77 A4 E8 46 36 [19:39: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 44 37 47 00 C8 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 F2 21 02 00 F4 03 04 00 8B 88 23 67 B6 04 01 00 00 7E 57 1D FD E8 AA 51 A3 [19:39:11]CommunicateWithHost err = 0 [19:39:11]CheckOFDResponse [19:39:11]1017 (14) - 77093643461234 [19:39:11]1041 (16) - 0000000000874669 [19:39:11]1040 (4) - 139762 [19:39:11]1012 (4) - 31.10.2024 13:39 [19:39:11]1206 (1) - 0 [19:39:11]OFD Sender: Remove packet 139762 [19:39:11]ProducePacketName [19:39:11]name=ofd_packets/00139762 [19:39:11]NVStorageDeleteData [19:39:11]Write to MH i2c: 01 00 00 00 22 22 [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: 01 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: 01 07 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: 01 07 00 00 22 00 00 00 00 00 08 0D 3E [19:39:11]RasterBufferAndPrint [19:39:11]line [19:39:11]line [19:39:11]line [19:39:11]line [19:39:11]line [19:39:11]written 0, free lines is 3345 [19:39:11]MH_Cut [19:39:11]Write to MH i2c: D1 01 00 07 22 01 FB [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: D1 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: D1 01 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: D1 01 00 07 22 00 FA [19:39:11]Write to MH i2c: 01 00 00 08 22 2A [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]OFD Sender: No OFD packet to send [19:39:11]*** Cut start [19:39:11]*** Partial cut [19:39:11]*** CUTSNS_PIN = 1 [19:39:11]*** CUTSNS_PIN = 0 [19:39:12]*** Brake cut motor [19:39:12]Read from MH i2c: 01 [19:39:12]MH_I2C_Read... [19:39:12]*** Stop cut motor [19:39:12]*** Cut end [19:39:12]Read from MH i2c: 01 07 00 [19:39:12]MH_I2C_Read... [19:39:12]Read from MH i2c: 01 07 00 08 22 00 00 00 00 00 FF 0F 3F [19:39:12]process_action close_receipt done [19:39:12]requested_data is exist [19:39:12]produce_requested_data [19:39:12]requested_item fm.sn is exist - process it [19:39:12]wFMCommunicate request_size=4 [19:39:12]MH_SAM_APDU [19:39:12]CAPDU: 80 11 00 00 [19:39:12]Write to MH i2c: E2 08 00 09 22 80 11 00 00 00 00 00 00 A5 [19:39:12]Write i2c OK [19:39:12]MH_I2C_Read... [19:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:12]Read from MH i2c: E2 [19:39:12]MH_I2C_Read... [19:39:12]Read from MH i2c: E2 17 00 [19:39:12]MH_I2C_Read... [19:39:12]Read from MH i2c: E2 17 00 09 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 00 [19:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:39:12]wFMCommunicate OK [19:39:12]requested_item fd.num is exist - process it [19:39:12]SAM_PROTO_GetFieldsCounters [19:39:12]wFMCommunicate request_size=4 [19:39:12]MH_SAM_APDU [19:39:12]CAPDU: 80 13 00 00 [19:39:12]Write to MH i2c: E2 08 00 0A 22 80 13 00 00 00 00 00 00 A8 [19:39:12]Write i2c OK [19:39:12]MH_I2C_Read... [19:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:12]Read from MH i2c: E2 [19:39:12]MH_I2C_Read... [19:39:12]Read from MH i2c: E2 62 00 [19:39:12]MH_I2C_Read... [19:39:12]Read from MH i2c: E2 62 00 0A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [19:39: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 F2 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:12]wFMCommunicate OK [19:39:12]SAM_PROTO_GetFieldsCounters done [19:39:12]requested_item shift.num is exist - process it [19:39:12]requested_item shift.opened is exist - process it [19:39:12]req_shift_opened [19:39:12]FM_GetShiftState [19:39:12]SAM_PROTO_GetShiftState [19:39:12]wFMCommunicate request_size=4 [19:39:12]MH_SAM_APDU [19:39:12]CAPDU: 80 13 01 00 [19:39:12]Write to MH i2c: E2 08 00 0B 22 80 13 01 00 00 00 00 00 AA [19:39:12]Write i2c OK [19:39:12]MH_I2C_Read... [19:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:12]Read from MH i2c: E2 [19:39:12]MH_I2C_Read... [19:39:12]Read from MH i2c: E2 0E 00 [19:39:12]MH_I2C_Read... [19:39:12]Read from MH i2c: E2 0E 00 0B 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D3 [19:39:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:39:12]wFMCommunicate OK [19:39:12]SAM_PROTO_GetShiftState done [19:39:12]FM_GetShiftState done [19:39:12]req_shift_opened done [19:39:12]requested_item shift.open_date is exist - process it [19:39:12]req_shift_open_date [19:39:12]req_shift_open_date done [19:39:12]produce_requested_data done [19:39:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139762,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:39:12]process_action_free close_receipt [19:39:12]json_value_free [19:39:12]json_value_free done [19:39:12]process_json_proto returns [19:39:12]Send response to host [19:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139762,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:39:12]free response buf [19:39:12]execute_script done [19:39:12]execute_script returns [19:39:12]free content buf [19:39:12]Sock 7.Close socket [19:39:12]Sock 7.Thread stoped [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:04]accept exits with 9 [19:41:04]New connection [19:41:04]New thread 3066510692 created [19:41:04]Thread 3066654052 joined [19:41:04]Waiting for new connection... [19:41:04] Sock 9.Parse request [19:41:04]Sock 9.Check first char [19:41:04]Sock 9.First char is OK [19:41:04]request: POST /json_proto HTTP/1.0 [19:41:04]Method: POST [19:41:04]URL: /json_proto [19:41:04]Method is POST - this is cgi request [19:41:04]url: /json_proto [19:41:04]query_string will be loaded in cgi processing [19:41:04]execute_cgi json_proto POST (null) [19:41:04]execute_cgi path=json_proto method=POST [19:41:04]POST find Content-Length [19:41:04]Host: 172.17.50.196:8080 [19:41:04]Content-Length: 1052 [19:41:04]Content-Type: application/json [19:41:04] [19:41:04]POST finish read [19:41:04]Found Content-Length = 1052 [19:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335596", "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": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 216.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:04]execute_script... [19:41: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)335596", "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": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 216.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:04]POST & json_proto [19:41:04]process_json_proto [19:41:04]json parsed OK: [19:41:04]protocol is kg_v1.0 [19:41:04]action value=close_receipt [19:41:04]process_action close_receipt [19:41:04]cmd_close_receipt [19:41:04]MH_GetDate [19:41:04]Write to MH i2c: F0 00 00 0C 22 1D [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: F0 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: F0 09 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: F0 09 00 0C 22 00 52 DD 23 67 72 0D 1C 67 E1 [19:41:04]GetLastDocTimeStamp 1730403551 [19:41:04]current date 1730403666 [19:41:04]FM_GetShiftState [19:41:04]SAM_PROTO_GetShiftState [19:41:04]wFMCommunicate request_size=4 [19:41:04]MH_SAM_APDU [19:41:04]CAPDU: 80 13 01 00 [19:41:04]Write to MH i2c: E2 08 00 0D 22 80 13 01 00 00 00 00 00 AC [19:41:04]Write i2c OK [19:41:04]MH_I2C_Read... [19:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:04]Read from MH i2c: E2 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 [19:41:04]MH_I2C_Read... [19:41:04]Read from MH i2c: E2 0E 00 0D 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D5 [19:41:04]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:41:04]wFMCommunicate OK [19:41:04]SAM_PROTO_GetShiftState done [19:41:04]FM_GetShiftState done [19:41:04]opened in 1730332621 [19:41:04]opened+sec_in_day 1730419021 [19:41:04]quantity*price = 7500 [19:41:04]sum+1 = 7501 [19:41:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145002155 Пиво Большая Кружка Мягкое 0,64л ст/б 1.000 * 141.00 = 141.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 216.00 НСП 1% : 1.91 НДС 12% : 22.93 Наличными: 216.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 240 31.10.2024 19:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139763 ФПД: 145943853335915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194106&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139763&fm=145943853335915&tin=02508201610067®Number=0000000000091631&sum=21600 0 [19:41:05]StoreToDocumentArchive [19:41:05]shift 557 fd 139763 [19:41:05]save to /storage/0557/doc_00139763 [19:41:05]save last doc name /storage/0557/doc_00139763 to /storage/kkm_last_doc_name [19:41:05]save OK [19:41:05]Clear old archive folders... [19:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=436 [19:41:05]tlvbuf is B6E5FC30 [19:41:05]SAM_PROTO_ClearQueue [19:41:05]wFMCommunicate request_size=4 [19:41:05]MH_SAM_APDU [19:41:05]CAPDU: 80 09 00 00 [19:41:05]Write to MH i2c: E2 08 00 1A 22 80 09 00 00 00 00 00 00 AE [19:41:05]Write i2c OK [19:41:05]MH_I2C_Read... [19:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:05]Read from MH i2c: E2 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 1A 22 00 90 00 B0 [19:41:05]RAPDU: 90 00 [19:41:05]wFMCommunicate OK [19:41:05]SAM_PROTO_ClearQueue done [19:41:05]KKMCreateOFDPacket [19:41:05]OFDProtocolAddRootSTLVToBuf [19:41:05]FM_MakeSignedData [19:41:05]FM_MakeSignedData [19:41:05]SAM_PROTO_SignData [19:41:05]wFMCommunicate request_size=4 [19:41:05]MH_SAM_APDU [19:41:05]CAPDU: 80 0D 01 02 [19:41:05]Write to MH i2c: E2 08 00 1B 22 80 0D 01 02 00 00 00 00 B6 [19:41:05]Write i2c OK [19:41:05]MH_I2C_Read... [19:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:05]Read from MH i2c: E2 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 1B 22 00 90 00 B1 [19:41:05]RAPDU: 90 00 [19:41:05]wFMCommunicate OK [19:41:05]wFMCommunicate request_size=255 [19:41:05]MH_SAM_APDU [19:41:05]CAPDU: 80 0D 02 02 FA 03 00 B4 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 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 [19:41:05]Write to MH i2c: E2 02 01 1C 22 80 0D 02 02 FA 00 03 00 B4 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 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 00 00 7F [19:41:05]Write i2c OK [19:41:05]MH_I2C_Read... [19:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:05]Read from MH i2c: E2 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [19:41:05]RAPDU: 90 00 [19:41:05]wFMCommunicate OK [19:41:05]wFMCommunicate request_size=195 [19:41:05]MH_SAM_APDU [19:41:05]CAPDU: 80 0D 02 02 BE 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 52 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 BC 33 89 05 6B [19:41:05]Write to MH i2c: E2 C6 00 1D 22 80 0D 02 02 BE 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 52 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 BC 33 89 05 6B 00 00 14 [19:41:05]Write i2c OK [19:41:05]MH_I2C_Read... [19:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:05]Read from MH i2c: E2 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 03 00 1D 22 00 90 00 B3 [19:41:05]RAPDU: 90 00 [19:41:05]wFMCommunicate OK [19:41:05]wFMCommunicate request_size=4 [19:41:05]MH_SAM_APDU [19:41:05]CAPDU: 80 0D 03 02 [19:41:05]Write to MH i2c: E2 08 00 1E 22 80 0D 03 02 00 00 00 00 BB [19:41:05]Write i2c OK [19:41:05]MH_I2C_Read... [19:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:05]Read from MH i2c: E2 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 0B 00 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 0B 00 1E 22 00 08 A5 99 C3 79 D7 18 C8 90 00 F5 [19:41:05]RAPDU: 08 A5 99 C3 79 D7 18 C8 90 00 [19:41:05]wFMCommunicate OK [19:41:05]SAM_PROTO_SignData done [19:41:05]FM_MakeSignedData done [19:41:05]CreateOFDProtocolMessage [19:41:05]wFMCommunicate request_size=4 [19:41:05]MH_SAM_APDU [19:41:05]CAPDU: 80 11 00 00 [19:41:05]Write to MH i2c: E2 08 00 1F 22 80 11 00 00 00 00 00 00 BB [19:41:05]Write i2c OK [19:41:05]MH_I2C_Read... [19:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:05]Read from MH i2c: E2 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 17 00 [19:41:05]MH_I2C_Read... [19:41:05]Read from MH i2c: E2 17 00 1F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 16 [19:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:41:05]wFMCommunicate OK [19:41:05]CreateOFDProtocolMessage done [19:41:05]OFDSenderStorePacket 139763 [19:41:05]StoreOFDPacket docnum=139763 [19:41: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 C8 01 00 00 5C C6 C0 01 13 8A 5A 03 01 00 03 00 B4 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 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 52 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 BC 33 89 05 6B 08 A5 99 C3 79 D7 18 C8 [19:41:05]CheckFolder [19:41:05]dirname=/storage/ofd_packets [19:41:05]CheckFolder done [19:41:05]ProducePacketName [19:41:05]name=ofd_packets/00139763 [19:41:05]NVStorageSaveData ofd_packets/00139763 [19:41:05]File name is /storage/ofd_packets/00139763 [19:41:05]Write 486 bytes [19:41:05]NVStorageSaveData done [19:41:05]OFDSenderStorePacket done [19:41:05]KKMCreateOFDPacket done [19:41:05]NVStorageSaveData kkm_last_timestamp [19:41:05]File name is /storage/kkm_last_timestamp [19:41:05]Write 4 bytes [19:41:05]NVStorageSaveData done [19:41:05]ExternCall_PrintAddStr [19:41:05]wPrintStart [19:41:05]Write to MH i2c: 01 00 00 20 22 42 [19:41:06]OFD Sender: Processing packet 139763 [packets to send 34, broken 33] [19:41:06]ProducePacketName [19:41:06]name=ofd_packets/00139763 [19:41:06]OFD Sender: To server: pG, [19:41:06]CommunicateWithHost lk.salyk.kg:30040 [19:41:06]ConnectInit lk.salyk.kg [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 07 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 07 00 20 22 00 00 00 00 00 FF 0F 57 [19:41:06]RasterBufferAndPrint [19:41:06]line Счет N : (3)335596 [19:41:06]line ИНН: 02508201610067 [19:41:06]line Контрольно-Кассовый Чек [19:41:06]line ПРОДАЖА [19:41:06]line Товар: 5449000189349 [19:41:06]line Холодный чай Fuse манго ананас 0,5л [19:41:06]line 1.000 * 75.00 [19:41:06]line = 75.00 [19:41:06]line НДС 12% НСП 1% [19:41:06]line > о реализуемом товаре [19:41:06]line Товар: 4870145002155 [19:41:06]line Пиво Большая Кружка Мягкое 0,64л ст/б [19:41:06]line 1.000 * 141.00 [19:41:06]line = 141.00 [19:41:06]line НДС 12% НСП 1% [19:41:06]line > о реализуемом товаре [19:41:06]line ИТОГО: 216.00 [19:41:06]line НСП 1% : 1.91 [19:41:06]line НДС 12% : 22.93 [19:41:06]line Наличными: 216.00 [19:41:06]line Безнал.: 0.00 [19:41:06]line Место: АЗС № 101 "Партнер Нефть" [19:41:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:41:06]line СНО: Общий режим [19:41:06]line Чек 240 31.10.2024 19:41 [19:41:06]line Смена: 557 ФФД: 1.0 [19:41:06]line ЗНМ: 0300000081 [19:41:06]line РНМ: 0000000000091631 [19:41:06]line Версия ККМ: 001 [19:41:06]line ФМ: 0000000000874669 [19:41:06]line ФД: 139763 [19:41:06]line ФПД: 145943853335915 [19:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194106&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139763&fm=145943853335915&tin=02508201610067®Number=0000000000091631&sum=21600 [19:41:06]line 0 [19:41:06]written 0, free lines is 4095 [19:41:06]Connected sock=7 [19:41: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 C8 01 00 00 5C C6 C0 01 13 8A 5A 03 01 00 03 00 B4 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 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 52 DD 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 84 BC 33 89 05 6B 08 A5 99 C3 79 D7 18 C8 [19:41: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 B0 88 47 00 C1 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 F3 21 02 00 F4 03 04 00 FF 88 23 67 B6 04 01 00 00 D5 CE 46 97 76 C4 5C 8C [19:41:06]CommunicateWithHost err = 0 [19:41:06]CheckOFDResponse [19:41:06]1017 (14) - 77093643461234 [19:41:06]1041 (16) - 0000000000874669 [19:41:06]1040 (4) - 139763 [19:41:06]1012 (4) - 31.10.2024 13:41 [19:41:06]1206 (1) - 0 [19:41:06]OFD Sender: Remove packet 139763 [19:41:06]ProducePacketName [19:41:06]name=ofd_packets/00139763 [19:41:06]NVStorageDeleteData [19:41:06]Write to MH i2c: 01 00 00 50 22 72 [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 07 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: 01 07 00 50 22 00 00 00 00 00 9C 0C 21 [19:41:06]RasterBufferAndPrint [19:41:06]line [19:41:06]line [19:41:06]line [19:41:06]line [19:41:06]line [19:41:06]written 0, free lines is 3238 [19:41:06]MH_Cut [19:41:06]Write to MH i2c: D1 01 00 57 22 01 4B [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: D1 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: D1 01 00 [19:41:06]MH_I2C_Read... [19:41:06]Read from MH i2c: D1 01 00 57 22 00 4A [19:41:06]Write to MH i2c: 01 00 00 58 22 7A [19:41:06]Write i2c OK [19:41:06]MH_I2C_Read... [19:41:07]OFD Sender: No OFD packet to send [19:41:07]*** Cut start [19:41:07]*** Partial cut [19:41:07]*** CUTSNS_PIN = 1 [19:41:07]*** CUTSNS_PIN = 0 [19:41:07]*** Brake cut motor [19:41:08]Read from MH i2c: 01 [19:41:08]MH_I2C_Read... [19:41:08]*** Stop cut motor [19:41:08]*** Cut end [19:41:08]Read from MH i2c: 01 07 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: 01 07 00 58 22 00 00 00 00 00 FF 0F 8F [19:41:08]process_action close_receipt done [19:41:08]requested_data is exist [19:41:08]produce_requested_data [19:41:08]requested_item fm.sn is exist - process it [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 11 00 00 [19:41:08]Write to MH i2c: E2 08 00 59 22 80 11 00 00 00 00 00 00 F5 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 17 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 17 00 59 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 50 [19:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:41:08]wFMCommunicate OK [19:41:08]requested_item fd.num is exist - process it [19:41:08]SAM_PROTO_GetFieldsCounters [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 13 00 00 [19:41:08]Write to MH i2c: E2 08 00 5A 22 80 13 00 00 00 00 00 00 F8 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 62 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 62 00 5A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [19:41: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 F3 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:08]wFMCommunicate OK [19:41:08]SAM_PROTO_GetFieldsCounters done [19:41:08]requested_item shift.num is exist - process it [19:41:08]requested_item shift.opened is exist - process it [19:41:08]req_shift_opened [19:41:08]FM_GetShiftState [19:41:08]SAM_PROTO_GetShiftState [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 13 01 00 [19:41:08]Write to MH i2c: E2 08 00 5B 22 80 13 01 00 00 00 00 00 FA [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 0E 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 0E 00 5B 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 23 [19:41:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:41:08]wFMCommunicate OK [19:41:08]SAM_PROTO_GetShiftState done [19:41:08]FM_GetShiftState done [19:41:08]req_shift_opened done [19:41:08]requested_item shift.open_date is exist - process it [19:41:08]req_shift_open_date [19:41:08]req_shift_open_date done [19:41:08]produce_requested_data done [19:41:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139763,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:41:08]process_action_free close_receipt [19:41:08]json_value_free [19:41:08]json_value_free done [19:41:08]process_json_proto returns [19:41:08]Send response to host [19:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139763,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:41:08]free response buf [19:41:08]execute_script done [19:41:08]execute_script returns [19:41:08]free content buf [19:41:08]Sock 9.Close socket [19:41:08]Sock 9.Thread stoped [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:27]accept exits with 10 [19:46:27]New connection [19:46:27]New thread 3066654052 created [19:46:27]Thread 3066510692 joined [19:46:27]Waiting for new connection... [19:46:27] Sock 10.Parse request [19:46:27]Sock 10.Check first char [19:46:27]Sock 10.First char is OK [19:46:27]request: POST /json_proto HTTP/1.0 [19:46:27]Method: POST [19:46:27]URL: /json_proto [19:46:27]Method is POST - this is cgi request [19:46:27]url: /json_proto [19:46:27]query_string will be loaded in cgi processing [19:46:27]execute_cgi json_proto POST (null) [19:46:27]execute_cgi path=json_proto method=POST [19:46:27]POST find Content-Length [19:46:27]Host: 172.17.50.196:8080 [19:46:27]Content-Length: 678 [19:46:27]Content-Type: application/json [19:46:27] [19:46:27]POST finish read [19:46:27]Found Content-Length = 678 [19:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095449", "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" : 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" ] } } [19:46:27]execute_script... [19:46:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095449", "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" : 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" ] } } [19:46:27]POST & json_proto [19:46:27]process_json_proto [19:46:27]json parsed OK: [19:46:27]protocol is kg_v1.0 [19:46:27]action value=close_receipt [19:46:27]process_action close_receipt [19:46:27]cmd_close_receipt [19:46:27]MH_GetDate [19:46:27]Write to MH i2c: F0 00 00 5C 22 6D [19:46:27]Write i2c OK [19:46:27]MH_I2C_Read... [19:46:27]Read from MH i2c: F0 [19:46:27]MH_I2C_Read... [19:46:27]Read from MH i2c: F0 09 00 [19:46:27]MH_I2C_Read... [19:46:27]Read from MH i2c: F0 09 00 5C 22 00 95 DE 23 67 72 0D 1C 67 75 [19:46:27]GetLastDocTimeStamp 1730403666 [19:46:27]current date 1730403989 [19:46:27]FM_GetShiftState [19:46:27]SAM_PROTO_GetShiftState [19:46:27]wFMCommunicate request_size=4 [19:46:27]MH_SAM_APDU [19:46:27]CAPDU: 80 13 01 00 [19:46:27]Write to MH i2c: E2 08 00 5D 22 80 13 01 00 00 00 00 00 FC [19:46:27]Write i2c OK [19:46:27]MH_I2C_Read... [19:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:27]Read from MH i2c: E2 [19:46:27]MH_I2C_Read... [19:46:27]Read from MH i2c: E2 0E 00 [19:46:27]MH_I2C_Read... [19:46:27]Read from MH i2c: E2 0E 00 5D 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 25 [19:46:27]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:46:27]wFMCommunicate OK [19:46:27]SAM_PROTO_GetShiftState done [19:46:27]FM_GetShiftState done [19:46:27]opened in 1730332621 [19:46:27]opened+sec_in_day 1730419021 [19:46:27]quantity*price = 30038 [19:46:27]sum+1 = 30039 [19:46:27]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 СНО: Общий режим Чек 241 31.10.2024 19:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139764 ФПД: 110871504592782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194629&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139764&fm=110871504592782&tin=02508201610067®Number=0000000000091631&sum=30000 [19:46:28]StoreToDocumentArchive [19:46:28]shift 557 fd 139764 [19:46:28]save to /storage/0557/doc_00139764 [19:46:28]save last doc name /storage/0557/doc_00139764 to /storage/kkm_last_doc_name [19:46:28]save OK [19:46:28]Clear old archive folders... [19:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:28]tlvbuf is B6E5F750 [19:46:28]SAM_PROTO_ClearQueue [19:46:28]wFMCommunicate request_size=4 [19:46:28]MH_SAM_APDU [19:46:28]CAPDU: 80 09 00 00 [19:46:28]Write to MH i2c: E2 08 00 6A 22 80 09 00 00 00 00 00 00 FE [19:46:28]Write i2c OK [19:46:28]MH_I2C_Read... [19:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:28]Read from MH i2c: E2 [19:46:28]MH_I2C_Read... [19:46:28]Read from MH i2c: E2 03 00 [19:46:28]MH_I2C_Read... [19:46:28]Read from MH i2c: E2 03 00 6A 22 00 90 00 00 [19:46:28]RAPDU: 90 00 [19:46:28]wFMCommunicate OK [19:46:28]SAM_PROTO_ClearQueue done [19:46:28]KKMCreateOFDPacket [19:46:28]OFDProtocolAddRootSTLVToBuf [19:46:28]FM_MakeSignedData [19:46:28]FM_MakeSignedData [19:46:28]SAM_PROTO_SignData [19:46:28]wFMCommunicate request_size=4 [19:46:28]MH_SAM_APDU [19:46:28]CAPDU: 80 0D 01 02 [19:46:28]Write to MH i2c: E2 08 00 6B 22 80 0D 01 02 00 00 00 00 06 [19:46:28]Write i2c OK [19:46:28]MH_I2C_Read... [19:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:29]Read from MH i2c: E2 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 03 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 03 00 6B 22 00 90 00 01 [19:46:29]RAPDU: 90 00 [19:46:29]wFMCommunicate OK [19:46:29]wFMCommunicate request_size=255 [19:46:29]MH_SAM_APDU [19:46:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F1 00 00 00 F4 03 04 00 95 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 64 [19:46:29]Write to MH i2c: E2 02 01 6C 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F1 00 00 00 F4 03 04 00 95 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 64 00 00 21 [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:29]Read from MH i2c: E2 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 03 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 03 00 6C 22 00 90 00 02 [19:46:29]RAPDU: 90 00 [19:46:29]wFMCommunicate OK [19:46:29]wFMCommunicate request_size=10 [19:46:29]MH_SAM_APDU [19:46:29]CAPDU: 80 0D 02 02 05 D6 48 A5 9F 8E [19:46:29]Write to MH i2c: E2 0D 00 6D 22 80 0D 02 02 05 00 D6 48 A5 9F 8E 00 00 03 [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:29]Read from MH i2c: E2 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 03 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 03 00 6D 22 00 90 00 03 [19:46:29]RAPDU: 90 00 [19:46:29]wFMCommunicate OK [19:46:29]wFMCommunicate request_size=4 [19:46:29]MH_SAM_APDU [19:46:29]CAPDU: 80 0D 03 02 [19:46:29]Write to MH i2c: E2 08 00 6E 22 80 0D 03 02 00 00 00 00 0B [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:29]Read from MH i2c: E2 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 0B 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 0B 00 6E 22 00 7B 06 36 BB 7B 86 EC D3 90 00 3E [19:46:29]RAPDU: 7B 06 36 BB 7B 86 EC D3 90 00 [19:46:29]wFMCommunicate OK [19:46:29]SAM_PROTO_SignData done [19:46:29]FM_MakeSignedData done [19:46:29]CreateOFDProtocolMessage [19:46:29]wFMCommunicate request_size=4 [19:46:29]MH_SAM_APDU [19:46:29]CAPDU: 80 11 00 00 [19:46:29]Write to MH i2c: E2 08 00 6F 22 80 11 00 00 00 00 00 00 0B [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:29]Read from MH i2c: E2 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 17 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: E2 17 00 6F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [19:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:46:29]wFMCommunicate OK [19:46:29]CreateOFDProtocolMessage done [19:46:29]OFDSenderStorePacket 139764 [19:46:29]StoreOFDPacket docnum=139764 [19:46: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 0F 01 00 00 3E 87 07 01 61 D5 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 F1 00 00 00 F4 03 04 00 95 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 64 D6 48 A5 9F 8E 7B 06 36 BB 7B 86 EC D3 [19:46:29]CheckFolder [19:46:29]dirname=/storage/ofd_packets [19:46:29]CheckFolder done [19:46:29]ProducePacketName [19:46:29]name=ofd_packets/00139764 [19:46:29]NVStorageSaveData ofd_packets/00139764 [19:46:29]File name is /storage/ofd_packets/00139764 [19:46:29]Write 301 bytes [19:46:29]NVStorageSaveData done [19:46:29]OFDSenderStorePacket done [19:46:29]KKMCreateOFDPacket done [19:46:29]NVStorageSaveData kkm_last_timestamp [19:46:29]File name is /storage/kkm_last_timestamp [19:46:29]Write 4 bytes [19:46:29]NVStorageSaveData done [19:46:29]ExternCall_PrintAddStr [19:46:29]wPrintStart [19:46:29]Write to MH i2c: 01 00 00 70 22 92 [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: 01 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: 01 07 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: 01 07 00 70 22 00 00 00 00 00 FF 0F A7 [19:46:29]RasterBufferAndPrint [19:46:29]line Счет N : (1)1095449 [19:46:29]line ИНН: 02508201610067 [19:46:29]line Контрольно-Кассовый Чек [19:46:29]line ПРОДАЖА [19:46:29]line ТРК (МРК, ГНК) : 53 [19:46:29]line Товар: 2710124130 [19:46:29]line Аи-92-К-2 [19:46:29]line 4.490 * 66.90 [19:46:29]line = 300.38 [19:46:29]line НДС 12% НСП 1% [19:46:29]line > о реализуемом товаре [19:46:29]line ОКРУГЛЕНИЕ: -0.38 [19:46:29]line ИТОГО: 300.00 [19:46:29]line Внесено: 300.00 [19:46:29]line СДАЧА: 0.00 [19:46:29]line НСП 1% : 2.66 [19:46:29]line НДС 12% : 31.90 [19:46:29]line Наличными: 300.00 [19:46:29]line Безнал.: 0.00 [19:46:29]line Место: АЗС № 101 "Партнер Нефть" [19:46:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:46:29]line СНО: Общий режим [19:46:29]line Чек 241 31.10.2024 19:46 [19:46:29]line Смена: 557 ФФД: 1.0 [19:46:29]line ЗНМ: 0300000081 [19:46:29]line РНМ: 0000000000091631 [19:46:29]line Версия ККМ: 001 [19:46:29]line ФМ: 0000000000874669 [19:46:29]line ФД: 139764 [19:46:29]line ФПД: 110871504592782 [19:46:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T194629&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139764&fm=110871504592782&tin=02508201610067®Number=0000000000091631&sum=30000 [19:46:29]written 0, free lines is 4095 [19:46:29]OFD Sender: Processing packet 139764 [packets to send 34, broken 33] [19:46:29]ProducePacketName [19:46:29]name=ofd_packets/00139764 [19:46:29]OFD Sender: To server: pG, [19:46:29]CommunicateWithHost lk.salyk.kg:30040 [19:46:29]ConnectInit lk.salyk.kg [19:46:29]Connected sock=9 [19:46: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 0F 01 00 00 3E 87 07 01 61 D5 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 F1 00 00 00 F4 03 04 00 95 DE 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 64 D6 48 A5 9F 8E 7B 06 36 BB 7B 86 EC D3 [19:46:29]Write to MH i2c: 01 00 00 9B 22 BD [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: 01 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: 01 07 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: 01 07 00 9B 22 00 00 00 00 00 01 0D D2 [19:46:29]RasterBufferAndPrint [19:46:29]line [19:46:29]line [19:46:29]line [19:46:29]line [19:46:29]line [19:46:29]written 0, free lines is 3335 [19:46:29]MH_Cut [19:46:29]Write to MH i2c: D1 01 00 A2 22 01 96 [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: D1 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: D1 01 00 [19:46:29]MH_I2C_Read... [19:46:29]Read from MH i2c: D1 01 00 A2 22 00 95 [19:46:29]Write to MH i2c: 01 00 00 A3 22 C5 [19:46:29]Write i2c OK [19:46:29]MH_I2C_Read... [19:46: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 88 61 47 00 1B 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 21 02 00 F4 03 04 00 42 8A 23 67 B6 04 01 00 00 14 6E 6C B9 48 B6 F3 83 [19:46:30]CommunicateWithHost err = 0 [19:46:30]CheckOFDResponse [19:46:30]1017 (14) - 77093643461234 [19:46:30]1041 (16) - 0000000000874669 [19:46:30]1040 (4) - 139764 [19:46:30]1012 (4) - 31.10.2024 13:46 [19:46:30]1206 (1) - 0 [19:46:30]OFD Sender: Remove packet 139764 [19:46:30]ProducePacketName [19:46:30]name=ofd_packets/00139764 [19:46:30]NVStorageDeleteData [19:46:30]OFD Sender: No OFD packet to send [19:46:30]*** Cut start [19:46:30]*** Partial cut [19:46:30]*** CUTSNS_PIN = 1 [19:46:30]*** CUTSNS_PIN = 0 [19:46:30]*** Brake cut motor [19:46:31]Read from MH i2c: 01 [19:46:31]MH_I2C_Read... [19:46:31]*** Stop cut motor [19:46:31]*** Cut end [19:46:31]Read from MH i2c: 01 07 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: 01 07 00 A3 22 00 00 00 00 00 FF 0F DA [19:46:31]process_action close_receipt done [19:46:31]requested_data is exist [19:46:31]produce_requested_data [19:46:31]requested_item fm.sn is exist - process it [19:46:31]wFMCommunicate request_size=4 [19:46:31]MH_SAM_APDU [19:46:31]CAPDU: 80 11 00 00 [19:46:31]Write to MH i2c: E2 08 00 A4 22 80 11 00 00 00 00 00 00 40 [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:31]Read from MH i2c: E2 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 17 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 17 00 A4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9B [19:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:46:31]wFMCommunicate OK [19:46:31]requested_item fd.num is exist - process it [19:46:31]SAM_PROTO_GetFieldsCounters [19:46:31]wFMCommunicate request_size=4 [19:46:31]MH_SAM_APDU [19:46:31]CAPDU: 80 13 00 00 [19:46:31]Write to MH i2c: E2 08 00 A5 22 80 13 00 00 00 00 00 00 43 [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:31]Read from MH i2c: E2 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 62 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 62 00 A5 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [19:46: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 F4 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:31]wFMCommunicate OK [19:46:31]SAM_PROTO_GetFieldsCounters done [19:46:31]requested_item shift.num is exist - process it [19:46:31]requested_item shift.opened is exist - process it [19:46:31]req_shift_opened [19:46:31]FM_GetShiftState [19:46:31]SAM_PROTO_GetShiftState [19:46:31]wFMCommunicate request_size=4 [19:46:31]MH_SAM_APDU [19:46:31]CAPDU: 80 13 01 00 [19:46:31]Write to MH i2c: E2 08 00 A6 22 80 13 01 00 00 00 00 00 45 [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:31]Read from MH i2c: E2 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 0E 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 0E 00 A6 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6E [19:46:31]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:46:31]wFMCommunicate OK [19:46:31]SAM_PROTO_GetShiftState done [19:46:31]FM_GetShiftState done [19:46:31]req_shift_opened done [19:46:31]requested_item shift.open_date is exist - process it [19:46:31]req_shift_open_date [19:46:31]req_shift_open_date done [19:46:31]produce_requested_data done [19:46:31]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139764,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:46:31]process_action_free close_receipt [19:46:31]json_value_free [19:46:31]json_value_free done [19:46:31]process_json_proto returns [19:46:31]Send response to host [19:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139764,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:46:31]free response buf [19:46:31]execute_script done [19:46:31]execute_script returns [19:46:31]free content buf [19:46:31]Sock 10.Close socket [19:46:31]Sock 10.Thread stoped [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:41]accept exits with 7 [19:56:41]New connection [19:56:41]New thread 3066510692 created [19:56:41]Thread 3066654052 joined [19:56:41]Waiting for new connection... [19:56:41] Sock 7.Parse request [19:56:41]Sock 7.Check first char [19:56:41]Sock 7.First char is OK [19:56:41]request: POST /json_proto HTTP/1.0 [19:56:41]Method: POST [19:56:41]URL: /json_proto [19:56:41]Method is POST - this is cgi request [19:56:41]url: /json_proto [19:56:41]query_string will be loaded in cgi processing [19:56:41]execute_cgi json_proto POST (null) [19:56:41]execute_cgi path=json_proto method=POST [19:56:41]POST find Content-Length [19:56:41]Host: 172.17.50.196:8080 [19:56:41]Content-Length: 682 [19:56:41]Content-Type: application/json [19:56:41] [19:56:41]POST finish read [19:56:41]Found Content-Length = 682 [19:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095454", "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" : 13.060, "sum" : 500.20, "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" ] } } [19:56:41]execute_script... [19:56: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)1095454", "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" : 13.060, "sum" : 500.20, "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" ] } } [19:56:41]POST & json_proto [19:56:41]process_json_proto [19:56:41]json parsed OK: [19:56:41]protocol is kg_v1.0 [19:56:41]action value=close_receipt [19:56:41]process_action close_receipt [19:56:41]cmd_close_receipt [19:56:41]MH_GetDate [19:56:41]Write to MH i2c: F0 00 00 A7 22 B8 [19:56:41]Write i2c OK [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: F0 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: F0 09 00 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: F0 09 00 A7 22 00 FB E0 23 67 72 0D 1C 67 28 [19:56:41]GetLastDocTimeStamp 1730403989 [19:56:41]current date 1730404603 [19:56:41]FM_GetShiftState [19:56:41]SAM_PROTO_GetShiftState [19:56:41]wFMCommunicate request_size=4 [19:56:41]MH_SAM_APDU [19:56:41]CAPDU: 80 13 01 00 [19:56:41]Write to MH i2c: E2 08 00 A8 22 80 13 01 00 00 00 00 00 47 [19:56:41]Write i2c OK [19:56:41]MH_I2C_Read... [19:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:41]Read from MH i2c: E2 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: E2 0E 00 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: E2 0E 00 A8 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 70 [19:56:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:56:41]wFMCommunicate OK [19:56:41]SAM_PROTO_GetShiftState done [19:56:41]FM_GetShiftState done [19:56:41]opened in 1730332621 [19:56:41]opened+sec_in_day 1730419021 [19:56:41]quantity*price = 50019 [19:56:41]sum+1 = 50021 [19:56:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 242 31.10.2024 19:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139765 ФПД: 168882733861776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T195643&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139765&fm=168882733861776&tin=02508201610067®Number=0000000000091631&sum=50000 [19:56:42]StoreToDocumentArchive [19:56:42]shift 557 fd 139765 [19:56:42]save to /storage/0557/doc_00139765 [19:56:42]save last doc name /storage/0557/doc_00139765 to /storage/kkm_last_doc_name [19:56:42]save OK [19:56:42]Clear old archive folders... [19:56:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:56:42]tlvbuf is 00AFC5A0 [19:56:42]SAM_PROTO_ClearQueue [19:56:42]wFMCommunicate request_size=4 [19:56:42]MH_SAM_APDU [19:56:42]CAPDU: 80 09 00 00 [19:56:42]Write to MH i2c: E2 08 00 B5 22 80 09 00 00 00 00 00 00 49 [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:42]Read from MH i2c: E2 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 B5 22 00 90 00 4B [19:56:42]RAPDU: 90 00 [19:56:42]wFMCommunicate OK [19:56:42]SAM_PROTO_ClearQueue done [19:56:42]KKMCreateOFDPacket [19:56:42]OFDProtocolAddRootSTLVToBuf [19:56:42]FM_MakeSignedData [19:56:42]FM_MakeSignedData [19:56:42]SAM_PROTO_SignData [19:56:42]wFMCommunicate request_size=4 [19:56:42]MH_SAM_APDU [19:56:42]CAPDU: 80 0D 01 02 [19:56:42]Write to MH i2c: E2 08 00 B6 22 80 0D 01 02 00 00 00 00 51 [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:42]Read from MH i2c: E2 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 B6 22 00 90 00 4C [19:56:42]RAPDU: 90 00 [19:56:42]wFMCommunicate OK [19:56:42]wFMCommunicate request_size=255 [19:56:42]MH_SAM_APDU [19:56:42]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 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 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 F2 00 00 00 F4 03 04 00 FB E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 99 99 [19:56:43]Write to MH i2c: E2 02 01 B7 22 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 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 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 F2 00 00 00 F4 03 04 00 FB E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 99 99 00 00 ED [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 B7 22 00 90 00 4D [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]wFMCommunicate request_size=9 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 0D 02 02 04 13 5C 4B 90 [19:56:43]Write to MH i2c: E2 0C 00 B8 22 80 0D 02 02 04 00 13 5C 4B 90 00 00 A6 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 B8 22 00 90 00 4E [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 0D 03 02 [19:56:43]Write to MH i2c: E2 08 00 B9 22 80 0D 03 02 00 00 00 00 56 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 0B 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 0B 00 B9 22 00 8F 1B 56 17 9B AD D3 7D 90 00 06 [19:56:43]RAPDU: 8F 1B 56 17 9B AD D3 7D 90 00 [19:56:43]wFMCommunicate OK [19:56:43]SAM_PROTO_SignData done [19:56:43]FM_MakeSignedData done [19:56:43]CreateOFDProtocolMessage [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 11 00 00 [19:56:43]Write to MH i2c: E2 08 00 BA 22 80 11 00 00 00 00 00 00 56 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 17 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 17 00 BA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [19:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:56:43]wFMCommunicate OK [19:56:43]CreateOFDProtocolMessage done [19:56:43]OFDSenderStorePacket 139765 [19:56:43]StoreOFDPacket docnum=139765 [19:56: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 0E 01 00 00 2E BB 06 01 BD 06 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 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 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 F2 00 00 00 F4 03 04 00 FB E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 99 99 13 5C 4B 90 8F 1B 56 17 9B AD D3 7D [19:56:43]CheckFolder [19:56:43]dirname=/storage/ofd_packets [19:56:43]CheckFolder done [19:56:43]ProducePacketName [19:56:43]name=ofd_packets/00139765 [19:56:43]NVStorageSaveData ofd_packets/00139765 [19:56:43]File name is /storage/ofd_packets/00139765 [19:56:43]Write 300 bytes [19:56:43]NVStorageSaveData done [19:56:43]OFDSenderStorePacket done [19:56:43]KKMCreateOFDPacket done [19:56:43]NVStorageSaveData kkm_last_timestamp [19:56:43]File name is /storage/kkm_last_timestamp [19:56:43]Write 4 bytes [19:56:43]NVStorageSaveData done [19:56:43]ExternCall_PrintAddStr [19:56:43]wPrintStart [19:56:43]Write to MH i2c: 01 00 00 BB 22 DD [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 BB 22 00 00 00 00 00 FF 0F F2 [19:56:43]RasterBufferAndPrint [19:56:43]line Счет N : (1)1095454 [19:56:43]line ИНН: 02508201610067 [19:56:43]line Контрольно-Кассовый Чек [19:56:43]line ПРОДАЖА [19:56:43]line ТРК (МРК, ГНК) : 71 [19:56:43]line Товар: 2711190000 [19:56:43]line ГАЗ-К-5 [19:56:43]line 13.060 * 38.30 [19:56:43]line = 500.20 [19:56:43]line НДС 12% НСП 1% [19:56:43]line > о реализуемом товаре [19:56:43]line ОКРУГЛЕНИЕ: -0.20 [19:56:43]line ИТОГО: 500.00 [19:56:43]line Внесено: 500.00 [19:56:43]line СДАЧА: 0.00 [19:56:43]line НСП 1% : 4.43 [19:56:43]line НДС 12% : 53.12 [19:56:43]line Наличными: 500.00 [19:56:43]line Безнал.: 0.00 [19:56:43]line Место: АЗС № 101 "Партнер Нефть" [19:56:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:56:43]line СНО: Общий режим [19:56:43]line Чек 242 31.10.2024 19:56 [19:56:43]line Смена: 557 ФФД: 1.0 [19:56:43]line ЗНМ: 0300000081 [19:56:43]line РНМ: 0000000000091631 [19:56:43]line Версия ККМ: 001 [19:56:43]line ФМ: 0000000000874669 [19:56:43]line ФД: 139765 [19:56:43]line ФПД: 168882733861776 [19:56:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T195643&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139765&fm=168882733861776&tin=02508201610067®Number=0000000000091631&sum=50000 [19:56:43]written 0, free lines is 4095 [19:56:43]OFD Sender: Processing packet 139765 [packets to send 34, broken 33] [19:56:43]ProducePacketName [19:56:43]name=ofd_packets/00139765 [19:56:43]OFD Sender: To server: pG, [19:56:43]CommunicateWithHost lk.salyk.kg:30040 [19:56:43]ConnectInit lk.salyk.kg [19:56:43]Connected sock=10 [19:56: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 0E 01 00 00 2E BB 06 01 BD 06 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 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 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 F2 00 00 00 F4 03 04 00 FB E0 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 21 02 00 35 04 06 00 99 99 13 5C 4B 90 8F 1B 56 17 9B AD D3 7D [19:56:43]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 85 E7 47 00 67 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 21 02 00 F4 03 04 00 A8 8C 23 67 B6 04 01 00 00 B6 95 11 C7 F0 9C 74 76 [19:56:43]CommunicateWithHost err = 0 [19:56:43]CheckOFDResponse [19:56:43]1017 (14) - 77093643461234 [19:56:43]1041 (16) - 0000000000874669 [19:56:43]1040 (4) - 139765 [19:56:43]1012 (4) - 31.10.2024 13:56 [19:56:43]1206 (1) - 0 [19:56:43]OFD Sender: Remove packet 139765 [19:56:43]ProducePacketName [19:56:43]name=ofd_packets/00139765 [19:56:43]NVStorageDeleteData [19:56:43]Write to MH i2c: 01 00 00 E6 22 08 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 E6 22 00 00 00 00 00 F6 0C 11 [19:56:43]RasterBufferAndPrint [19:56:43]line [19:56:43]line [19:56:43]line [19:56:43]line [19:56:43]line [19:56:43]written 0, free lines is 3324 [19:56:43]MH_Cut [19:56:43]Write to MH i2c: D1 01 00 ED 22 01 E1 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: D1 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: D1 01 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: D1 01 00 ED 22 00 E0 [19:56:43]Write to MH i2c: 01 00 00 EE 22 10 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:44]OFD Sender: No OFD packet to send [19:56:44]*** Cut start [19:56:44]*** Partial cut [19:56:44]*** CUTSNS_PIN = 1 [19:56:44]*** CUTSNS_PIN = 0 [19:56:44]*** Brake cut motor [19:56:45]Read from MH i2c: 01 [19:56:45]MH_I2C_Read... [19:56:45]*** Stop cut motor [19:56:45]*** Cut end [19:56:45]Read from MH i2c: 01 07 00 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: 01 07 00 EE 22 00 00 00 00 00 FF 0F 25 [19:56:45]process_action close_receipt done [19:56:45]requested_data is exist [19:56:45]produce_requested_data [19:56:45]requested_item fm.sn is exist - process it [19:56:45]wFMCommunicate request_size=4 [19:56:45]MH_SAM_APDU [19:56:45]CAPDU: 80 11 00 00 [19:56:45]Write to MH i2c: E2 08 00 EF 22 80 11 00 00 00 00 00 00 8B [19:56:45]Write i2c OK [19:56:45]MH_I2C_Read... [19:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:45]Read from MH i2c: E2 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 17 00 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 17 00 EF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E6 [19:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:56:45]wFMCommunicate OK [19:56:45]requested_item fd.num is exist - process it [19:56:45]SAM_PROTO_GetFieldsCounters [19:56:45]wFMCommunicate request_size=4 [19:56:45]MH_SAM_APDU [19:56:45]CAPDU: 80 13 00 00 [19:56:45]Write to MH i2c: E2 08 00 F0 22 80 13 00 00 00 00 00 00 8E [19:56:45]Write i2c OK [19:56:45]MH_I2C_Read... [19:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:45]Read from MH i2c: E2 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 62 00 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 62 00 F0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [19:56: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 F5 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:45]wFMCommunicate OK [19:56:45]SAM_PROTO_GetFieldsCounters done [19:56:45]requested_item shift.num is exist - process it [19:56:45]requested_item shift.opened is exist - process it [19:56:45]req_shift_opened [19:56:45]FM_GetShiftState [19:56:45]SAM_PROTO_GetShiftState [19:56:45]wFMCommunicate request_size=4 [19:56:45]MH_SAM_APDU [19:56:45]CAPDU: 80 13 01 00 [19:56:45]Write to MH i2c: E2 08 00 F1 22 80 13 01 00 00 00 00 00 90 [19:56:45]Write i2c OK [19:56:45]MH_I2C_Read... [19:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:45]Read from MH i2c: E2 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 0E 00 [19:56:45]MH_I2C_Read... [19:56:45]Read from MH i2c: E2 0E 00 F1 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B9 [19:56:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:56:45]wFMCommunicate OK [19:56:45]SAM_PROTO_GetShiftState done [19:56:45]FM_GetShiftState done [19:56:45]req_shift_opened done [19:56:45]requested_item shift.open_date is exist - process it [19:56:45]req_shift_open_date [19:56:45]req_shift_open_date done [19:56:45]produce_requested_data done [19:56:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139765,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:56:45]process_action_free close_receipt [19:56:45]json_value_free [19:56:45]json_value_free done [19:56:45]process_json_proto returns [19:56:45]Send response to host [19:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139765,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:56:45]free response buf [19:56:45]execute_script done [19:56:45]execute_script returns [19:56:45]free content buf [19:56:45]Sock 7.Close socket [19:56:45]Sock 7.Thread stoped [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:53]accept exits with 9 [19:59:53]New connection [19:59:53]New thread 3066654052 created [19:59:53]Thread 3066510692 joined [19:59:53]Waiting for new connection... [19:59:53] Sock 9.Parse request [19:59:53]Sock 9.Check first char [19:59:53]Sock 9.First char is OK [19:59:53]request: POST /json_proto HTTP/1.0 [19:59:53]Method: POST [19:59:53]URL: /json_proto [19:59:53]Method is POST - this is cgi request [19:59:53]url: /json_proto [19:59:53]query_string will be loaded in cgi processing [19:59:53]execute_cgi json_proto POST (null) [19:59:53]execute_cgi path=json_proto method=POST [19:59:53]POST find Content-Length [19:59:53]Host: 172.17.50.196:8080 [19:59:53]Content-Length: 215 [19:59:53]Content-Type: application/json [19:59:53] [19:59:53]POST finish read [19:59:53]Found Content-Length = 215 [19:59: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" ] } } [19:59:53]execute_script... [19:59: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" ] } } [19:59:53]POST & json_proto [19:59:53]process_json_proto [19:59:53]json parsed OK: [19:59:53]protocol is kg_v1.0 [19:59:53]action value=get_value [19:59:53]process_action get_value [19:59:53]cmd_get_value [19:59:53]process_action get_value done [19:59:53]requested_data is exist [19:59:53]produce_requested_data [19:59:53]requested_item kkm.sn is exist - process it [19:59:53]requested_item kkm.ver is exist - process it [19:59:53]requested_item fm.sn is exist - process it [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 11 00 00 [19:59:53]Write to MH i2c: E2 08 00 F2 22 80 11 00 00 00 00 00 00 8E [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 17 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 17 00 F2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E9 [19:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:59:53]wFMCommunicate OK [19:59:53]requested_item fd.num is exist - process it [19:59:53]SAM_PROTO_GetFieldsCounters [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 00 00 [19:59:53]Write to MH i2c: E2 08 00 F3 22 80 13 00 00 00 00 00 00 91 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 F3 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [19:59: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 F5 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetFieldsCounters done [19:59:53]requested_item shift.num is exist - process it [19:59:53]requested_item shift.opened is exist - process it [19:59:53]req_shift_opened [19:59:53]FM_GetShiftState [19:59:53]SAM_PROTO_GetShiftState [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 01 00 [19:59:53]Write to MH i2c: E2 08 00 F4 22 80 13 01 00 00 00 00 00 93 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:54]Read from MH i2c: E2 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: E2 0E 00 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: E2 0E 00 F4 22 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BC [19:59:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [19:59:54]wFMCommunicate OK [19:59:54]SAM_PROTO_GetShiftState done [19:59:54]FM_GetShiftState done [19:59:54]req_shift_opened done [19:59:54]requested_item shift.open_date is exist - process it [19:59:54]req_shift_open_date [19:59:54]req_shift_open_date done [19:59:54]produce_requested_data done [19:59:54]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139765,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [19:59:54]process_action_free get_value [19:59:54]json_value_free [19:59:54]json_value_free done [19:59:54]process_json_proto returns [19:59:54]Send response to host [19:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139765,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [19:59:54]free response buf [19:59:54]execute_script done [19:59:54]execute_script returns [19:59:54]free content buf [19:59:54]Sock 9.Close socket [19:59:54]Sock 9.Thread stoped [19:59:54]accept exits with 7 [19:59:54]New connection [19:59:54]New thread 3066510692 created [19:59:54]Thread 3066654052 joined [19:59:54]Waiting for new connection... [19:59:54] Sock 7.Parse request [19:59:54]Sock 7.Check first char [19:59:54]Sock 7.First char is OK [19:59:54]request: POST /json_proto HTTP/1.0 [19:59:54]Method: POST [19:59:54]URL: /json_proto [19:59:54]Method is POST - this is cgi request [19:59:54]url: /json_proto [19:59:54]query_string will be loaded in cgi processing [19:59:54]execute_cgi json_proto POST (null) [19:59:54]execute_cgi path=json_proto method=POST [19:59:54]POST find Content-Length [19:59:54]Host: 172.17.50.196:8080 [19:59:54]Content-Length: 331 [19:59:54]Content-Type: application/json [19:59:54] [19:59:54]POST finish read [19:59:54]Found Content-Length = 331 [19:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:59:54]execute_script... [19:59:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:59:54]POST & json_proto [19:59:54]process_json_proto [19:59:54]json parsed OK: [19:59:54]protocol is kg_v1.0 [19:59:54]action value=get_value [19:59:54]process_action get_value [19:59:54]cmd_get_value [19:59:54]process_action get_value done [19:59:54]requested_data is exist [19:59:54]produce_requested_data [19:59:54]requested_item fm.sale.total is exist - process it [19:59:54]SAM_PROTO_GetFMData [19:59:54]wFMCommunicate request_size=4 [19:59:54]MH_SAM_APDU [19:59:54]CAPDU: 80 13 03 00 [19:59:54]Write to MH i2c: E2 08 00 F5 22 80 13 03 00 00 00 00 00 96 [19:59:54]Write i2c OK [19:59:54]MH_I2C_Read... [19:59:54]OFD Sender: No OFD packet to send [19:59:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:59:54]Read from MH i2c: E2 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: E2 FD 00 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: E2 FD 00 F5 22 00 C7 04 85 04 C3 04 6E 04 04 00 9B 1D 02 00 69 04 A3 00 6F 04 04 00 4C 1B 02 00 B1 04 05 00 3D 4A 23 53 01 70 04 05 00 24 30 AC 03 01 72 04 04 00 19 1A 77 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 4D 79 04 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 B2 1C 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 9C [19:59:54]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 9B 1D 02 00 69 04 A3 00 6F 04 04 00 4C 1B 02 00 B1 04 05 00 3D 4A 23 53 01 70 04 05 00 24 30 AC 03 01 72 04 04 00 19 1A 77 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 4D 79 04 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 B2 1C 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [19:59:54]wFMCommunicate OK [19:59:54]wFMCommunicate request_size=4 [19:59:54]MH_SAM_APDU [19:59:54]CAPDU: 80 17 00 00 [19:59:54]Write to MH i2c: E2 08 00 F6 22 80 17 00 00 00 00 00 00 98 [19:59:54]Write i2c OK [19:59:54]MH_I2C_Read... [19:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:59:55]Read from MH i2c: E2 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 FD 00 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 FD 00 F6 22 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 1A 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 50 [19:59:55]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 1A 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 [19:59:55]wFMCommunicate OK [19:59:55]wFMCommunicate request_size=4 [19:59:55]MH_SAM_APDU [19:59:55]CAPDU: 80 17 00 00 [19:59:55]Write to MH i2c: E2 08 00 F7 22 80 17 00 00 00 00 00 00 99 [19:59:55]Write i2c OK [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 [19:59:55]MH_I2C_Read... [19:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:59:55]Read from MH i2c: E2 FD 00 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 FD 00 F7 22 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 71 [19:59:55]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 [19:59:55]wFMCommunicate OK [19:59:55]wFMCommunicate request_size=4 [19:59:55]MH_SAM_APDU [19:59:55]CAPDU: 80 17 00 00 [19:59:55]Write to MH i2c: E2 08 00 F8 22 80 17 00 00 00 00 00 00 9A [19:59:55]Write i2c OK [19:59:55]MH_I2C_Read... [19:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:59:55]Read from MH i2c: E2 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 FD 00 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 FD 00 F8 22 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [19:59: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 [19:59:55]wFMCommunicate OK [19:59:55]wFMCommunicate request_size=4 [19:59:55]MH_SAM_APDU [19:59:55]CAPDU: 80 17 00 00 [19:59:55]Write to MH i2c: E2 08 00 F9 22 80 17 00 00 00 00 00 00 9B [19:59:55]Write i2c OK [19:59:55]MH_I2C_Read... [19:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [19:59:55]Read from MH i2c: E2 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 E4 00 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 E4 00 F9 22 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 7B [19:59: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 [19:59:55]wFMCommunicate OK [19:59:55]SAM_PROTO_GetFMData done [19:59:55]requested_item fm.sale_refund.total is exist - process it [19:59:55]requested_item fm.buy.total is exist - process it [19:59:55]requested_item shift.sale.total is exist - process it [19:59:55]SAM_PROTO_GetShiftData [19:59:55]wFMCommunicate request_size=4 [19:59:55]MH_SAM_APDU [19:59:55]CAPDU: 80 13 02 00 [19:59:55]Write to MH i2c: E2 08 00 FA 22 80 13 02 00 00 00 00 00 9A [19:59:55]Write i2c OK [19:59:55]MH_I2C_Read... [19:59:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:59:56]Read from MH i2c: E2 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 FD 00 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 FD 00 FA 22 00 B9 04 AA 04 B5 04 6E 04 04 00 F2 00 00 00 69 04 9C 00 6F 04 04 00 EE 00 00 00 B1 04 03 00 A4 E8 94 70 04 03 00 24 19 7C 72 04 03 00 80 CF 18 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 8A D0 0F 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 55 51 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 47 [19:59:56]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 F2 00 00 00 69 04 9C 00 6F 04 04 00 EE 00 00 00 B1 04 03 00 A4 E8 94 70 04 03 00 24 19 7C 72 04 03 00 80 CF 18 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 8A D0 0F 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 55 51 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [19:59:56]wFMCommunicate OK [19:59:56]wFMCommunicate request_size=4 [19:59:56]MH_SAM_APDU [19:59:56]CAPDU: 80 17 00 00 [19:59:56]Write to MH i2c: E2 08 00 FB 22 80 17 00 00 00 00 00 00 9D [19:59:56]Write i2c OK [19:59:56]MH_I2C_Read... [19:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:59:56]Read from MH i2c: E2 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 FD 00 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 FD 00 FB 22 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 FC [19:59:56]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [19:59:56]wFMCommunicate OK [19:59:56]wFMCommunicate request_size=4 [19:59:56]MH_SAM_APDU [19:59:56]CAPDU: 80 17 00 00 [19:59:56]Write to MH i2c: E2 08 00 FC 22 80 17 00 00 00 00 00 00 9E [19:59:56]Write i2c OK [19:59:56]MH_I2C_Read... [19:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:59:56]Read from MH i2c: E2 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 FD 00 [19:59:56]MH_I2C_Read... [19:59:56]Read from MH i2c: E2 FD 00 FC 22 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C6 [19:59:56]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [19:59:56]wFMCommunicate OK [19:59:56]wFMCommunicate request_size=4 [19:59:56]MH_SAM_APDU [19:59:56]CAPDU: 80 17 00 00 [19:59:56]Write to MH i2c: E2 08 00 FD 22 80 17 00 00 00 00 00 00 9F [19:59:56]Write i2c OK [19:59:56]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 FD 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 FD 00 FD 22 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 17 [19:59:57]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [19:59:57]wFMCommunicate OK [19:59:57]wFMCommunicate request_size=4 [19:59:57]MH_SAM_APDU [19:59:57]CAPDU: 80 17 00 00 [19:59:57]Write to MH i2c: E2 08 00 FE 22 80 17 00 00 00 00 00 00 A0 [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 D6 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 D6 00 FE 22 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [19:59:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:59:57]wFMCommunicate OK [19:59:57]SAM_PROTO_GetShiftData done [19:59:57]requested_item shift.sale.total_cash is exist - process it [19:59:57]requested_item shift.sale_refund.total is exist - process it [19:59:57]requested_item shift.sale_refund.total_cash is exist - process it [19:59:57]requested_item shift.buy.total is exist - process it [19:59:57]requested_item shift.buy.total_cash is exist - process it [19:59:57]produce_requested_data done [19:59:57]produce_requested_data return {"fm.sale.total":56897889.89,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":97588.84,"shift.sale.total_cash":81329.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:59:57]process_action_free get_value [19:59:57]json_value_free [19:59:57]json_value_free done [19:59:57]process_json_proto returns [19:59:57]Send response to host [19:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56897889.89,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":97588.84,"shift.sale.total_cash":81329.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:59:57]free response buf [19:59:57]execute_script done [19:59:57]execute_script returns [19:59:57]free content buf [19:59:57]Sock 7.Close socket [19:59:57]Sock 7.Thread stoped [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:16]accept exits with 9 [20:02:16]New connection [20:02:16]New thread 3066654052 created [20:02:16]Thread 3066510692 joined [20:02:16]Waiting for new connection... [20:02:16] Sock 9.Parse request [20:02:16]Sock 9.Check first char [20:02:16]Sock 9.First char is OK [20:02:16]request: POST /json_proto HTTP/1.0 [20:02:16]Method: POST [20:02:16]URL: /json_proto [20:02:16]Method is POST - this is cgi request [20:02:16]url: /json_proto [20:02:16]query_string will be loaded in cgi processing [20:02:16]execute_cgi json_proto POST (null) [20:02:16]execute_cgi path=json_proto method=POST [20:02:16]POST find Content-Length [20:02:16]Host: 172.17.50.196:8080 [20:02:16]Content-Length: 686 [20:02:16]Content-Type: application/json [20:02:16] [20:02:16]POST finish read [20:02:16]Found Content-Length = 686 [20:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095457", "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" : 26.110, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:16]execute_script... [20:02:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095457", "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" : 26.110, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:16]POST & json_proto [20:02:16]process_json_proto [20:02:16]json parsed OK: [20:02:16]protocol is kg_v1.0 [20:02:16]action value=close_receipt [20:02:16]process_action close_receipt [20:02:16]cmd_close_receipt [20:02:16]MH_GetDate [20:02:16]Write to MH i2c: F0 00 00 FF 22 10 [20:02:16]Write i2c OK [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: F0 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: F0 09 00 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: F0 09 00 FF 22 00 4A E2 23 67 72 0D 1C 67 D1 [20:02:16]GetLastDocTimeStamp 1730404603 [20:02:16]current date 1730404938 [20:02:16]FM_GetShiftState [20:02:16]SAM_PROTO_GetShiftState [20:02:16]wFMCommunicate request_size=4 [20:02:16]MH_SAM_APDU [20:02:16]CAPDU: 80 13 01 00 [20:02:16]Write to MH i2c: E2 08 00 00 23 80 13 01 00 00 00 00 00 A0 [20:02:16]Write i2c OK [20:02:16]MH_I2C_Read... [20:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:16]Read from MH i2c: E2 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: E2 0E 00 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: E2 0E 00 00 23 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C9 [20:02:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:02:16]wFMCommunicate OK [20:02:16]SAM_PROTO_GetShiftState done [20:02:16]FM_GetShiftState done [20:02:16]opened in 1730332621 [20:02:16]opened+sec_in_day 1730419021 [20:02:16]quantity*price = 100001 [20:02:16]sum+1 = 100002 [20:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 243 31.10.2024 20:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139766 ФПД: 256984009113028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T200218&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139766&fm=256984009113028&tin=02508201610067®Number=0000000000091631&sum=100000 [20:02:17]StoreToDocumentArchive [20:02:17]shift 557 fd 139766 [20:02:17]save to /storage/0557/doc_00139766 [20:02:17]save last doc name /storage/0557/doc_00139766 to /storage/kkm_last_doc_name [20:02:17]save OK [20:02:17]Clear old archive folders... [20:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:02:17]tlvbuf is 00A2BC10 [20:02:17]SAM_PROTO_ClearQueue [20:02:17]wFMCommunicate request_size=4 [20:02:17]MH_SAM_APDU [20:02:17]CAPDU: 80 09 00 00 [20:02:17]Write to MH i2c: E2 08 00 0D 23 80 09 00 00 00 00 00 00 A2 [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:17]Read from MH i2c: E2 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 0D 23 00 90 00 A4 [20:02:17]RAPDU: 90 00 [20:02:17]wFMCommunicate OK [20:02:17]SAM_PROTO_ClearQueue done [20:02:17]KKMCreateOFDPacket [20:02:17]OFDProtocolAddRootSTLVToBuf [20:02:17]FM_MakeSignedData [20:02:17]FM_MakeSignedData [20:02:17]SAM_PROTO_SignData [20:02:17]wFMCommunicate request_size=4 [20:02:17]MH_SAM_APDU [20:02:17]CAPDU: 80 0D 01 02 [20:02:17]Write to MH i2c: E2 08 00 0E 23 80 0D 01 02 00 00 00 00 AA [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:17]Read from MH i2c: E2 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [20:02:17]RAPDU: 90 00 [20:02:17]wFMCommunicate OK [20:02:17]wFMCommunicate request_size=255 [20:02:17]MH_SAM_APDU [20:02:17]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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4A E2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 21 02 00 35 04 06 00 E9 B9 [20:02:17]Write to MH i2c: E2 02 01 0F 23 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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4A E2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 21 02 00 35 04 06 00 E9 B9 00 00 EB [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:17]Read from MH i2c: E2 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 0F 23 00 90 00 A6 [20:02:17]RAPDU: 90 00 [20:02:17]wFMCommunicate OK [20:02:17]wFMCommunicate request_size=9 [20:02:17]MH_SAM_APDU [20:02:17]CAPDU: 80 0D 02 02 04 C0 93 7D C4 [20:02:17]Write to MH i2c: E2 0C 00 10 23 80 0D 02 02 04 00 C0 93 7D C4 00 00 49 [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:17]Read from MH i2c: E2 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [20:02:17]RAPDU: 90 00 [20:02:17]wFMCommunicate OK [20:02:17]wFMCommunicate request_size=4 [20:02:17]MH_SAM_APDU [20:02:17]CAPDU: 80 0D 03 02 [20:02:17]Write to MH i2c: E2 08 00 11 23 80 0D 03 02 00 00 00 00 AF [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:18]Read from MH i2c: E2 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: E2 0B 00 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: E2 0B 00 11 23 00 03 24 F9 0B 1C 4A 05 98 90 00 DE [20:02:18]RAPDU: 03 24 F9 0B 1C 4A 05 98 90 00 [20:02:18]wFMCommunicate OK [20:02:18]SAM_PROTO_SignData done [20:02:18]FM_MakeSignedData done [20:02:18]CreateOFDProtocolMessage [20:02:18]wFMCommunicate request_size=4 [20:02:18]MH_SAM_APDU [20:02:18]CAPDU: 80 11 00 00 [20:02:18]Write to MH i2c: E2 08 00 12 23 80 11 00 00 00 00 00 00 AF [20:02:18]Write i2c OK [20:02:18]MH_I2C_Read... [20:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:18]Read from MH i2c: E2 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: E2 17 00 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: E2 17 00 12 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0A [20: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 [20:02:18]wFMCommunicate OK [20:02:18]CreateOFDProtocolMessage done [20:02:18]OFDSenderStorePacket 139766 [20:02:18]StoreOFDPacket docnum=139766 [20:02: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 0E 01 00 00 9D B3 06 01 D6 A4 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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4A E2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 21 02 00 35 04 06 00 E9 B9 C0 93 7D C4 03 24 F9 0B 1C 4A 05 98 [20:02:18]CheckFolder [20:02:18]dirname=/storage/ofd_packets [20:02:18]CheckFolder done [20:02:18]ProducePacketName [20:02:18]name=ofd_packets/00139766 [20:02:18]NVStorageSaveData ofd_packets/00139766 [20:02:18]File name is /storage/ofd_packets/00139766 [20:02:18]Write 300 bytes [20:02:18]NVStorageSaveData done [20:02:18]OFDSenderStorePacket done [20:02:18]KKMCreateOFDPacket done [20:02:18]NVStorageSaveData kkm_last_timestamp [20:02:18]File name is /storage/kkm_last_timestamp [20:02:18]Write 4 bytes [20:02:18]NVStorageSaveData done [20:02:18]ExternCall_PrintAddStr [20:02:18]wPrintStart [20:02:18]Write to MH i2c: 01 00 00 13 23 36 [20:02:18]Write i2c OK [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: 01 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: 01 07 00 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: 01 07 00 13 23 00 00 00 00 00 FF 0F 4B [20:02:18]RasterBufferAndPrint [20:02:18]line Счет N : (1)1095457 [20:02:18]line ИНН: 02508201610067 [20:02:18]line Контрольно-Кассовый Чек [20:02:18]line ПРОДАЖА [20:02:18]line ТРК (МРК, ГНК) : 81 [20:02:18]line Товар: 2711190000 [20:02:18]line ГАЗ-К-5 [20:02:18]line 26.110 * 38.30 [20:02:18]line = 1000.01 [20:02:18]line НДС 12% НСП 1% [20:02:18]line > о реализуемом товаре [20:02:18]line ОКРУГЛЕНИЕ: -0.01 [20:02:18]line ИТОГО: 1000.00 [20:02:18]line Внесено: 1000.00 [20:02:18]line СДАЧА: 0.00 [20:02:18]line НСП 1% : 8.85 [20:02:18]line НДС 12% : 106.20 [20:02:18]line Наличными: 1000.00 [20:02:18]line Безнал.: 0.00 [20:02:18]line Место: АЗС № 101 "Партнер Нефть" [20:02:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:02:18]line СНО: Общий режим [20:02:18]line Чек 243 31.10.2024 20:02 [20:02:18]line Смена: 557 ФФД: 1.0 [20:02:18]line ЗНМ: 0300000081 [20:02:18]line РНМ: 0000000000091631 [20:02:18]line Версия ККМ: 001 [20:02:18]line ФМ: 0000000000874669 [20:02:18]line ФД: 139766 [20:02:18]line ФПД: 256984009113028 [20:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T200218&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139766&fm=256984009113028&tin=02508201610067®Number=0000000000091631&sum=100000 [20:02:18]OFD Sender: Processing packet 139766 [packets to send 34, broken 33] [20:02:18]ProducePacketName [20:02:18]name=ofd_packets/00139766 [20:02:18]OFD Sender: To server: pG, [20:02:18]CommunicateWithHost lk.salyk.kg:30040 [20:02:18]ConnectInit lk.salyk.kg [20:02:18]written 0, free lines is 4095 [20:02:18]Connected sock=10 [20:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 9D B3 06 01 D6 A4 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 FE 65 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4A E2 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 21 02 00 35 04 06 00 E9 B9 C0 93 7D C4 03 24 F9 0B 1C 4A 05 98 [20:02: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 F0 5B 47 00 F3 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 21 02 00 F4 03 04 00 F7 8D 23 67 B6 04 01 00 00 65 9D A4 7B AC CB 43 9F [20:02:18]CommunicateWithHost err = 0 [20:02:18]CheckOFDResponse [20:02:18]1017 (14) - 77093643461234 [20:02:18]1041 (16) - 0000000000874669 [20:02:18]1040 (4) - 139766 [20:02:18]1012 (4) - 31.10.2024 14:02 [20:02:18]1206 (1) - 0 [20:02:18]OFD Sender: Remove packet 139766 [20:02:18]ProducePacketName [20:02:18]name=ofd_packets/00139766 [20:02:18]NVStorageDeleteData [20:02:18]Write to MH i2c: 01 00 00 3E 23 61 [20:02:18]Write i2c OK [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: 01 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: 01 07 00 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: 01 07 00 3E 23 00 00 00 00 00 E4 0C 58 [20:02:18]RasterBufferAndPrint [20:02:18]line [20:02:18]line [20:02:18]line [20:02:18]line [20:02:18]line [20:02:18]written 0, free lines is 3306 [20:02:18]MH_Cut [20:02:18]Write to MH i2c: D1 01 00 45 23 01 3A [20:02:18]Write i2c OK [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: D1 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: D1 01 00 [20:02:18]MH_I2C_Read... [20:02:18]Read from MH i2c: D1 01 00 45 23 00 39 [20:02:18]Write to MH i2c: 01 00 00 46 23 69 [20:02:18]Write i2c OK [20:02:18]MH_I2C_Read... [20:02:19]OFD Sender: No OFD packet to send [20:02:19]*** Cut start [20:02:19]*** Partial cut [20:02:19]*** CUTSNS_PIN = 1 [20:02:19]*** CUTSNS_PIN = 0 [20:02:19]*** Brake cut motor [20:02:20]Read from MH i2c: 01 [20:02:20]MH_I2C_Read... [20:02:20]*** Stop cut motor [20:02:20]*** Cut end [20:02:20]Read from MH i2c: 01 07 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 07 00 46 23 00 00 00 00 00 FF 0F 7E [20:02:20]process_action close_receipt done [20:02:20]requested_data is exist [20:02:20]produce_requested_data [20:02:20]requested_item fm.sn is exist - process it [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 11 00 00 [20:02:20]Write to MH i2c: E2 08 00 47 23 80 11 00 00 00 00 00 00 E4 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 17 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 17 00 47 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3F [20: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 [20:02:20]wFMCommunicate OK [20:02:20]requested_item fd.num is exist - process it [20:02:20]SAM_PROTO_GetFieldsCounters [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 13 00 00 [20:02:20]Write to MH i2c: E2 08 00 48 23 80 13 00 00 00 00 00 00 E7 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 62 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 62 00 48 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F6 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [20:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F6 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:20]wFMCommunicate OK [20:02:20]SAM_PROTO_GetFieldsCounters done [20:02:20]requested_item shift.num is exist - process it [20:02:20]requested_item shift.opened is exist - process it [20:02:20]req_shift_opened [20:02:20]FM_GetShiftState [20:02:20]SAM_PROTO_GetShiftState [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 13 01 00 [20:02:20]Write to MH i2c: E2 08 00 49 23 80 13 01 00 00 00 00 00 E9 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 49 23 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 12 [20:02:20]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:02:20]wFMCommunicate OK [20:02:20]SAM_PROTO_GetShiftState done [20:02:20]FM_GetShiftState done [20:02:20]req_shift_opened done [20:02:20]requested_item shift.open_date is exist - process it [20:02:20]req_shift_open_date [20:02:20]req_shift_open_date done [20:02:20]produce_requested_data done [20:02:20]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139766,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:02:20]process_action_free close_receipt [20:02:20]json_value_free [20:02:20]json_value_free done [20:02:20]process_json_proto returns [20:02:20]Send response to host [20:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139766,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:02:20]free response buf [20:02:20]execute_script done [20:02:20]execute_script returns [20:02:20]free content buf [20:02:20]Sock 9.Close socket [20:02:20]Sock 9.Thread stoped [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:17]accept exits with 7 [20:09:17]New connection [20:09:17]New thread 3066510692 created [20:09:17]Thread 3066654052 joined [20:09:17]Waiting for new connection... [20:09:17] Sock 7.Parse request [20:09:17]Sock 7.Check first char [20:09:17]Sock 7.First char is OK [20:09:17]request: POST /json_proto HTTP/1.0 [20:09:17]Method: POST [20:09:17]URL: /json_proto [20:09:17]Method is POST - this is cgi request [20:09:17]url: /json_proto [20:09:17]query_string will be loaded in cgi processing [20:09:17]execute_cgi json_proto POST (null) [20:09:17]execute_cgi path=json_proto method=POST [20:09:17]POST find Content-Length [20:09:17]Host: 172.17.50.196:8080 [20:09:17]Content-Length: 905 [20:09:17]Content-Type: application/json [20:09:17] [20:09:17]POST finish read [20:09:17]Found Content-Length = 905 [20:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335597", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150714", "name": "\u0412\u043E\u0434\u043A\u0430 FAVORIT 0,7", "price" : 780.00, "quantity" : 1.000, "sum" : 780.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 880.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:17]execute_script... [20:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335597", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150714", "name": "\u0412\u043E\u0434\u043A\u0430 FAVORIT 0,7", "price" : 780.00, "quantity" : 1.000, "sum" : 780.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 880.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:17]POST & json_proto [20:09:17]process_json_proto [20:09:17]json parsed OK: [20:09:17]protocol is kg_v1.0 [20:09:17]action value=close_receipt [20:09:17]process_action close_receipt [20:09:17]cmd_close_receipt [20:09:17]MH_GetDate [20:09:17]Write to MH i2c: F0 00 00 4A 23 5C [20:09:17]Write i2c OK [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: F0 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: F0 09 00 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: F0 09 00 4A 23 00 EF E3 23 67 72 0D 1C 67 C3 [20:09:17]GetLastDocTimeStamp 1730404938 [20:09:17]current date 1730405359 [20:09:17]FM_GetShiftState [20:09:17]SAM_PROTO_GetShiftState [20:09:17]wFMCommunicate request_size=4 [20:09:17]MH_SAM_APDU [20:09:17]CAPDU: 80 13 01 00 [20:09:17]Write to MH i2c: E2 08 00 4B 23 80 13 01 00 00 00 00 00 EB [20:09:17]Write i2c OK [20:09:17]MH_I2C_Read... [20:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:17]Read from MH i2c: E2 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: E2 0E 00 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: E2 0E 00 4B 23 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 14 [20:09:17]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:09:17]wFMCommunicate OK [20:09:17]SAM_PROTO_GetShiftState done [20:09:17]FM_GetShiftState done [20:09:17]opened in 1730332621 [20:09:17]opened+sec_in_day 1730419021 [20:09:17]quantity*price = 10000 [20:09:17]sum+1 = 10001 [20:09:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003150714 Водка FAVORIT 0,7 1.000 * 780.00 = 780.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 880.00 НСП 1% : 7.78 НДС 12% : 93.45 Наличными: 880.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 244 31.10.2024 20:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139767 ФПД: 182258167970141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T200919&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139767&fm=182258167970141&tin=02508201610067®Number=0000000000091631&sum=88000 0 [20:09:18]StoreToDocumentArchive [20:09:18]shift 557 fd 139767 [20:09:18]save to /storage/0557/doc_00139767 [20:09:18]save last doc name /storage/0557/doc_00139767 to /storage/kkm_last_doc_name [20:09:18]save OK [20:09:18]Clear old archive folders... [20:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=387 [20:09:18]tlvbuf is 00A754D0 [20:09:18]SAM_PROTO_ClearQueue [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 09 00 00 [20:09:18]Write to MH i2c: E2 08 00 58 23 80 09 00 00 00 00 00 00 ED [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 58 23 00 90 00 EF [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]SAM_PROTO_ClearQueue done [20:09:18]KKMCreateOFDPacket [20:09:18]OFDProtocolAddRootSTLVToBuf [20:09:18]FM_MakeSignedData [20:09:18]FM_MakeSignedData [20:09:18]SAM_PROTO_SignData [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 01 02 [20:09:18]Write to MH i2c: E2 08 00 59 23 80 0D 01 02 00 00 00 00 F5 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 59 23 00 90 00 F0 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=255 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [20:09:18]Write to MH i2c: E2 02 01 5A 23 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 67 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 5A 23 00 90 00 F1 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=146 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 02 02 8D 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EF E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 21 02 00 35 04 06 00 A5 C3 49 5B F9 5D [20:09:18]Write to MH i2c: E2 95 00 5B 23 80 0D 02 02 8D 00 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EF E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 21 02 00 35 04 06 00 A5 C3 49 5B F9 5D 00 00 10 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 5B 23 00 90 00 F2 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 03 02 [20:09:18]Write to MH i2c: E2 08 00 5C 23 80 0D 03 02 00 00 00 00 FA [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0B 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0B 00 5C 23 00 DA 39 DC 04 6A 1D 9B E1 90 00 F1 [20:09:18]RAPDU: DA 39 DC 04 6A 1D 9B E1 90 00 [20:09:18]wFMCommunicate OK [20:09:18]SAM_PROTO_SignData done [20:09:18]FM_MakeSignedData done [20:09:18]CreateOFDProtocolMessage [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 11 00 00 [20:09:18]Write to MH i2c: E2 08 00 5D 23 80 11 00 00 00 00 00 00 FA [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 17 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 17 00 5D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 55 [20:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:09:19]wFMCommunicate OK [20:09:19]CreateOFDProtocolMessage done [20:09:19]OFDSenderStorePacket 139767 [20:09:19]StoreOFDPacket docnum=139767 [20:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 97 01 00 00 BF BC 8F 01 40 9A 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EF E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 21 02 00 35 04 06 00 A5 C3 49 5B F9 5D DA 39 DC 04 6A 1D 9B E1 [20:09:19]CheckFolder [20:09:19]dirname=/storage/ofd_packets [20:09:19]CheckFolder done [20:09:19]ProducePacketName [20:09:19]name=ofd_packets/00139767 [20:09:19]NVStorageSaveData ofd_packets/00139767 [20:09:19]File name is /storage/ofd_packets/00139767 [20:09:19]Write 437 bytes [20:09:19]NVStorageSaveData done [20:09:19]OFDSenderStorePacket done [20:09:19]KKMCreateOFDPacket done [20:09:19]NVStorageSaveData kkm_last_timestamp [20:09:19]File name is /storage/kkm_last_timestamp [20:09:19]Write 4 bytes [20:09:19]NVStorageSaveData done [20:09:19]ExternCall_PrintAddStr [20:09:19]wPrintStart [20:09:19]Write to MH i2c: 01 00 00 5E 23 81 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 5E 23 00 00 00 00 00 FF 0F 96 [20:09:19]RasterBufferAndPrint [20:09:19]line Счет N : (3)335597 [20:09:19]line ИНН: 02508201610067 [20:09:19]line Контрольно-Кассовый Чек [20:09:19]line ПРОДАЖА [20:09:19]line Товар: 4870002326172 [20:09:19]line Вода ASU пит н.газ лимон ПЭТ 1л [20:09:19]line 1.000 * 100.00 [20:09:19]line = 100.00 [20:09:19]line НДС 12% НСП 1% [20:09:19]line > о реализуемом товаре [20:09:19]line Товар: 4700003150714 [20:09:19]line Водка FAVORIT 0,7 [20:09:19]line 1.000 * 780.00 [20:09:19]line = 780.00 [20:09:19]line НДС 12% НСП 1% [20:09:19]line > о реализуемом товаре [20:09:19]line ИТОГО: 880.00 [20:09:19]line НСП 1% : 7.78 [20:09:19]line НДС 12% : 93.45 [20:09:19]line Наличными: 880.00 [20:09:19]line Безнал.: 0.00 [20:09:19]line Место: АЗС № 101 "Партнер Нефть" [20:09:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:09:19]line СНО: Общий режим [20:09:19]line Чек 244 31.10.2024 20:09 [20:09:19]line Смена: 557 ФФД: 1.0 [20:09:19]line ЗНМ: 0300000081 [20:09:19]line РНМ: 0000000000091631 [20:09:19]line Версия ККМ: 001 [20:09:19]line ФМ: 0000000000874669 [20:09:19]line ФД: 139767 [20:09:19]line ФПД: 182258167970141 [20:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T200919&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139767&fm=182258167970141&tin=02508201610067®Number=0000000000091631&sum=88000 [20:09:19]OFD Sender: Processing packet 139767 [packets to send 34, broken 33] [20:09:19]ProducePacketName [20:09:19]name=ofd_packets/00139767 [20:09:19]OFD Sender: To server: pG, [20:09:19]CommunicateWithHost lk.salyk.kg:30040 [20:09:19]ConnectInit lk.salyk.kg [20:09:19]line 0 [20:09:19]written 0, free lines is 4095 [20:09:19]Connected sock=10 [20:09:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 97 01 00 00 BF BC 8F 01 40 9A 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 37 31 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 41 56 4F 52 49 54 20 30 2C 37 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 30 01 00 00 00 13 04 06 00 B0 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 EF E3 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 21 02 00 35 04 06 00 A5 C3 49 5B F9 5D DA 39 DC 04 6A 1D 9B E1 [20:09: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 D5 8B 47 00 22 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 F7 21 02 00 F4 03 04 00 9C 8F 23 67 B6 04 01 00 00 24 90 39 A5 78 BF 11 09 [20:09:19]CommunicateWithHost err = 0 [20:09:19]CheckOFDResponse [20:09:19]1017 (14) - 77093643461234 [20:09:19]1041 (16) - 0000000000874669 [20:09:19]1040 (4) - 139767 [20:09:19]1012 (4) - 31.10.2024 14:09 [20:09:19]1206 (1) - 0 [20:09:19]OFD Sender: Remove packet 139767 [20:09:19]ProducePacketName [20:09:19]name=ofd_packets/00139767 [20:09:19]NVStorageDeleteData [20:09:19]Write to MH i2c: 01 00 00 8D 23 B0 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 8D 23 00 00 00 00 00 B4 0C 77 [20:09:19]RasterBufferAndPrint [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]written 0, free lines is 3258 [20:09:19]MH_Cut [20:09:19]Write to MH i2c: D1 01 00 94 23 01 89 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: D1 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: D1 01 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: D1 01 00 94 23 00 88 [20:09:19]Write to MH i2c: 01 00 00 95 23 B8 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:20]OFD Sender: No OFD packet to send [20:09:20]*** Cut start [20:09:20]*** Partial cut [20:09:20]*** CUTSNS_PIN = 1 [20:09:20]*** CUTSNS_PIN = 0 [20:09:20]*** Brake cut motor [20:09:21]Read from MH i2c: 01 [20:09:21]MH_I2C_Read... [20:09:21]*** Stop cut motor [20:09:21]*** Cut end [20:09:21]Read from MH i2c: 01 07 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: 01 07 00 95 23 00 00 00 00 00 FF 0F CD [20:09:21]process_action close_receipt done [20:09:21]requested_data is exist [20:09:21]produce_requested_data [20:09:21]requested_item fm.sn is exist - process it [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 11 00 00 [20:09:21]Write to MH i2c: E2 08 00 96 23 80 11 00 00 00 00 00 00 33 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 17 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 17 00 96 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [20:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:09:21]wFMCommunicate OK [20:09:21]requested_item fd.num is exist - process it [20:09:21]SAM_PROTO_GetFieldsCounters [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 13 00 00 [20:09:21]Write to MH i2c: E2 08 00 97 23 80 13 00 00 00 00 00 00 36 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 62 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 62 00 97 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F7 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F7 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:21]wFMCommunicate OK [20:09:21]SAM_PROTO_GetFieldsCounters done [20:09:21]requested_item shift.num is exist - process it [20:09:21]requested_item shift.opened is exist - process it [20:09:21]req_shift_opened [20:09:21]FM_GetShiftState [20:09:21]SAM_PROTO_GetShiftState [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 13 01 00 [20:09:21]Write to MH i2c: E2 08 00 98 23 80 13 01 00 00 00 00 00 38 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 0E 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 0E 00 98 23 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 61 [20:09:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:09:21]wFMCommunicate OK [20:09:21]SAM_PROTO_GetShiftState done [20:09:21]FM_GetShiftState done [20:09:21]req_shift_opened done [20:09:21]requested_item shift.open_date is exist - process it [20:09:21]req_shift_open_date [20:09:21]req_shift_open_date done [20:09:21]produce_requested_data done [20:09:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139767,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:09:21]process_action_free close_receipt [20:09:21]json_value_free [20:09:21]json_value_free done [20:09:21]process_json_proto returns [20:09:21]Send response to host [20:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139767,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:09:21]free response buf [20:09:21]execute_script done [20:09:21]execute_script returns [20:09:21]free content buf [20:09:21]Sock 7.Close socket [20:09:21]Sock 7.Thread stoped [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:46]accept exits with 9 [20:13:46]New connection [20:13:46]New thread 3066654052 created [20:13:46]Thread 3066510692 joined [20:13:46]Waiting for new connection... [20:13:46] Sock 9.Parse request [20:13:46]Sock 9.Check first char [20:13:46]Sock 9.First char is OK [20:13:46]request: POST /json_proto HTTP/1.0 [20:13:46]Method: POST [20:13:46]URL: /json_proto [20:13:46]Method is POST - this is cgi request [20:13:46]url: /json_proto [20:13:46]query_string will be loaded in cgi processing [20:13:46]execute_cgi json_proto POST (null) [20:13:46]execute_cgi path=json_proto method=POST [20:13:46]POST find Content-Length [20:13:46]Host: 172.17.50.196:8080 [20:13:46]Content-Length: 608 [20:13:46]Content-Type: application/json [20:13:46] [20:13:46]POST finish read [20:13:46]Found Content-Length = 608 [20:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335598", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:46]execute_script... [20:13:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335598", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:46]POST & json_proto [20:13:46]process_json_proto [20:13:46]json parsed OK: [20:13:46]protocol is kg_v1.0 [20:13:46]action value=close_receipt [20:13:46]process_action close_receipt [20:13:46]cmd_close_receipt [20:13:46]MH_GetDate [20:13:46]Write to MH i2c: F0 00 00 99 23 AB [20:13:46]Write i2c OK [20:13:46]MH_I2C_Read... [20:13:46]Read from MH i2c: F0 [20:13:46]MH_I2C_Read... [20:13:46]Read from MH i2c: F0 09 00 [20:13:46]MH_I2C_Read... [20:13:46]Read from MH i2c: F0 09 00 99 23 00 FC E4 23 67 72 0D 1C 67 20 [20:13:46]GetLastDocTimeStamp 1730405359 [20:13:46]current date 1730405628 [20:13:46]FM_GetShiftState [20:13:46]SAM_PROTO_GetShiftState [20:13:46]wFMCommunicate request_size=4 [20:13:46]MH_SAM_APDU [20:13:46]CAPDU: 80 13 01 00 [20:13:46]Write to MH i2c: E2 08 00 9A 23 80 13 01 00 00 00 00 00 3A [20:13:46]Write i2c OK [20:13:46]MH_I2C_Read... [20:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:46]Read from MH i2c: E2 [20:13:46]MH_I2C_Read... [20:13:46]Read from MH i2c: E2 0E 00 [20:13:46]MH_I2C_Read... [20:13:46]Read from MH i2c: E2 0E 00 9A 23 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 63 [20:13:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:13:46]wFMCommunicate OK [20:13:46]SAM_PROTO_GetShiftState done [20:13:46]FM_GetShiftState done [20:13:46]opened in 1730332621 [20:13:46]opened+sec_in_day 1730419021 [20:13:46]quantity*price = 1000 [20:13:46]sum+1 = 1001 [20:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 245 31.10.2024 20:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139768 ФПД: 3540108152365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201348&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139768&fm=3540108152365&tin=02508201610067®Number=0000000000091631&sum=1000 0 [20:13:47]StoreToDocumentArchive [20:13:47]shift 557 fd 139768 [20:13:47]save to /storage/0557/doc_00139768 [20:13:47]save last doc name /storage/0557/doc_00139768 to /storage/kkm_last_doc_name [20:13:47]save OK [20:13:47]Clear old archive folders... [20:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=267 [20:13:47]tlvbuf is B6D5F060 [20:13:47]SAM_PROTO_ClearQueue [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 09 00 00 [20:13:47]Write to MH i2c: E2 08 00 A7 23 80 09 00 00 00 00 00 00 3C [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 A7 23 00 90 00 3E [20:13:47]RAPDU: 90 00 [20:13:47]wFMCommunicate OK [20:13:47]SAM_PROTO_ClearQueue done [20:13:47]KKMCreateOFDPacket [20:13:47]OFDProtocolAddRootSTLVToBuf [20:13:47]FM_MakeSignedData [20:13:47]FM_MakeSignedData [20:13:47]SAM_PROTO_SignData [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 0D 01 02 [20:13:47]Write to MH i2c: E2 08 00 A8 23 80 0D 01 02 00 00 00 00 44 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 A8 23 00 90 00 3F [20:13:47]RAPDU: 90 00 [20:13:47]wFMCommunicate OK [20:13:47]wFMCommunicate request_size=255 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 FC E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [20:13:47]Write to MH i2c: E2 02 01 A9 23 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 FC E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 63 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 A9 23 00 90 00 40 [20:13:47]RAPDU: 90 00 [20:13:47]wFMCommunicate OK [20:13:47]wFMCommunicate request_size=26 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 F8 21 02 00 35 04 06 00 03 38 3E E3 8E 2D [20:13:47]Write to MH i2c: E2 1D 00 AA 23 80 0D 02 02 15 00 36 36 39 10 04 04 00 F8 21 02 00 35 04 06 00 03 38 3E E3 8E 2D 00 00 9F [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [20:13:47]RAPDU: 90 00 [20:13:47]wFMCommunicate OK [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 0D 03 02 [20:13:47]Write to MH i2c: E2 08 00 AB 23 80 0D 03 02 00 00 00 00 49 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 0B 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 0B 00 AB 23 00 02 15 40 49 4F B5 33 75 90 00 96 [20:13:47]RAPDU: 02 15 40 49 4F B5 33 75 90 00 [20:13:47]wFMCommunicate OK [20:13:47]SAM_PROTO_SignData done [20:13:47]FM_MakeSignedData done [20:13:47]CreateOFDProtocolMessage [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 11 00 00 [20:13:47]Write to MH i2c: E2 08 00 AC 23 80 11 00 00 00 00 00 00 49 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 17 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 17 00 AC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [20: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 [20:13:47]wFMCommunicate OK [20:13:47]CreateOFDProtocolMessage done [20:13:47]OFDSenderStorePacket 139768 [20:13:47]StoreOFDPacket docnum=139768 [20: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 1F 01 00 00 BC D3 17 01 9A CF 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 FC E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F8 21 02 00 35 04 06 00 03 38 3E E3 8E 2D 02 15 40 49 4F B5 33 75 [20:13:47]CheckFolder [20:13:47]dirname=/storage/ofd_packets [20:13:47]CheckFolder done [20:13:47]ProducePacketName [20:13:47]name=ofd_packets/00139768 [20:13:47]NVStorageSaveData ofd_packets/00139768 [20:13:47]File name is /storage/ofd_packets/00139768 [20:13:47]Write 317 bytes [20:13:47]NVStorageSaveData done [20:13:47]OFDSenderStorePacket done [20:13:47]KKMCreateOFDPacket done [20:13:47]NVStorageSaveData kkm_last_timestamp [20:13:47]File name is /storage/kkm_last_timestamp [20:13:47]Write 4 bytes [20:13:47]NVStorageSaveData done [20:13:47]ExternCall_PrintAddStr [20:13:47]wPrintStart [20:13:47]Write to MH i2c: 01 00 00 AD 23 D0 [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: 01 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: 01 07 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: 01 07 00 AD 23 00 00 00 00 00 FF 0F E5 [20:13:47]RasterBufferAndPrint [20:13:47]line Счет N : (3)335598 [20:13:47]line ИНН: 02508201610067 [20:13:47]line Контрольно-Кассовый Чек [20:13:47]line ПРОДАЖА [20:13:47]line Товар: 46231529 [20:13:47]line Mentos ПФ Арбуз 6*100*2 [20:13:47]line 1.000 * 10.00 [20:13:47]line = 10.00 [20:13:47]line НДС 12% НСП 1% [20:13:47]line > о реализуемом товаре [20:13:47]line ИТОГО: 10.00 [20:13:47]line НСП 1% : 0.09 [20:13:47]line НДС 12% : 1.06 [20:13:47]line Наличными: 10.00 [20:13:47]line Безнал.: 0.00 [20:13:47]line Место: АЗС № 101 "Партнер Нефть" [20:13:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:13:47]line СНО: Общий режим [20:13:47]line Чек 245 31.10.2024 20:13 [20:13:47]line Смена: 557 ФФД: 1.0 [20:13:47]line ЗНМ: 0300000081 [20:13:47]line РНМ: 0000000000091631 [20:13:47]line Версия ККМ: 001 [20:13:47]line ФМ: 0000000000874669 [20:13:47]line ФД: 139768 [20:13:47]line ФПД: 3540108152365 [20:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201348&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139768&fm=3540108152365&tin=02508201610067®Number=0000000000091631&sum=1000 [20:13:48]line 0 [20:13:48]OFD Sender: Processing packet 139768 [packets to send 34, broken 33] [20:13:48]ProducePacketName [20:13:48]name=ofd_packets/00139768 [20:13:48]OFD Sender: To server: pG, [20:13:48]CommunicateWithHost lk.salyk.kg:30040 [20:13:48]ConnectInit lk.salyk.kg [20:13:48]written 0, free lines is 4095 [20:13:48]Connected sock=10 [20:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1F 01 00 00 BC D3 17 01 9A CF 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 FC E4 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F8 21 02 00 35 04 06 00 03 38 3E E3 8E 2D 02 15 40 49 4F B5 33 75 [20:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 51 17 47 00 9B 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 F8 21 02 00 F4 03 04 00 A9 90 23 67 B6 04 01 00 00 1D DD F1 E1 B7 88 5C 24 [20:13:48]CommunicateWithHost err = 0 [20:13:48]CheckOFDResponse [20:13:48]1017 (14) - 77093643461234 [20:13:48]1041 (16) - 0000000000874669 [20:13:48]1040 (4) - 139768 [20:13:48]1012 (4) - 31.10.2024 14:14 [20:13:48]1206 (1) - 0 [20:13:48]OFD Sender: Remove packet 139768 [20:13:48]ProducePacketName [20:13:48]name=ofd_packets/00139768 [20:13:48]NVStorageDeleteData [20:13:48]Write to MH i2c: 01 00 00 D5 23 F8 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: 01 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: 01 07 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: 01 07 00 D5 23 00 00 00 00 00 03 0D 0F [20:13:48]RasterBufferAndPrint [20:13:48]line [20:13:48]line [20:13:48]line [20:13:48]line [20:13:48]line [20:13:48]written 0, free lines is 3337 [20:13:48]MH_Cut [20:13:48]Write to MH i2c: D1 01 00 DC 23 01 D1 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: D1 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: D1 01 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: D1 01 00 DC 23 00 D0 [20:13:48]Write to MH i2c: 01 00 00 DD 23 00 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]OFD Sender: No OFD packet to send [20:13:49]*** Cut start [20:13:49]*** Partial cut [20:13:49]*** CUTSNS_PIN = 1 [20:13:49]*** CUTSNS_PIN = 0 [20:13:49]*** Brake cut motor [20:13:49]Read from MH i2c: 01 [20:13:49]MH_I2C_Read... [20:13:49]*** Stop cut motor [20:13:49]*** Cut end [20:13:49]Read from MH i2c: 01 07 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: 01 07 00 DD 23 00 00 00 00 00 FF 0F 15 [20:13:49]process_action close_receipt done [20:13:49]requested_data is exist [20:13:49]produce_requested_data [20:13:49]requested_item fm.sn is exist - process it [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 11 00 00 [20:13:49]Write to MH i2c: E2 08 00 DE 23 80 11 00 00 00 00 00 00 7B [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 17 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 17 00 DE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [20: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 [20:13:49]wFMCommunicate OK [20:13:49]requested_item fd.num is exist - process it [20:13:49]SAM_PROTO_GetFieldsCounters [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 13 00 00 [20:13:49]Write to MH i2c: E2 08 00 DF 23 80 13 00 00 00 00 00 00 7E [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 62 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 62 00 DF 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F8 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [20:13: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 F8 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:50]wFMCommunicate OK [20:13:50]SAM_PROTO_GetFieldsCounters done [20:13:50]requested_item shift.num is exist - process it [20:13:50]requested_item shift.opened is exist - process it [20:13:50]req_shift_opened [20:13:50]FM_GetShiftState [20:13:50]SAM_PROTO_GetShiftState [20:13:50]wFMCommunicate request_size=4 [20:13:50]MH_SAM_APDU [20:13:50]CAPDU: 80 13 01 00 [20:13:50]Write to MH i2c: E2 08 00 E0 23 80 13 01 00 00 00 00 00 80 [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 0E 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 0E 00 E0 23 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A9 [20:13:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:13:50]wFMCommunicate OK [20:13:50]SAM_PROTO_GetShiftState done [20:13:50]FM_GetShiftState done [20:13:50]req_shift_opened done [20:13:50]requested_item shift.open_date is exist - process it [20:13:50]req_shift_open_date [20:13:50]req_shift_open_date done [20:13:50]produce_requested_data done [20:13:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139768,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:13:50]process_action_free close_receipt [20:13:50]json_value_free [20:13:50]json_value_free done [20:13:50]process_json_proto returns [20:13:50]Send response to host [20:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139768,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:13:50]free response buf [20:13:50]execute_script done [20:13:50]execute_script returns [20:13:50]free content buf [20:13:50]Sock 9.Close socket [20:13:50]Sock 9.Thread stoped [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:35]accept exits with 7 [20:16:35]New connection [20:16:35]New thread 3066510692 created [20:16:35]Thread 3066654052 joined [20:16:35]Waiting for new connection... [20:16:35] Sock 7.Parse request [20:16:35]Sock 7.Check first char [20:16:35]Sock 7.First char is OK [20:16:35]request: POST /json_proto HTTP/1.0 [20:16:35]Method: POST [20:16:35]URL: /json_proto [20:16:35]Method is POST - this is cgi request [20:16:35]url: /json_proto [20:16:35]query_string will be loaded in cgi processing [20:16:35]execute_cgi json_proto POST (null) [20:16:35]execute_cgi path=json_proto method=POST [20:16:35]POST find Content-Length [20:16:35]Host: 172.17.50.196:8080 [20:16:35]Content-Length: 666 [20:16:35]Content-Type: application/json [20:16:35] [20:16:35]POST finish read [20:16:35]Found Content-Length = 666 [20:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335599", "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" ] } } [20:16:35]execute_script... [20:16: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)335599", "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" ] } } [20:16:35]POST & json_proto [20:16:35]process_json_proto [20:16:35]json parsed OK: [20:16:35]protocol is kg_v1.0 [20:16:35]action value=close_receipt [20:16:35]process_action close_receipt [20:16:35]cmd_close_receipt [20:16:35]MH_GetDate [20:16:35]Write to MH i2c: F0 00 00 E1 23 F3 [20:16:35]Write i2c OK [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: F0 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: F0 09 00 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: F0 09 00 E1 23 00 A6 E5 23 67 72 0D 1C 67 13 [20:16:35]GetLastDocTimeStamp 1730405628 [20:16:35]current date 1730405798 [20:16:35]FM_GetShiftState [20:16:35]SAM_PROTO_GetShiftState [20:16:35]wFMCommunicate request_size=4 [20:16:35]MH_SAM_APDU [20:16:35]CAPDU: 80 13 01 00 [20:16:35]Write to MH i2c: E2 08 00 E2 23 80 13 01 00 00 00 00 00 82 [20:16:35]Write i2c OK [20:16:35]MH_I2C_Read... [20:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:35]Read from MH i2c: E2 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: E2 0E 00 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: E2 0E 00 E2 23 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AB [20:16:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:16:35]wFMCommunicate OK [20:16:35]SAM_PROTO_GetShiftState done [20:16:35]FM_GetShiftState done [20:16:35]opened in 1730332621 [20:16:35]opened+sec_in_day 1730419021 [20:16:35]quantity*price = 9900 [20:16:35]sum+1 = 9901 [20:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 246 31.10.2024 20:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139769 ФПД: 170347034606924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201638&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139769&fm=170347034606924&tin=02508201610067®Number=0000000000091631&sum=9900 0 [20:16:37]StoreToDocumentArchive [20:16:37]shift 557 fd 139769 [20:16:37]save to /storage/0557/doc_00139769 [20:16:37]save last doc name /storage/0557/doc_00139769 to /storage/kkm_last_doc_name [20:16:37]save OK [20:16:37]Clear old archive folders... [20:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=293 [20:16:37]tlvbuf is 00AFC8E0 [20:16:37]SAM_PROTO_ClearQueue [20:16:37]wFMCommunicate request_size=4 [20:16:37]MH_SAM_APDU [20:16:37]CAPDU: 80 09 00 00 [20:16:37]Write to MH i2c: E2 08 00 EF 23 80 09 00 00 00 00 00 00 84 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [20:16:37]RAPDU: 90 00 [20:16:37]wFMCommunicate OK [20:16:37]SAM_PROTO_ClearQueue done [20:16:37]KKMCreateOFDPacket [20:16:37]OFDProtocolAddRootSTLVToBuf [20:16:37]FM_MakeSignedData [20:16:37]FM_MakeSignedData [20:16:37]SAM_PROTO_SignData [20:16:37]wFMCommunicate request_size=4 [20:16:37]MH_SAM_APDU [20:16:37]CAPDU: 80 0D 01 02 [20:16:37]Write to MH i2c: E2 08 00 F0 23 80 0D 01 02 00 00 00 00 8C [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 F0 23 00 90 00 87 [20:16:37]RAPDU: 90 00 [20:16:37]wFMCommunicate OK [20:16:37]wFMCommunicate request_size=255 [20:16:37]MH_SAM_APDU [20:16:37]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 F6 00 00 00 F4 03 04 00 A6 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [20:16:37]Write to MH i2c: E2 02 01 F1 23 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 F6 00 00 00 F4 03 04 00 A6 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 22 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [20:16:37]RAPDU: 90 00 [20:16:37]wFMCommunicate OK [20:16:37]wFMCommunicate request_size=52 [20:16:37]MH_SAM_APDU [20:16:37]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 F9 21 02 00 35 04 06 00 9A EE 02 7C 7D 4C [20:16:37]Write to MH i2c: E2 37 00 F2 23 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 F9 21 02 00 35 04 06 00 9A EE 02 7C 7D 4C 00 00 40 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 03 00 F2 23 00 90 00 89 [20:16:37]RAPDU: 90 00 [20:16:37]wFMCommunicate OK [20:16:37]wFMCommunicate request_size=4 [20:16:37]MH_SAM_APDU [20:16:37]CAPDU: 80 0D 03 02 [20:16:37]Write to MH i2c: E2 08 00 F3 23 80 0D 03 02 00 00 00 00 91 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 0B 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 0B 00 F3 23 00 E9 16 61 94 3F E7 D9 F1 90 00 76 [20:16:37]RAPDU: E9 16 61 94 3F E7 D9 F1 90 00 [20:16:37]wFMCommunicate OK [20:16:37]SAM_PROTO_SignData done [20:16:37]FM_MakeSignedData done [20:16:37]CreateOFDProtocolMessage [20:16:37]wFMCommunicate request_size=4 [20:16:37]MH_SAM_APDU [20:16:37]CAPDU: 80 11 00 00 [20:16:37]Write to MH i2c: E2 08 00 F4 23 80 11 00 00 00 00 00 00 91 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:37]Read from MH i2c: E2 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 17 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: E2 17 00 F4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EC [20:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:16:37]wFMCommunicate OK [20:16:37]CreateOFDProtocolMessage done [20:16:37]OFDSenderStorePacket 139769 [20:16:37]StoreOFDPacket docnum=139769 [20:16: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 39 01 00 00 A8 FF 31 01 6A 33 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 F6 00 00 00 F4 03 04 00 A6 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 21 02 00 35 04 06 00 9A EE 02 7C 7D 4C E9 16 61 94 3F E7 D9 F1 [20:16:37]CheckFolder [20:16:37]dirname=/storage/ofd_packets [20:16:37]CheckFolder done [20:16:37]ProducePacketName [20:16:37]name=ofd_packets/00139769 [20:16:37]NVStorageSaveData ofd_packets/00139769 [20:16:37]File name is /storage/ofd_packets/00139769 [20:16:37]Write 343 bytes [20:16:37]NVStorageSaveData done [20:16:37]OFDSenderStorePacket done [20:16:37]KKMCreateOFDPacket done [20:16:37]NVStorageSaveData kkm_last_timestamp [20:16:37]File name is /storage/kkm_last_timestamp [20:16:37]Write 4 bytes [20:16:37]NVStorageSaveData done [20:16:37]ExternCall_PrintAddStr [20:16:37]wPrintStart [20:16:37]Write to MH i2c: 01 00 00 F5 23 18 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: 01 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: 01 07 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: 01 07 00 F5 23 00 00 00 00 00 FF 0F 2D [20:16:37]RasterBufferAndPrint [20:16:37]line Счет N : (3)335599 [20:16:37]line ИНН: 02508201610067 [20:16:37]line Контрольно-Кассовый Чек [20:16:37]line ПРОДАЖА [20:16:37]line Товар: 4870022003305 [20:16:37]line Напиток Gorilla эн нат ж/б 0,5/0,45л [20:16:37]line 1.000 * 99.00 [20:16:37]line = 99.00 [20:16:37]line НДС 12% НСП 1% [20:16:37]line > о реализуемом товаре [20:16:37]line ИТОГО: 99.00 [20:16:37]line НСП 1% : 0.88 [20:16:37]line НДС 12% : 10.51 [20:16:37]line Наличными: 99.00 [20:16:37]line Безнал.: 0.00 [20:16:37]line Место: АЗС № 101 "Партнер Нефть" [20:16:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:16:37]line СНО: Общий режим [20:16:37]line Чек 246 31.10.2024 20:16 [20:16:37]line Смена: 557 ФФД: 1.0 [20:16:37]line ЗНМ: 0300000081 [20:16:37]line РНМ: 0000000000091631 [20:16:37]line Версия ККМ: 001 [20:16:37]line ФМ: 0000000000874669 [20:16:37]line ФД: 139769 [20:16:37]line ФПД: 170347034606924 [20:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201638&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139769&fm=170347034606924&tin=02508201610067®Number=0000000000091631&sum=9900 [20:16:38]line 0 [20:16:38]OFD Sender: Processing packet 139769 [packets to send 34, broken 33] [20:16:38]ProducePacketName [20:16:38]name=ofd_packets/00139769 [20:16:38]OFD Sender: To server: pG, [20:16:38]CommunicateWithHost lk.salyk.kg:30040 [20:16:38]ConnectInit lk.salyk.kg [20:16:38]written 0, free lines is 4095 [20:16:38]Connected sock=10 [20:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 A8 FF 31 01 6A 33 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 F6 00 00 00 F4 03 04 00 A6 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 21 02 00 35 04 06 00 9A EE 02 7C 7D 4C E9 16 61 94 3F E7 D9 F1 [20:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1D 38 47 00 DC ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 21 02 00 F4 03 04 00 53 91 23 67 B6 04 01 00 00 31 C3 CB 9F F2 0C 82 A7 [20:16:38]CommunicateWithHost err = 0 [20:16:38]CheckOFDResponse [20:16:38]1017 (14) - 77093643461234 [20:16:38]1041 (16) - 0000000000874669 [20:16:38]1040 (4) - 139769 [20:16:38]1012 (4) - 31.10.2024 14:16 [20:16:38]1206 (1) - 0 [20:16:38]OFD Sender: Remove packet 139769 [20:16:38]ProducePacketName [20:16:38]name=ofd_packets/00139769 [20:16:38]NVStorageDeleteData [20:16:38]Write to MH i2c: 01 00 00 1E 24 42 [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 07 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: 01 07 00 1E 24 00 00 00 00 00 0F 0D 65 [20:16:38]RasterBufferAndPrint [20:16:38]line [20:16:38]line [20:16:38]line [20:16:38]line [20:16:38]line [20:16:38]written 0, free lines is 3349 [20:16:38]MH_Cut [20:16:38]Write to MH i2c: D1 01 00 25 24 01 1B [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: D1 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: D1 01 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: D1 01 00 25 24 00 1A [20:16:38]Write to MH i2c: 01 00 00 26 24 4A [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]OFD Sender: No OFD packet to send [20:16:39]*** Cut start [20:16:39]*** Partial cut [20:16:39]*** CUTSNS_PIN = 1 [20:16:39]*** CUTSNS_PIN = 0 [20:16:39]*** Brake cut motor [20:16:39]Read from MH i2c: 01 [20:16:39]MH_I2C_Read... [20:16:39]*** Stop cut motor [20:16:39]*** Cut end [20:16:39]Read from MH i2c: 01 07 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [20:16:39]process_action close_receipt done [20:16:39]requested_data is exist [20:16:39]produce_requested_data [20:16:39]requested_item fm.sn is exist - process it [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 11 00 00 [20:16:39]Write to MH i2c: E2 08 00 27 24 80 11 00 00 00 00 00 00 C5 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 17 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 17 00 27 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 20 [20:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:16:39]wFMCommunicate OK [20:16:39]requested_item fd.num is exist - process it [20:16:39]SAM_PROTO_GetFieldsCounters [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 13 00 00 [20:16:39]Write to MH i2c: E2 08 00 28 24 80 13 00 00 00 00 00 00 C8 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 62 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 62 00 28 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F9 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [20:16: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 F9 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:39]wFMCommunicate OK [20:16:39]SAM_PROTO_GetFieldsCounters done [20:16:39]requested_item shift.num is exist - process it [20:16:39]requested_item shift.opened is exist - process it [20:16:39]req_shift_opened [20:16:39]FM_GetShiftState [20:16:39]SAM_PROTO_GetShiftState [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 13 01 00 [20:16:39]Write to MH i2c: E2 08 00 29 24 80 13 01 00 00 00 00 00 CA [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 29 24 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F3 [20:16:39]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:16:39]wFMCommunicate OK [20:16:39]SAM_PROTO_GetShiftState done [20:16:39]FM_GetShiftState done [20:16:39]req_shift_opened done [20:16:39]requested_item shift.open_date is exist - process it [20:16:39]req_shift_open_date [20:16:39]req_shift_open_date done [20:16:39]produce_requested_data done [20:16:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139769,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:16:39]process_action_free close_receipt [20:16:39]json_value_free [20:16:39]json_value_free done [20:16:39]process_json_proto returns [20:16:39]Send response to host [20:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139769,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:16:39]free response buf [20:16:39]execute_script done [20:16:39]execute_script returns [20:16:39]free content buf [20:16:39]Sock 7.Close socket [20:16:39]Sock 7.Thread stoped [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:02]accept exits with 9 [20:17:02]New connection [20:17:02]New thread 3066654052 created [20:17:02]Thread 3066510692 joined [20:17:02]Waiting for new connection... [20:17:02] Sock 9.Parse request [20:17:02]Sock 9.Check first char [20:17:02]Sock 9.First char is OK [20:17:02]request: POST /json_proto HTTP/1.0 [20:17:02]Method: POST [20:17:02]URL: /json_proto [20:17:02]Method is POST - this is cgi request [20:17:02]url: /json_proto [20:17:02]query_string will be loaded in cgi processing [20:17:02]execute_cgi json_proto POST (null) [20:17:02]execute_cgi path=json_proto method=POST [20:17:02]POST find Content-Length [20:17:02]Host: 172.17.50.196:8080 [20:17:02]Content-Length: 860 [20:17:02]Content-Type: application/json [20:17:02] [20:17:02]POST finish read [20:17:02]Found Content-Length = 860 [20:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335600", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:02]execute_script... [20:17:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335600", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:02]POST & json_proto [20:17:02]process_json_proto [20:17:02]json parsed OK: [20:17:02]protocol is kg_v1.0 [20:17:02]action value=close_receipt [20:17:02]process_action close_receipt [20:17:02]cmd_close_receipt [20:17:02]MH_GetDate [20:17:02]Write to MH i2c: F0 00 00 2A 24 3D [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: F0 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: F0 09 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: F0 09 00 2A 24 00 C0 E5 23 67 72 0D 1C 67 77 [20:17:02]GetLastDocTimeStamp 1730405798 [20:17:02]current date 1730405824 [20:17:02]FM_GetShiftState [20:17:02]SAM_PROTO_GetShiftState [20:17:02]wFMCommunicate request_size=4 [20:17:02]MH_SAM_APDU [20:17:02]CAPDU: 80 13 01 00 [20:17:02]Write to MH i2c: E2 08 00 2B 24 80 13 01 00 00 00 00 00 CC [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 0E 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 0E 00 2B 24 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F5 [20:17:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:17:02]wFMCommunicate OK [20:17:02]SAM_PROTO_GetShiftState done [20:17:02]FM_GetShiftState done [20:17:02]opened in 1730332621 [20:17:02]opened+sec_in_day 1730419021 [20:17:02]quantity*price = 28800 [20:17:02]sum+1 = 28801 [20:17:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 432.00 НСП 1% : 3.82 НДС 12% : 45.87 Наличными: 432.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 247 31.10.2024 20:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139770 ФПД: 158186482647782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201704&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139770&fm=158186482647782&tin=02508201610067®Number=0000000000091631&sum=43200 0 [20:17:03]StoreToDocumentArchive [20:17:03]shift 557 fd 139770 [20:17:03]save to /storage/0557/doc_00139770 [20:17:03]save last doc name /storage/0557/doc_00139770 to /storage/kkm_last_doc_name [20:17:03]save OK [20:17:03]Clear old archive folders... [20:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=378 [20:17:03]tlvbuf is 00AFCDE0 [20:17:03]SAM_PROTO_ClearQueue [20:17:03]wFMCommunicate request_size=4 [20:17:03]MH_SAM_APDU [20:17:03]CAPDU: 80 09 00 00 [20:17:03]Write to MH i2c: E2 08 00 38 24 80 09 00 00 00 00 00 00 CE [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:03]Read from MH i2c: E2 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 38 24 00 90 00 D0 [20:17:03]RAPDU: 90 00 [20:17:03]wFMCommunicate OK [20:17:03]SAM_PROTO_ClearQueue done [20:17:03]KKMCreateOFDPacket [20:17:03]OFDProtocolAddRootSTLVToBuf [20:17:03]FM_MakeSignedData [20:17:03]FM_MakeSignedData [20:17:03]SAM_PROTO_SignData [20:17:03]wFMCommunicate request_size=4 [20:17:03]MH_SAM_APDU [20:17:03]CAPDU: 80 0D 01 02 [20:17:03]Write to MH i2c: E2 08 00 39 24 80 0D 01 02 00 00 00 00 D6 [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:03]Read from MH i2c: E2 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 39 24 00 90 00 D1 [20:17:03]RAPDU: 90 00 [20:17:03]wFMCommunicate OK [20:17:03]wFMCommunicate request_size=255 [20:17:03]MH_SAM_APDU [20:17:03]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 [20:17:03]Write to MH i2c: E2 02 01 3A 24 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 18 [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:03]OFD Sender: No OFD packet to send [20:17:03]Read from MH i2c: E2 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 3A 24 00 90 00 D2 [20:17:03]RAPDU: 90 00 [20:17:03]wFMCommunicate OK [20:17:03]wFMCommunicate request_size=137 [20:17:03]MH_SAM_APDU [20:17:03]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 F7 00 00 00 F4 03 04 00 C0 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 21 02 00 35 04 06 00 8F DE A9 1B 42 E6 [20:17:03]Write to MH i2c: E2 8C 00 3B 24 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 F7 00 00 00 F4 03 04 00 C0 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 21 02 00 35 04 06 00 8F DE A9 1B 42 E6 00 00 40 [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:03]Read from MH i2c: E2 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [20:17:03]RAPDU: 90 00 [20:17:03]wFMCommunicate OK [20:17:03]wFMCommunicate request_size=4 [20:17:03]MH_SAM_APDU [20:17:03]CAPDU: 80 0D 03 02 [20:17:03]Write to MH i2c: E2 08 00 3C 24 80 0D 03 02 00 00 00 00 DB [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:04]Read from MH i2c: E2 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 0B 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 0B 00 3C 24 00 0A E2 B4 86 BC E3 9D D6 90 00 14 [20:17:04]RAPDU: 0A E2 B4 86 BC E3 9D D6 90 00 [20:17:04]wFMCommunicate OK [20:17:04]SAM_PROTO_SignData done [20:17:04]FM_MakeSignedData done [20:17:04]CreateOFDProtocolMessage [20:17:04]wFMCommunicate request_size=4 [20:17:04]MH_SAM_APDU [20:17:04]CAPDU: 80 11 00 00 [20:17:04]Write to MH i2c: E2 08 00 3D 24 80 11 00 00 00 00 00 00 DB [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:04]Read from MH i2c: E2 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 17 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 17 00 3D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [20:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:17:04]wFMCommunicate OK [20:17:04]CreateOFDProtocolMessage done [20:17:04]OFDSenderStorePacket 139770 [20:17:04]StoreOFDPacket docnum=139770 [20:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8E 01 00 00 D6 C0 86 01 18 9F 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 EB 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 F7 00 00 00 F4 03 04 00 C0 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 21 02 00 35 04 06 00 8F DE A9 1B 42 E6 0A E2 B4 86 BC E3 9D D6 [20:17:04]CheckFolder [20:17:04]dirname=/storage/ofd_packets [20:17:04]CheckFolder done [20:17:04]ProducePacketName [20:17:04]name=ofd_packets/00139770 [20:17:04]NVStorageSaveData ofd_packets/00139770 [20:17:04]File name is /storage/ofd_packets/00139770 [20:17:04]Write 428 bytes [20:17:04]NVStorageSaveData done [20:17:04]OFDSenderStorePacket done [20:17:04]KKMCreateOFDPacket done [20:17:04]NVStorageSaveData kkm_last_timestamp [20:17:04]File name is /storage/kkm_last_timestamp [20:17:04]Write 4 bytes [20:17:04]NVStorageSaveData done [20:17:04]ExternCall_PrintAddStr [20:17:04]wPrintStart [20:17:04]Write to MH i2c: 01 00 00 3E 24 62 [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: 01 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: 01 07 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: 01 07 00 3E 24 00 00 00 00 00 FF 0F 77 [20:17:04]RasterBufferAndPrint [20:17:04]line Счет N : (3)335600 [20:17:04]line ИНН: 02508201610067 [20:17:04]line Контрольно-Кассовый Чек [20:17:04]line ПРОДАЖА [20:17:04]line Товар: 48743587 [20:17:04]line Сигареты Winston XStyle Silver [20:17:04]line 2.000 * 144.00 [20:17:04]line = 288.00 [20:17:04]line НДС 12% НСП 1% [20:17:04]line > о реализуемом товаре [20:17:04]line Товар: 48747059 [20:17:04]line Сигареты Winston Legend Blue [20:17:04]line 1.000 * 144.00 [20:17:04]line = 144.00 [20:17:04]line НДС 12% НСП 1% [20:17:04]line > о реализуемом товаре [20:17:04]line ИТОГО: 432.00 [20:17:04]line НСП 1% : 3.82 [20:17:04]line НДС 12% : 45.87 [20:17:04]line Наличными: 432.00 [20:17:04]line Безнал.: 0.00 [20:17:04]line Место: АЗС № 101 "Партнер Нефть" [20:17:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:17:04]line СНО: Общий режим [20:17:04]line Чек 247 31.10.2024 20:17 [20:17:04]line Смена: 557 ФФД: 1.0 [20:17:04]line ЗНМ: 0300000081 [20:17:04]line РНМ: 0000000000091631 [20:17:04]line Версия ККМ: 001 [20:17:04]line ФМ: 0000000000874669 [20:17:04]line ФД: 139770 [20:17:04]line ФПД: 158186482647782 [20:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201704&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139770&fm=158186482647782&tin=02508201610067®Number=0000000000091631&sum=43200 [20:17:04]OFD Sender: Processing packet 139770 [packets to send 34, broken 33] [20:17:04]ProducePacketName [20:17:04]name=ofd_packets/00139770 [20:17:04]OFD Sender: To server: pG, [20:17:04]CommunicateWithHost lk.salyk.kg:30040 [20:17:04]ConnectInit lk.salyk.kg [20:17:04]line 0 [20:17:04]written 0, free lines is 4095 [20:17:04]Connected sock=10 [20:17: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 8E 01 00 00 D6 C0 86 01 18 9F 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 EB 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 F7 00 00 00 F4 03 04 00 C0 E5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 21 02 00 35 04 06 00 8F DE A9 1B 42 E6 0A E2 B4 86 BC E3 9D D6 [20:17: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 5F 7C 47 00 F3 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 21 02 00 F4 03 04 00 6D 91 23 67 B6 04 01 00 00 74 06 C3 1F 94 AD 55 B3 [20:17:04]CommunicateWithHost err = 0 [20:17:04]CheckOFDResponse [20:17:04]1017 (14) - 77093643461234 [20:17:04]1041 (16) - 0000000000874669 [20:17:04]1040 (4) - 139770 [20:17:04]1012 (4) - 31.10.2024 14:17 [20:17:04]1206 (1) - 0 [20:17:04]OFD Sender: Remove packet 139770 [20:17:04]ProducePacketName [20:17:04]name=ofd_packets/00139770 [20:17:04]NVStorageDeleteData [20:17:04]Write to MH i2c: 01 00 00 6E 24 92 [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: 01 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: 01 07 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: 01 07 00 6E 24 00 00 00 00 00 93 0C 38 [20:17:04]RasterBufferAndPrint [20:17:04]line [20:17:04]line [20:17:04]line [20:17:04]line [20:17:04]line [20:17:04]written 0, free lines is 3228 [20:17:04]MH_Cut [20:17:04]Write to MH i2c: D1 01 00 75 24 01 6B [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: D1 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: D1 01 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: D1 01 00 75 24 00 6A [20:17:04]Write to MH i2c: 01 00 00 76 24 9A [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:05]OFD Sender: No OFD packet to send [20:17:05]*** Cut start [20:17:05]*** Partial cut [20:17:05]*** CUTSNS_PIN = 1 [20:17:05]*** CUTSNS_PIN = 0 [20:17:05]*** Brake cut motor [20:17:06]Read from MH i2c: 01 [20:17:06]MH_I2C_Read... [20:17:06]*** Stop cut motor [20:17:06]*** Cut end [20:17:06]Read from MH i2c: 01 07 00 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: 01 07 00 76 24 00 00 00 00 00 FF 0F AF [20:17:06]process_action close_receipt done [20:17:06]requested_data is exist [20:17:06]produce_requested_data [20:17:06]requested_item fm.sn is exist - process it [20:17:06]wFMCommunicate request_size=4 [20:17:06]MH_SAM_APDU [20:17:06]CAPDU: 80 11 00 00 [20:17:06]Write to MH i2c: E2 08 00 77 24 80 11 00 00 00 00 00 00 15 [20:17:06]Write i2c OK [20:17:06]MH_I2C_Read... [20:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:06]Read from MH i2c: E2 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 17 00 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 17 00 77 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 70 [20:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:17:06]wFMCommunicate OK [20:17:06]requested_item fd.num is exist - process it [20:17:06]SAM_PROTO_GetFieldsCounters [20:17:06]wFMCommunicate request_size=4 [20:17:06]MH_SAM_APDU [20:17:06]CAPDU: 80 13 00 00 [20:17:06]Write to MH i2c: E2 08 00 78 24 80 13 00 00 00 00 00 00 18 [20:17:06]Write i2c OK [20:17:06]MH_I2C_Read... [20:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:06]Read from MH i2c: E2 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 62 00 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 62 00 78 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FA 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [20:17: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 FA 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:06]wFMCommunicate OK [20:17:06]SAM_PROTO_GetFieldsCounters done [20:17:06]requested_item shift.num is exist - process it [20:17:06]requested_item shift.opened is exist - process it [20:17:06]req_shift_opened [20:17:06]FM_GetShiftState [20:17:06]SAM_PROTO_GetShiftState [20:17:06]wFMCommunicate request_size=4 [20:17:06]MH_SAM_APDU [20:17:06]CAPDU: 80 13 01 00 [20:17:06]Write to MH i2c: E2 08 00 79 24 80 13 01 00 00 00 00 00 1A [20:17:06]Write i2c OK [20:17:06]MH_I2C_Read... [20:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:06]Read from MH i2c: E2 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 0E 00 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 0E 00 79 24 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 43 [20:17:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:17:06]wFMCommunicate OK [20:17:06]SAM_PROTO_GetShiftState done [20:17:06]FM_GetShiftState done [20:17:06]req_shift_opened done [20:17:06]requested_item shift.open_date is exist - process it [20:17:06]req_shift_open_date [20:17:06]req_shift_open_date done [20:17:06]produce_requested_data done [20:17:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139770,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:17:06]process_action_free close_receipt [20:17:06]json_value_free [20:17:06]json_value_free done [20:17:06]process_json_proto returns [20:17:06]Send response to host [20:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139770,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:17:06]free response buf [20:17:06]execute_script done [20:17:06]execute_script returns [20:17:06]free content buf [20:17:06]Sock 9.Close socket [20:17:06]Sock 9.Thread stoped [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]accept exits with 7 [20:18:10]New connection [20:18:10]New thread 3066510692 created [20:18:10]Thread 3066654052 joined [20:18:10]Waiting for new connection... [20:18:10] Sock 7.Parse request [20:18:10]Sock 7.Check first char [20:18:10]Sock 7.First char is OK [20:18:10]request: POST /json_proto HTTP/1.0 [20:18:10]Method: POST [20:18:10]URL: /json_proto [20:18:10]Method is POST - this is cgi request [20:18:10]url: /json_proto [20:18:10]query_string will be loaded in cgi processing [20:18:10]execute_cgi json_proto POST (null) [20:18:10]execute_cgi path=json_proto method=POST [20:18:10]POST find Content-Length [20:18:10]Host: 172.17.50.196:8080 [20:18:10]Content-Length: 730 [20:18:10]Content-Type: application/json [20:18:10] [20:18:10]POST finish read [20:18:10]Found Content-Length = 730 [20:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335601", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:10]execute_script... [20:18:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335601", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:10]POST & json_proto [20:18:10]process_json_proto [20:18:10]json parsed OK: [20:18:10]protocol is kg_v1.0 [20:18:10]action value=close_receipt [20:18:10]process_action close_receipt [20:18:10]cmd_close_receipt [20:18:10]MH_GetDate [20:18:10]Write to MH i2c: F0 00 00 7A 24 8D [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: F0 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: F0 09 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: F0 09 00 7A 24 00 04 E6 23 67 72 0D 1C 67 0C [20:18:10]GetLastDocTimeStamp 1730405824 [20:18:10]current date 1730405892 [20:18:10]FM_GetShiftState [20:18:10]SAM_PROTO_GetShiftState [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 13 01 00 [20:18:10]Write to MH i2c: E2 08 00 7B 24 80 13 01 00 00 00 00 00 1C [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 7B 24 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 45 [20:18:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_GetShiftState done [20:18:10]FM_GetShiftState done [20:18:10]opened in 1730332621 [20:18:10]opened+sec_in_day 1730419021 [20:18:10]quantity*price = 14100 [20:18:10]sum+1 = 14101 [20:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 248 31.10.2024 20:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139771 ФПД: 152076407634605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201812&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139771&fm=152076407634605&tin=02508201610067®Number=0000000000091631&sum=14100 0 [20:18:11]StoreToDocumentArchive [20:18:11]shift 557 fd 139771 [20:18:11]save to /storage/0557/doc_00139771 [20:18:11]save last doc name /storage/0557/doc_00139771 to /storage/kkm_last_doc_name [20:18:11]save OK [20:18:11]Clear old archive folders... [20:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=306 [20:18:11]tlvbuf is B6D5F5E0 [20:18:11]SAM_PROTO_ClearQueue [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 09 00 00 [20:18:11]Write to MH i2c: E2 08 00 88 24 80 09 00 00 00 00 00 00 1E [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 88 24 00 90 00 20 [20:18:11]RAPDU: 90 00 [20:18:11]wFMCommunicate OK [20:18:11]SAM_PROTO_ClearQueue done [20:18:11]KKMCreateOFDPacket [20:18:11]OFDProtocolAddRootSTLVToBuf [20:18:11]FM_MakeSignedData [20:18:11]FM_MakeSignedData [20:18:11]SAM_PROTO_SignData [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 0D 01 02 [20:18:11]Write to MH i2c: E2 08 00 89 24 80 0D 01 02 00 00 00 00 26 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 89 24 00 90 00 21 [20:18:11]RAPDU: 90 00 [20:18:11]wFMCommunicate OK [20:18:11]wFMCommunicate request_size=255 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 04 E6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 [20:18:11]Write to MH i2c: E2 02 01 8A 24 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 04 E6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 00 20 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 8A 24 00 90 00 22 [20:18:11]RAPDU: 90 00 [20:18:11]wFMCommunicate OK [20:18:11]wFMCommunicate request_size=65 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 21 02 00 35 04 06 00 8A 50 0C 41 7A AD [20:18:11]Write to MH i2c: E2 44 00 8B 24 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 21 02 00 35 04 06 00 8A 50 0C 41 7A AD 00 00 E7 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 8B 24 00 90 00 23 [20:18:11]RAPDU: 90 00 [20:18:11]wFMCommunicate OK [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 0D 03 02 [20:18:11]Write to MH i2c: E2 08 00 8C 24 80 0D 03 02 00 00 00 00 2B [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0B 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0B 00 8C 24 00 57 A5 9A 49 2C 78 E8 62 90 00 F9 [20:18:11]RAPDU: 57 A5 9A 49 2C 78 E8 62 90 00 [20:18:11]wFMCommunicate OK [20:18:11]SAM_PROTO_SignData done [20:18:11]FM_MakeSignedData done [20:18:11]CreateOFDProtocolMessage [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 11 00 00 [20:18:11]Write to MH i2c: E2 08 00 8D 24 80 11 00 00 00 00 00 00 2B [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 17 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 17 00 8D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 86 [20:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:18:11]wFMCommunicate OK [20:18:11]CreateOFDProtocolMessage done [20:18:11]OFDSenderStorePacket 139771 [20:18:11]StoreOFDPacket docnum=139771 [20:18: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 46 01 00 00 AF 5F 3E 01 FE 01 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 04 E6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 21 02 00 35 04 06 00 8A 50 0C 41 7A AD 57 A5 9A 49 2C 78 E8 62 [20:18:11]CheckFolder [20:18:11]dirname=/storage/ofd_packets [20:18:11]CheckFolder done [20:18:11]ProducePacketName [20:18:11]name=ofd_packets/00139771 [20:18:11]NVStorageSaveData ofd_packets/00139771 [20:18:11]File name is /storage/ofd_packets/00139771 [20:18:11]Write 356 bytes [20:18:11]NVStorageSaveData done [20:18:11]OFDSenderStorePacket done [20:18:11]KKMCreateOFDPacket done [20:18:11]NVStorageSaveData kkm_last_timestamp [20:18:11]File name is /storage/kkm_last_timestamp [20:18:11]Write 4 bytes [20:18:11]NVStorageSaveData done [20:18:11]ExternCall_PrintAddStr [20:18:11]wPrintStart [20:18:11]Write to MH i2c: 01 00 00 8E 24 B2 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 8E 24 00 00 00 00 00 FF 0F C7 [20:18:11]RasterBufferAndPrint [20:18:11]line Счет N : (3)335601 [20:18:11]line ИНН: 02508201610067 [20:18:11]line Контрольно-Кассовый Чек [20:18:11]line ПРОДАЖА [20:18:11]line Товар: 4870145002155 [20:18:11]line Пиво Большая Кружка Мягкое 0,64л ст/б [20:18:11]line 1.000 * 141.00 [20:18:11]line = 141.00 [20:18:11]line НДС 12% НСП 1% [20:18:11]line > о реализуемом товаре [20:18:11]line ИТОГО: 141.00 [20:18:11]line НСП 1% : 1.25 [20:18:11]line НДС 12% : 14.97 [20:18:11]line Наличными: 141.00 [20:18:11]line Безнал.: 0.00 [20:18:11]line Место: АЗС № 101 "Партнер Нефть" [20:18:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:18:11]line СНО: Общий режим [20:18:11]line Чек 248 31.10.2024 20:18 [20:18:11]line Смена: 557 ФФД: 1.0 [20:18:11]line ЗНМ: 0300000081 [20:18:11]line РНМ: 0000000000091631 [20:18:11]line Версия ККМ: 001 [20:18:11]line ФМ: 0000000000874669 [20:18:11]line ФД: 139771 [20:18:11]line ФПД: 152076407634605 [20:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T201812&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139771&fm=152076407634605&tin=02508201610067®Number=0000000000091631&sum=14100 [20:18:12]line 0 [20:18:12]OFD Sender: Processing packet 139771 [packets to send 34, broken 33] [20:18:12]ProducePacketName [20:18:12]name=ofd_packets/00139771 [20:18:12]OFD Sender: To server: pG, [20:18:12]CommunicateWithHost lk.salyk.kg:30040 [20:18:12]ConnectInit lk.salyk.kg [20:18:12]written 0, free lines is 4095 [20:18:12]Connected sock=10 [20:18: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 46 01 00 00 AF 5F 3E 01 FE 01 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 04 E6 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 21 02 00 35 04 06 00 8A 50 0C 41 7A AD 57 A5 9A 49 2C 78 E8 62 [20:18: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 EE 19 47 00 65 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 21 02 00 F4 03 04 00 B1 91 23 67 B6 04 01 00 00 B5 4A B4 D9 08 CF 5F 61 [20:18:12]CommunicateWithHost err = 0 [20:18:12]CheckOFDResponse [20:18:12]1017 (14) - 77093643461234 [20:18:12]1041 (16) - 0000000000874669 [20:18:12]1040 (4) - 139771 [20:18:12]1012 (4) - 31.10.2024 14:18 [20:18:12]1206 (1) - 0 [20:18:12]OFD Sender: Remove packet 139771 [20:18:12]ProducePacketName [20:18:12]name=ofd_packets/00139771 [20:18:12]NVStorageDeleteData [20:18:12]Write to MH i2c: 01 00 00 B7 24 DB [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 07 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 07 00 B7 24 00 00 00 00 00 EA 0C D8 [20:18:12]RasterBufferAndPrint [20:18:12]line [20:18:12]line [20:18:12]line [20:18:12]line [20:18:12]line [20:18:12]written 0, free lines is 3315 [20:18:12]MH_Cut [20:18:12]Write to MH i2c: D1 01 00 BE 24 01 B4 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: D1 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: D1 01 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: D1 01 00 BE 24 00 B3 [20:18:12]Write to MH i2c: 01 00 00 BF 24 E3 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]OFD Sender: No OFD packet to send [20:18:13]*** Cut start [20:18:13]*** Partial cut [20:18:13]*** CUTSNS_PIN = 1 [20:18:13]*** CUTSNS_PIN = 0 [20:18:13]*** Brake cut motor [20:18:13]Read from MH i2c: 01 [20:18:13]MH_I2C_Read... [20:18:13]*** Stop cut motor [20:18:13]*** Cut end [20:18:13]Read from MH i2c: 01 07 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 BF 24 00 00 00 00 00 FF 0F F8 [20:18:13]process_action close_receipt done [20:18:13]requested_data is exist [20:18:13]produce_requested_data [20:18:13]requested_item fm.sn is exist - process it [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 11 00 00 [20:18:13]Write to MH i2c: E2 08 00 C0 24 80 11 00 00 00 00 00 00 5E [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 17 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 17 00 C0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B9 [20:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:18:13]wFMCommunicate OK [20:18:13]requested_item fd.num is exist - process it [20:18:13]SAM_PROTO_GetFieldsCounters [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 13 00 00 [20:18:13]Write to MH i2c: E2 08 00 C1 24 80 13 00 00 00 00 00 00 61 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 62 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 62 00 C1 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FB 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [20:18: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 FB 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:14]wFMCommunicate OK [20:18:14]SAM_PROTO_GetFieldsCounters done [20:18:14]requested_item shift.num is exist - process it [20:18:14]requested_item shift.opened is exist - process it [20:18:14]req_shift_opened [20:18:14]FM_GetShiftState [20:18:14]SAM_PROTO_GetShiftState [20:18:14]wFMCommunicate request_size=4 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 13 01 00 [20:18:14]Write to MH i2c: E2 08 00 C2 24 80 13 01 00 00 00 00 00 63 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0E 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0E 00 C2 24 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8C [20:18:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:18:14]wFMCommunicate OK [20:18:14]SAM_PROTO_GetShiftState done [20:18:14]FM_GetShiftState done [20:18:14]req_shift_opened done [20:18:14]requested_item shift.open_date is exist - process it [20:18:14]req_shift_open_date [20:18:14]req_shift_open_date done [20:18:14]produce_requested_data done [20:18:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139771,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:18:14]process_action_free close_receipt [20:18:14]json_value_free [20:18:14]json_value_free done [20:18:14]process_json_proto returns [20:18:14]Send response to host [20:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139771,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:18:14]free response buf [20:18:14]execute_script done [20:18:14]execute_script returns [20:18:14]free content buf [20:18:14]Sock 7.Close socket [20:18:14]Sock 7.Thread stoped [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:50]ConnectInit Can't connect to host [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:51]accept exits with 9 [20:38:51]New connection [20:38:51]New thread 3066654052 created [20:38:51]Thread 3066510692 joined [20:38:51]Waiting for new connection... [20:38:51] Sock 9.Parse request [20:38:51]Sock 9.Check first char [20:38:51]Sock 9.First char is OK [20:38:51]request: POST /json_proto HTTP/1.0 [20:38:51]Method: POST [20:38:51]URL: /json_proto [20:38:51]Method is POST - this is cgi request [20:38:51]url: /json_proto [20:38:51]query_string will be loaded in cgi processing [20:38:51]execute_cgi json_proto POST (null) [20:38:51]execute_cgi path=json_proto method=POST [20:38:51]POST find Content-Length [20:38:51]Host: 172.17.50.196:8080 [20:38:51]Content-Length: 620 [20:38:51]Content-Type: application/json [20:38:51] [20:38:51]POST finish read [20:38:51]Found Content-Length = 620 [20:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335602", "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" ] } } [20:38:51]execute_script... [20:38: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)335602", "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" ] } } [20:38:51]POST & json_proto [20:38:51]process_json_proto [20:38:51]json parsed OK: [20:38:51]protocol is kg_v1.0 [20:38:51]action value=close_receipt [20:38:51]process_action close_receipt [20:38:51]cmd_close_receipt [20:38:51]MH_GetDate [20:38:51]Write to MH i2c: F0 00 00 C3 24 D6 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: F0 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: F0 09 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: F0 09 00 C3 24 00 DE EA 23 67 72 0D 1C 67 33 [20:38:51]GetLastDocTimeStamp 1730405892 [20:38:51]current date 1730407134 [20:38:51]FM_GetShiftState [20:38:51]SAM_PROTO_GetShiftState [20:38:51]wFMCommunicate request_size=4 [20:38:51]MH_SAM_APDU [20:38:51]CAPDU: 80 13 01 00 [20:38:51]Write to MH i2c: E2 08 00 C4 24 80 13 01 00 00 00 00 00 65 [20:38:51]Write i2c OK [20:38:51]MH_I2C_Read... [20:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:51]Read from MH i2c: E2 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 0E 00 [20:38:51]MH_I2C_Read... [20:38:51]Read from MH i2c: E2 0E 00 C4 24 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8E [20:38:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:38:51]wFMCommunicate OK [20:38:51]SAM_PROTO_GetShiftState done [20:38:51]FM_GetShiftState done [20:38:51]opened in 1730332621 [20:38:51]opened+sec_in_day 1730419021 [20:38:51]quantity*price = 13900 [20:38:51]sum+1 = 13901 [20:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 249 31.10.2024 20:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139772 ФПД: 108732470010504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T203854&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139772&fm=108732470010504&tin=02508201610067®Number=0000000000091631&sum=13900 0 [20:38:52]StoreToDocumentArchive [20:38:52]shift 557 fd 139772 [20:38:52]save to /storage/0557/doc_00139772 [20:38:52]save last doc name /storage/0557/doc_00139772 to /storage/kkm_last_doc_name [20:38:52]save OK [20:38:52]Clear old archive folders... [20:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:38:52]tlvbuf is B6D5F100 [20:38:52]SAM_PROTO_ClearQueue [20:38:52]wFMCommunicate request_size=4 [20:38:52]MH_SAM_APDU [20:38:52]CAPDU: 80 09 00 00 [20:38:52]Write to MH i2c: E2 08 00 D1 24 80 09 00 00 00 00 00 00 67 [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:53]Read from MH i2c: E2 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 D1 24 00 90 00 69 [20:38:53]RAPDU: 90 00 [20:38:53]wFMCommunicate OK [20:38:53]SAM_PROTO_ClearQueue done [20:38:53]KKMCreateOFDPacket [20:38:53]OFDProtocolAddRootSTLVToBuf [20:38:53]FM_MakeSignedData [20:38:53]FM_MakeSignedData [20:38:53]SAM_PROTO_SignData [20:38:53]wFMCommunicate request_size=4 [20:38:53]MH_SAM_APDU [20:38:53]CAPDU: 80 0D 01 02 [20:38:53]Write to MH i2c: E2 08 00 D2 24 80 0D 01 02 00 00 00 00 6F [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:53]Read from MH i2c: E2 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 D2 24 00 90 00 6A [20:38:53]RAPDU: 90 00 [20:38:53]wFMCommunicate OK [20:38:53]wFMCommunicate request_size=255 [20:38:53]MH_SAM_APDU [20:38:53]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 F9 00 00 00 F4 03 04 00 DE EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [20:38:53]Write to MH i2c: E2 02 01 D3 24 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 F9 00 00 00 F4 03 04 00 DE EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 15 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:53]Read from MH i2c: E2 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 D3 24 00 90 00 6B [20:38:53]RAPDU: 90 00 [20:38:53]wFMCommunicate OK [20:38:53]wFMCommunicate request_size=31 [20:38:53]MH_SAM_APDU [20:38:53]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 FC 21 02 00 35 04 06 00 62 E4 40 40 22 88 [20:38:53]Write to MH i2c: E2 22 00 D4 24 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 FC 21 02 00 35 04 06 00 62 E4 40 40 22 88 00 00 34 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:53]Read from MH i2c: E2 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [20:38:53]RAPDU: 90 00 [20:38:53]wFMCommunicate OK [20:38:53]wFMCommunicate request_size=4 [20:38:53]MH_SAM_APDU [20:38:53]CAPDU: 80 0D 03 02 [20:38:53]Write to MH i2c: E2 08 00 D5 24 80 0D 03 02 00 00 00 00 74 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:53]Read from MH i2c: E2 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 0B 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 0B 00 D5 24 00 35 F5 4B 6D C5 B0 F0 80 90 00 3C [20:38:53]RAPDU: 35 F5 4B 6D C5 B0 F0 80 90 00 [20:38:53]wFMCommunicate OK [20:38:53]SAM_PROTO_SignData done [20:38:53]FM_MakeSignedData done [20:38:53]CreateOFDProtocolMessage [20:38:53]wFMCommunicate request_size=4 [20:38:53]MH_SAM_APDU [20:38:53]CAPDU: 80 11 00 00 [20:38:53]Write to MH i2c: E2 08 00 D6 24 80 11 00 00 00 00 00 00 74 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:53]Read from MH i2c: E2 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 17 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: E2 17 00 D6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CF [20: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 [20:38:53]wFMCommunicate OK [20:38:53]CreateOFDProtocolMessage done [20:38:53]OFDSenderStorePacket 139772 [20:38:53]StoreOFDPacket docnum=139772 [20:38: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 24 01 00 00 06 C1 1C 01 78 9B 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 F9 00 00 00 F4 03 04 00 DE EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FC 21 02 00 35 04 06 00 62 E4 40 40 22 88 35 F5 4B 6D C5 B0 F0 80 [20:38:53]CheckFolder [20:38:53]dirname=/storage/ofd_packets [20:38:53]CheckFolder done [20:38:53]ProducePacketName [20:38:53]name=ofd_packets/00139772 [20:38:53]NVStorageSaveData ofd_packets/00139772 [20:38:53]File name is /storage/ofd_packets/00139772 [20:38:53]Write 322 bytes [20:38:53]NVStorageSaveData done [20:38:53]OFDSenderStorePacket done [20:38:53]KKMCreateOFDPacket done [20:38:53]NVStorageSaveData kkm_last_timestamp [20:38:53]File name is /storage/kkm_last_timestamp [20:38:53]Write 4 bytes [20:38:53]NVStorageSaveData done [20:38:53]ExternCall_PrintAddStr [20:38:53]wPrintStart [20:38:53]Write to MH i2c: 01 00 00 D7 24 FB [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 07 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 07 00 D7 24 00 00 00 00 00 FF 0F 10 [20:38:53]RasterBufferAndPrint [20:38:53]line Счет N : (3)335602 [20:38:53]line ИНН: 02508201610067 [20:38:53]line Контрольно-Кассовый Чек [20:38:53]line ПРОДАЖА [20:38:53]line Товар: 48745000 [20:38:53]line Сигареты Winston Purple Mix [20:38:53]line 1.000 * 139.00 [20:38:53]line = 139.00 [20:38:53]line НДС 12% НСП 1% [20:38:53]line > о реализуемом товаре [20:38:53]line ИТОГО: 139.00 [20:38:53]line НСП 1% : 1.23 [20:38:53]line НДС 12% : 14.76 [20:38:53]line Наличными: 139.00 [20:38:53]line Безнал.: 0.00 [20:38:53]line Место: АЗС № 101 "Партнер Нефть" [20:38:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:38:53]line СНО: Общий режим [20:38:53]line Чек 249 31.10.2024 20:38 [20:38:53]line Смена: 557 ФФД: 1.0 [20:38:53]line ЗНМ: 0300000081 [20:38:53]line РНМ: 0000000000091631 [20:38:53]line Версия ККМ: 001 [20:38:53]line ФМ: 0000000000874669 [20:38:53]line ФД: 139772 [20:38:53]line ФПД: 108732470010504 [20:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T203854&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139772&fm=108732470010504&tin=02508201610067®Number=0000000000091631&sum=13900 [20:38:53]line 0 [20:38:53]written 0, free lines is 4095 [20:38:53]OFD Sender: Processing packet 139772 [packets to send 34, broken 33] [20:38:53]ProducePacketName [20:38:53]name=ofd_packets/00139772 [20:38:53]OFD Sender: To server: pG, [20:38:53]CommunicateWithHost lk.salyk.kg:30040 [20:38:53]ConnectInit lk.salyk.kg [20:38:53]Connected sock=10 [20:38: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 24 01 00 00 06 C1 1C 01 78 9B 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 F9 00 00 00 F4 03 04 00 DE EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FC 21 02 00 35 04 06 00 62 E4 40 40 22 88 35 F5 4B 6D C5 B0 F0 80 [20:38: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 C3 6E 47 00 79 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FC 21 02 00 F4 03 04 00 8A 96 23 67 B6 04 01 00 00 F7 43 72 A3 4C 6C 88 86 [20:38:53]CommunicateWithHost err = 0 [20:38:53]CheckOFDResponse [20:38:53]1017 (14) - 77093643461234 [20:38:53]1041 (16) - 0000000000874669 [20:38:53]1040 (4) - 139772 [20:38:53]1012 (4) - 31.10.2024 14:39 [20:38:53]1206 (1) - 0 [20:38:53]OFD Sender: Remove packet 139772 [20:38:53]ProducePacketName [20:38:53]name=ofd_packets/00139772 [20:38:53]NVStorageDeleteData [20:38:53]Write to MH i2c: 01 00 00 FF 24 23 [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 07 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: 01 07 00 FF 24 00 00 00 00 00 05 0D 3C [20:38:53]RasterBufferAndPrint [20:38:53]line [20:38:53]line [20:38:53]line [20:38:53]line [20:38:53]line [20:38:53]written 0, free lines is 3339 [20:38:53]MH_Cut [20:38:53]Write to MH i2c: D1 01 00 06 25 01 FD [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: D1 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: D1 01 00 [20:38:53]MH_I2C_Read... [20:38:53]Read from MH i2c: D1 01 00 06 25 00 FC [20:38:53]Write to MH i2c: 01 00 00 07 25 2C [20:38:53]Write i2c OK [20:38:53]MH_I2C_Read... [20:38:54]OFD Sender: No OFD packet to send [20:38:54]*** Cut start [20:38:54]*** Partial cut [20:38:54]*** CUTSNS_PIN = 1 [20:38:54]*** CUTSNS_PIN = 0 [20:38:54]*** Brake cut motor [20:38:55]Read from MH i2c: 01 [20:38:55]MH_I2C_Read... [20:38:55]*** Stop cut motor [20:38:55]*** Cut end [20:38:55]Read from MH i2c: 01 07 00 [20:38:55]MH_I2C_Read... [20:38:55]Read from MH i2c: 01 07 00 07 25 00 00 00 00 00 FF 0F 41 [20:38:55]process_action close_receipt done [20:38:55]requested_data is exist [20:38:55]produce_requested_data [20:38:55]requested_item fm.sn is exist - process it [20:38:55]wFMCommunicate request_size=4 [20:38:55]MH_SAM_APDU [20:38:55]CAPDU: 80 11 00 00 [20:38:55]Write to MH i2c: E2 08 00 08 25 80 11 00 00 00 00 00 00 A7 [20:38:55]Write i2c OK [20:38:55]MH_I2C_Read... [20:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:55]Read from MH i2c: E2 [20:38:55]MH_I2C_Read... [20:38:55]Read from MH i2c: E2 17 00 [20:38:55]MH_I2C_Read... [20:38:55]Read from MH i2c: E2 17 00 08 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [20:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:38:55]wFMCommunicate OK [20:38:55]requested_item fd.num is exist - process it [20:38:55]SAM_PROTO_GetFieldsCounters [20:38:55]wFMCommunicate request_size=4 [20:38:55]MH_SAM_APDU [20:38:55]CAPDU: 80 13 00 00 [20:38:55]Write to MH i2c: E2 08 00 09 25 80 13 00 00 00 00 00 00 AA [20:38:55]Write i2c OK [20:38:55]MH_I2C_Read... [20:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:55]Read from MH i2c: E2 [20:38:55]MH_I2C_Read... [20:38:55]Read from MH i2c: E2 62 00 [20:38:55]MH_I2C_Read... [20:38:55]Read from MH i2c: E2 62 00 09 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FC 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [20:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FC 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:55]wFMCommunicate OK [20:38:55]SAM_PROTO_GetFieldsCounters done [20:38:55]requested_item shift.num is exist - process it [20:38:55]requested_item shift.opened is exist - process it [20:38:55]req_shift_opened [20:38:55]FM_GetShiftState [20:38:55]SAM_PROTO_GetShiftState [20:38:55]wFMCommunicate request_size=4 [20:38:55]MH_SAM_APDU [20:38:55]CAPDU: 80 13 01 00 [20:38:55]Write to MH i2c: E2 08 00 0A 25 80 13 01 00 00 00 00 00 AC [20:38:55]Write i2c OK [20:38:55]MH_I2C_Read... [20:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:55]Read from MH i2c: E2 [20:38:55]MH_I2C_Read... [20:38:55]Read from MH i2c: E2 0E 00 [20:38:55]MH_I2C_Read... [20:38:55]Read from MH i2c: E2 0E 00 0A 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D5 [20:38:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:38:55]wFMCommunicate OK [20:38:55]SAM_PROTO_GetShiftState done [20:38:55]FM_GetShiftState done [20:38:55]req_shift_opened done [20:38:55]requested_item shift.open_date is exist - process it [20:38:55]req_shift_open_date [20:38:55]req_shift_open_date done [20:38:55]produce_requested_data done [20:38:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139772,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:38:55]process_action_free close_receipt [20:38:55]json_value_free [20:38:55]json_value_free done [20:38:55]process_json_proto returns [20:38:55]Send response to host [20:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139772,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:38:55]free response buf [20:38:55]execute_script done [20:38:55]execute_script returns [20:38:55]free content buf [20:38:55]Sock 9.Close socket [20:38:55]Sock 9.Thread stoped [20:38:58]accept exits with 7 [20:38:58]New connection [20:38:58]New thread 3066510692 created [20:38:58]Thread 3066654052 joined [20:38:58]Waiting for new connection... [20:38:58] Sock 7.Parse request [20:38:58]Sock 7.Check first char [20:38:58]Sock 7.First char is OK [20:38:58]request: POST /json_proto HTTP/1.0 [20:38:58]Method: POST [20:38:58]URL: /json_proto [20:38:58]Method is POST - this is cgi request [20:38:58]url: /json_proto [20:38:58]query_string will be loaded in cgi processing [20:38:58]execute_cgi json_proto POST (null) [20:38:58]execute_cgi path=json_proto method=POST [20:38:58]POST find Content-Length [20:38:58]Host: 172.17.50.196:8080 [20:38:58]Content-Length: 748 [20:38:58]Content-Type: application/json [20:38:58] [20:38:58]POST finish read [20:38:58]Found Content-Length = 748 [20:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335604", "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 }]} ], "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" ] } } [20:38:58]execute_script... [20:38: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)335604", "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 }]} ], "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" ] } } [20:38:58]POST & json_proto [20:38:58]process_json_proto [20:38:58]json parsed OK: [20:38:58]protocol is kg_v1.0 [20:38:58]action value=close_receipt [20:38:58]process_action close_receipt [20:38:58]cmd_close_receipt [20:38:58]MH_GetDate [20:38:58]Write to MH i2c: F0 00 00 0B 25 1F [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: F0 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: F0 09 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: F0 09 00 0B 25 00 E5 EA 23 67 72 0D 1C 67 83 [20:38:58]GetLastDocTimeStamp 1730407134 [20:38:58]current date 1730407141 [20:38:58]FM_GetShiftState [20:38:58]SAM_PROTO_GetShiftState [20:38:58]wFMCommunicate request_size=4 [20:38:58]MH_SAM_APDU [20:38:58]CAPDU: 80 13 01 00 [20:38:58]Write to MH i2c: E2 08 00 0C 25 80 13 01 00 00 00 00 00 AE [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:59]Read from MH i2c: E2 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 0E 00 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 0E 00 0C 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D7 [20:38:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:38:59]wFMCommunicate OK [20:38:59]SAM_PROTO_GetShiftState done [20:38:59]FM_GetShiftState done [20:38:59]opened in 1730332621 [20:38:59]opened+sec_in_day 1730419021 [20:38:59]quantity*price = 14400 [20:38:59]sum+1 = 14401 [20:38:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 250 31.10.2024 20:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139773 ФПД: 77900431286457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T203901&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139773&fm=77900431286457&tin=02508201610067®Number=0000000000091631&sum=14400 0 [20:39:00]StoreToDocumentArchive [20:39:00]shift 557 fd 139773 [20:39:00]save to /storage/0557/doc_00139773 [20:39:00]save last doc name /storage/0557/doc_00139773 to /storage/kkm_last_doc_name [20:39:00]save OK [20:39:00]Clear old archive folders... [20:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:39:00]tlvbuf is 00A9E830 [20:39:00]SAM_PROTO_ClearQueue [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 09 00 00 [20:39:00]Write to MH i2c: E2 08 00 19 25 80 09 00 00 00 00 00 00 B0 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 19 25 00 90 00 B2 [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]SAM_PROTO_ClearQueue done [20:39:00]KKMCreateOFDPacket [20:39:00]OFDProtocolAddRootSTLVToBuf [20:39:00]FM_MakeSignedData [20:39:00]FM_MakeSignedData [20:39:00]SAM_PROTO_SignData [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 01 02 [20:39:00]Write to MH i2c: E2 08 00 1A 25 80 0D 01 02 00 00 00 00 B8 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 1A 25 00 90 00 B3 [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]wFMCommunicate request_size=255 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 E5 EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [20:39:00]Write to MH i2c: E2 02 01 1B 25 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 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 FA 00 00 00 F4 03 04 00 E5 EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 8B [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 1B 25 00 90 00 B4 [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]wFMCommunicate request_size=32 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 21 02 00 35 04 06 00 46 D9 9B 88 E0 B9 [20:39:00]Write to MH i2c: E2 23 00 1C 25 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 21 02 00 35 04 06 00 46 D9 9B 88 E0 B9 00 00 1B [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 1C 25 00 90 00 B5 [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 03 02 [20:39:00]Write to MH i2c: E2 08 00 1D 25 80 0D 03 02 00 00 00 00 BD [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0B 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0B 00 1D 25 00 28 8A B9 BE 17 52 26 3C 90 00 B2 [20:39:00]RAPDU: 28 8A B9 BE 17 52 26 3C 90 00 [20:39:00]wFMCommunicate OK [20:39:00]SAM_PROTO_SignData done [20:39:00]FM_MakeSignedData done [20:39:00]CreateOFDProtocolMessage [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 11 00 00 [20:39:00]Write to MH i2c: E2 08 00 1E 25 80 11 00 00 00 00 00 00 BD [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 17 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 17 00 1E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [20:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:39:00]wFMCommunicate OK [20:39:00]CreateOFDProtocolMessage done [20:39:00]OFDSenderStorePacket 139773 [20:39:00]StoreOFDPacket docnum=139773 [20:39: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 25 01 00 00 86 9E 1D 01 95 D7 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 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 FA 00 00 00 F4 03 04 00 E5 EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 21 02 00 35 04 06 00 46 D9 9B 88 E0 B9 28 8A B9 BE 17 52 26 3C [20:39:00]CheckFolder [20:39:00]dirname=/storage/ofd_packets [20:39:00]CheckFolder done [20:39:00]ProducePacketName [20:39:00]name=ofd_packets/00139773 [20:39:00]NVStorageSaveData ofd_packets/00139773 [20:39:00]File name is /storage/ofd_packets/00139773 [20:39:00]Write 323 bytes [20:39:00]NVStorageSaveData done [20:39:00]OFDSenderStorePacket done [20:39:00]KKMCreateOFDPacket done [20:39:00]NVStorageSaveData kkm_last_timestamp [20:39:00]File name is /storage/kkm_last_timestamp [20:39:00]Write 4 bytes [20:39:00]NVStorageSaveData done [20:39:00]ExternCall_PrintAddStr [20:39:00]wPrintStart [20:39:00]Write to MH i2c: 01 00 00 1F 25 44 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: 01 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: 01 07 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: 01 07 00 1F 25 00 00 00 00 00 FF 0F 59 [20:39:00]RasterBufferAndPrint [20:39:00]line Счет N : (3)335604 [20:39:00]line ИНН: 02508201610067 [20:39:00]line Контрольно-Кассовый Чек [20:39:00]line ПРОДАЖА [20:39:00]line Товар: 48747059 [20:39:00]line Сигареты Winston Legend Blue [20:39:00]line 1.000 * 144.00 [20:39:00]line = 144.00 [20:39:00]line НДС 12% НСП 1% [20:39:00]line > о реализуемом товаре [20:39:00]line ИТОГО: 144.00 [20:39:00]line НСП 1% : 1.27 [20:39:00]line НДС 12% : 15.29 [20:39:00]line Наличными: 0.00 [20:39:00]line Безнал.: 144.00 [20:39:00]line Место: АЗС № 101 "Партнер Нефть" [20:39:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:39:00]line СНО: Общий режим [20:39:00]line Чек 250 31.10.2024 20:39 [20:39:00]line Смена: 557 ФФД: 1.0 [20:39:00]line ЗНМ: 0300000081 [20:39:00]line РНМ: 0000000000091631 [20:39:00]line Версия ККМ: 001 [20:39:00]line Платежная система: Mbank [20:39:00]line ФМ: 0000000000874669 [20:39:00]line ФД: 139773 [20:39:00]line ФПД: 77900431286457 [20:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T203901&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139773&fm=77900431286457&tin=02508201610067®Number=0000000000091631&sum=14400 [20:39:00]line 0 [20:39:00]written 0, free lines is 4095 [20:39:00]OFD Sender: Processing packet 139773 [packets to send 34, broken 33] [20:39:00]ProducePacketName [20:39:00]name=ofd_packets/00139773 [20:39:00]OFD Sender: To server: pG, [20:39:00]CommunicateWithHost lk.salyk.kg:30040 [20:39:00]ConnectInit lk.salyk.kg [20:39:00]Connected sock=10 [20:39: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 25 01 00 00 86 9E 1D 01 95 D7 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 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 FA 00 00 00 F4 03 04 00 E5 EA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 21 02 00 35 04 06 00 46 D9 9B 88 E0 B9 28 8A B9 BE 17 52 26 3C [20:39: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 B6 B1 47 00 E2 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 21 02 00 F4 03 04 00 91 96 23 67 B6 04 01 00 00 14 08 3C 5F 41 63 AE EE [20:39:01]CommunicateWithHost err = 0 [20:39:01]CheckOFDResponse [20:39:01]1017 (14) - 77093643461234 [20:39:01]1041 (16) - 0000000000874669 [20:39:01]1040 (4) - 139773 [20:39:01]1012 (4) - 31.10.2024 14:39 [20:39:01]1206 (1) - 0 [20:39:01]OFD Sender: Remove packet 139773 [20:39:01]ProducePacketName [20:39:01]name=ofd_packets/00139773 [20:39:01]NVStorageDeleteData [20:39:01]Write to MH i2c: 01 00 00 49 25 6E [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 EA 0C 6B [20:39:01]RasterBufferAndPrint [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]written 0, free lines is 3315 [20:39:01]MH_Cut [20:39:01]Write to MH i2c: D1 01 00 50 25 01 47 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 01 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 01 00 50 25 00 46 [20:39:01]Write to MH i2c: 01 00 00 51 25 76 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]OFD Sender: No OFD packet to send [20:39:01]*** Cut start [20:39:01]*** Partial cut [20:39:01]*** CUTSNS_PIN = 1 [20:39:01]*** CUTSNS_PIN = 0 [20:39:02]*** Brake cut motor [20:39:02]Read from MH i2c: 01 [20:39:02]MH_I2C_Read... [20:39:02]*** Stop cut motor [20:39:02]*** Cut end [20:39:02]Read from MH i2c: 01 07 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 51 25 00 00 00 00 00 FF 0F 8B [20:39:02]process_action close_receipt done [20:39:02]requested_data is exist [20:39:02]produce_requested_data [20:39:02]requested_item fm.sn is exist - process it [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 11 00 00 [20:39:02]Write to MH i2c: E2 08 00 52 25 80 11 00 00 00 00 00 00 F1 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 17 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 17 00 52 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [20:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:39:02]wFMCommunicate OK [20:39:02]requested_item fd.num is exist - process it [20:39:02]SAM_PROTO_GetFieldsCounters [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 13 00 00 [20:39:02]Write to MH i2c: E2 08 00 53 25 80 13 00 00 00 00 00 00 F4 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 62 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 62 00 53 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FD 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [20:39: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 FD 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:02]wFMCommunicate OK [20:39:02]SAM_PROTO_GetFieldsCounters done [20:39:02]requested_item shift.num is exist - process it [20:39:02]requested_item shift.opened is exist - process it [20:39:02]req_shift_opened [20:39:02]FM_GetShiftState [20:39:02]SAM_PROTO_GetShiftState [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 13 01 00 [20:39:02]Write to MH i2c: E2 08 00 54 25 80 13 01 00 00 00 00 00 F6 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 0E 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 0E 00 54 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1F [20:39:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:39:02]wFMCommunicate OK [20:39:02]SAM_PROTO_GetShiftState done [20:39:02]FM_GetShiftState done [20:39:02]req_shift_opened done [20:39:02]requested_item shift.open_date is exist - process it [20:39:02]req_shift_open_date [20:39:02]req_shift_open_date done [20:39:02]produce_requested_data done [20:39:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139773,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:39:02]process_action_free close_receipt [20:39:02]json_value_free [20:39:02]json_value_free done [20:39:02]process_json_proto returns [20:39:02]Send response to host [20:39:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139773,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:39:02]free response buf [20:39:02]execute_script done [20:39:02]execute_script returns [20:39:02]free content buf [20:39:02]Sock 7.Close socket [20:39:02]Sock 7.Thread stoped [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:37]accept exits with 9 [20:51:37]New connection [20:51:37]New thread 3066654052 created [20:51:37]Thread 3066510692 joined [20:51:37]Waiting for new connection... [20:51:37] Sock 9.Parse request [20:51:37]Sock 9.Check first char [20:51:37]Sock 9.First char is OK [20:51:37]request: POST /json_proto HTTP/1.0 [20:51:37]Method: POST [20:51:37]URL: /json_proto [20:51:37]Method is POST - this is cgi request [20:51:37]url: /json_proto [20:51:37]query_string will be loaded in cgi processing [20:51:37]execute_cgi json_proto POST (null) [20:51:37]execute_cgi path=json_proto method=POST [20:51:37]POST find Content-Length [20:51:37]Host: 172.17.50.196:8080 [20:51:37]Content-Length: 668 [20:51:37]Content-Type: application/json [20:51:37] [20:51:37]POST finish read [20:51:37]Found Content-Length = 668 [20:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335605", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\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" ] } } [20:51:37]execute_script... [20: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)335605", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\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" ] } } [20:51:37]POST & json_proto [20:51:37]process_json_proto [20:51:37]json parsed OK: [20:51:37]protocol is kg_v1.0 [20:51:37]action value=close_receipt [20:51:37]process_action close_receipt [20:51:37]cmd_close_receipt [20:51:37]MH_GetDate [20:51:37]Write to MH i2c: F0 00 00 55 25 69 [20:51:37]Write i2c OK [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: F0 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: F0 09 00 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: F0 09 00 55 25 00 DC ED 23 67 72 0D 1C 67 C7 [20:51:37]GetLastDocTimeStamp 1730407141 [20:51:37]current date 1730407900 [20:51:37]FM_GetShiftState [20:51:37]SAM_PROTO_GetShiftState [20:51:37]wFMCommunicate request_size=4 [20:51:37]MH_SAM_APDU [20:51:37]CAPDU: 80 13 01 00 [20:51:37]Write to MH i2c: E2 08 00 56 25 80 13 01 00 00 00 00 00 F8 [20:51:37]Write i2c OK [20:51:37]MH_I2C_Read... [20:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:37]Read from MH i2c: E2 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: E2 0E 00 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: E2 0E 00 56 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 21 [20:51:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:51:37]wFMCommunicate OK [20:51:37]SAM_PROTO_GetShiftState done [20:51:37]FM_GetShiftState done [20:51:37]opened in 1730332621 [20:51:37]opened+sec_in_day 1730419021 [20:51:37]quantity*price = 8600 [20:51:37]sum+1 = 8601 [20:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 86.00 НСП 1% : 0.76 НДС 12% : 9.13 Наличными: 86.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 251 31.10.2024 20:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139774 ФПД: 195954402296049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T205140&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139774&fm=195954402296049&tin=02508201610067®Number=0000000000091631&sum=8600 0 [20:51:39]StoreToDocumentArchive [20:51:39]shift 557 fd 139774 [20:51:39]save to /storage/0557/doc_00139774 [20:51:39]save last doc name /storage/0557/doc_00139774 to /storage/kkm_last_doc_name [20:51:39]save OK [20:51:39]Clear old archive folders... [20:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=287 [20:51:39]tlvbuf is B6F0F5E0 [20:51:39]SAM_PROTO_ClearQueue [20:51:39]wFMCommunicate request_size=4 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 09 00 00 [20:51:39]Write to MH i2c: E2 08 00 63 25 80 09 00 00 00 00 00 00 FA [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [20:51:39]RAPDU: 90 00 [20:51:39]wFMCommunicate OK [20:51:39]SAM_PROTO_ClearQueue done [20:51:39]KKMCreateOFDPacket [20:51:39]OFDProtocolAddRootSTLVToBuf [20:51:39]FM_MakeSignedData [20:51:39]FM_MakeSignedData [20:51:39]SAM_PROTO_SignData [20:51:39]wFMCommunicate request_size=4 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 0D 01 02 [20:51:39]Write to MH i2c: E2 08 00 64 25 80 0D 01 02 00 00 00 00 02 [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [20:51:39]RAPDU: 90 00 [20:51:39]wFMCommunicate OK [20:51:39]wFMCommunicate request_size=255 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA 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 FB 00 00 00 F4 03 04 00 DC ED 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [20:51:39]Write to MH i2c: E2 02 01 65 25 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA 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 FB 00 00 00 F4 03 04 00 DC ED 23 67 0E 04 04 00 2D 02 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 FF [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [20:51:39]RAPDU: 90 00 [20:51:39]wFMCommunicate OK [20:51:39]wFMCommunicate request_size=46 [20:51:39]MH_SAM_APDU [20:51:39]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 FE 21 02 00 35 04 06 00 B2 38 30 8A 80 F1 [20:51:39]Write to MH i2c: E2 31 00 66 25 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 FE 21 02 00 35 04 06 00 B2 38 30 8A 80 F1 00 00 CB [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 03 00 66 25 00 90 00 FF [20:51:39]RAPDU: 90 00 [20:51:39]wFMCommunicate OK [20:51:39]wFMCommunicate request_size=4 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 0D 03 02 [20:51:39]Write to MH i2c: E2 08 00 67 25 80 0D 03 02 00 00 00 00 07 [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 0B 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 0B 00 67 25 00 AD 09 BA 6E 26 58 2C B9 90 00 49 [20:51:39]RAPDU: AD 09 BA 6E 26 58 2C B9 90 00 [20:51:39]wFMCommunicate OK [20:51:39]SAM_PROTO_SignData done [20:51:39]FM_MakeSignedData done [20:51:39]CreateOFDProtocolMessage [20:51:39]wFMCommunicate request_size=4 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 11 00 00 [20:51:39]Write to MH i2c: E2 08 00 68 25 80 11 00 00 00 00 00 00 07 [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 17 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 17 00 68 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 62 [20:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:51:39]wFMCommunicate OK [20:51:39]CreateOFDProtocolMessage done [20:51:39]OFDSenderStorePacket 139774 [20:51:39]StoreOFDPacket docnum=139774 [20:51: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 33 01 00 00 E8 32 2B 01 00 82 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA 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 FB 00 00 00 F4 03 04 00 DC ED 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FE 21 02 00 35 04 06 00 B2 38 30 8A 80 F1 AD 09 BA 6E 26 58 2C B9 [20:51:39]CheckFolder [20:51:39]dirname=/storage/ofd_packets [20:51:39]CheckFolder done [20:51:39]ProducePacketName [20:51:39]name=ofd_packets/00139774 [20:51:39]NVStorageSaveData ofd_packets/00139774 [20:51:39]File name is /storage/ofd_packets/00139774 [20:51:39]Write 337 bytes [20:51:39]NVStorageSaveData done [20:51:39]OFDSenderStorePacket done [20:51:39]KKMCreateOFDPacket done [20:51:39]NVStorageSaveData kkm_last_timestamp [20:51:39]File name is /storage/kkm_last_timestamp [20:51:39]Write 4 bytes [20:51:39]NVStorageSaveData done [20:51:39]ExternCall_PrintAddStr [20:51:39]wPrintStart [20:51:39]Write to MH i2c: 01 00 00 69 25 8E [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: 01 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: 01 07 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 FF 0F A3 [20:51:39]RasterBufferAndPrint [20:51:39]line Счет N : (3)335605 [20:51:39]line ИНН: 02508201610067 [20:51:39]line Контрольно-Кассовый Чек [20:51:39]line ПРОДАЖА [20:51:39]line Товар: 4603290004848 [20:51:39]line Печ.зат.TONDI Сэнд.шок-сл.вк [20:51:39]line 1.000 * 86.00 [20:51:39]line = 86.00 [20:51:39]line НДС 12% НСП 1% [20:51:39]line > о реализуемом товаре [20:51:39]line ИТОГО: 86.00 [20:51:39]line НСП 1% : 0.76 [20:51:39]line НДС 12% : 9.13 [20:51:39]line Наличными: 86.00 [20:51:39]line Безнал.: 0.00 [20:51:39]line Место: АЗС № 101 "Партнер Нефть" [20:51:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:51:39]line СНО: Общий режим [20:51:39]line Чек 251 31.10.2024 20:51 [20:51:39]line Смена: 557 ФФД: 1.0 [20:51:39]line ЗНМ: 0300000081 [20:51:39]line РНМ: 0000000000091631 [20:51:39]line Версия ККМ: 001 [20:51:39]line ФМ: 0000000000874669 [20:51:39]line ФД: 139774 [20:51:39]line ФПД: 195954402296049 [20:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T205140&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139774&fm=195954402296049&tin=02508201610067®Number=0000000000091631&sum=8600 [20:51:39]line 0 [20:51:39]OFD Sender: Processing packet 139774 [packets to send 34, broken 33] [20:51:39]ProducePacketName [20:51:39]name=ofd_packets/00139774 [20:51:39]OFD Sender: To server: pG, [20:51:39]CommunicateWithHost lk.salyk.kg:30040 [20:51:39]ConnectInit lk.salyk.kg [20:51:39]written 0, free lines is 4095 [20:51:40]Connected sock=10 [20: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 33 01 00 00 E8 32 2B 01 00 82 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 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 2D D1 81 D0 BB 2E D0 B2 D0 BA 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 FB 00 00 00 F4 03 04 00 DC ED 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FE 21 02 00 35 04 06 00 B2 38 30 8A 80 F1 AD 09 BA 6E 26 58 2C B9 [20: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 84 68 47 00 AE 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FE 21 02 00 F4 03 04 00 89 99 23 67 B6 04 01 00 00 28 D6 85 39 A9 9B 4F B3 [20:51:40]CommunicateWithHost err = 0 [20:51:40]CheckOFDResponse [20:51:40]1017 (14) - 77093643461234 [20:51:40]1041 (16) - 0000000000874669 [20:51:40]1040 (4) - 139774 [20:51:40]1012 (4) - 31.10.2024 14:51 [20:51:40]1206 (1) - 0 [20:51:40]OFD Sender: Remove packet 139774 [20:51:40]ProducePacketName [20:51:40]name=ofd_packets/00139774 [20:51:40]NVStorageDeleteData [20:51:40]Write to MH i2c: 01 00 00 91 25 B6 [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 07 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 07 00 91 25 00 00 00 00 00 0E 0D D8 [20:51:40]RasterBufferAndPrint [20:51:40]line [20:51:40]line [20:51:40]line [20:51:40]line [20:51:40]line [20:51:40]written 0, free lines is 3349 [20:51:40]MH_Cut [20:51:40]Write to MH i2c: D1 01 00 98 25 01 8F [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: D1 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: D1 01 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: D1 01 00 98 25 00 8E [20:51:40]Write to MH i2c: 01 00 00 99 25 BE [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]OFD Sender: No OFD packet to send [20:51:41]*** Cut start [20:51:41]*** Partial cut [20:51:41]*** CUTSNS_PIN = 1 [20:51:41]*** CUTSNS_PIN = 0 [20:51:41]*** Brake cut motor [20:51:41]Read from MH i2c: 01 [20:51:41]MH_I2C_Read... [20:51:41]*** Stop cut motor [20:51:41]*** Cut end [20:51:41]Read from MH i2c: 01 07 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: 01 07 00 99 25 00 00 00 00 00 FF 0F D3 [20:51:41]process_action close_receipt done [20:51:41]requested_data is exist [20:51:41]produce_requested_data [20:51:41]requested_item fm.sn is exist - process it [20:51:41]wFMCommunicate request_size=4 [20:51:41]MH_SAM_APDU [20:51:41]CAPDU: 80 11 00 00 [20:51:41]Write to MH i2c: E2 08 00 9A 25 80 11 00 00 00 00 00 00 39 [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:41]Read from MH i2c: E2 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 17 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 17 00 9A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [20:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:51:41]wFMCommunicate OK [20:51:41]requested_item fd.num is exist - process it [20:51:41]SAM_PROTO_GetFieldsCounters [20:51:41]wFMCommunicate request_size=4 [20:51:41]MH_SAM_APDU [20:51:41]CAPDU: 80 13 00 00 [20:51:41]Write to MH i2c: E2 08 00 9B 25 80 13 00 00 00 00 00 00 3C [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:41]Read from MH i2c: E2 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 62 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 62 00 9B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FE 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [20:51: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 FE 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:41]wFMCommunicate OK [20:51:41]SAM_PROTO_GetFieldsCounters done [20:51:41]requested_item shift.num is exist - process it [20:51:41]requested_item shift.opened is exist - process it [20:51:41]req_shift_opened [20:51:41]FM_GetShiftState [20:51:41]SAM_PROTO_GetShiftState [20:51:41]wFMCommunicate request_size=4 [20:51:41]MH_SAM_APDU [20:51:41]CAPDU: 80 13 01 00 [20:51:41]Write to MH i2c: E2 08 00 9C 25 80 13 01 00 00 00 00 00 3E [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:41]Read from MH i2c: E2 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 0E 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 0E 00 9C 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 67 [20:51:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [20:51:41]wFMCommunicate OK [20:51:41]SAM_PROTO_GetShiftState done [20:51:41]FM_GetShiftState done [20:51:41]req_shift_opened done [20:51:41]requested_item shift.open_date is exist - process it [20:51:41]req_shift_open_date [20:51:41]req_shift_open_date done [20:51:41]produce_requested_data done [20:51:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139774,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [20:51:41]process_action_free close_receipt [20:51:41]json_value_free [20:51:41]json_value_free done [20:51:41]process_json_proto returns [20:51:41]Send response to host [20:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139774,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [20:51:41]free response buf [20:51:41]execute_script done [20:51:41]execute_script returns [20:51:41]free content buf [20:51:41]Sock 9.Close socket [20:51:41]Sock 9.Thread stoped [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:09]accept exits with 7 [21:05:09]New connection [21:05:09]New thread 3066510692 created [21:05:09]Thread 3066654052 joined [21:05:09]Waiting for new connection... [21:05:09] Sock 7.Parse request [21:05:09]Sock 7.Check first char [21:05:09]Sock 7.First char is OK [21:05:09]request: POST /json_proto HTTP/1.0 [21:05:09]Method: POST [21:05:09]URL: /json_proto [21:05:09]Method is POST - this is cgi request [21:05:09]url: /json_proto [21:05:09]query_string will be loaded in cgi processing [21:05:09]execute_cgi json_proto POST (null) [21:05:09]execute_cgi path=json_proto method=POST [21:05:09]POST find Content-Length [21:05:09]Host: 172.17.50.196:8080 [21:05:09]Content-Length: 1159 [21:05:09]Content-Type: application/json [21:05:09] [21:05:09]POST finish read [21:05:09]Found Content-Length = 1159 [21:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335606", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 321.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:09]execute_script... [21:05: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)335606", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 321.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:09]POST & json_proto [21:05:09]process_json_proto [21:05:09]json parsed OK: [21:05:09]protocol is kg_v1.0 [21:05:09]action value=close_receipt [21:05:09]process_action close_receipt [21:05:09]cmd_close_receipt [21:05:09]MH_GetDate [21:05:09]Write to MH i2c: F0 00 00 9D 25 B1 [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: F0 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: F0 09 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: F0 09 00 9D 25 00 07 F1 23 67 72 0D 1C 67 3E [21:05:09]GetLastDocTimeStamp 1730407900 [21:05:09]current date 1730408711 [21:05:09]FM_GetShiftState [21:05:09]SAM_PROTO_GetShiftState [21:05:09]wFMCommunicate request_size=4 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 13 01 00 [21:05:09]Write to MH i2c: E2 08 00 9E 25 80 13 01 00 00 00 00 00 40 [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0E 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0E 00 9E 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 69 [21:05:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:05:09]wFMCommunicate OK [21:05:09]SAM_PROTO_GetShiftState done [21:05:09]FM_GetShiftState done [21:05:09]opened in 1730332621 [21:05:09]opened+sec_in_day 1730419021 [21:05:09]quantity*price = 4900 [21:05:09]sum+1 = 4901 [21:05:09]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 147.00 = 147.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 321.00 НСП 1% : 2.84 НДС 12% : 34.08 Наличными: 321.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 252 31.10.2024 21:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139775 ФПД: 245361430709564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139775&fm=245361430709564&tin=02508201610067®Number=0000000000091631&sum=32100 0 [21:05:10]StoreToDocumentArchive [21:05:10]shift 557 fd 139775 [21:05:10]save to /storage/0557/doc_00139775 [21:05:10]save last doc name /storage/0557/doc_00139775 to /storage/kkm_last_doc_name [21:05:10]save OK [21:05:10]Clear old archive folders... [21:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=489 [21:05:10]tlvbuf is B6E91A40 [21:05:10]SAM_PROTO_ClearQueue [21:05:10]wFMCommunicate request_size=4 [21:05:10]MH_SAM_APDU [21:05:10]CAPDU: 80 09 00 00 [21:05:10]Write to MH i2c: E2 08 00 AB 25 80 09 00 00 00 00 00 00 42 [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:10]Read from MH i2c: E2 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 AB 25 00 90 00 44 [21:05:10]RAPDU: 90 00 [21:05:10]wFMCommunicate OK [21:05:10]SAM_PROTO_ClearQueue done [21:05:10]KKMCreateOFDPacket [21:05:10]OFDProtocolAddRootSTLVToBuf [21:05:10]FM_MakeSignedData [21:05:10]FM_MakeSignedData [21:05:10]SAM_PROTO_SignData [21:05:10]wFMCommunicate request_size=4 [21:05:10]MH_SAM_APDU [21:05:10]CAPDU: 80 0D 01 02 [21:05:10]Write to MH i2c: E2 08 00 AC 25 80 0D 01 02 00 00 00 00 4A [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:10]Read from MH i2c: E2 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: E2 03 00 AC 25 00 90 00 45 [21:05:10]RAPDU: 90 00 [21:05:10]wFMCommunicate OK [21:05:10]wFMCommunicate request_size=255 [21:05:10]MH_SAM_APDU [21:05:10]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 [21:05:10]Write to MH i2c: E2 02 01 AD 25 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 00 00 E0 [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 AD 25 00 90 00 46 [21:05:11]RAPDU: 90 00 [21:05:11]wFMCommunicate OK [21:05:11]wFMCommunicate request_size=248 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 0D 02 02 F3 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 07 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 21 02 00 35 04 06 00 DF 27 A8 EB 45 3C [21:05:11]Write to MH i2c: E2 FB 00 AE 25 80 0D 02 02 F3 00 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 07 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 21 02 00 35 04 06 00 DF 27 A8 EB 45 3C 00 00 BE [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 03 00 AE 25 00 90 00 47 [21:05:11]RAPDU: 90 00 [21:05:11]wFMCommunicate OK [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 0D 03 02 [21:05:11]Write to MH i2c: E2 08 00 AF 25 80 0D 03 02 00 00 00 00 4F [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 0B 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 0B 00 AF 25 00 6A E1 6B 96 9A EB D9 46 90 00 40 [21:05:11]RAPDU: 6A E1 6B 96 9A EB D9 46 90 00 [21:05:11]wFMCommunicate OK [21:05:11]SAM_PROTO_SignData done [21:05:11]FM_MakeSignedData done [21:05:11]CreateOFDProtocolMessage [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 11 00 00 [21:05:11]Write to MH i2c: E2 08 00 B0 25 80 11 00 00 00 00 00 00 4F [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]OFD Sender: No OFD packet to send [21:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 17 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 17 00 B0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [21:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:05:11]wFMCommunicate OK [21:05:11]CreateOFDProtocolMessage done [21:05:11]OFDSenderStorePacket 139775 [21:05:11]StoreOFDPacket docnum=139775 [21:05: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 FD 01 00 00 58 DA F5 01 AD 89 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 07 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 21 02 00 35 04 06 00 DF 27 A8 EB 45 3C 6A E1 6B 96 9A EB D9 46 [21:05:11]CheckFolder [21:05:11]dirname=/storage/ofd_packets [21:05:11]CheckFolder done [21:05:11]ProducePacketName [21:05:11]name=ofd_packets/00139775 [21:05:11]NVStorageSaveData ofd_packets/00139775 [21:05:11]File name is /storage/ofd_packets/00139775 [21:05:11]Write 539 bytes [21:05:11]NVStorageSaveData done [21:05:11]OFDSenderStorePacket done [21:05:11]KKMCreateOFDPacket done [21:05:11]NVStorageSaveData kkm_last_timestamp [21:05:11]File name is /storage/kkm_last_timestamp [21:05:11]Write 4 bytes [21:05:11]NVStorageSaveData done [21:05:11]ExternCall_PrintAddStr [21:05:11]wPrintStart [21:05:11]Write to MH i2c: 01 00 00 B1 25 D6 [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: 01 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: 01 07 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 FF 0F EB [21:05:11]RasterBufferAndPrint [21:05:11]line Счет N : (3)335606 [21:05:11]line ИНН: 02508201610067 [21:05:11]line Контрольно-Кассовый Чек [21:05:11]line ПРОДАЖА [21:05:11]line Товар: 4700000310326 [21:05:11]line Вода Адыгене 1л б/г [21:05:11]line 1.000 * 49.00 [21:05:11]line = 49.00 [21:05:11]line НДС 12% НСП 1% [21:05:11]line > о реализуемом товаре [21:05:11]line Товар: 5449000054227 [21:05:11]line Напиток Кока-Кола 1л [21:05:11]line 1.000 * 125.00 [21:05:11]line = 125.00 [21:05:11]line НДС 12% НСП 1% [21:05:11]line > о реализуемом товаре [21:05:11]line Товар: 48744683 [21:05:11]line Сигареты Winston XStyle Caster+ [21:05:11]line 1.000 * 147.00 [21:05:11]line = 147.00 [21:05:11]line НДС 12% НСП 1% [21:05:11]line > о реализуемом товаре [21:05:11]line ИТОГО: 321.00 [21:05:11]line НСП 1% : 2.84 [21:05:11]line НДС 12% : 34.08 [21:05:11]line Наличными: 321.00 [21:05:11]line Безнал.: 0.00 [21:05:11]line Место: АЗС № 101 "Партнер Нефть" [21:05:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:05:11]line СНО: Общий режим [21:05:11]line Чек 252 31.10.2024 21:05 [21:05:11]line Смена: 557 ФФД: 1.0 [21:05:11]line ЗНМ: 0300000081 [21:05:11]line РНМ: 0000000000091631 [21:05:11]line Версия ККМ: 001 [21:05:11]line ФМ: 0000000000874669 [21:05:11]line ФД: 139775 [21:05:11]line ФПД: 245361430709564 [21:05:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139775&fm=245361430709564&tin=02508201610067®Number=0000000000091631&sum=32100 [21:05:11]line 0 [21:05:11]written 0, free lines is 4095 [21:05:11]OFD Sender: Processing packet 139775 [packets to send 34, broken 33] [21:05:11]ProducePacketName [21:05:11]name=ofd_packets/00139775 [21:05:11]OFD Sender: To server: pG, [21:05:11]CommunicateWithHost lk.salyk.kg:30040 [21:05:11]ConnectInit lk.salyk.kg [21:05:11]Connected sock=10 [21:05: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 FD 01 00 00 58 DA F5 01 AD 89 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 07 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 21 02 00 35 04 06 00 DF 27 A8 EB 45 3C 6A E1 6B 96 9A EB D9 46 [21:05: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 00 01 47 00 D7 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 21 02 00 F4 03 04 00 B4 9C 23 67 B6 04 01 00 00 24 2A 0C 88 81 B7 C9 E9 [21:05:11]CommunicateWithHost err = 0 [21:05:11]CheckOFDResponse [21:05:11]1017 (14) - 77093643461234 [21:05:11]1041 (16) - 0000000000874669 [21:05:11]1040 (4) - 139775 [21:05:11]1012 (4) - 31.10.2024 15:05 [21:05:11]1206 (1) - 0 [21:05:11]OFD Sender: Remove packet 139775 [21:05:11]ProducePacketName [21:05:11]name=ofd_packets/00139775 [21:05:11]NVStorageDeleteData [21:05:12]Write to MH i2c: 01 00 00 E6 25 0B [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 07 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 07 00 E6 25 00 00 00 00 00 56 0C 74 [21:05:12]RasterBufferAndPrint [21:05:12]line [21:05:12]line [21:05:12]line [21:05:12]line [21:05:12]line [21:05:12]written 0, free lines is 3167 [21:05:12]MH_Cut [21:05:12]Write to MH i2c: D1 01 00 ED 25 01 E4 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: D1 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: D1 01 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: D1 01 00 ED 25 00 E3 [21:05:12]Write to MH i2c: 01 00 00 EE 25 13 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]OFD Sender: No OFD packet to send [21:05:12]*** Cut start [21:05:12]*** Partial cut [21:05:12]*** CUTSNS_PIN = 1 [21:05:12]*** CUTSNS_PIN = 0 [21:05:13]*** Brake cut motor [21:05:13]Read from MH i2c: 01 [21:05:13]MH_I2C_Read... [21:05:13]*** Stop cut motor [21:05:13]*** Cut end [21:05:13]Read from MH i2c: 01 07 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 07 00 EE 25 00 00 00 00 00 FF 0F 28 [21:05:13]process_action close_receipt done [21:05:13]requested_data is exist [21:05:13]produce_requested_data [21:05:13]requested_item fm.sn is exist - process it [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 11 00 00 [21:05:13]Write to MH i2c: E2 08 00 EF 25 80 11 00 00 00 00 00 00 8E [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 17 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 17 00 EF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E9 [21:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:05:13]wFMCommunicate OK [21:05:13]requested_item fd.num is exist - process it [21:05:13]SAM_PROTO_GetFieldsCounters [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 13 00 00 [21:05:13]Write to MH i2c: E2 08 00 F0 25 80 13 00 00 00 00 00 00 91 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 62 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 62 00 F0 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FF 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [21:05: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 FF 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_GetFieldsCounters done [21:05:13]requested_item shift.num is exist - process it [21:05:13]requested_item shift.opened is exist - process it [21:05:13]req_shift_opened [21:05:13]FM_GetShiftState [21:05:13]SAM_PROTO_GetShiftState [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 13 01 00 [21:05:13]Write to MH i2c: E2 08 00 F1 25 80 13 01 00 00 00 00 00 93 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0E 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0E 00 F1 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BC [21:05:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_GetShiftState done [21:05:13]FM_GetShiftState done [21:05:13]req_shift_opened done [21:05:13]requested_item shift.open_date is exist - process it [21:05:13]req_shift_open_date [21:05:13]req_shift_open_date done [21:05:13]produce_requested_data done [21:05:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139775,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:05:13]process_action_free close_receipt [21:05:13]json_value_free [21:05:13]json_value_free done [21:05:13]process_json_proto returns [21:05:13]Send response to host [21:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139775,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:05:13]free response buf [21:05:13]execute_script done [21:05:13]execute_script returns [21:05:13]free content buf [21:05:13]Sock 7.Close socket [21:05:13]Sock 7.Thread stoped [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:09]accept exits with 9 [21:06:09]New connection [21:06:09]New thread 3066654052 created [21:06:09]Thread 3066510692 joined [21:06:09]Waiting for new connection... [21:06:09] Sock 9.Parse request [21:06:09]Sock 9.Check first char [21:06:09]Sock 9.First char is OK [21:06:09]request: POST /json_proto HTTP/1.0 [21:06:09]Method: POST [21:06:09]URL: /json_proto [21:06:09]Method is POST - this is cgi request [21:06:09]url: /json_proto [21:06:09]query_string will be loaded in cgi processing [21:06:09]execute_cgi json_proto POST (null) [21:06:09]execute_cgi path=json_proto method=POST [21:06:09]POST find Content-Length [21:06:09]Host: 172.17.50.196:8080 [21:06:09]Content-Length: 1312 [21:06:09]Content-Type: application/json [21:06:09] [21:06:09]POST finish read [21:06:09]Found Content-Length = 1312 [21:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335609", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.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 }]} ,{ "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:09]execute_script... [21:06: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)335609", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.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 }]} ,{ "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:09]POST & json_proto [21:06:09]process_json_proto [21:06:09]json parsed OK: [21:06:09]protocol is kg_v1.0 [21:06:09]action value=close_receipt [21:06:09]process_action close_receipt [21:06:09]cmd_close_receipt [21:06:09]MH_GetDate [21:06:09]Write to MH i2c: F0 00 00 F2 25 06 [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: F0 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: F0 09 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: F0 09 00 F2 25 00 43 F1 23 67 72 0D 1C 67 CF [21:06:09]GetLastDocTimeStamp 1730408711 [21:06:09]current date 1730408771 [21:06:09]FM_GetShiftState [21:06:09]SAM_PROTO_GetShiftState [21:06:09]wFMCommunicate request_size=4 [21:06:09]MH_SAM_APDU [21:06:09]CAPDU: 80 13 01 00 [21:06:09]Write to MH i2c: E2 08 00 F3 25 80 13 01 00 00 00 00 00 95 [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 0E 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 0E 00 F3 25 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BE [21:06:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:06:09]wFMCommunicate OK [21:06:09]SAM_PROTO_GetShiftState done [21:06:09]FM_GetShiftState done [21:06:09]opened in 1730332621 [21:06:09]opened+sec_in_day 1730419021 [21:06:09]quantity*price = 24000 [21:06:09]sum+1 = 24001 [21:06:09]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159438056 Драже Skittles Кисломикс 3.000 * 60.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.86 НДС 12% : 58.40 Наличными: 0.00 Безнал.: 550.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 253 31.10.2024 21:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139776 ФПД: 211116834145626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139776&fm=211116834145626&tin=02508201610067®Number=0000000000091631&sum=55000 0 [21:06:10]StoreToDocumentArchive [21:06:10]shift 557 fd 139776 [21:06:10]save to /storage/0557/doc_00139776 [21:06:10]save last doc name /storage/0557/doc_00139776 to /storage/kkm_last_doc_name [21:06:10]save OK [21:06:10]Clear old archive folders... [21:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=506 [21:06:10]tlvbuf is B6E5F970 [21:06:10]SAM_PROTO_ClearQueue [21:06:10]wFMCommunicate request_size=4 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 09 00 00 [21:06:10]Write to MH i2c: E2 08 00 00 26 80 09 00 00 00 00 00 00 98 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 00 26 00 90 00 9A [21:06:10]RAPDU: 90 00 [21:06:10]wFMCommunicate OK [21:06:10]SAM_PROTO_ClearQueue done [21:06:10]KKMCreateOFDPacket [21:06:10]OFDProtocolAddRootSTLVToBuf [21:06:10]FM_MakeSignedData [21:06:10]FM_MakeSignedData [21:06:10]SAM_PROTO_SignData [21:06:10]wFMCommunicate request_size=4 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 0D 01 02 [21:06:10]Write to MH i2c: E2 08 00 01 26 80 0D 01 02 00 00 00 00 A0 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 01 26 00 90 00 9B [21:06:10]RAPDU: 90 00 [21:06:10]wFMCommunicate OK [21:06:10]wFMCommunicate request_size=255 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 0D 02 02 FA 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 [21:06:10]Write to MH i2c: E2 02 01 02 26 80 0D 02 02 FA 00 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 00 00 01 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:11]Read from MH i2c: E2 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 03 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 03 00 02 26 00 90 00 9C [21:06:11]RAPDU: 90 00 [21:06:11]wFMCommunicate OK [21:06:11]wFMCommunicate request_size=255 [21:06:11]MH_SAM_APDU [21:06:11]CAPDU: 80 0D 02 02 FA 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 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 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 43 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 22 02 00 [21:06:11]Write to MH i2c: E2 02 01 03 26 80 0D 02 02 FA 00 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 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 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 43 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 22 02 00 00 00 5E [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:11]Read from MH i2c: E2 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 03 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [21:06:11]RAPDU: 90 00 [21:06:11]wFMCommunicate OK [21:06:11]wFMCommunicate request_size=15 [21:06:11]MH_SAM_APDU [21:06:11]CAPDU: 80 0D 02 02 0A 35 04 06 00 C0 02 77 E7 C5 5A [21:06:11]Write to MH i2c: E2 12 00 04 26 80 0D 02 02 0A 00 35 04 06 00 C0 02 77 E7 C5 5A 00 00 36 [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:11]Read from MH i2c: E2 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 03 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [21:06:11]RAPDU: 90 00 [21:06:11]wFMCommunicate OK [21:06:11]wFMCommunicate request_size=4 [21:06:11]MH_SAM_APDU [21:06:11]CAPDU: 80 0D 03 02 [21:06:11]Write to MH i2c: E2 08 00 05 26 80 0D 03 02 00 00 00 00 A6 [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:11]Read from MH i2c: E2 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 0B 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 0B 00 05 26 00 F4 6A D9 ED B7 51 02 1F 90 00 F4 [21:06:11]RAPDU: F4 6A D9 ED B7 51 02 1F 90 00 [21:06:11]wFMCommunicate OK [21:06:11]SAM_PROTO_SignData done [21:06:11]FM_MakeSignedData done [21:06:11]CreateOFDProtocolMessage [21:06:11]wFMCommunicate request_size=4 [21:06:11]MH_SAM_APDU [21:06:11]CAPDU: 80 11 00 00 [21:06:11]Write to MH i2c: E2 08 00 06 26 80 11 00 00 00 00 00 00 A6 [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:11]Read from MH i2c: E2 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 17 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: E2 17 00 06 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 01 [21:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:06:11]wFMCommunicate OK [21:06:11]CreateOFDProtocolMessage done [21:06:11]OFDSenderStorePacket 139776 [21:06:11]StoreOFDPacket docnum=139776 [21:06: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 0E 02 00 00 AB E9 06 02 07 12 5A 03 01 00 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 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 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 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 43 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 22 02 00 35 04 06 00 C0 02 77 E7 C5 5A F4 6A D9 ED B7 51 02 1F [21:06:11]CheckFolder [21:06:11]dirname=/storage/ofd_packets [21:06:11]CheckFolder done [21:06:11]ProducePacketName [21:06:11]name=ofd_packets/00139776 [21:06:11]NVStorageSaveData ofd_packets/00139776 [21:06:11]File name is /storage/ofd_packets/00139776 [21:06:11]Write 556 bytes [21:06:11]NVStorageSaveData done [21:06:11]OFDSenderStorePacket done [21:06:11]KKMCreateOFDPacket done [21:06:11]NVStorageSaveData kkm_last_timestamp [21:06:11]File name is /storage/kkm_last_timestamp [21:06:11]Write 4 bytes [21:06:11]NVStorageSaveData done [21:06:11]ExternCall_PrintAddStr [21:06:11]wPrintStart [21:06:11]Write to MH i2c: 01 00 00 07 26 2D [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: 01 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: 01 07 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: 01 07 00 07 26 00 00 00 00 00 FF 0F 42 [21:06:11]RasterBufferAndPrint [21:06:11]line Счет N : (3)335609 [21:06:11]line ИНН: 02508201610067 [21:06:11]line Контрольно-Кассовый Чек [21:06:11]line ПРОДАЖА [21:06:11]line Товар: 2000034250011 [21:06:11]line Горячий шоколад (GABB trade) [21:06:11]line 2.000 * 120.00 [21:06:11]line = 240.00 [21:06:11]line НДС 12% НСП 1% [21:06:11]line > о реализуемом товаре [21:06:11]line Товар: 2000036220012 [21:06:11]line Кофе Капучино XL(GABB TRADE) [21:06:11]line 1.000 * 130.00 [21:06:11]line = 130.00 [21:06:11]line НДС 12% НСП 1% [21:06:11]line > о реализуемом товаре [21:06:11]line Товар: 5000159438056 [21:06:11]line Драже Skittles Кисломикс [21:06:11]line 3.000 * 60.00 [21:06:11]line = 180.00 [21:06:11]line НДС 12% НСП 1% [21:06:11]line > о реализуемом товаре [21:06:11]line ИТОГО: 550.00 [21:06:11]line НСП 1% : 4.86 [21:06:11]line НДС 12% : 58.40 [21:06:11]line Наличными: 0.00 [21:06:11]line Безнал.: 550.00 [21:06:11]line Место: АЗС № 101 "Партнер Нефть" [21:06:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:06:11]line СНО: Общий режим [21:06:11]line Чек 253 31.10.2024 21:06 [21:06:11]line Смена: 557 ФФД: 1.0 [21:06:11]line ЗНМ: 0300000081 [21:06:11]line РНМ: 0000000000091631 [21:06:11]line Версия ККМ: 001 [21:06:11]line Платежная система: Mbank [21:06:11]line ФМ: 0000000000874669 [21:06:11]line ФД: 139776 [21:06:11]line ФПД: 211116834145626 [21:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139776&fm=211116834145626&tin=02508201610067®Number=0000000000091631&sum=55000 [21:06:11]OFD Sender: Processing packet 139776 [packets to send 34, broken 33] [21:06:11]ProducePacketName [21:06:11]name=ofd_packets/00139776 [21:06:11]OFD Sender: To server: pG, [21:06:11]CommunicateWithHost lk.salyk.kg:30040 [21:06:11]ConnectInit lk.salyk.kg [21:06:11]line 0 [21:06:11]written 0, free lines is 4095 [21:06:12]Connected sock=10 [21:06: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 0E 02 00 00 AB E9 06 02 07 12 5A 03 01 00 03 00 FA 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 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 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 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 43 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 22 02 00 35 04 06 00 C0 02 77 E7 C5 5A F4 6A D9 ED B7 51 02 1F [21:06: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 0B 03 47 00 CA CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 00 22 02 00 F4 03 04 00 F1 9C 23 67 B6 04 01 00 00 57 D2 5E 9A 3B 5D D7 D8 [21:06:12]CommunicateWithHost err = 0 [21:06:12]CheckOFDResponse [21:06:12]1017 (14) - 77093643461234 [21:06:12]1041 (16) - 0000000000874669 [21:06:12]1040 (4) - 139776 [21:06:12]1012 (4) - 31.10.2024 15:06 [21:06:12]1206 (1) - 0 [21:06:12]OFD Sender: Remove packet 139776 [21:06:12]ProducePacketName [21:06:12]name=ofd_packets/00139776 [21:06:12]NVStorageDeleteData [21:06:12]Write to MH i2c: 01 00 00 3E 26 64 [21:06:12]Write i2c OK [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: 01 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: 01 07 00 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: 01 07 00 3E 26 00 00 00 00 00 45 0C BC [21:06:12]RasterBufferAndPrint [21:06:12]line [21:06:12]line [21:06:12]line [21:06:12]line [21:06:12]line [21:06:12]written 0, free lines is 3151 [21:06:12]MH_Cut [21:06:12]Write to MH i2c: D1 01 00 45 26 01 3D [21:06:12]Write i2c OK [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: D1 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: D1 01 00 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: D1 01 00 45 26 00 3C [21:06:12]Write to MH i2c: 01 00 00 46 26 6C [21:06:12]Write i2c OK [21:06:12]MH_I2C_Read... [21:06:12]OFD Sender: No OFD packet to send [21:06:13]*** Cut start [21:06:13]*** Partial cut [21:06:13]*** CUTSNS_PIN = 1 [21:06:13]*** CUTSNS_PIN = 0 [21:06:13]*** Brake cut motor [21:06:13]Read from MH i2c: 01 [21:06:13]MH_I2C_Read... [21:06:13]*** Stop cut motor [21:06:13]*** Cut end [21:06:13]Read from MH i2c: 01 07 00 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: 01 07 00 46 26 00 00 00 00 00 FF 0F 81 [21:06:13]process_action close_receipt done [21:06:13]requested_data is exist [21:06:13]produce_requested_data [21:06:13]requested_item fm.sn is exist - process it [21:06:13]wFMCommunicate request_size=4 [21:06:13]MH_SAM_APDU [21:06:13]CAPDU: 80 11 00 00 [21:06:13]Write to MH i2c: E2 08 00 47 26 80 11 00 00 00 00 00 00 E7 [21:06:13]Write i2c OK [21:06:13]MH_I2C_Read... [21:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:13]Read from MH i2c: E2 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 17 00 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 17 00 47 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 42 [21:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:06:13]wFMCommunicate OK [21:06:13]requested_item fd.num is exist - process it [21:06:13]SAM_PROTO_GetFieldsCounters [21:06:13]wFMCommunicate request_size=4 [21:06:13]MH_SAM_APDU [21:06:13]CAPDU: 80 13 00 00 [21:06:13]Write to MH i2c: E2 08 00 48 26 80 13 00 00 00 00 00 00 EA [21:06:13]Write i2c OK [21:06:13]MH_I2C_Read... [21:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:14]Read from MH i2c: E2 [21:06:14]MH_I2C_Read... [21:06:14]Read from MH i2c: E2 62 00 [21:06:14]MH_I2C_Read... [21:06:14]Read from MH i2c: E2 62 00 48 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 00 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:06: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 00 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:14]wFMCommunicate OK [21:06:14]SAM_PROTO_GetFieldsCounters done [21:06:14]requested_item shift.num is exist - process it [21:06:14]requested_item shift.opened is exist - process it [21:06:14]req_shift_opened [21:06:14]FM_GetShiftState [21:06:14]SAM_PROTO_GetShiftState [21:06:14]wFMCommunicate request_size=4 [21:06:14]MH_SAM_APDU [21:06:14]CAPDU: 80 13 01 00 [21:06:14]Write to MH i2c: E2 08 00 49 26 80 13 01 00 00 00 00 00 EC [21:06:14]Write i2c OK [21:06:14]MH_I2C_Read... [21:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:14]Read from MH i2c: E2 [21:06:14]MH_I2C_Read... [21:06:14]Read from MH i2c: E2 0E 00 [21:06:14]MH_I2C_Read... [21:06:14]Read from MH i2c: E2 0E 00 49 26 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 15 [21:06:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:06:14]wFMCommunicate OK [21:06:14]SAM_PROTO_GetShiftState done [21:06:14]FM_GetShiftState done [21:06:14]req_shift_opened done [21:06:14]requested_item shift.open_date is exist - process it [21:06:14]req_shift_open_date [21:06:14]req_shift_open_date done [21:06:14]produce_requested_data done [21:06:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139776,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:06:14]process_action_free close_receipt [21:06:14]json_value_free [21:06:14]json_value_free done [21:06:14]process_json_proto returns [21:06:14]Send response to host [21:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139776,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:06:14]free response buf [21:06:14]execute_script done [21:06:14]execute_script returns [21:06:14]free content buf [21:06:14]Sock 9.Close socket [21:06:14]Sock 9.Thread stoped [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:30]accept exits with 7 [21:06:30]New connection [21:06:30]New thread 3066510692 created [21:06:30]Thread 3066654052 joined [21:06:30]Waiting for new connection... [21:06:30] Sock 7.Parse request [21:06:30]Sock 7.Check first char [21:06:30]Sock 7.First char is OK [21:06:30]request: POST /json_proto HTTP/1.0 [21:06:30]Method: POST [21:06:30]URL: /json_proto [21:06:30]Method is POST - this is cgi request [21:06:30]url: /json_proto [21:06:30]query_string will be loaded in cgi processing [21:06:30]execute_cgi json_proto POST (null) [21:06:30]execute_cgi path=json_proto method=POST [21:06:30]POST find Content-Length [21:06:30]Host: 172.17.50.196:8080 [21:06:30]Content-Length: 976 [21:06:30]Content-Type: application/json [21:06:30] [21:06:30]POST finish read [21:06:30]Found Content-Length = 976 [21:06:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335610", "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": "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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:30]execute_script... [21:06: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)335610", "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": "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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:30]POST & json_proto [21:06:30]process_json_proto [21:06:30]json parsed OK: [21:06:30]protocol is kg_v1.0 [21:06:30]action value=close_receipt [21:06:30]process_action close_receipt [21:06:30]cmd_close_receipt [21:06:30]MH_GetDate [21:06:30]Write to MH i2c: F0 00 00 4A 26 5F [21:06:30]Write i2c OK [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: F0 [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: F0 09 00 [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: F0 09 00 4A 26 00 58 F1 23 67 72 0D 1C 67 3D [21:06:30]GetLastDocTimeStamp 1730408771 [21:06:30]current date 1730408792 [21:06:30]FM_GetShiftState [21:06:30]SAM_PROTO_GetShiftState [21:06:30]wFMCommunicate request_size=4 [21:06:30]MH_SAM_APDU [21:06:30]CAPDU: 80 13 01 00 [21:06:30]Write to MH i2c: E2 08 00 4B 26 80 13 01 00 00 00 00 00 EE [21:06:30]Write i2c OK [21:06:30]MH_I2C_Read... [21:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:30]Read from MH i2c: E2 [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: E2 0E 00 [21:06:30]MH_I2C_Read... [21:06:30]Read from MH i2c: E2 0E 00 4B 26 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 17 [21:06:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:06:30]wFMCommunicate OK [21:06:30]SAM_PROTO_GetShiftState done [21:06:30]FM_GetShiftState done [21:06:30]opened in 1730332621 [21:06:30]opened+sec_in_day 1730419021 [21:06:30]quantity*price = 6000 [21:06:30]sum+1 = 6001 [21:06:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 254 31.10.2024 21:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139777 ФПД: 5835266859539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210632&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139777&fm=5835266859539&tin=02508201610067®Number=0000000000091631&sum=11000 0 [21:06:31]StoreToDocumentArchive [21:06:31]shift 557 fd 139777 [21:06:31]save to /storage/0557/doc_00139777 [21:06:31]save last doc name /storage/0557/doc_00139777 to /storage/kkm_last_doc_name [21:06:31]save OK [21:06:31]Clear old archive folders... [21:06:31]ProcessDocumentItem done err = 0, tmpTLVsize=402 [21:06:31]tlvbuf is B6F0FB20 [21:06:31]SAM_PROTO_ClearQueue [21:06:31]wFMCommunicate request_size=4 [21:06:31]MH_SAM_APDU [21:06:31]CAPDU: 80 09 00 00 [21:06:31]Write to MH i2c: E2 08 00 58 26 80 09 00 00 00 00 00 00 F0 [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:31]Read from MH i2c: E2 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 58 26 00 90 00 F2 [21:06:31]RAPDU: 90 00 [21:06:31]wFMCommunicate OK [21:06:31]SAM_PROTO_ClearQueue done [21:06:31]KKMCreateOFDPacket [21:06:31]OFDProtocolAddRootSTLVToBuf [21:06:31]FM_MakeSignedData [21:06:31]FM_MakeSignedData [21:06:31]SAM_PROTO_SignData [21:06:31]wFMCommunicate request_size=4 [21:06:31]MH_SAM_APDU [21:06:31]CAPDU: 80 0D 01 02 [21:06:31]Write to MH i2c: E2 08 00 59 26 80 0D 01 02 00 00 00 00 F8 [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:31]Read from MH i2c: E2 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 59 26 00 90 00 F3 [21:06:31]RAPDU: 90 00 [21:06:31]wFMCommunicate OK [21:06:31]wFMCommunicate request_size=255 [21:06:31]MH_SAM_APDU [21:06:31]CAPDU: 80 0D 02 02 FA 03 00 92 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 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 F8 2A 00 00 00 [21:06:31]Write to MH i2c: E2 02 01 5A 26 80 0D 02 02 FA 00 03 00 92 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 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 F8 2A 00 00 00 00 00 B8 [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:31]Read from MH i2c: E2 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 5A 26 00 90 00 F4 [21:06:31]RAPDU: 90 00 [21:06:31]wFMCommunicate OK [21:06:31]wFMCommunicate request_size=161 [21:06:31]MH_SAM_APDU [21:06:31]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 58 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 22 02 00 35 04 06 00 05 4E A1 02 22 13 [21:06:31]Write to MH i2c: E2 A4 00 5B 26 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 58 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 22 02 00 35 04 06 00 05 4E A1 02 22 13 00 00 DA [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:31]Read from MH i2c: E2 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 03 00 5B 26 00 90 00 F5 [21:06:31]RAPDU: 90 00 [21:06:31]wFMCommunicate OK [21:06:31]wFMCommunicate request_size=4 [21:06:31]MH_SAM_APDU [21:06:31]CAPDU: 80 0D 03 02 [21:06:31]Write to MH i2c: E2 08 00 5C 26 80 0D 03 02 00 00 00 00 FD [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:31]Read from MH i2c: E2 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 0B 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 0B 00 5C 26 00 8E F6 07 DE 54 9D 12 4D 90 00 B7 [21:06:31]RAPDU: 8E F6 07 DE 54 9D 12 4D 90 00 [21:06:31]wFMCommunicate OK [21:06:31]SAM_PROTO_SignData done [21:06:31]FM_MakeSignedData done [21:06:31]CreateOFDProtocolMessage [21:06:31]wFMCommunicate request_size=4 [21:06:31]MH_SAM_APDU [21:06:31]CAPDU: 80 11 00 00 [21:06:31]Write to MH i2c: E2 08 00 5D 26 80 11 00 00 00 00 00 00 FD [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:31]Read from MH i2c: E2 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 17 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: E2 17 00 5D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 58 [21:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:06:31]wFMCommunicate OK [21:06:31]CreateOFDProtocolMessage done [21:06:31]OFDSenderStorePacket 139777 [21:06:31]StoreOFDPacket docnum=139777 [21:06: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 A6 01 00 00 ED F1 9E 01 E1 F2 5A 03 01 00 03 00 92 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 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 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 58 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 22 02 00 35 04 06 00 05 4E A1 02 22 13 8E F6 07 DE 54 9D 12 4D [21:06:31]CheckFolder [21:06:31]dirname=/storage/ofd_packets [21:06:31]CheckFolder done [21:06:31]ProducePacketName [21:06:31]name=ofd_packets/00139777 [21:06:31]NVStorageSaveData ofd_packets/00139777 [21:06:31]File name is /storage/ofd_packets/00139777 [21:06:31]Write 452 bytes [21:06:31]NVStorageSaveData done [21:06:31]OFDSenderStorePacket done [21:06:31]KKMCreateOFDPacket done [21:06:31]NVStorageSaveData kkm_last_timestamp [21:06:31]File name is /storage/kkm_last_timestamp [21:06:31]Write 4 bytes [21:06:31]NVStorageSaveData done [21:06:31]ExternCall_PrintAddStr [21:06:31]wPrintStart [21:06:31]Write to MH i2c: 01 00 00 5E 26 84 [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: 01 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: 01 07 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: 01 07 00 5E 26 00 00 00 00 00 FF 0F 99 [21:06:31]RasterBufferAndPrint [21:06:31]line Счет N : (3)335610 [21:06:31]line ИНН: 02508201610067 [21:06:31]line Контрольно-Кассовый Чек [21:06:32]line ПРОДАЖА [21:06:32]line Товар: 4700000160792 [21:06:32]line Снек Курут классический (круглый) [21:06:32]line 1.000 * 60.00 [21:06:32]line = 60.00 [21:06:32]line НДС 12% НСП 1% [21:06:32]line > о реализуемом товаре [21:06:32]line Товар: 4700000160358 [21:06:32]line Вода Легенда 1л [21:06:32]line 1.000 * 50.00 [21:06:32]line = 50.00 [21:06:32]line НДС 12% НСП 1% [21:06:32]line > о реализуемом товаре [21:06:32]line ИТОГО: 110.00 [21:06:32]line НСП 1% : 0.97 [21:06:32]line НДС 12% : 11.68 [21:06:32]line Наличными: 110.00 [21:06:32]line Безнал.: 0.00 [21:06:32]line Место: АЗС № 101 "Партнер Нефть" [21:06:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:06:32]line СНО: Общий режим [21:06:32]line Чек 254 31.10.2024 21:06 [21:06:32]line Смена: 557 ФФД: 1.0 [21:06:32]line ЗНМ: 0300000081 [21:06:32]line РНМ: 0000000000091631 [21:06:32]line Версия ККМ: 001 [21:06:32]line ФМ: 0000000000874669 [21:06:32]line ФД: 139777 [21:06:32]line ФПД: 5835266859539 [21:06:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210632&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139777&fm=5835266859539&tin=02508201610067®Number=0000000000091631&sum=11000 [21:06:32]line 0 [21:06:32]OFD Sender: Processing packet 139777 [packets to send 34, broken 33] [21:06:32]ProducePacketName [21:06:32]name=ofd_packets/00139777 [21:06:32]OFD Sender: To server: pG, [21:06:32]CommunicateWithHost lk.salyk.kg:30040 [21:06:32]ConnectInit lk.salyk.kg [21:06:32]written 0, free lines is 4095 [21:06:32]Connected sock=10 [21:06: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 A6 01 00 00 ED F1 9E 01 E1 F2 5A 03 01 00 03 00 92 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 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 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 58 F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 22 02 00 35 04 06 00 05 4E A1 02 22 13 8E F6 07 DE 54 9D 12 4D [21:06: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 74 26 47 00 A7 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 22 02 00 F4 03 04 00 05 9D 23 67 B6 04 01 00 00 D8 44 C3 BE 75 52 E2 09 [21:06:32]CommunicateWithHost err = 0 [21:06:32]CheckOFDResponse [21:06:32]1017 (14) - 77093643461234 [21:06:32]1041 (16) - 0000000000874669 [21:06:32]1040 (4) - 139777 [21:06:32]1012 (4) - 31.10.2024 15:06 [21:06:32]1206 (1) - 0 [21:06:32]OFD Sender: Remove packet 139777 [21:06:32]ProducePacketName [21:06:32]name=ofd_packets/00139777 [21:06:32]NVStorageDeleteData [21:06:32]Write to MH i2c: 01 00 00 8D 26 B3 [21:06:32]Write i2c OK [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: 01 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: 01 07 00 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 BB 0C 81 [21:06:32]RasterBufferAndPrint [21:06:32]line [21:06:32]line [21:06:32]line [21:06:32]line [21:06:32]line [21:06:32]written 0, free lines is 3268 [21:06:32]MH_Cut [21:06:32]Write to MH i2c: D1 01 00 94 26 01 8C [21:06:32]Write i2c OK [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: D1 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: D1 01 00 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: D1 01 00 94 26 00 8B [21:06:32]Write to MH i2c: 01 00 00 95 26 BB [21:06:32]Write i2c OK [21:06:32]MH_I2C_Read... [21:06:33]OFD Sender: No OFD packet to send [21:06:33]*** Cut start [21:06:33]*** Partial cut [21:06:33]*** CUTSNS_PIN = 1 [21:06:33]*** CUTSNS_PIN = 0 [21:06:33]*** Brake cut motor [21:06:34]Read from MH i2c: 01 [21:06:34]MH_I2C_Read... [21:06:34]*** Stop cut motor [21:06:34]*** Cut end [21:06:34]Read from MH i2c: 01 07 00 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 FF 0F D0 [21:06:34]process_action close_receipt done [21:06:34]requested_data is exist [21:06:34]produce_requested_data [21:06:34]requested_item fm.sn is exist - process it [21:06:34]wFMCommunicate request_size=4 [21:06:34]MH_SAM_APDU [21:06:34]CAPDU: 80 11 00 00 [21:06:34]Write to MH i2c: E2 08 00 96 26 80 11 00 00 00 00 00 00 36 [21:06:34]Write i2c OK [21:06:34]MH_I2C_Read... [21:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:34]Read from MH i2c: E2 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 17 00 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 17 00 96 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 91 [21:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:06:34]wFMCommunicate OK [21:06:34]requested_item fd.num is exist - process it [21:06:34]SAM_PROTO_GetFieldsCounters [21:06:34]wFMCommunicate request_size=4 [21:06:34]MH_SAM_APDU [21:06:34]CAPDU: 80 13 00 00 [21:06:34]Write to MH i2c: E2 08 00 97 26 80 13 00 00 00 00 00 00 39 [21:06:34]Write i2c OK [21:06:34]MH_I2C_Read... [21:06:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:34]Read from MH i2c: E2 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 62 00 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 62 00 97 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [21:06: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 01 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:34]wFMCommunicate OK [21:06:34]SAM_PROTO_GetFieldsCounters done [21:06:34]requested_item shift.num is exist - process it [21:06:34]requested_item shift.opened is exist - process it [21:06:34]req_shift_opened [21:06:34]FM_GetShiftState [21:06:34]SAM_PROTO_GetShiftState [21:06:34]wFMCommunicate request_size=4 [21:06:34]MH_SAM_APDU [21:06:34]CAPDU: 80 13 01 00 [21:06:34]Write to MH i2c: E2 08 00 98 26 80 13 01 00 00 00 00 00 3B [21:06:34]Write i2c OK [21:06:34]MH_I2C_Read... [21:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:34]Read from MH i2c: E2 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 0E 00 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 0E 00 98 26 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 64 [21:06:34]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:06:34]wFMCommunicate OK [21:06:34]SAM_PROTO_GetShiftState done [21:06:34]FM_GetShiftState done [21:06:34]req_shift_opened done [21:06:34]requested_item shift.open_date is exist - process it [21:06:34]req_shift_open_date [21:06:34]req_shift_open_date done [21:06:34]produce_requested_data done [21:06:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139777,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:06:34]process_action_free close_receipt [21:06:34]json_value_free [21:06:34]json_value_free done [21:06:34]process_json_proto returns [21:06:34]Send response to host [21:06:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139777,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:06:34]free response buf [21:06:34]execute_script done [21:06:34]execute_script returns [21:06:34]free content buf [21:06:34]Sock 7.Close socket [21:06:34]Sock 7.Thread stoped [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:26]accept exits with 9 [21:08:26]New connection [21:08:26]New thread 3066654052 created [21:08:26]Thread 3066510692 joined [21:08:26]Waiting for new connection... [21:08:26] Sock 9.Parse request [21:08:26]Sock 9.Check first char [21:08:26]Sock 9.First char is OK [21:08:26]request: POST /json_proto HTTP/1.0 [21:08:26]Method: POST [21:08:26]URL: /json_proto [21:08:26]Method is POST - this is cgi request [21:08:26]url: /json_proto [21:08:26]query_string will be loaded in cgi processing [21:08:26]execute_cgi json_proto POST (null) [21:08:26]execute_cgi path=json_proto method=POST [21:08:26]POST find Content-Length [21:08:26]Host: 172.17.50.196:8080 [21:08:26]Content-Length: 667 [21:08:26]Content-Type: application/json [21:08:26] [21:08:26]POST finish read [21:08:26]Found Content-Length = 667 [21:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335611", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:26]execute_script... [21:08:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335611", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:26]POST & json_proto [21:08:26]process_json_proto [21:08:26]json parsed OK: [21:08:26]protocol is kg_v1.0 [21:08:26]action value=close_receipt [21:08:26]process_action close_receipt [21:08:26]cmd_close_receipt [21:08:26]MH_GetDate [21:08:26]Write to MH i2c: F0 00 00 99 26 AE [21:08:26]Write i2c OK [21:08:26]MH_I2C_Read... [21:08:26]Read from MH i2c: F0 [21:08:26]MH_I2C_Read... [21:08:26]Read from MH i2c: F0 09 00 [21:08:26]MH_I2C_Read... [21:08:26]Read from MH i2c: F0 09 00 99 26 00 CD F1 23 67 72 0D 1C 67 01 [21:08:26]GetLastDocTimeStamp 1730408792 [21:08:26]current date 1730408909 [21:08:26]FM_GetShiftState [21:08:26]SAM_PROTO_GetShiftState [21:08:26]wFMCommunicate request_size=4 [21:08:26]MH_SAM_APDU [21:08:26]CAPDU: 80 13 01 00 [21:08:26]Write to MH i2c: E2 08 00 9A 26 80 13 01 00 00 00 00 00 3D [21:08:26]Write i2c OK [21:08:26]MH_I2C_Read... [21:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:26]Read from MH i2c: E2 [21:08:26]MH_I2C_Read... [21:08:26]Read from MH i2c: E2 0E 00 [21:08:26]MH_I2C_Read... [21:08:26]Read from MH i2c: E2 0E 00 9A 26 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 66 [21:08:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:08:26]wFMCommunicate OK [21:08:26]SAM_PROTO_GetShiftState done [21:08:26]FM_GetShiftState done [21:08:26]opened in 1730332621 [21:08:26]opened+sec_in_day 1730419021 [21:08:26]quantity*price = 13000 [21:08:26]sum+1 = 13001 [21:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 255 31.10.2024 21:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139778 ФПД: 121046253090269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210829&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139778&fm=121046253090269&tin=02508201610067®Number=0000000000091631&sum=13000 0 [21:08:27]StoreToDocumentArchive [21:08:27]shift 557 fd 139778 [21:08:27]save to /storage/0557/doc_00139778 [21:08:27]save last doc name /storage/0557/doc_00139778 to /storage/kkm_last_doc_name [21:08:27]save OK [21:08:27]Clear old archive folders... [21:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=295 [21:08:28]tlvbuf is 00A86A00 [21:08:28]SAM_PROTO_ClearQueue [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 09 00 00 [21:08:28]Write to MH i2c: E2 08 00 A7 26 80 09 00 00 00 00 00 00 3F [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]SAM_PROTO_ClearQueue done [21:08:28]KKMCreateOFDPacket [21:08:28]OFDProtocolAddRootSTLVToBuf [21:08:28]FM_MakeSignedData [21:08:28]FM_MakeSignedData [21:08:28]SAM_PROTO_SignData [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 0D 01 02 [21:08:28]Write to MH i2c: E2 08 00 A8 26 80 0D 01 02 00 00 00 00 47 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]wFMCommunicate request_size=255 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FF 00 00 00 F4 03 04 00 CD F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [21:08:28]Write to MH i2c: E2 02 01 A9 26 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FF 00 00 00 F4 03 04 00 CD F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 75 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]OFD Sender: No OFD packet to send [21:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]wFMCommunicate request_size=54 [21:08:28]MH_SAM_APDU [21:08:28]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 02 22 02 00 35 04 06 00 6E 17 46 EA B5 DD [21:08:28]Write to MH i2c: E2 39 00 AA 26 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 02 22 02 00 35 04 06 00 6E 17 46 EA B5 DD 00 00 E1 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 0D 03 02 [21:08:28]Write to MH i2c: E2 08 00 AB 26 80 0D 03 02 00 00 00 00 4C [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 0B 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 0B 00 AB 26 00 F5 B1 97 05 3F 15 45 C3 90 00 EB [21:08:28]RAPDU: F5 B1 97 05 3F 15 45 C3 90 00 [21:08:28]wFMCommunicate OK [21:08:28]SAM_PROTO_SignData done [21:08:28]FM_MakeSignedData done [21:08:28]CreateOFDProtocolMessage [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 11 00 00 [21:08:28]Write to MH i2c: E2 08 00 AC 26 80 11 00 00 00 00 00 00 4C [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 17 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 17 00 AC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A7 [21:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:08:28]wFMCommunicate OK [21:08:28]CreateOFDProtocolMessage done [21:08:28]OFDSenderStorePacket 139778 [21:08:28]StoreOFDPacket docnum=139778 [21:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3B 01 00 00 83 3E 33 01 08 49 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FF 00 00 00 F4 03 04 00 CD F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 02 22 02 00 35 04 06 00 6E 17 46 EA B5 DD F5 B1 97 05 3F 15 45 C3 [21:08:28]CheckFolder [21:08:28]dirname=/storage/ofd_packets [21:08:28]CheckFolder done [21:08:28]ProducePacketName [21:08:28]name=ofd_packets/00139778 [21:08:28]NVStorageSaveData ofd_packets/00139778 [21:08:28]File name is /storage/ofd_packets/00139778 [21:08:28]Write 345 bytes [21:08:28]NVStorageSaveData done [21:08:28]OFDSenderStorePacket done [21:08:28]KKMCreateOFDPacket done [21:08:28]NVStorageSaveData kkm_last_timestamp [21:08:28]File name is /storage/kkm_last_timestamp [21:08:28]Write 4 bytes [21:08:28]NVStorageSaveData done [21:08:28]ExternCall_PrintAddStr [21:08:28]wPrintStart [21:08:28]Write to MH i2c: 01 00 00 AD 26 D3 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: 01 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: 01 07 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: 01 07 00 AD 26 00 00 00 00 00 FF 0F E8 [21:08:28]RasterBufferAndPrint [21:08:28]line Счет N : (3)335611 [21:08:28]line ИНН: 02508201610067 [21:08:28]line Контрольно-Кассовый Чек [21:08:28]line ПРОДАЖА [21:08:28]line Товар: 4870002329937 [21:08:28]line Напиток Lipton IceTea 1л персик Regular [21:08:28]line 1.000 * 130.00 [21:08:28]line = 130.00 [21:08:28]line НДС 12% НСП 1% [21:08:28]line > о реализуемом товаре [21:08:28]line ИТОГО: 130.00 [21:08:28]line НСП 1% : 1.15 [21:08:28]line НДС 12% : 13.80 [21:08:28]line Наличными: 130.00 [21:08:28]line Безнал.: 0.00 [21:08:28]line Место: АЗС № 101 "Партнер Нефть" [21:08:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:08:28]line СНО: Общий режим [21:08:28]line Чек 255 31.10.2024 21:08 [21:08:28]line Смена: 557 ФФД: 1.0 [21:08:28]line ЗНМ: 0300000081 [21:08:28]line РНМ: 0000000000091631 [21:08:28]line Версия ККМ: 001 [21:08:28]line ФМ: 0000000000874669 [21:08:28]line ФД: 139778 [21:08:28]line ФПД: 121046253090269 [21:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T210829&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139778&fm=121046253090269&tin=02508201610067®Number=0000000000091631&sum=13000 [21:08:28]line 0 [21:08:28]OFD Sender: Processing packet 139778 [packets to send 34, broken 33] [21:08:28]ProducePacketName [21:08:28]name=ofd_packets/00139778 [21:08:28]OFD Sender: To server: pG, [21:08:28]CommunicateWithHost lk.salyk.kg:30040 [21:08:28]ConnectInit lk.salyk.kg [21:08:28]written 0, free lines is 4095 [21:08:28]Connected sock=11 [21:08: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 3B 01 00 00 83 3E 33 01 08 49 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FF 00 00 00 F4 03 04 00 CD F1 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 02 22 02 00 35 04 06 00 6E 17 46 EA B5 DD F5 B1 97 05 3F 15 45 C3 [21:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AA 20 47 00 F0 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 02 22 02 00 F4 03 04 00 7A 9D 23 67 B6 04 01 00 00 7D 64 BA 7E 60 20 20 CC [21:08:29]CommunicateWithHost err = 0 [21:08:29]CheckOFDResponse [21:08:29]1017 (14) - 77093643461234 [21:08:29]1041 (16) - 0000000000874669 [21:08:29]1040 (4) - 139778 [21:08:29]1012 (4) - 31.10.2024 15:08 [21:08:29]1206 (1) - 0 [21:08:29]OFD Sender: Remove packet 139778 [21:08:29]ProducePacketName [21:08:29]name=ofd_packets/00139778 [21:08:29]NVStorageDeleteData [21:08:29]Write to MH i2c: 01 00 00 D6 26 FC [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 D6 26 00 00 00 00 00 EE 0C FD [21:08:29]RasterBufferAndPrint [21:08:29]line [21:08:29]line [21:08:29]line [21:08:29]line [21:08:29]line [21:08:29]written 0, free lines is 3319 [21:08:29]MH_Cut [21:08:29]Write to MH i2c: D1 01 00 DD 26 01 D5 [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: D1 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: D1 01 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: D1 01 00 DD 26 00 D4 [21:08:29]Write to MH i2c: 01 00 00 DE 26 04 [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]OFD Sender: No OFD packet to send [21:08:30]*** Cut start [21:08:30]*** Partial cut [21:08:30]*** CUTSNS_PIN = 1 [21:08:30]*** CUTSNS_PIN = 0 [21:08:30]*** Brake cut motor [21:08:30]Read from MH i2c: 01 [21:08:30]MH_I2C_Read... [21:08:30]*** Stop cut motor [21:08:30]*** Cut end [21:08:30]Read from MH i2c: 01 07 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [21:08:30]process_action close_receipt done [21:08:30]requested_data is exist [21:08:30]produce_requested_data [21:08:30]requested_item fm.sn is exist - process it [21:08:30]wFMCommunicate request_size=4 [21:08:30]MH_SAM_APDU [21:08:30]CAPDU: 80 11 00 00 [21:08:30]Write to MH i2c: E2 08 00 DF 26 80 11 00 00 00 00 00 00 7F [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:30]Read from MH i2c: E2 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 17 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 17 00 DF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DA [21:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:08:30]wFMCommunicate OK [21:08:30]requested_item fd.num is exist - process it [21:08:30]SAM_PROTO_GetFieldsCounters [21:08:30]wFMCommunicate request_size=4 [21:08:30]MH_SAM_APDU [21:08:30]CAPDU: 80 13 00 00 [21:08:30]Write to MH i2c: E2 08 00 E0 26 80 13 00 00 00 00 00 00 82 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:30]Read from MH i2c: E2 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 62 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 62 00 E0 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 02 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [21:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 02 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:30]wFMCommunicate OK [21:08:30]SAM_PROTO_GetFieldsCounters done [21:08:30]requested_item shift.num is exist - process it [21:08:30]requested_item shift.opened is exist - process it [21:08:30]req_shift_opened [21:08:30]FM_GetShiftState [21:08:30]SAM_PROTO_GetShiftState [21:08:30]wFMCommunicate request_size=4 [21:08:30]MH_SAM_APDU [21:08:30]CAPDU: 80 13 01 00 [21:08:30]Write to MH i2c: E2 08 00 E1 26 80 13 01 00 00 00 00 00 84 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:30]Read from MH i2c: E2 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 0E 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: E2 0E 00 E1 26 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AD [21:08:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:08:30]wFMCommunicate OK [21:08:30]SAM_PROTO_GetShiftState done [21:08:30]FM_GetShiftState done [21:08:30]req_shift_opened done [21:08:30]requested_item shift.open_date is exist - process it [21:08:30]req_shift_open_date [21:08:30]req_shift_open_date done [21:08:30]produce_requested_data done [21:08:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139778,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:08:30]process_action_free close_receipt [21:08:30]json_value_free [21:08:30]json_value_free done [21:08:30]process_json_proto returns [21:08:30]Send response to host [21:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139778,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:08:30]free response buf [21:08:30]execute_script done [21:08:30]execute_script returns [21:08:30]free content buf [21:08:30]Sock 9.Close socket [21:08:30]Sock 9.Thread stoped [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:28]accept exits with 10 [21:25:28]New connection [21:25:28]New thread 3066510692 created [21:25:28]Thread 3066654052 joined [21:25:28]Waiting for new connection... [21:25:28] Sock 10.Parse request [21:25:28]Sock 10.Check first char [21:25:28]Sock 10.First char is OK [21:25:28]request: POST /json_proto HTTP/1.0 [21:25:28]Method: POST [21:25:28]URL: /json_proto [21:25:28]Method is POST - this is cgi request [21:25:28]url: /json_proto [21:25:28]query_string will be loaded in cgi processing [21:25:28]execute_cgi json_proto POST (null) [21:25:28]execute_cgi path=json_proto method=POST [21:25:28]POST find Content-Length [21:25:28]Host: 172.17.50.196:8080 [21:25:28]Content-Length: 1326 [21:25:28]Content-Type: application/json [21:25:28] [21:25:28]POST finish read [21:25:28]Found Content-Length = 1326 [21:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335612", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 745.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:28]execute_script... [21:25: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)335612", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 745.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:28]POST & json_proto [21:25:28]process_json_proto [21:25:28]json parsed OK: [21:25:28]protocol is kg_v1.0 [21:25:28]action value=close_receipt [21:25:28]process_action close_receipt [21:25:28]cmd_close_receipt [21:25:28]MH_GetDate [21:25:28]Write to MH i2c: F0 00 00 E2 26 F7 [21:25:28]Write i2c OK [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: F0 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: F0 09 00 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: F0 09 00 E2 26 00 CA F5 23 67 72 0D 1C 67 4B [21:25:28]GetLastDocTimeStamp 1730408909 [21:25:28]current date 1730409930 [21:25:28]FM_GetShiftState [21:25:28]SAM_PROTO_GetShiftState [21:25:28]wFMCommunicate request_size=4 [21:25:28]MH_SAM_APDU [21:25:28]CAPDU: 80 13 01 00 [21:25:28]Write to MH i2c: E2 08 00 E3 26 80 13 01 00 00 00 00 00 86 [21:25:28]Write i2c OK [21:25:28]MH_I2C_Read... [21:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:28]Read from MH i2c: E2 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 0E 00 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 0E 00 E3 26 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AF [21:25:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:25:28]wFMCommunicate OK [21:25:28]SAM_PROTO_GetShiftState done [21:25:28]FM_GetShiftState done [21:25:28]opened in 1730332621 [21:25:28]opened+sec_in_day 1730419021 [21:25:28]quantity*price = 15400 [21:25:28]sum+1 = 15401 [21:25:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 2.000 * 144.00 = 288.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 745.00 НСП 1% : 6.59 НДС 12% : 79.10 Наличными: 745.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 256 31.10.2024 21:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139779 ФПД: 208719434478207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T212531&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139779&fm=208719434478207&tin=02508201610067®Number=0000000000091631&sum=74500 0 [21:25:29]StoreToDocumentArchive [21:25:29]shift 557 fd 139779 [21:25:29]save to /storage/0557/doc_00139779 [21:25:29]save last doc name /storage/0557/doc_00139779 to /storage/kkm_last_doc_name [21:25:29]save OK [21:25:29]Clear old archive folders... [21:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=576 [21:25:29]tlvbuf is 00A84280 [21:25:29]SAM_PROTO_ClearQueue [21:25:29]wFMCommunicate request_size=4 [21:25:29]MH_SAM_APDU [21:25:29]CAPDU: 80 09 00 00 [21:25:29]Write to MH i2c: E2 08 00 F0 26 80 09 00 00 00 00 00 00 88 [21:25:29]Write i2c OK [21:25:29]MH_I2C_Read... [21:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:29]Read from MH i2c: E2 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: E2 03 00 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: E2 03 00 F0 26 00 90 00 8A [21:25:29]RAPDU: 90 00 [21:25:29]wFMCommunicate OK [21:25:29]SAM_PROTO_ClearQueue done [21:25:29]KKMCreateOFDPacket [21:25:29]OFDProtocolAddRootSTLVToBuf [21:25:29]FM_MakeSignedData [21:25:29]FM_MakeSignedData [21:25:29]SAM_PROTO_SignData [21:25:29]wFMCommunicate request_size=4 [21:25:29]MH_SAM_APDU [21:25:29]CAPDU: 80 0D 01 02 [21:25:29]Write to MH i2c: E2 08 00 F1 26 80 0D 01 02 00 00 00 00 90 [21:25:29]Write i2c OK [21:25:29]MH_I2C_Read... [21:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:29]Read from MH i2c: E2 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: E2 03 00 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [21:25:29]RAPDU: 90 00 [21:25:29]wFMCommunicate OK [21:25:29]wFMCommunicate request_size=255 [21:25:29]MH_SAM_APDU [21:25:29]CAPDU: 80 0D 02 02 FA 03 00 40 02 1E 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 [21:25:29]Write to MH i2c: E2 02 01 F2 26 80 0D 02 02 FA 00 03 00 40 02 1E 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 00 00 26 [21:25:29]Write i2c OK [21:25:29]MH_I2C_Read... [21:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 03 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [21:25:30]RAPDU: 90 00 [21:25:30]wFMCommunicate OK [21:25:30]wFMCommunicate request_size=255 [21:25:30]MH_SAM_APDU [21:25:30]CAPDU: 80 0D 02 02 FA 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 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 04 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1E 00 00 00 00 07 04 06 00 04 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 [21:25:30]Write to MH i2c: E2 02 01 F3 26 80 0D 02 02 FA 00 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 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 04 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1E 00 00 00 00 07 04 06 00 04 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 00 8C [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 03 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [21:25:30]RAPDU: 90 00 [21:25:30]wFMCommunicate OK [21:25:30]wFMCommunicate request_size=85 [21:25:30]MH_SAM_APDU [21:25:30]CAPDU: 80 0D 02 02 50 00 F4 03 04 00 CB F5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 03 22 02 00 35 04 06 00 BD D4 47 BF F2 7F [21:25:30]Write to MH i2c: E2 58 00 F4 26 80 0D 02 02 50 00 00 F4 03 04 00 CB F5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 03 22 02 00 35 04 06 00 BD D4 47 BF F2 7F 00 00 85 [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 03 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [21:25:30]RAPDU: 90 00 [21:25:30]wFMCommunicate OK [21:25:30]wFMCommunicate request_size=4 [21:25:30]MH_SAM_APDU [21:25:30]CAPDU: 80 0D 03 02 [21:25:30]Write to MH i2c: E2 08 00 F5 26 80 0D 03 02 00 00 00 00 96 [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]OFD Sender: No OFD packet to send [21:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 0B 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 0B 00 F5 26 00 FA FC 12 CD B7 D4 DD F2 90 00 C6 [21:25:30]RAPDU: FA FC 12 CD B7 D4 DD F2 90 00 [21:25:30]wFMCommunicate OK [21:25:30]SAM_PROTO_SignData done [21:25:30]FM_MakeSignedData done [21:25:30]CreateOFDProtocolMessage [21:25:30]wFMCommunicate request_size=4 [21:25:30]MH_SAM_APDU [21:25:30]CAPDU: 80 11 00 00 [21:25:30]Write to MH i2c: E2 08 00 F6 26 80 11 00 00 00 00 00 00 96 [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 17 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 17 00 F6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F1 [21:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:25:30]wFMCommunicate OK [21:25:30]CreateOFDProtocolMessage done [21:25:30]OFDSenderStorePacket 139779 [21:25:30]StoreOFDPacket docnum=139779 [21:25: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 54 02 00 00 1E F3 4C 02 7C 24 5A 03 01 00 03 00 40 02 1E 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 04 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1E 00 00 00 00 07 04 06 00 04 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CB F5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 03 22 02 00 35 04 06 00 BD D4 47 BF F2 7F FA FC 12 CD B7 D4 DD F2 [21:25:30]CheckFolder [21:25:30]dirname=/storage/ofd_packets [21:25:30]CheckFolder done [21:25:30]ProducePacketName [21:25:30]name=ofd_packets/00139779 [21:25:30]NVStorageSaveData ofd_packets/00139779 [21:25:30]File name is /storage/ofd_packets/00139779 [21:25:30]Write 626 bytes [21:25:30]NVStorageSaveData done [21:25:30]OFDSenderStorePacket done [21:25:30]KKMCreateOFDPacket done [21:25:30]NVStorageSaveData kkm_last_timestamp [21:25:30]File name is /storage/kkm_last_timestamp [21:25:30]Write 4 bytes [21:25:30]NVStorageSaveData done [21:25:30]ExternCall_PrintAddStr [21:25:30]wPrintStart [21:25:30]Write to MH i2c: 01 00 00 F7 26 1D [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: 01 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: 01 07 00 [21:25:30]OFD Sender: Processing packet 139779 [packets to send 34, broken 33] [21:25:30]ProducePacketName [21:25:30]name=ofd_packets/00139779 [21:25:30]OFD Sender: To server: pG, [21:25:30]CommunicateWithHost lk.salyk.kg:30040 [21:25:30]ConnectInit lk.salyk.kg [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: 01 07 00 F7 26 00 00 00 00 00 FF 0F 32 [21:25:30]RasterBufferAndPrint [21:25:30]line Счет N : (3)335612 [21:25:30]line ИНН: 02508201610067 [21:25:30]line Контрольно-Кассовый Чек [21:25:30]line ПРОДАЖА [21:25:30]line Товар: 48744317 [21:25:30]line Сигареты Camel Yellow [21:25:30]line 1.000 * 154.00 [21:25:30]line = 154.00 [21:25:30]line НДС 12% НСП 1% [21:25:30]line > о реализуемом товаре [21:25:31]line Товар: 4640030091645 [21:25:31]line Сигареты ESSE Exchange M [21:25:31]line 1.000 * 159.00 [21:25:31]line = 159.00 [21:25:31]line НДС 12% НСП 1% [21:25:31]line > о реализуемом товаре [21:25:31]line Товар: 48743570 [21:25:31]line Сигареты Winston XStyle Blue [21:25:31]line 1.000 * 144.00 [21:25:31]line = 144.00 [21:25:31]line НДС 12% НСП 1% [21:25:31]line > о реализуемом товаре [21:25:31]line Товар: 48747059 [21:25:31]line Сигареты Winston Legend Blue [21:25:31]line 2.000 * 144.00 [21:25:31]line = 288.00 [21:25:31]line НДС 12% НСП 1% [21:25:31]line > о реализуемом товаре [21:25:31]line ИТОГО: 745.00 [21:25:31]line НСП 1% : 6.59 [21:25:31]line НДС 12% : 79.10 [21:25:31]line Наличными: 745.00 [21:25:31]line Безнал.: 0.00 [21:25:31]line Место: АЗС № 101 "Партнер Нефть" [21:25:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:25:31]line СНО: Общий режим [21:25:31]line Чек 256 31.10.2024 21:25 [21:25:31]line Смена: 557 ФФД: 1.0 [21:25:31]line ЗНМ: 0300000081 [21:25:31]line РНМ: 0000000000091631 [21:25:31]line Версия ККМ: 001 [21:25:31]line ФМ: 0000000000874669 [21:25:31]line ФД: 139779 [21:25:31]line ФПД: 208719434478207 [21:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T212531&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139779&fm=208719434478207&tin=02508201610067®Number=0000000000091631&sum=74500 [21:25:31]line 0 [21:25:31]Connected sock=7 [21:25: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 54 02 00 00 1E F3 4C 02 7C 24 5A 03 01 00 03 00 40 02 1E 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 04 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1E 00 00 00 00 07 04 06 00 04 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CB F5 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 03 22 02 00 35 04 06 00 BD D4 47 BF F2 7F FA FC 12 CD B7 D4 DD F2 [21:25:31]written 0, free lines is 4095 [21:25: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 57 C0 47 00 FC A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 03 22 02 00 F4 03 04 00 78 A1 23 67 B6 04 01 00 00 64 7E 8D 43 08 B2 9C 84 [21:25:31]CommunicateWithHost err = 0 [21:25:31]CheckOFDResponse [21:25:31]1017 (14) - 77093643461234 [21:25:31]1041 (16) - 0000000000874669 [21:25:31]1040 (4) - 139779 [21:25:31]1012 (4) - 31.10.2024 15:25 [21:25:31]1206 (1) - 0 [21:25:31]OFD Sender: Remove packet 139779 [21:25:31]ProducePacketName [21:25:31]name=ofd_packets/00139779 [21:25:31]NVStorageDeleteData [21:25:31]Write to MH i2c: 01 00 00 32 27 59 [21:25:31]Write i2c OK [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: 01 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: 01 07 00 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 0A 0C 76 [21:25:31]RasterBufferAndPrint [21:25:31]line [21:25:31]line [21:25:31]line [21:25:31]line [21:25:31]line [21:25:31]written 0, free lines is 3090 [21:25:31]MH_Cut [21:25:31]Write to MH i2c: D1 01 00 39 27 01 32 [21:25:31]Write i2c OK [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: D1 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: D1 01 00 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: D1 01 00 39 27 00 31 [21:25:31]Write to MH i2c: 01 00 00 3A 27 61 [21:25:31]Write i2c OK [21:25:31]MH_I2C_Read... [21:25:31]OFD Sender: No OFD packet to send [21:25:32]*** Cut start [21:25:32]*** Partial cut [21:25:32]*** CUTSNS_PIN = 1 [21:25:32]*** CUTSNS_PIN = 0 [21:25:32]*** Brake cut motor [21:25:33]Read from MH i2c: 01 [21:25:33]MH_I2C_Read... [21:25:33]*** Stop cut motor [21:25:33]*** Cut end [21:25:33]Read from MH i2c: 01 07 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: 01 07 00 3A 27 00 00 00 00 00 FF 0F 76 [21:25:33]process_action close_receipt done [21:25:33]requested_data is exist [21:25:33]produce_requested_data [21:25:33]requested_item fm.sn is exist - process it [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 11 00 00 [21:25:33]Write to MH i2c: E2 08 00 3B 27 80 11 00 00 00 00 00 00 DC [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 17 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 17 00 3B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 37 [21:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:25:33]wFMCommunicate OK [21:25:33]requested_item fd.num is exist - process it [21:25:33]SAM_PROTO_GetFieldsCounters [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 13 00 00 [21:25:33]Write to MH i2c: E2 08 00 3C 27 80 13 00 00 00 00 00 00 DF [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 62 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 62 00 3C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 03 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [21:25: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 03 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:33]wFMCommunicate OK [21:25:33]SAM_PROTO_GetFieldsCounters done [21:25:33]requested_item shift.num is exist - process it [21:25:33]requested_item shift.opened is exist - process it [21:25:33]req_shift_opened [21:25:33]FM_GetShiftState [21:25:33]SAM_PROTO_GetShiftState [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 13 01 00 [21:25:33]Write to MH i2c: E2 08 00 3D 27 80 13 01 00 00 00 00 00 E1 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 0E 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 0E 00 3D 27 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0A [21:25:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:25:33]wFMCommunicate OK [21:25:33]SAM_PROTO_GetShiftState done [21:25:33]FM_GetShiftState done [21:25:33]req_shift_opened done [21:25:33]requested_item shift.open_date is exist - process it [21:25:33]req_shift_open_date [21:25:33]req_shift_open_date done [21:25:33]produce_requested_data done [21:25:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139779,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:25:33]process_action_free close_receipt [21:25:33]json_value_free [21:25:33]json_value_free done [21:25:33]process_json_proto returns [21:25:33]Send response to host [21:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139779,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:25:33]free response buf [21:25:33]execute_script done [21:25:33]execute_script returns [21:25:33]free content buf [21:25:33]Sock 10.Close socket [21:25:33]Sock 10.Thread stoped [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:03]accept exits with 9 [21:35:03]New connection [21:35:03]New thread 3066654052 created [21:35:03]Thread 3066510692 joined [21:35:03]Waiting for new connection... [21:35:03] Sock 9.Parse request [21:35:03]Sock 9.Check first char [21:35:03]Sock 9.First char is OK [21:35:03]request: POST /json_proto HTTP/1.0 [21:35:03]Method: POST [21:35:03]URL: /json_proto [21:35:03]Method is POST - this is cgi request [21:35:03]url: /json_proto [21:35:03]query_string will be loaded in cgi processing [21:35:03]execute_cgi json_proto POST (null) [21:35:03]execute_cgi path=json_proto method=POST [21:35:03]POST find Content-Length [21:35:03]Host: 172.17.50.196:8080 [21:35:03]Content-Length: 913 [21:35:03]Content-Type: application/json [21:35:03] [21:35:03]POST finish read [21:35:03]Found Content-Length = 913 [21:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335613", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:03]execute_script... [21:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335613", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:03]POST & json_proto [21:35:03]process_json_proto [21:35:03]json parsed OK: [21:35:03]protocol is kg_v1.0 [21:35:03]action value=close_receipt [21:35:03]process_action close_receipt [21:35:03]cmd_close_receipt [21:35:03]MH_GetDate [21:35:03]Write to MH i2c: F0 00 00 3E 27 54 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: F0 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: F0 09 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: F0 09 00 3E 27 00 0A F8 23 67 72 0D 1C 67 EB [21:35:03]GetLastDocTimeStamp 1730409931 [21:35:03]current date 1730410506 [21:35:03]FM_GetShiftState [21:35:03]SAM_PROTO_GetShiftState [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 13 01 00 [21:35:03]Write to MH i2c: E2 08 00 3F 27 80 13 01 00 00 00 00 00 E3 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 0E 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 0E 00 3F 27 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0C [21:35:03]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:35:03]wFMCommunicate OK [21:35:03]SAM_PROTO_GetShiftState done [21:35:03]FM_GetShiftState done [21:35:03]opened in 1730332621 [21:35:03]opened+sec_in_day 1730419021 [21:35:03]quantity*price = 4900 [21:35:03]sum+1 = 4901 [21:35:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.19 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 257 31.10.2024 21:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139780 ФПД: 204885425757022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T213506&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139780&fm=204885425757022&tin=02508201610067®Number=0000000000091631&sum=20900 0 [21:35:05]StoreToDocumentArchive [21:35:05]shift 557 fd 139780 [21:35:05]save to /storage/0557/doc_00139780 [21:35:05]save last doc name /storage/0557/doc_00139780 to /storage/kkm_last_doc_name [21:35:05]save OK [21:35:05]Clear old archive folders... [21:35:05]ProcessDocumentItem done err = 0, tmpTLVsize=393 [21:35:05]tlvbuf is 00A9EDB0 [21:35:05]SAM_PROTO_ClearQueue [21:35:05]wFMCommunicate request_size=4 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 09 00 00 [21:35:05]Write to MH i2c: E2 08 00 4C 27 80 09 00 00 00 00 00 00 E5 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 4C 27 00 90 00 E7 [21:35:05]RAPDU: 90 00 [21:35:05]wFMCommunicate OK [21:35:05]SAM_PROTO_ClearQueue done [21:35:05]KKMCreateOFDPacket [21:35:05]OFDProtocolAddRootSTLVToBuf [21:35:05]FM_MakeSignedData [21:35:05]FM_MakeSignedData [21:35:05]SAM_PROTO_SignData [21:35:05]wFMCommunicate request_size=4 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 0D 01 02 [21:35:05]Write to MH i2c: E2 08 00 4D 27 80 0D 01 02 00 00 00 00 ED [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 4D 27 00 90 00 E8 [21:35:05]RAPDU: 90 00 [21:35:05]wFMCommunicate OK [21:35:05]wFMCommunicate request_size=255 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 [21:35:05]Write to MH i2c: E2 02 01 4E 27 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 CD [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 4E 27 00 90 00 E9 [21:35:05]RAPDU: 90 00 [21:35:05]wFMCommunicate OK [21:35:05]wFMCommunicate request_size=152 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 0A F8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 22 02 00 35 04 06 00 BA 57 9B 05 9B 5E [21:35:05]Write to MH i2c: E2 9B 00 4F 27 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 0A F8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 22 02 00 35 04 06 00 BA 57 9B 05 9B 5E 00 00 31 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 03 00 4F 27 00 90 00 EA [21:35:05]RAPDU: 90 00 [21:35:05]wFMCommunicate OK [21:35:05]wFMCommunicate request_size=4 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 0D 03 02 [21:35:05]Write to MH i2c: E2 08 00 50 27 80 0D 03 02 00 00 00 00 F2 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 0B 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 0B 00 50 27 00 5E 96 8D FF A4 7C 72 11 90 00 16 [21:35:05]RAPDU: 5E 96 8D FF A4 7C 72 11 90 00 [21:35:05]wFMCommunicate OK [21:35:05]SAM_PROTO_SignData done [21:35:05]FM_MakeSignedData done [21:35:05]CreateOFDProtocolMessage [21:35:05]wFMCommunicate request_size=4 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 11 00 00 [21:35:05]Write to MH i2c: E2 08 00 51 27 80 11 00 00 00 00 00 00 F2 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 17 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 17 00 51 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [21:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:35:05]wFMCommunicate OK [21:35:05]CreateOFDProtocolMessage done [21:35:05]OFDSenderStorePacket 139780 [21:35:05]StoreOFDPacket docnum=139780 [21:35: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 9D 01 00 00 A4 9D 95 01 2E BD 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 0A F8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 22 02 00 35 04 06 00 BA 57 9B 05 9B 5E 5E 96 8D FF A4 7C 72 11 [21:35:05]CheckFolder [21:35:05]dirname=/storage/ofd_packets [21:35:05]CheckFolder done [21:35:05]ProducePacketName [21:35:05]name=ofd_packets/00139780 [21:35:05]NVStorageSaveData ofd_packets/00139780 [21:35:05]File name is /storage/ofd_packets/00139780 [21:35:05]Write 443 bytes [21:35:05]NVStorageSaveData done [21:35:05]OFDSenderStorePacket done [21:35:05]KKMCreateOFDPacket done [21:35:05]NVStorageSaveData kkm_last_timestamp [21:35:05]File name is /storage/kkm_last_timestamp [21:35:05]Write 4 bytes [21:35:05]NVStorageSaveData done [21:35:05]ExternCall_PrintAddStr [21:35:05]wPrintStart [21:35:05]Write to MH i2c: 01 00 00 52 27 79 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: 01 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: 01 07 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: 01 07 00 52 27 00 00 00 00 00 FF 0F 8E [21:35:05]RasterBufferAndPrint [21:35:05]line Счет N : (3)335613 [21:35:05]line ИНН: 02508201610067 [21:35:05]line Контрольно-Кассовый Чек [21:35:05]line ПРОДАЖА [21:35:05]line Товар: 46214621 [21:35:06]line Р/ж mentos тутти-фрутти ролл 16г [21:35:06]line 1.000 * 49.00 [21:35:06]line = 49.00 [21:35:06]line НДС 12% НСП 1% [21:35:06]line > о реализуемом товаре [21:35:06]line Товар: 48742245 [21:35:06]line Сигареты Parliament Silver Blue [21:35:06]line 1.000 * 160.00 [21:35:06]line = 160.00 [21:35:06]line НДС 12% НСП 1% [21:35:06]line > о реализуемом товаре [21:35:06]line ИТОГО: 209.00 [21:35:06]line НСП 1% : 1.85 [21:35:06]line НДС 12% : 22.19 [21:35:06]line Наличными: 209.00 [21:35:06]line Безнал.: 0.00 [21:35:06]line Место: АЗС № 101 "Партнер Нефть" [21:35:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:35:06]line СНО: Общий режим [21:35:06]line Чек 257 31.10.2024 21:35 [21:35:06]line Смена: 557 ФФД: 1.0 [21:35:06]line ЗНМ: 0300000081 [21:35:06]line РНМ: 0000000000091631 [21:35:06]line Версия ККМ: 001 [21:35:06]line ФМ: 0000000000874669 [21:35:06]line ФД: 139780 [21:35:06]line ФПД: 204885425757022 [21:35:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T213506&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139780&fm=204885425757022&tin=02508201610067®Number=0000000000091631&sum=20900 [21:35:06]line 0 [21:35:06]OFD Sender: Processing packet 139780 [packets to send 34, broken 33] [21:35:06]ProducePacketName [21:35:06]name=ofd_packets/00139780 [21:35:06]OFD Sender: To server: pG, [21:35:06]CommunicateWithHost lk.salyk.kg:30040 [21:35:06]ConnectInit lk.salyk.kg [21:35:06]written 0, free lines is 4095 [21:35:06]Connected sock=10 [21:35: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 9D 01 00 00 A4 9D 95 01 2E BD 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 0A F8 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 22 02 00 35 04 06 00 BA 57 9B 05 9B 5E 5E 96 8D FF A4 7C 72 11 [21:35: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 59 F4 47 00 EC 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 04 22 02 00 F4 03 04 00 B7 A3 23 67 B6 04 01 00 00 B0 59 E8 83 21 6C B9 0E [21:35:06]CommunicateWithHost err = 0 [21:35:06]CheckOFDResponse [21:35:06]1017 (14) - 77093643461234 [21:35:06]1041 (16) - 0000000000874669 [21:35:06]1040 (4) - 139780 [21:35:06]1012 (4) - 31.10.2024 15:35 [21:35:06]1206 (1) - 0 [21:35:06]OFD Sender: Remove packet 139780 [21:35:06]ProducePacketName [21:35:06]name=ofd_packets/00139780 [21:35:06]NVStorageDeleteData [21:35:06]Write to MH i2c: 01 00 00 82 27 A9 [21:35:06]Write i2c OK [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: 01 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: 01 07 00 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: 01 07 00 82 27 00 00 00 00 00 8C 0C 48 [21:35:06]RasterBufferAndPrint [21:35:06]line [21:35:06]line [21:35:06]line [21:35:06]line [21:35:06]line [21:35:06]written 0, free lines is 3221 [21:35:06]MH_Cut [21:35:06]Write to MH i2c: D1 01 00 89 27 01 82 [21:35:06]Write i2c OK [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: D1 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: D1 01 00 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: D1 01 00 89 27 00 81 [21:35:06]Write to MH i2c: 01 00 00 8A 27 B1 [21:35:06]Write i2c OK [21:35:06]MH_I2C_Read... [21:35:06]OFD Sender: No OFD packet to send [21:35:07]*** Cut start [21:35:07]*** Partial cut [21:35:07]*** CUTSNS_PIN = 1 [21:35:07]*** CUTSNS_PIN = 0 [21:35:07]*** Brake cut motor [21:35:07]Read from MH i2c: 01 [21:35:07]MH_I2C_Read... [21:35:07]*** Stop cut motor [21:35:07]*** Cut end [21:35:07]Read from MH i2c: 01 07 00 [21:35:07]MH_I2C_Read... [21:35:07]Read from MH i2c: 01 07 00 8A 27 00 00 00 00 00 FF 0F C6 [21:35:07]process_action close_receipt done [21:35:07]requested_data is exist [21:35:07]produce_requested_data [21:35:07]requested_item fm.sn is exist - process it [21:35:07]wFMCommunicate request_size=4 [21:35:07]MH_SAM_APDU [21:35:07]CAPDU: 80 11 00 00 [21:35:07]Write to MH i2c: E2 08 00 8B 27 80 11 00 00 00 00 00 00 2C [21:35:07]Write i2c OK [21:35:07]MH_I2C_Read... [21:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:07]Read from MH i2c: E2 [21:35:07]MH_I2C_Read... [21:35:07]Read from MH i2c: E2 17 00 [21:35:07]MH_I2C_Read... [21:35:07]Read from MH i2c: E2 17 00 8B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [21:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:35:07]wFMCommunicate OK [21:35:07]requested_item fd.num is exist - process it [21:35:07]SAM_PROTO_GetFieldsCounters [21:35:07]wFMCommunicate request_size=4 [21:35:07]MH_SAM_APDU [21:35:07]CAPDU: 80 13 00 00 [21:35:07]Write to MH i2c: E2 08 00 8C 27 80 13 00 00 00 00 00 00 2F [21:35:07]Write i2c OK [21:35:07]MH_I2C_Read... [21:35:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:08]Read from MH i2c: E2 [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 62 00 [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 62 00 8C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 04 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [21:35: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 04 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:08]wFMCommunicate OK [21:35:08]SAM_PROTO_GetFieldsCounters done [21:35:08]requested_item shift.num is exist - process it [21:35:08]requested_item shift.opened is exist - process it [21:35:08]req_shift_opened [21:35:08]FM_GetShiftState [21:35:08]SAM_PROTO_GetShiftState [21:35:08]wFMCommunicate request_size=4 [21:35:08]MH_SAM_APDU [21:35:08]CAPDU: 80 13 01 00 [21:35:08]Write to MH i2c: E2 08 00 8D 27 80 13 01 00 00 00 00 00 31 [21:35:08]Write i2c OK [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 [21:35:08]MH_I2C_Read... [21:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:08]Read from MH i2c: E2 0E 00 [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 0E 00 8D 27 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5A [21:35:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:35:08]wFMCommunicate OK [21:35:08]SAM_PROTO_GetShiftState done [21:35:08]FM_GetShiftState done [21:35:08]req_shift_opened done [21:35:08]requested_item shift.open_date is exist - process it [21:35:08]req_shift_open_date [21:35:08]req_shift_open_date done [21:35:08]produce_requested_data done [21:35:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139780,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:35:08]process_action_free close_receipt [21:35:08]json_value_free [21:35:08]json_value_free done [21:35:08]process_json_proto returns [21:35:08]Send response to host [21:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139780,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:35:08]free response buf [21:35:08]execute_script done [21:35:08]execute_script returns [21:35:08]free content buf [21:35:08]Sock 9.Close socket [21:35:08]Sock 9.Thread stoped [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:44]accept exits with 7 [21:41:44]New connection [21:41:44]New thread 3066510692 created [21:41:44]Thread 3066654052 joined [21:41:44]Waiting for new connection... [21:41:44] Sock 7.Parse request [21:41:44]Sock 7.Check first char [21:41:44]Sock 7.First char is OK [21:41:44]request: POST /json_proto HTTP/1.0 [21:41:44]Method: POST [21:41:44]URL: /json_proto [21:41:44]Method is POST - this is cgi request [21:41:44]url: /json_proto [21:41:44]query_string will be loaded in cgi processing [21:41:44]execute_cgi json_proto POST (null) [21:41:44]execute_cgi path=json_proto method=POST [21:41:44]POST find Content-Length [21:41:44]Host: 172.17.50.196:8080 [21:41:44]Content-Length: 1009 [21:41:44]Content-Type: application/json [21:41:44] [21:41:44]POST finish read [21:41:44]Found Content-Length = 1009 [21:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335615", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:44]execute_script... [21:41: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)335615", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:44]POST & json_proto [21:41:44]process_json_proto [21:41:44]json parsed OK: [21:41:44]protocol is kg_v1.0 [21:41:44]action value=close_receipt [21:41:44]process_action close_receipt [21:41:44]cmd_close_receipt [21:41:44]MH_GetDate [21:41:44]Write to MH i2c: F0 00 00 8E 27 A4 [21:41:44]Write i2c OK [21:41:44]MH_I2C_Read... [21:41:44]Read from MH i2c: F0 [21:41:44]MH_I2C_Read... [21:41:44]Read from MH i2c: F0 09 00 [21:41:44]MH_I2C_Read... [21:41:44]Read from MH i2c: F0 09 00 8E 27 00 9B F9 23 67 72 0D 1C 67 CD [21:41:44]GetLastDocTimeStamp 1730410506 [21:41:44]current date 1730410907 [21:41:44]FM_GetShiftState [21:41:44]SAM_PROTO_GetShiftState [21:41:44]wFMCommunicate request_size=4 [21:41:44]MH_SAM_APDU [21:41:44]CAPDU: 80 13 01 00 [21:41:44]Write to MH i2c: E2 08 00 8F 27 80 13 01 00 00 00 00 00 33 [21:41:44]Write i2c OK [21:41:44]MH_I2C_Read... [21:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:44]Read from MH i2c: E2 [21:41:44]MH_I2C_Read... [21:41:44]Read from MH i2c: E2 0E 00 [21:41:44]MH_I2C_Read... [21:41:44]Read from MH i2c: E2 0E 00 8F 27 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5C [21:41:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:41:44]wFMCommunicate OK [21:41:44]SAM_PROTO_GetShiftState done [21:41:44]FM_GetShiftState done [21:41:44]opened in 1730332621 [21:41:44]opened+sec_in_day 1730419021 [21:41:44]quantity*price = 9500 [21:41:44]sum+1 = 9501 [21:41:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160884 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 258 31.10.2024 21:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139781 ФПД: 6538834492396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214147&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139781&fm=6538834492396&tin=02508201610067®Number=0000000000091631&sum=11000 0 [21:41:46]StoreToDocumentArchive [21:41:46]shift 557 fd 139781 [21:41:46]save to /storage/0557/doc_00139781 [21:41:46]save last doc name /storage/0557/doc_00139781 to /storage/kkm_last_doc_name [21:41:46]save OK [21:41:46]Clear old archive folders... [21:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=419 [21:41:46]tlvbuf is 00B0E430 [21:41:46]SAM_PROTO_ClearQueue [21:41:46]wFMCommunicate request_size=4 [21:41:46]MH_SAM_APDU [21:41:46]CAPDU: 80 09 00 00 [21:41:46]Write to MH i2c: E2 08 00 9C 27 80 09 00 00 00 00 00 00 35 [21:41:46]Write i2c OK [21:41:46]MH_I2C_Read... [21:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:46]Read from MH i2c: E2 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 9C 27 00 90 00 37 [21:41:46]RAPDU: 90 00 [21:41:46]wFMCommunicate OK [21:41:46]SAM_PROTO_ClearQueue done [21:41:46]KKMCreateOFDPacket [21:41:46]OFDProtocolAddRootSTLVToBuf [21:41:46]FM_MakeSignedData [21:41:46]FM_MakeSignedData [21:41:46]SAM_PROTO_SignData [21:41:46]wFMCommunicate request_size=4 [21:41:46]MH_SAM_APDU [21:41:46]CAPDU: 80 0D 01 02 [21:41:46]Write to MH i2c: E2 08 00 9D 27 80 0D 01 02 00 00 00 00 3D [21:41:46]Write i2c OK [21:41:46]MH_I2C_Read... [21:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:46]Read from MH i2c: E2 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 9D 27 00 90 00 38 [21:41:46]RAPDU: 90 00 [21:41:46]wFMCommunicate OK [21:41:46]wFMCommunicate request_size=255 [21:41:46]MH_SAM_APDU [21:41:46]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 [21:41:46]Write to MH i2c: E2 02 01 9E 27 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 00 00 4D [21:41:46]Write i2c OK [21:41:46]MH_I2C_Read... [21:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:46]Read from MH i2c: E2 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 9E 27 00 90 00 39 [21:41:46]RAPDU: 90 00 [21:41:46]wFMCommunicate OK [21:41:46]wFMCommunicate request_size=178 [21:41:46]MH_SAM_APDU [21:41:46]CAPDU: 80 0D 02 02 AD 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 9B F9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 22 02 00 35 04 06 00 05 F2 70 E8 3B EC [21:41:46]Write to MH i2c: E2 B5 00 9F 27 80 0D 02 02 AD 00 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 9B F9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 22 02 00 35 04 06 00 05 F2 70 E8 3B EC 00 00 CB [21:41:46]Write i2c OK [21:41:46]MH_I2C_Read... [21:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:46]Read from MH i2c: E2 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 03 00 9F 27 00 90 00 3A [21:41:46]RAPDU: 90 00 [21:41:46]wFMCommunicate OK [21:41:46]wFMCommunicate request_size=4 [21:41:46]MH_SAM_APDU [21:41:46]CAPDU: 80 0D 03 02 [21:41:46]Write to MH i2c: E2 08 00 A0 27 80 0D 03 02 00 00 00 00 42 [21:41:46]Write i2c OK [21:41:46]MH_I2C_Read... [21:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:46]Read from MH i2c: E2 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 0B 00 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 0B 00 A0 27 00 50 71 B1 A7 AC 43 87 6B 90 00 3D [21:41:46]RAPDU: 50 71 B1 A7 AC 43 87 6B 90 00 [21:41:46]wFMCommunicate OK [21:41:46]SAM_PROTO_SignData done [21:41:46]FM_MakeSignedData done [21:41:46]CreateOFDProtocolMessage [21:41:46]wFMCommunicate request_size=4 [21:41:46]MH_SAM_APDU [21:41:46]CAPDU: 80 11 00 00 [21:41:46]Write to MH i2c: E2 08 00 A1 27 80 11 00 00 00 00 00 00 42 [21:41:46]Write i2c OK [21:41:46]MH_I2C_Read... [21:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:46]Read from MH i2c: E2 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 17 00 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: E2 17 00 A1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [21:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:41:46]wFMCommunicate OK [21:41:46]CreateOFDProtocolMessage done [21:41:46]OFDSenderStorePacket 139781 [21:41:46]StoreOFDPacket docnum=139781 [21:41: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 B7 01 00 00 72 37 AF 01 B4 8E 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 9B F9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 22 02 00 35 04 06 00 05 F2 70 E8 3B EC 50 71 B1 A7 AC 43 87 6B [21:41:46]CheckFolder [21:41:46]dirname=/storage/ofd_packets [21:41:46]CheckFolder done [21:41:46]ProducePacketName [21:41:46]name=ofd_packets/00139781 [21:41:46]NVStorageSaveData ofd_packets/00139781 [21:41:46]File name is /storage/ofd_packets/00139781 [21:41:46]Write 469 bytes [21:41:46]NVStorageSaveData done [21:41:46]OFDSenderStorePacket done [21:41:46]KKMCreateOFDPacket done [21:41:46]NVStorageSaveData kkm_last_timestamp [21:41:46]File name is /storage/kkm_last_timestamp [21:41:46]Write 4 bytes [21:41:46]NVStorageSaveData done [21:41:46]ExternCall_PrintAddStr [21:41:46]wPrintStart [21:41:46]Write to MH i2c: 01 00 00 A2 27 C9 [21:41:46]Write i2c OK [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: 01 [21:41:46]MH_I2C_Read... [21:41:46]Read from MH i2c: 01 07 00 [21:41:47]MH_I2C_Read... [21:41:47]OFD Sender: Processing packet 139781 [packets to send 34, broken 33] [21:41:47]ProducePacketName [21:41:47]name=ofd_packets/00139781 [21:41:47]Read from MH i2c: 01 07 00 A2 27 00 00 00 00 00 FF 0F DE [21:41:47]RasterBufferAndPrint [21:41:47]line Счет N : (3)335615 [21:41:47]line ИНН: 02508201610067 [21:41:47]line Контрольно-Кассовый Чек [21:41:47]line ПРОДАЖА [21:41:47]line Товар: 4700000480364 [21:41:47]line Напиток энерг Nitro экзотик 0.45 ж/б [21:41:47]line 1.000 * 95.00 [21:41:47]line = 95.00 [21:41:47]line НДС 12% НСП 1% [21:41:47]line > о реализуемом товаре [21:41:47]line Товар: 4700000160884 [21:41:47]line Снек Курут индивидуальный [21:41:47]line 1.000 * 15.00 [21:41:47]line = 15.00 [21:41:47]line НДС 12% НСП 1% [21:41:47]line > о реализуемом товаре [21:41:47]line ИТОГО: 110.00 [21:41:47]line НСП 1% : 0.97 [21:41:47]line НДС 12% : 11.68 [21:41:47]line Наличными: 110.00 [21:41:47]line Безнал.: 0.00 [21:41:47]line Место: АЗС № 101 "Партнер Нефть" [21:41:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:41:47]line СНО: Общий режим [21:41:47]line Чек 258 31.10.2024 21:41 [21:41:47]line Смена: 557 ФФД: 1.0 [21:41:47]line ЗНМ: 0300000081 [21:41:47]line РНМ: 0000000000091631 [21:41:47]line Версия ККМ: 001 [21:41:47]line ФМ: 0000000000874669 [21:41:47]line ФД: 139781 [21:41:47]line ФПД: 6538834492396 [21:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214147&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139781&fm=6538834492396&tin=02508201610067®Number=0000000000091631&sum=11000 [21:41:47]line 0 [21:41:47]OFD Sender: To server: pG, [21:41:47]CommunicateWithHost lk.salyk.kg:30040 [21:41:47]ConnectInit lk.salyk.kg [21:41:47]written 0, free lines is 4095 [21:41:47]Connected sock=10 [21:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B7 01 00 00 72 37 AF 01 B4 8E 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 9B F9 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 22 02 00 35 04 06 00 05 F2 70 E8 3B EC 50 71 B1 A7 AC 43 87 6B [21:41: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 32 65 47 00 9F 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 05 22 02 00 F4 03 04 00 48 A5 23 67 B6 04 01 00 00 EE 34 23 3B 30 9F 56 39 [21:41:47]CommunicateWithHost err = 0 [21:41:47]CheckOFDResponse [21:41:47]1017 (14) - 77093643461234 [21:41:47]1041 (16) - 0000000000874669 [21:41:47]1040 (4) - 139781 [21:41:47]1012 (4) - 31.10.2024 15:42 [21:41:47]1206 (1) - 0 [21:41:47]OFD Sender: Remove packet 139781 [21:41:47]ProducePacketName [21:41:47]name=ofd_packets/00139781 [21:41:47]NVStorageDeleteData [21:41:47]Write to MH i2c: 01 00 00 D1 27 F8 [21:41:47]Write i2c OK [21:41:47]MH_I2C_Read... [21:41:47]Read from MH i2c: 01 [21:41:47]MH_I2C_Read... [21:41:47]Read from MH i2c: 01 07 00 [21:41:47]MH_I2C_Read... [21:41:47]Read from MH i2c: 01 07 00 D1 27 00 00 00 00 00 A6 0C B1 [21:41:47]RasterBufferAndPrint [21:41:47]line [21:41:47]line [21:41:47]line [21:41:47]line [21:41:47]line [21:41:47]written 0, free lines is 3244 [21:41:47]MH_Cut [21:41:47]Write to MH i2c: D1 01 00 D8 27 01 D1 [21:41:47]Write i2c OK [21:41:47]MH_I2C_Read... [21:41:47]Read from MH i2c: D1 [21:41:47]MH_I2C_Read... [21:41:47]Read from MH i2c: D1 01 00 [21:41:47]MH_I2C_Read... [21:41:47]Read from MH i2c: D1 01 00 D8 27 00 D0 [21:41:47]Write to MH i2c: 01 00 00 D9 27 00 [21:41:47]Write i2c OK [21:41:47]MH_I2C_Read... [21:41:47]OFD Sender: No OFD packet to send [21:41:48]*** Cut start [21:41:48]*** Partial cut [21:41:48]*** CUTSNS_PIN = 1 [21:41:48]*** CUTSNS_PIN = 0 [21:41:48]*** Brake cut motor [21:41:48]Read from MH i2c: 01 [21:41:48]MH_I2C_Read... [21:41:48]*** Stop cut motor [21:41:48]*** Cut end [21:41:48]Read from MH i2c: 01 07 00 [21:41:48]MH_I2C_Read... [21:41:48]Read from MH i2c: 01 07 00 D9 27 00 00 00 00 00 FF 0F 15 [21:41:48]process_action close_receipt done [21:41:48]requested_data is exist [21:41:48]produce_requested_data [21:41:48]requested_item fm.sn is exist - process it [21:41:48]wFMCommunicate request_size=4 [21:41:48]MH_SAM_APDU [21:41:48]CAPDU: 80 11 00 00 [21:41:48]Write to MH i2c: E2 08 00 DA 27 80 11 00 00 00 00 00 00 7B [21:41:48]Write i2c OK [21:41:48]MH_I2C_Read... [21:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:49]Read from MH i2c: E2 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 17 00 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 17 00 DA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [21:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:41:49]wFMCommunicate OK [21:41:49]requested_item fd.num is exist - process it [21:41:49]SAM_PROTO_GetFieldsCounters [21:41:49]wFMCommunicate request_size=4 [21:41:49]MH_SAM_APDU [21:41:49]CAPDU: 80 13 00 00 [21:41:49]Write to MH i2c: E2 08 00 DB 27 80 13 00 00 00 00 00 00 7E [21:41:49]Write i2c OK [21:41:49]MH_I2C_Read... [21:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:49]Read from MH i2c: E2 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 62 00 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 62 00 DB 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 05 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [21:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 05 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:49]wFMCommunicate OK [21:41:49]SAM_PROTO_GetFieldsCounters done [21:41:49]requested_item shift.num is exist - process it [21:41:49]requested_item shift.opened is exist - process it [21:41:49]req_shift_opened [21:41:49]FM_GetShiftState [21:41:49]SAM_PROTO_GetShiftState [21:41:49]wFMCommunicate request_size=4 [21:41:49]MH_SAM_APDU [21:41:49]CAPDU: 80 13 01 00 [21:41:49]Write to MH i2c: E2 08 00 DC 27 80 13 01 00 00 00 00 00 80 [21:41:49]Write i2c OK [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 [21:41:49]MH_I2C_Read... [21:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:49]Read from MH i2c: E2 0E 00 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: E2 0E 00 DC 27 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A9 [21:41:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:41:49]wFMCommunicate OK [21:41:49]SAM_PROTO_GetShiftState done [21:41:49]FM_GetShiftState done [21:41:49]req_shift_opened done [21:41:49]requested_item shift.open_date is exist - process it [21:41:49]req_shift_open_date [21:41:49]req_shift_open_date done [21:41:49]produce_requested_data done [21:41:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139781,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:41:49]process_action_free close_receipt [21:41:49]json_value_free [21:41:49]json_value_free done [21:41:49]process_json_proto returns [21:41:49]Send response to host [21:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139781,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:41:49]free response buf [21:41:49]execute_script done [21:41:49]execute_script returns [21:41:49]free content buf [21:41:49]Sock 7.Close socket [21:41:49]Sock 7.Thread stoped [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:32]accept exits with 9 [21:47:32]New connection [21:47:32]New thread 3066654052 created [21:47:32]Thread 3066510692 joined [21:47:32]Waiting for new connection... [21:47:32] Sock 9.Parse request [21:47:32]Sock 9.Check first char [21:47:32]Sock 9.First char is OK [21:47:32]request: POST /json_proto HTTP/1.0 [21:47:32]Method: POST [21:47:32]URL: /json_proto [21:47:32]Method is POST - this is cgi request [21:47:32]url: /json_proto [21:47:32]query_string will be loaded in cgi processing [21:47:32]execute_cgi json_proto POST (null) [21:47:32]execute_cgi path=json_proto method=POST [21:47:32]POST find Content-Length [21:47:32]Host: 172.17.50.196:8080 [21:47:32]Content-Length: 1119 [21:47:32]Content-Type: application/json [21:47:32] [21:47:32]POST finish read [21:47:32]Found Content-Length = 1119 [21:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335616", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 241.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:32]execute_script... [21:47: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)335616", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 241.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:32]POST & json_proto [21:47:32]process_json_proto [21:47:32]json parsed OK: [21:47:32]protocol is kg_v1.0 [21:47:32]action value=close_receipt [21:47:32]process_action close_receipt [21:47:32]cmd_close_receipt [21:47:32]MH_GetDate [21:47:32]Write to MH i2c: F0 00 00 DD 27 F3 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: F0 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: F0 09 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: F0 09 00 DD 27 00 F7 FA 23 67 72 0D 1C 67 79 [21:47:32]GetLastDocTimeStamp 1730410907 [21:47:32]current date 1730411255 [21:47:32]FM_GetShiftState [21:47:32]SAM_PROTO_GetShiftState [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 13 01 00 [21:47:32]Write to MH i2c: E2 08 00 DE 27 80 13 01 00 00 00 00 00 82 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 0E 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 0E 00 DE 27 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AB [21:47:32]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:47:32]wFMCommunicate OK [21:47:32]SAM_PROTO_GetShiftState done [21:47:32]FM_GetShiftState done [21:47:32]opened in 1730332621 [21:47:32]opened+sec_in_day 1730419021 [21:47:32]quantity*price = 14100 [21:47:32]sum+1 = 14101 [21:47:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 241.00 НСП 1% : 2.13 НДС 12% : 25.59 Наличными: 0.00 Безнал.: 241.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 259 31.10.2024 21:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139782 ФПД: 122511308566661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214735&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139782&fm=122511308566661&tin=02508201610067®Number=0000000000091631&sum=24100 0 [21:47:34]StoreToDocumentArchive [21:47:34]shift 557 fd 139782 [21:47:34]save to /storage/0557/doc_00139782 [21:47:34]save last doc name /storage/0557/doc_00139782 to /storage/kkm_last_doc_name [21:47:34]save OK [21:47:34]Clear old archive folders... [21:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=411 [21:47:34]tlvbuf is 00B0DB60 [21:47:34]SAM_PROTO_ClearQueue [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 09 00 00 [21:47:34]Write to MH i2c: E2 08 00 EB 27 80 09 00 00 00 00 00 00 84 [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 EB 27 00 90 00 86 [21:47:34]RAPDU: 90 00 [21:47:34]wFMCommunicate OK [21:47:34]SAM_PROTO_ClearQueue done [21:47:34]KKMCreateOFDPacket [21:47:34]OFDProtocolAddRootSTLVToBuf [21:47:34]FM_MakeSignedData [21:47:34]FM_MakeSignedData [21:47:34]SAM_PROTO_SignData [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 0D 01 02 [21:47:34]Write to MH i2c: E2 08 00 EC 27 80 0D 01 02 00 00 00 00 8C [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 EC 27 00 90 00 87 [21:47:34]RAPDU: 90 00 [21:47:34]wFMCommunicate OK [21:47:34]wFMCommunicate request_size=255 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 [21:47:34]Write to MH i2c: E2 02 01 ED 27 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 7D [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 ED 27 00 90 00 88 [21:47:34]RAPDU: 90 00 [21:47:34]wFMCommunicate OK [21:47:34]wFMCommunicate request_size=170 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 0D 02 02 A5 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 F7 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 22 02 00 35 04 06 00 6F 6C 63 07 30 85 [21:47:34]Write to MH i2c: E2 AD 00 EE 27 80 0D 02 02 A5 00 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 F7 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 22 02 00 35 04 06 00 6F 6C 63 07 30 85 00 00 D1 [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 03 00 EE 27 00 90 00 89 [21:47:34]RAPDU: 90 00 [21:47:34]wFMCommunicate OK [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 0D 03 02 [21:47:34]Write to MH i2c: E2 08 00 EF 27 80 0D 03 02 00 00 00 00 91 [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 0B 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 0B 00 EF 27 00 FC 33 D9 52 2A 9A 00 11 90 00 C1 [21:47:34]RAPDU: FC 33 D9 52 2A 9A 00 11 90 00 [21:47:34]wFMCommunicate OK [21:47:34]SAM_PROTO_SignData done [21:47:34]FM_MakeSignedData done [21:47:34]CreateOFDProtocolMessage [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 11 00 00 [21:47:34]Write to MH i2c: E2 08 00 F0 27 80 11 00 00 00 00 00 00 91 [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 17 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 17 00 F0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EC [21:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:47:34]wFMCommunicate OK [21:47:34]CreateOFDProtocolMessage done [21:47:34]OFDSenderStorePacket 139782 [21:47:34]StoreOFDPacket docnum=139782 [21:47: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 AF 01 00 00 45 93 A7 01 0A 90 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 F7 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 22 02 00 35 04 06 00 6F 6C 63 07 30 85 FC 33 D9 52 2A 9A 00 11 [21:47:34]CheckFolder [21:47:34]dirname=/storage/ofd_packets [21:47:34]CheckFolder done [21:47:34]ProducePacketName [21:47:34]name=ofd_packets/00139782 [21:47:34]NVStorageSaveData ofd_packets/00139782 [21:47:34]File name is /storage/ofd_packets/00139782 [21:47:34]Write 461 bytes [21:47:34]NVStorageSaveData done [21:47:34]OFDSenderStorePacket done [21:47:34]KKMCreateOFDPacket done [21:47:34]NVStorageSaveData kkm_last_timestamp [21:47:34]File name is /storage/kkm_last_timestamp [21:47:34]Write 4 bytes [21:47:34]NVStorageSaveData done [21:47:34]ExternCall_PrintAddStr [21:47:34]wPrintStart [21:47:34]Write to MH i2c: 01 00 00 F1 27 18 [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]OFD Sender: Processing packet 139782 [packets to send 34, broken 33] [21:47:35]Read from MH i2c: ProducePacketName [21:47:35]01 name=ofd_packets/00139782 [21:47:35] [21:47:35]MH_I2C_Read... [21:47:35]OFD Sender: To server: pG, [21:47:35]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [21:47:35]01 ConnectInit lk.salyk.kg [21:47:35]07 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: 01 07 00 F1 27 00 00 00 00 00 FF 0F 2D [21:47:35]RasterBufferAndPrint [21:47:35]line Счет N : (3)335616 [21:47:35]line ИНН: 02508201610067 [21:47:35]line Контрольно-Кассовый Чек [21:47:35]line ПРОДАЖА [21:47:35]line Товар: 4870145002155 [21:47:35]line Пиво Большая Кружка Мягкое 0,64л ст/б [21:47:35]line 1.000 * 141.00 [21:47:35]line = 141.00 [21:47:35]line НДС 12% НСП 1% [21:47:35]line > о реализуемом товаре [21:47:35]line Товар: 5449000005489 [21:47:35]line Вода Бонаква 1л б/г [21:47:35]line 2.000 * 50.00 [21:47:35]line = 100.00 [21:47:35]line НДС 12% НСП 1% [21:47:35]line > о реализуемом товаре [21:47:35]line ИТОГО: 241.00 [21:47:35]line НСП 1% : 2.13 [21:47:35]line НДС 12% : 25.59 [21:47:35]line Наличными: 0.00 [21:47:35]line Безнал.: 241.00 [21:47:35]line Место: АЗС № 101 "Партнер Нефть" [21:47:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:47:35]line СНО: Общий режим [21:47:35]line Чек 259 31.10.2024 21:47 [21:47:35]line Смена: 557 ФФД: 1.0 [21:47:35]line ЗНМ: 0300000081 [21:47:35]line РНМ: 0000000000091631 [21:47:35]line Версия ККМ: 001 [21:47:35]line Платежная система: Mbank [21:47:35]line ФМ: 0000000000874669 [21:47:35]line ФД: 139782 [21:47:35]line ФПД: 122511308566661 [21:47:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214735&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139782&fm=122511308566661&tin=02508201610067®Number=0000000000091631&sum=24100 [21:47:35]line 0 [21:47:35]written 0, free lines is 4095 [21:47:35]Connected sock=11 [21:47: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 AF 01 00 00 45 93 A7 01 0A 90 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 F7 FA 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 22 02 00 35 04 06 00 6F 6C 63 07 30 85 FC 33 D9 52 2A 9A 00 11 [21:47: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 5B CA 47 00 BD 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 06 22 02 00 F4 03 04 00 A4 A6 23 67 B6 04 01 00 00 E0 72 A1 52 57 55 66 7C [21:47:35]CommunicateWithHost err = 0 [21:47:35]CheckOFDResponse [21:47:35]1017 (14) - 77093643461234 [21:47:35]1041 (16) - 0000000000874669 [21:47:35]1040 (4) - 139782 [21:47:35]1012 (4) - 31.10.2024 15:47 [21:47:35]1206 (1) - 0 [21:47:35]OFD Sender: Remove packet 139782 [21:47:35]ProducePacketName [21:47:35]name=ofd_packets/00139782 [21:47:35]NVStorageDeleteData [21:47:35]Write to MH i2c: 01 00 00 21 28 49 [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: 01 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: 01 07 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: 01 07 00 21 28 00 00 00 00 00 95 0C F1 [21:47:35]RasterBufferAndPrint [21:47:35]line [21:47:35]line [21:47:35]line [21:47:35]line [21:47:35]line [21:47:35]written 0, free lines is 3227 [21:47:35]MH_Cut [21:47:35]Write to MH i2c: D1 01 00 28 28 01 22 [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: D1 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: D1 01 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: D1 01 00 28 28 00 21 [21:47:35]Write to MH i2c: 01 00 00 29 28 51 [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]OFD Sender: No OFD packet to send [21:47:36]*** Cut start [21:47:36]*** Partial cut [21:47:36]*** CUTSNS_PIN = 1 [21:47:36]*** CUTSNS_PIN = 0 [21:47:36]*** Brake cut motor [21:47:36]Read from MH i2c: 01 [21:47:36]MH_I2C_Read... [21:47:36]*** Stop cut motor [21:47:36]*** Cut end [21:47:36]Read from MH i2c: 01 07 00 [21:47:36]MH_I2C_Read... [21:47:36]Read from MH i2c: 01 07 00 29 28 00 00 00 00 00 FF 0F 66 [21:47:36]process_action close_receipt done [21:47:36]requested_data is exist [21:47:36]produce_requested_data [21:47:36]requested_item fm.sn is exist - process it [21:47:36]wFMCommunicate request_size=4 [21:47:36]MH_SAM_APDU [21:47:36]CAPDU: 80 11 00 00 [21:47:36]Write to MH i2c: E2 08 00 2A 28 80 11 00 00 00 00 00 00 CC [21:47:36]Write i2c OK [21:47:36]MH_I2C_Read... [21:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:36]Read from MH i2c: E2 [21:47:36]MH_I2C_Read... [21:47:36]Read from MH i2c: E2 17 00 [21:47:36]MH_I2C_Read... [21:47:36]Read from MH i2c: E2 17 00 2A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 27 [21:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:47:36]wFMCommunicate OK [21:47:36]requested_item fd.num is exist - process it [21:47:36]SAM_PROTO_GetFieldsCounters [21:47:36]wFMCommunicate request_size=4 [21:47:36]MH_SAM_APDU [21:47:36]CAPDU: 80 13 00 00 [21:47:36]Write to MH i2c: E2 08 00 2B 28 80 13 00 00 00 00 00 00 CF [21:47:36]Write i2c OK [21:47:36]MH_I2C_Read... [21:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:37]Read from MH i2c: E2 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 62 00 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 62 00 2B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 06 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:47: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 06 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:37]wFMCommunicate OK [21:47:37]SAM_PROTO_GetFieldsCounters done [21:47:37]requested_item shift.num is exist - process it [21:47:37]requested_item shift.opened is exist - process it [21:47:37]req_shift_opened [21:47:37]FM_GetShiftState [21:47:37]SAM_PROTO_GetShiftState [21:47:37]wFMCommunicate request_size=4 [21:47:37]MH_SAM_APDU [21:47:37]CAPDU: 80 13 01 00 [21:47:37]Write to MH i2c: E2 08 00 2C 28 80 13 01 00 00 00 00 00 D1 [21:47:37]Write i2c OK [21:47:37]MH_I2C_Read... [21:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:37]Read from MH i2c: E2 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 0E 00 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 0E 00 2C 28 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FA [21:47:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:47:37]wFMCommunicate OK [21:47:37]SAM_PROTO_GetShiftState done [21:47:37]FM_GetShiftState done [21:47:37]req_shift_opened done [21:47:37]requested_item shift.open_date is exist - process it [21:47:37]req_shift_open_date [21:47:37]req_shift_open_date done [21:47:37]produce_requested_data done [21:47:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139782,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:47:37]process_action_free close_receipt [21:47:37]json_value_free [21:47:37]json_value_free done [21:47:37]process_json_proto returns [21:47:37]Send response to host [21:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139782,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:47:37]free response buf [21:47:37]execute_script done [21:47:37]execute_script returns [21:47:37]free content buf [21:47:37]Sock 9.Close socket [21:47:37]Sock 9.Thread stoped [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]accept exits with 7 [21:48:15]New connection [21:48:15]New thread 3066510692 created [21:48:15]Thread 3066654052 joined [21:48:15]Waiting for new connection... [21:48:15] Sock 7.Parse request [21:48:15]Sock 7.Check first char [21:48:15]Sock 7.First char is OK [21:48:15]request: POST /json_proto HTTP/1.0 [21:48:15]Method: POST [21:48:15]URL: /json_proto [21:48:15]Method is POST - this is cgi request [21:48:15]url: /json_proto [21:48:15]query_string will be loaded in cgi processing [21:48:15]execute_cgi json_proto POST (null) [21:48:15]execute_cgi path=json_proto method=POST [21:48:15]POST find Content-Length [21:48:15]Host: 172.17.50.196:8080 [21:48:15]Content-Length: 735 [21:48:15]Content-Type: application/json [21:48:15] [21:48:15]POST finish read [21:48:15]Found Content-Length = 735 [21:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335617", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:15]execute_script... [21:48:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335617", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:15]POST & json_proto [21:48:15]process_json_proto [21:48:15]json parsed OK: [21:48:15]protocol is kg_v1.0 [21:48:15]action value=close_receipt [21:48:15]process_action close_receipt [21:48:15]cmd_close_receipt [21:48:15]MH_GetDate [21:48:15]Write to MH i2c: F0 00 00 2D 28 44 [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: F0 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: F0 09 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: F0 09 00 2D 28 00 22 FB 23 67 72 0D 1C 67 F6 [21:48:15]GetLastDocTimeStamp 1730411255 [21:48:15]current date 1730411298 [21:48:15]FM_GetShiftState [21:48:15]SAM_PROTO_GetShiftState [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 13 01 00 [21:48:15]Write to MH i2c: E2 08 00 2E 28 80 13 01 00 00 00 00 00 D3 [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 0E 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 0E 00 2E 28 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FC [21:48:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:48:15]wFMCommunicate OK [21:48:15]SAM_PROTO_GetShiftState done [21:48:15]FM_GetShiftState done [21:48:15]opened in 1730332621 [21:48:15]opened+sec_in_day 1730419021 [21:48:15]quantity*price = 2000 [21:48:15]sum+1 = 2001 [21:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 0.00 Безнал.: 20.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 260 31.10.2024 21:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139783 ФПД: 137883318711885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214818&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139783&fm=137883318711885&tin=02508201610067®Number=0000000000091631&sum=2000 0 [21:48:16]StoreToDocumentArchive [21:48:16]shift 557 fd 139783 [21:48:16]save to /storage/0557/doc_00139783 [21:48:16]save last doc name /storage/0557/doc_00139783 to /storage/kkm_last_doc_name [21:48:16]save OK [21:48:16]Clear old archive folders... [21:48:16]ProcessDocumentItem done err = 0, tmpTLVsize=267 [21:48:16]tlvbuf is B6F0FBD0 [21:48:16]SAM_PROTO_ClearQueue [21:48:16]wFMCommunicate request_size=4 [21:48:16]MH_SAM_APDU [21:48:16]CAPDU: 80 09 00 00 [21:48:16]Write to MH i2c: E2 08 00 3B 28 80 09 00 00 00 00 00 00 D5 [21:48:16]Write i2c OK [21:48:16]MH_I2C_Read... [21:48:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:16]Read from MH i2c: E2 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 03 00 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 03 00 3B 28 00 90 00 D7 [21:48:16]RAPDU: 90 00 [21:48:16]wFMCommunicate OK [21:48:16]SAM_PROTO_ClearQueue done [21:48:16]KKMCreateOFDPacket [21:48:16]OFDProtocolAddRootSTLVToBuf [21:48:16]FM_MakeSignedData [21:48:16]FM_MakeSignedData [21:48:16]SAM_PROTO_SignData [21:48:16]wFMCommunicate request_size=4 [21:48:16]MH_SAM_APDU [21:48:16]CAPDU: 80 0D 01 02 [21:48:16]Write to MH i2c: E2 08 00 3C 28 80 0D 01 02 00 00 00 00 DD [21:48:16]Write i2c OK [21:48:16]MH_I2C_Read... [21:48:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:16]Read from MH i2c: E2 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 03 00 [21:48:16]MH_I2C_Read... [21:48:16]Read from MH i2c: E2 03 00 3C 28 00 90 00 D8 [21:48:16]RAPDU: 90 00 [21:48:16]wFMCommunicate OK [21:48:16]wFMCommunicate request_size=255 [21:48:16]MH_SAM_APDU [21:48:16]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 07 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 22 FB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [21:48:16]Write to MH i2c: E2 02 01 3D 28 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 07 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 22 FB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 6C [21:48:16]Write i2c OK [21:48:16]MH_I2C_Read... [21:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:17]Read from MH i2c: E2 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 03 00 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 03 00 3D 28 00 90 00 D9 [21:48:17]RAPDU: 90 00 [21:48:17]wFMCommunicate OK [21:48:17]wFMCommunicate request_size=26 [21:48:17]MH_SAM_APDU [21:48:17]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 07 22 02 00 35 04 06 00 7D 67 76 3B 76 4D [21:48:17]Write to MH i2c: E2 1D 00 3E 28 80 0D 02 02 15 00 36 36 39 10 04 04 00 07 22 02 00 35 04 06 00 7D 67 76 3B 76 4D 00 00 89 [21:48:17]Write i2c OK [21:48:17]MH_I2C_Read... [21:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:17]Read from MH i2c: E2 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 03 00 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 03 00 3E 28 00 90 00 DA [21:48:17]RAPDU: 90 00 [21:48:17]wFMCommunicate OK [21:48:17]wFMCommunicate request_size=4 [21:48:17]MH_SAM_APDU [21:48:17]CAPDU: 80 0D 03 02 [21:48:17]Write to MH i2c: E2 08 00 3F 28 80 0D 03 02 00 00 00 00 E2 [21:48:17]Write i2c OK [21:48:17]MH_I2C_Read... [21:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:17]Read from MH i2c: E2 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 0B 00 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 0B 00 3F 28 00 1B D3 CC 6A F2 42 2A 96 90 00 FB [21:48:17]RAPDU: 1B D3 CC 6A F2 42 2A 96 90 00 [21:48:17]wFMCommunicate OK [21:48:17]SAM_PROTO_SignData done [21:48:17]FM_MakeSignedData done [21:48:17]CreateOFDProtocolMessage [21:48:17]wFMCommunicate request_size=4 [21:48:17]MH_SAM_APDU [21:48:17]CAPDU: 80 11 00 00 [21:48:17]Write to MH i2c: E2 08 00 40 28 80 11 00 00 00 00 00 00 E2 [21:48:17]Write i2c OK [21:48:17]MH_I2C_Read... [21:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:17]Read from MH i2c: E2 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 17 00 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: E2 17 00 40 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [21:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:48:17]wFMCommunicate OK [21:48:17]CreateOFDProtocolMessage done [21:48:17]OFDSenderStorePacket 139783 [21:48:17]StoreOFDPacket docnum=139783 [21:48: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 1F 01 00 00 15 EC 17 01 A3 55 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 07 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 22 FB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 07 22 02 00 35 04 06 00 7D 67 76 3B 76 4D 1B D3 CC 6A F2 42 2A 96 [21:48:17]CheckFolder [21:48:17]dirname=/storage/ofd_packets [21:48:17]CheckFolder done [21:48:17]ProducePacketName [21:48:17]name=ofd_packets/00139783 [21:48:17]NVStorageSaveData ofd_packets/00139783 [21:48:17]File name is /storage/ofd_packets/00139783 [21:48:17]Write 317 bytes [21:48:17]NVStorageSaveData done [21:48:17]OFDSenderStorePacket done [21:48:17]KKMCreateOFDPacket done [21:48:17]NVStorageSaveData kkm_last_timestamp [21:48:17]File name is /storage/kkm_last_timestamp [21:48:17]Write 4 bytes [21:48:17]NVStorageSaveData done [21:48:17]ExternCall_PrintAddStr [21:48:17]wPrintStart [21:48:17]Write to MH i2c: 01 00 00 41 28 69 [21:48:17]Write i2c OK [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: 01 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: 01 07 00 [21:48:17]MH_I2C_Read... [21:48:17]Read from MH i2c: 01 07 00 41 28 00 00 00 00 00 FF 0F 7E [21:48:17]RasterBufferAndPrint [21:48:17]line Счет N : (3)335617 [21:48:17]line ИНН: 02508201610067 [21:48:17]line Контрольно-Кассовый Чек [21:48:17]line ПРОДАЖА [21:48:17]line Товар: 46231529 [21:48:17]line Mentos ПФ Арбуз 6*100*2 [21:48:17]line 2.000 * 10.00 [21:48:17]line = 20.00 [21:48:17]line НДС 12% НСП 1% [21:48:17]line > о реализуемом товаре [21:48:17]line ИТОГО: 20.00 [21:48:17]line НСП 1% : 0.18 [21:48:17]line НДС 12% : 2.12 [21:48:17]line Наличными: 0.00 [21:48:17]line Безнал.: 20.00 [21:48:17]line Место: АЗС № 101 "Партнер Нефть" [21:48:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:48:17]line СНО: Общий режим [21:48:17]line Чек 260 31.10.2024 21:48 [21:48:17]line Смена: 557 ФФД: 1.0 [21:48:17]line ЗНМ: 0300000081 [21:48:17]line РНМ: 0000000000091631 [21:48:17]line Версия ККМ: 001 [21:48:17]line Платежная система: Mbank [21:48:17]line ФМ: 0000000000874669 [21:48:17]line ФД: 139783 [21:48:17]line ФПД: 137883318711885 [21:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T214818&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139783&fm=137883318711885&tin=02508201610067®Number=0000000000091631&sum=2000 [21:48:17]line 0 [21:48:17]OFD Sender: Processing packet 139783 [packets to send 34, broken 33] [21:48:17]ProducePacketName [21:48:17]name=ofd_packets/00139783 [21:48:17]OFD Sender: To server: pG, [21:48:17]CommunicateWithHost lk.salyk.kg:30040 [21:48:17]ConnectInit lk.salyk.kg [21:48:17]written 0, free lines is 4095 [21:48:17]Connected sock=10 [21:48:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1F 01 00 00 15 EC 17 01 A3 55 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 07 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 22 FB 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 07 22 02 00 35 04 06 00 7D 67 76 3B 76 4D 1B D3 CC 6A F2 42 2A 96 [21:48: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 A5 AB 47 00 66 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 07 22 02 00 F4 03 04 00 CE A6 23 67 B6 04 01 00 00 79 5F 36 C3 27 95 A1 3A [21:48:17]CommunicateWithHost err = 0 [21:48:17]CheckOFDResponse [21:48:17]1017 (14) - 77093643461234 [21:48:17]1041 (16) - 0000000000874669 [21:48:17]1040 (4) - 139783 [21:48:17]1012 (4) - 31.10.2024 15:48 [21:48:17]1206 (1) - 0 [21:48:17]OFD Sender: Remove packet 139783 [21:48:17]ProducePacketName [21:48:17]name=ofd_packets/00139783 [21:48:17]NVStorageDeleteData [21:48:18]Write to MH i2c: 01 00 00 6A 28 92 [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: 01 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: 01 07 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: 01 07 00 6A 28 00 00 00 00 00 06 0D AC [21:48:18]RasterBufferAndPrint [21:48:18]line [21:48:18]line [21:48:18]line [21:48:18]line [21:48:18]line [21:48:18]written 0, free lines is 3340 [21:48:18]MH_Cut [21:48:18]Write to MH i2c: D1 01 00 71 28 01 6B [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: D1 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: D1 01 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: D1 01 00 71 28 00 6A [21:48:18]Write to MH i2c: 01 00 00 72 28 9A [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]OFD Sender: No OFD packet to send [21:48:18]*** Cut start [21:48:18]*** Partial cut [21:48:18]*** CUTSNS_PIN = 1 [21:48:18]*** CUTSNS_PIN = 0 [21:48:19]*** Brake cut motor [21:48:19]Read from MH i2c: 01 [21:48:19]MH_I2C_Read... [21:48:19]*** Stop cut motor [21:48:19]*** Cut end [21:48:19]Read from MH i2c: 01 07 00 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: 01 07 00 72 28 00 00 00 00 00 FF 0F AF [21:48:19]process_action close_receipt done [21:48:19]requested_data is exist [21:48:19]produce_requested_data [21:48:19]requested_item fm.sn is exist - process it [21:48:19]wFMCommunicate request_size=4 [21:48:19]MH_SAM_APDU [21:48:19]CAPDU: 80 11 00 00 [21:48:19]Write to MH i2c: E2 08 00 73 28 80 11 00 00 00 00 00 00 15 [21:48:19]Write i2c OK [21:48:19]MH_I2C_Read... [21:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:19]Read from MH i2c: E2 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 17 00 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 17 00 73 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 70 [21:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:48:19]wFMCommunicate OK [21:48:19]requested_item fd.num is exist - process it [21:48:19]SAM_PROTO_GetFieldsCounters [21:48:19]wFMCommunicate request_size=4 [21:48:19]MH_SAM_APDU [21:48:19]CAPDU: 80 13 00 00 [21:48:19]Write to MH i2c: E2 08 00 74 28 80 13 00 00 00 00 00 00 18 [21:48:19]Write i2c OK [21:48:19]MH_I2C_Read... [21:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:19]Read from MH i2c: E2 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 62 00 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 62 00 74 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 07 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [21:48:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 07 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:19]wFMCommunicate OK [21:48:19]SAM_PROTO_GetFieldsCounters done [21:48:19]requested_item shift.num is exist - process it [21:48:19]requested_item shift.opened is exist - process it [21:48:19]req_shift_opened [21:48:19]FM_GetShiftState [21:48:19]SAM_PROTO_GetShiftState [21:48:19]wFMCommunicate request_size=4 [21:48:19]MH_SAM_APDU [21:48:19]CAPDU: 80 13 01 00 [21:48:19]Write to MH i2c: E2 08 00 75 28 80 13 01 00 00 00 00 00 1A [21:48:19]Write i2c OK [21:48:19]MH_I2C_Read... [21:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:19]Read from MH i2c: E2 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 0E 00 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 0E 00 75 28 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 43 [21:48:19]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [21:48:19]wFMCommunicate OK [21:48:19]SAM_PROTO_GetShiftState done [21:48:19]FM_GetShiftState done [21:48:19]req_shift_opened done [21:48:19]requested_item shift.open_date is exist - process it [21:48:19]req_shift_open_date [21:48:19]req_shift_open_date done [21:48:19]produce_requested_data done [21:48:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139783,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [21:48:19]process_action_free close_receipt [21:48:19]json_value_free [21:48:19]json_value_free done [21:48:19]process_json_proto returns [21:48:19]Send response to host [21:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139783,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [21:48:19]free response buf [21:48:19]execute_script done [21:48:19]execute_script returns [21:48:19]free content buf [21:48:19]Sock 7.Close socket [21:48:19]Sock 7.Thread stoped [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:04:59]accept exits with 9 [22:04:59]New connection [22:04:59]New thread 3066654052 created [22:04:59]Thread 3066510692 joined [22:04:59]Waiting for new connection... [22:04:59] Sock 9.Parse request [22:04:59]Sock 9.Check first char [22:04:59]Sock 9.First char is OK [22:04:59]request: POST /json_proto HTTP/1.0 [22:04:59]Method: POST [22:04:59]URL: /json_proto [22:04:59]Method is POST - this is cgi request [22:04:59]url: /json_proto [22:04:59]query_string will be loaded in cgi processing [22:04:59]execute_cgi json_proto POST (null) [22:04:59]execute_cgi path=json_proto method=POST [22:04:59]POST find Content-Length [22:04:59]Host: 172.17.50.196:8080 [22:04:59]Content-Length: 632 [22:04:59]Content-Type: application/json [22:04:59] [22:04:59]POST finish read [22:04:59]Found Content-Length = 632 [22:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335618", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:59]execute_script... [22:04: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)335618", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:59]POST & json_proto [22:04:59]process_json_proto [22:04:59]json parsed OK: [22:04:59]protocol is kg_v1.0 [22:04:59]action value=close_receipt [22:04:59]process_action close_receipt [22:04:59]cmd_close_receipt [22:04:59]MH_GetDate [22:04:59]Write to MH i2c: F0 00 00 76 28 8D [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: F0 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: F0 09 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: F0 09 00 76 28 00 0E FF 23 67 72 0D 1C 67 2F [22:04:59]GetLastDocTimeStamp 1730411298 [22:04:59]current date 1730412302 [22:04:59]FM_GetShiftState [22:04:59]SAM_PROTO_GetShiftState [22:04:59]wFMCommunicate request_size=4 [22:04:59]MH_SAM_APDU [22:04:59]CAPDU: 80 13 01 00 [22:04:59]Write to MH i2c: E2 08 00 77 28 80 13 01 00 00 00 00 00 1C [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:59]Read from MH i2c: E2 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 0E 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 0E 00 77 28 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 45 [22:04:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:04:59]wFMCommunicate OK [22:04:59]SAM_PROTO_GetShiftState done [22:04:59]FM_GetShiftState done [22:04:59]opened in 1730332621 [22:04:59]opened+sec_in_day 1730419021 [22:04:59]quantity*price = 4000 [22:04:59]sum+1 = 4001 [22:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 261 31.10.2024 22:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139784 ФПД: 219187926909904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220502&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139784&fm=219187926909904&tin=02508201610067®Number=0000000000091631&sum=4000 0 [22:05:00]StoreToDocumentArchive [22:05:00]shift 557 fd 139784 [22:05:00]save to /storage/0557/doc_00139784 [22:05:00]save last doc name /storage/0557/doc_00139784 to /storage/kkm_last_doc_name [22:05:00]save OK [22:05:00]Clear old archive folders... [22:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:05:00]tlvbuf is 00A86C70 [22:05:00]SAM_PROTO_ClearQueue [22:05:00]wFMCommunicate request_size=4 [22:05:00]MH_SAM_APDU [22:05:00]CAPDU: 80 09 00 00 [22:05:00]Write to MH i2c: E2 08 00 84 28 80 09 00 00 00 00 00 00 1E [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:00]Read from MH i2c: E2 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: E2 03 00 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: E2 03 00 84 28 00 90 00 20 [22:05:00]RAPDU: 90 00 [22:05:00]wFMCommunicate OK [22:05:00]SAM_PROTO_ClearQueue done [22:05:00]KKMCreateOFDPacket [22:05:00]OFDProtocolAddRootSTLVToBuf [22:05:00]FM_MakeSignedData [22:05:00]FM_MakeSignedData [22:05:00]SAM_PROTO_SignData [22:05:00]wFMCommunicate request_size=4 [22:05:00]MH_SAM_APDU [22:05:00]CAPDU: 80 0D 01 02 [22:05:00]Write to MH i2c: E2 08 00 85 28 80 0D 01 02 00 00 00 00 26 [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:00]Read from MH i2c: E2 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: E2 03 00 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: E2 03 00 85 28 00 90 00 21 [22:05:00]RAPDU: 90 00 [22:05:00]wFMCommunicate OK [22:05:00]wFMCommunicate request_size=255 [22:05:00]MH_SAM_APDU [22:05:00]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0E FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:05:00]Write to MH i2c: E2 02 01 86 28 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0E FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 D2 [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:01]Read from MH i2c: E2 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 86 28 00 90 00 22 [22:05:01]RAPDU: 90 00 [22:05:01]wFMCommunicate OK [22:05:01]wFMCommunicate request_size=30 [22:05:01]MH_SAM_APDU [22:05:01]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 08 22 02 00 35 04 06 00 C7 59 AA 85 C3 D0 [22:05:01]Write to MH i2c: E2 21 00 87 28 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 08 22 02 00 35 04 06 00 C7 59 AA 85 C3 D0 00 00 38 [22:05:01]Write i2c OK [22:05:01]MH_I2C_Read... [22:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:01]Read from MH i2c: E2 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 87 28 00 90 00 23 [22:05:01]RAPDU: 90 00 [22:05:01]wFMCommunicate OK [22:05:01]wFMCommunicate request_size=4 [22:05:01]MH_SAM_APDU [22:05:01]CAPDU: 80 0D 03 02 [22:05:01]Write to MH i2c: E2 08 00 88 28 80 0D 03 02 00 00 00 00 2B [22:05:01]Write i2c OK [22:05:01]MH_I2C_Read... [22:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:01]Read from MH i2c: E2 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 0B 00 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 0B 00 88 28 00 0E 7A 76 AB D8 6A 75 8F 90 00 1B [22:05:01]RAPDU: 0E 7A 76 AB D8 6A 75 8F 90 00 [22:05:01]wFMCommunicate OK [22:05:01]SAM_PROTO_SignData done [22:05:01]FM_MakeSignedData done [22:05:01]CreateOFDProtocolMessage [22:05:01]wFMCommunicate request_size=4 [22:05:01]MH_SAM_APDU [22:05:01]CAPDU: 80 11 00 00 [22:05:01]Write to MH i2c: E2 08 00 89 28 80 11 00 00 00 00 00 00 2B [22:05:01]Write i2c OK [22:05:01]MH_I2C_Read... [22:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:01]Read from MH i2c: E2 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 17 00 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 17 00 89 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 86 [22:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:05:01]wFMCommunicate OK [22:05:01]CreateOFDProtocolMessage done [22:05:01]OFDSenderStorePacket 139784 [22:05:01]StoreOFDPacket docnum=139784 [22:05: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 23 01 00 00 40 D9 1B 01 23 F6 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0E FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 08 22 02 00 35 04 06 00 C7 59 AA 85 C3 D0 0E 7A 76 AB D8 6A 75 8F [22:05:01]CheckFolder [22:05:01]dirname=/storage/ofd_packets [22:05:01]CheckFolder done [22:05:01]ProducePacketName [22:05:01]name=ofd_packets/00139784 [22:05:01]NVStorageSaveData ofd_packets/00139784 [22:05:01]File name is /storage/ofd_packets/00139784 [22:05:01]Write 321 bytes [22:05:01]NVStorageSaveData done [22:05:01]OFDSenderStorePacket done [22:05:01]KKMCreateOFDPacket done [22:05:01]NVStorageSaveData kkm_last_timestamp [22:05:01]File name is /storage/kkm_last_timestamp [22:05:01]Write 4 bytes [22:05:01]NVStorageSaveData done [22:05:01]ExternCall_PrintAddStr [22:05:01]wPrintStart [22:05:01]Write to MH i2c: 01 00 00 8A 28 B2 [22:05:01]Write i2c OK [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: 01 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: 01 07 00 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: 01 07 00 8A 28 00 00 00 00 00 FF 0F C7 [22:05:01]RasterBufferAndPrint [22:05:01]line Счет N : (3)335618 [22:05:01]line ИНН: 02508201610067 [22:05:01]line Контрольно-Кассовый Чек [22:05:01]line ПРОДАЖА [22:05:01]line Товар: 4700000160211 [22:05:01]line Вода Легенда 0,5л [22:05:01]line 1.000 * 40.00 [22:05:01]line = 40.00 [22:05:01]line НДС 12% НСП 1% [22:05:01]line > о реализуемом товаре [22:05:01]line ИТОГО: 40.00 [22:05:01]line НСП 1% : 0.35 [22:05:01]line НДС 12% : 4.25 [22:05:01]line Наличными: 40.00 [22:05:01]line Безнал.: 0.00 [22:05:01]line Место: АЗС № 101 "Партнер Нефть" [22:05:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:05:01]line СНО: Общий режим [22:05:01]line Чек 261 31.10.2024 22:05 [22:05:01]line Смена: 557 ФФД: 1.0 [22:05:01]line ЗНМ: 0300000081 [22:05:01]line РНМ: 0000000000091631 [22:05:01]line Версия ККМ: 001 [22:05:01]line ФМ: 0000000000874669 [22:05:01]line ФД: 139784 [22:05:01]line ФПД: 219187926909904 [22:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220502&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139784&fm=219187926909904&tin=02508201610067®Number=0000000000091631&sum=4000 [22:05:01]OFD Sender: Processing packet 139784 [packets to send 34, broken 33] [22:05:01]ProducePacketName [22:05:01]name=ofd_packets/00139784 [22:05:01]OFD Sender: To server: pG, [22:05:01]CommunicateWithHost lk.salyk.kg:30040 [22:05:01]ConnectInit lk.salyk.kg [22:05:01]line 0 [22:05:01]written 0, free lines is 4095 [22:05:01]Connected sock=10 [22:05: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 23 01 00 00 40 D9 1B 01 23 F6 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0E FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 08 22 02 00 35 04 06 00 C7 59 AA 85 C3 D0 0E 7A 76 AB D8 6A 75 8F [22:05: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 3E FA 47 00 E5 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 08 22 02 00 F4 03 04 00 BA AA 23 67 B6 04 01 00 00 1C 9B F2 53 60 92 B7 52 [22:05:01]CommunicateWithHost err = 0 [22:05:01]CheckOFDResponse [22:05:01]1017 (14) - 77093643461234 [22:05:01]1041 (16) - 0000000000874669 [22:05:01]1040 (4) - 139784 [22:05:01]1012 (4) - 31.10.2024 16:05 [22:05:01]1206 (1) - 0 [22:05:01]OFD Sender: Remove packet 139784 [22:05:01]ProducePacketName [22:05:01]name=ofd_packets/00139784 [22:05:01]NVStorageDeleteData [22:05:02]Write to MH i2c: 01 00 00 B2 28 DA [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 07 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 07 00 B2 28 00 00 00 00 00 07 0D F5 [22:05:02]RasterBufferAndPrint [22:05:02]line [22:05:02]line [22:05:02]line [22:05:02]line [22:05:02]line [22:05:02]written 0, free lines is 3341 [22:05:02]MH_Cut [22:05:02]Write to MH i2c: D1 01 00 B9 28 01 B3 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: D1 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: D1 01 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: D1 01 00 B9 28 00 B2 [22:05:02]Write to MH i2c: 01 00 00 BA 28 E2 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]OFD Sender: No OFD packet to send [22:05:02]*** Cut start [22:05:02]*** Partial cut [22:05:02]*** CUTSNS_PIN = 1 [22:05:02]*** CUTSNS_PIN = 0 [22:05:02]*** Brake cut motor [22:05:03]Read from MH i2c: 01 [22:05:03]MH_I2C_Read... [22:05:03]*** Stop cut motor [22:05:03]*** Cut end [22:05:03]Read from MH i2c: 01 07 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: 01 07 00 BA 28 00 00 00 00 00 FF 0F F7 [22:05:03]process_action close_receipt done [22:05:03]requested_data is exist [22:05:03]produce_requested_data [22:05:03]requested_item fm.sn is exist - process it [22:05:03]wFMCommunicate request_size=4 [22:05:03]MH_SAM_APDU [22:05:03]CAPDU: 80 11 00 00 [22:05:03]Write to MH i2c: E2 08 00 BB 28 80 11 00 00 00 00 00 00 5D [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:03]Read from MH i2c: E2 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 17 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 17 00 BB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B8 [22:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:05:03]wFMCommunicate OK [22:05:03]requested_item fd.num is exist - process it [22:05:03]SAM_PROTO_GetFieldsCounters [22:05:03]wFMCommunicate request_size=4 [22:05:03]MH_SAM_APDU [22:05:03]CAPDU: 80 13 00 00 [22:05:03]Write to MH i2c: E2 08 00 BC 28 80 13 00 00 00 00 00 00 60 [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:03]Read from MH i2c: E2 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 62 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 62 00 BC 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 08 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [22:05: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 08 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:03]wFMCommunicate OK [22:05:03]SAM_PROTO_GetFieldsCounters done [22:05:03]requested_item shift.num is exist - process it [22:05:03]requested_item shift.opened is exist - process it [22:05:03]req_shift_opened [22:05:03]FM_GetShiftState [22:05:03]SAM_PROTO_GetShiftState [22:05:03]wFMCommunicate request_size=4 [22:05:03]MH_SAM_APDU [22:05:03]CAPDU: 80 13 01 00 [22:05:03]Write to MH i2c: E2 08 00 BD 28 80 13 01 00 00 00 00 00 62 [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:03]Read from MH i2c: E2 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 0E 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 0E 00 BD 28 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8B [22:05:03]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:05:03]wFMCommunicate OK [22:05:03]SAM_PROTO_GetShiftState done [22:05:03]FM_GetShiftState done [22:05:03]req_shift_opened done [22:05:03]requested_item shift.open_date is exist - process it [22:05:03]req_shift_open_date [22:05:03]req_shift_open_date done [22:05:03]produce_requested_data done [22:05:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139784,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:05:03]process_action_free close_receipt [22:05:03]json_value_free [22:05:03]json_value_free done [22:05:03]process_json_proto returns [22:05:03]Send response to host [22:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139784,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:05:03]free response buf [22:05:03]execute_script done [22:05:03]execute_script returns [22:05:03]free content buf [22:05:03]Sock 9.Close socket [22:05:03]Sock 9.Thread stoped [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:37]accept exits with 7 [22:06:37]New connection [22:06:37]New thread 3066510692 created [22:06:37]Thread 3066654052 joined [22:06:37]Waiting for new connection... [22:06:37] Sock 7.Parse request [22:06:37]Sock 7.Check first char [22:06:37]Sock 7.First char is OK [22:06:37]request: POST /json_proto HTTP/1.0 [22:06:37]Method: POST [22:06:37]URL: /json_proto [22:06:37]Method is POST - this is cgi request [22:06:37]url: /json_proto [22:06:37]query_string will be loaded in cgi processing [22:06:37]execute_cgi json_proto POST (null) [22:06:37]execute_cgi path=json_proto method=POST [22:06:37]POST find Content-Length [22:06:37]Host: 172.17.50.196:8080 [22:06:37]Content-Length: 668 [22:06:37]Content-Type: application/json [22:06:37] [22:06:37]POST finish read [22:06:37]Found Content-Length = 668 [22:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335619", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\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" ] } } [22:06:37]execute_script... [22:06: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)335619", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\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" ] } } [22:06:37]POST & json_proto [22:06:37]process_json_proto [22:06:37]json parsed OK: [22:06:37]protocol is kg_v1.0 [22:06:37]action value=close_receipt [22:06:37]process_action close_receipt [22:06:37]cmd_close_receipt [22:06:37]MH_GetDate [22:06:37]Write to MH i2c: F0 00 00 BE 28 D5 [22:06:37]Write i2c OK [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: F0 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: F0 09 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: F0 09 00 BE 28 00 70 FF 23 67 72 0D 1C 67 D9 [22:06:37]GetLastDocTimeStamp 1730412302 [22:06:37]current date 1730412400 [22:06:37]FM_GetShiftState [22:06:37]SAM_PROTO_GetShiftState [22:06:37]wFMCommunicate request_size=4 [22:06:37]MH_SAM_APDU [22:06:37]CAPDU: 80 13 01 00 [22:06:37]Write to MH i2c: E2 08 00 BF 28 80 13 01 00 00 00 00 00 64 [22:06:37]Write i2c OK [22:06:37]MH_I2C_Read... [22:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:37]Read from MH i2c: E2 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 0E 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 0E 00 BF 28 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8D [22:06:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:06:37]wFMCommunicate OK [22:06:37]SAM_PROTO_GetShiftState done [22:06:37]FM_GetShiftState done [22:06:37]opened in 1730332621 [22:06:37]opened+sec_in_day 1730419021 [22:06:37]quantity*price = 22500 [22:06:37]sum+1 = 22501 [22:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 262 31.10.2024 22:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139785 ФПД: 198123318338395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220640&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139785&fm=198123318338395&tin=02508201610067®Number=0000000000091631&sum=22500 0 [22:06:38]StoreToDocumentArchive [22:06:38]shift 557 fd 139785 [22:06:38]save to /storage/0557/doc_00139785 [22:06:38]save last doc name /storage/0557/doc_00139785 to /storage/kkm_last_doc_name [22:06:38]save OK [22:06:38]Clear old archive folders... [22:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=296 [22:06:38]tlvbuf is B6E91350 [22:06:38]SAM_PROTO_ClearQueue [22:06:38]wFMCommunicate request_size=4 [22:06:38]MH_SAM_APDU [22:06:38]CAPDU: 80 09 00 00 [22:06:38]Write to MH i2c: E2 08 00 CC 28 80 09 00 00 00 00 00 00 66 [22:06:38]Write i2c OK [22:06:38]MH_I2C_Read... [22:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:38]Read from MH i2c: E2 [22:06:38]MH_I2C_Read... [22:06:38]Read from MH i2c: E2 03 00 [22:06:38]MH_I2C_Read... [22:06:38]Read from MH i2c: E2 03 00 CC 28 00 90 00 68 [22:06:38]RAPDU: 90 00 [22:06:38]wFMCommunicate OK [22:06:38]SAM_PROTO_ClearQueue done [22:06:38]KKMCreateOFDPacket [22:06:38]OFDProtocolAddRootSTLVToBuf [22:06:38]FM_MakeSignedData [22:06:38]FM_MakeSignedData [22:06:38]SAM_PROTO_SignData [22:06:38]wFMCommunicate request_size=4 [22:06:38]MH_SAM_APDU [22:06:38]CAPDU: 80 0D 01 02 [22:06:38]Write to MH i2c: E2 08 00 CD 28 80 0D 01 02 00 00 00 00 6E [22:06:38]Write i2c OK [22:06:38]MH_I2C_Read... [22:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:38]Read from MH i2c: E2 [22:06:38]MH_I2C_Read... [22:06:38]Read from MH i2c: E2 03 00 [22:06:38]MH_I2C_Read... [22:06:38]Read from MH i2c: E2 03 00 CD 28 00 90 00 69 [22:06:38]RAPDU: 90 00 [22:06:38]wFMCommunicate OK [22:06:38]wFMCommunicate request_size=255 [22:06:38]MH_SAM_APDU [22:06:38]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 33 37 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 B7 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 06 01 00 00 F4 03 04 00 70 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [22:06:38]Write to MH i2c: E2 02 01 CE 28 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 33 37 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 B7 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 06 01 00 00 F4 03 04 00 70 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 25 [22:06:38]Write i2c OK [22:06:38]MH_I2C_Read... [22:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:39]Read from MH i2c: E2 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 03 00 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 03 00 CE 28 00 90 00 6A [22:06:39]RAPDU: 90 00 [22:06:39]wFMCommunicate OK [22:06:39]wFMCommunicate request_size=55 [22:06:39]MH_SAM_APDU [22:06: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 09 22 02 00 35 04 06 00 B4 31 2E 02 E3 5B [22:06:39]Write to MH i2c: E2 3A 00 CF 28 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 09 22 02 00 35 04 06 00 B4 31 2E 02 E3 5B 00 00 4D [22:06:39]Write i2c OK [22:06:39]MH_I2C_Read... [22:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:39]Read from MH i2c: E2 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 03 00 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 03 00 CF 28 00 90 00 6B [22:06:39]RAPDU: 90 00 [22:06:39]wFMCommunicate OK [22:06:39]wFMCommunicate request_size=4 [22:06:39]MH_SAM_APDU [22:06:39]CAPDU: 80 0D 03 02 [22:06:39]Write to MH i2c: E2 08 00 D0 28 80 0D 03 02 00 00 00 00 73 [22:06:39]Write i2c OK [22:06:39]MH_I2C_Read... [22:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:39]Read from MH i2c: E2 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 0B 00 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 0B 00 D0 28 00 AE 17 CB 2D BC D9 6E 0C 90 00 40 [22:06:39]RAPDU: AE 17 CB 2D BC D9 6E 0C 90 00 [22:06:39]wFMCommunicate OK [22:06:39]SAM_PROTO_SignData done [22:06:39]FM_MakeSignedData done [22:06:39]CreateOFDProtocolMessage [22:06:39]wFMCommunicate request_size=4 [22:06:39]MH_SAM_APDU [22:06:39]CAPDU: 80 11 00 00 [22:06:39]Write to MH i2c: E2 08 00 D1 28 80 11 00 00 00 00 00 00 73 [22:06:39]Write i2c OK [22:06:39]MH_I2C_Read... [22:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:39]Read from MH i2c: E2 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 17 00 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 17 00 D1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [22:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:06:39]wFMCommunicate OK [22:06:39]CreateOFDProtocolMessage done [22:06:39]OFDSenderStorePacket 139785 [22:06:39]StoreOFDPacket docnum=139785 [22:06: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 3C 01 00 00 8D 4F 34 01 40 45 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 33 37 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 B7 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 06 01 00 00 F4 03 04 00 70 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 09 22 02 00 35 04 06 00 B4 31 2E 02 E3 5B AE 17 CB 2D BC D9 6E 0C [22:06:39]CheckFolder [22:06:39]dirname=/storage/ofd_packets [22:06:39]CheckFolder done [22:06:39]ProducePacketName [22:06:39]name=ofd_packets/00139785 [22:06:39]NVStorageSaveData ofd_packets/00139785 [22:06:39]File name is /storage/ofd_packets/00139785 [22:06:39]Write 346 bytes [22:06:39]NVStorageSaveData done [22:06:39]OFDSenderStorePacket done [22:06:39]KKMCreateOFDPacket done [22:06:39]NVStorageSaveData kkm_last_timestamp [22:06:39]File name is /storage/kkm_last_timestamp [22:06:39]Write 4 bytes [22:06:39]NVStorageSaveData done [22:06:39]ExternCall_PrintAddStr [22:06:39]wPrintStart [22:06:39]Write to MH i2c: 01 00 00 D2 28 FA [22:06:39]Write i2c OK [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: 01 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: 01 07 00 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 FF 0F 0F [22:06:39]RasterBufferAndPrint [22:06:39]line Счет N : (3)335619 [22:06:39]line ИНН: 02508201610067 [22:06:39]line Контрольно-Кассовый Чек [22:06:39]line ПРОДАЖА [22:06:39]line Товар: 4670003190037 [22:06:39]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [22:06:39]line 1.000 * 225.00 [22:06:39]line = 225.00 [22:06:39]line НДС 12% НСП 1% [22:06:39]line > о реализуемом товаре [22:06:39]line ИТОГО: 225.00 [22:06:39]line НСП 1% : 1.99 [22:06:39]line НДС 12% : 23.89 [22:06:39]line Наличными: 225.00 [22:06:39]line Безнал.: 0.00 [22:06:39]line Место: АЗС № 101 "Партнер Нефть" [22:06:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:06:39]line СНО: Общий режим [22:06:39]line Чек 262 31.10.2024 22:06 [22:06:39]line Смена: 557 ФФД: 1.0 [22:06:39]line ЗНМ: 0300000081 [22:06:39]line РНМ: 0000000000091631 [22:06:39]line Версия ККМ: 001 [22:06:39]line ФМ: 0000000000874669 [22:06:39]line ФД: 139785 [22:06:39]line ФПД: 198123318338395 [22:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T220640&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139785&fm=198123318338395&tin=02508201610067®Number=0000000000091631&sum=22500 [22:06:39]line 0 [22:06:39]OFD Sender: Processing packet 139785 [packets to send 34, broken 33] [22:06:39]ProducePacketName [22:06:39]name=ofd_packets/00139785 [22:06:39]OFD Sender: To server: pG, [22:06:39]CommunicateWithHost lk.salyk.kg:30040 [22:06:39]ConnectInit lk.salyk.kg [22:06:39]written 0, free lines is 4095 [22:06:39]Connected sock=10 [22:06: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 3C 01 00 00 8D 4F 34 01 40 45 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 33 37 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 B7 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 06 01 00 00 F4 03 04 00 70 FF 23 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 09 22 02 00 35 04 06 00 B4 31 2E 02 E3 5B AE 17 CB 2D BC D9 6E 0C [22:06: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 E4 A4 47 00 B8 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 09 22 02 00 F4 03 04 00 1C AB 23 67 B6 04 01 00 00 E8 E5 DB FB 78 79 22 A6 [22:06:39]CommunicateWithHost err = 0 [22:06:39]CheckOFDResponse [22:06:39]1017 (14) - 77093643461234 [22:06:39]1041 (16) - 0000000000874669 [22:06:39]1040 (4) - 139785 [22:06:39]1012 (4) - 31.10.2024 16:06 [22:06:39]1206 (1) - 0 [22:06:39]OFD Sender: Remove packet 139785 [22:06:39]ProducePacketName [22:06:39]name=ofd_packets/00139785 [22:06:39]NVStorageDeleteData [22:06:40]Write to MH i2c: 01 00 00 FB 28 23 [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: 01 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: 01 07 00 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: 01 07 00 FB 28 00 00 00 00 00 07 0D 3E [22:06:40]RasterBufferAndPrint [22:06:40]line [22:06:40]line [22:06:40]line [22:06:40]line [22:06:40]line [22:06:40]written 0, free lines is 3344 [22:06:40]MH_Cut [22:06:40]Write to MH i2c: D1 01 00 02 29 01 FD [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: D1 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: D1 01 00 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: D1 01 00 02 29 00 FC [22:06:40]Write to MH i2c: 01 00 00 03 29 2C [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:40]OFD Sender: No OFD packet to send [22:06:40]*** Cut start [22:06:40]*** Partial cut [22:06:40]*** CUTSNS_PIN = 1 [22:06:40]*** CUTSNS_PIN = 0 [22:06:41]*** Brake cut motor [22:06:41]Read from MH i2c: 01 [22:06:41]MH_I2C_Read... [22:06:41]*** Stop cut motor [22:06:41]*** Cut end [22:06:41]Read from MH i2c: 01 07 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: 01 07 00 03 29 00 00 00 00 00 FF 0F 41 [22:06:41]process_action close_receipt done [22:06:41]requested_data is exist [22:06:41]produce_requested_data [22:06:41]requested_item fm.sn is exist - process it [22:06:41]wFMCommunicate request_size=4 [22:06:41]MH_SAM_APDU [22:06:41]CAPDU: 80 11 00 00 [22:06:41]Write to MH i2c: E2 08 00 04 29 80 11 00 00 00 00 00 00 A7 [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:41]Read from MH i2c: E2 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 17 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 17 00 04 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [22:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:06:41]wFMCommunicate OK [22:06:41]requested_item fd.num is exist - process it [22:06:41]SAM_PROTO_GetFieldsCounters [22:06:41]wFMCommunicate request_size=4 [22:06:41]MH_SAM_APDU [22:06:41]CAPDU: 80 13 00 00 [22:06:41]Write to MH i2c: E2 08 00 05 29 80 13 00 00 00 00 00 00 AA [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:41]Read from MH i2c: E2 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 62 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 62 00 05 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 09 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:06: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 09 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:41]wFMCommunicate OK [22:06:41]SAM_PROTO_GetFieldsCounters done [22:06:41]requested_item shift.num is exist - process it [22:06:41]requested_item shift.opened is exist - process it [22:06:41]req_shift_opened [22:06:41]FM_GetShiftState [22:06:41]SAM_PROTO_GetShiftState [22:06:41]wFMCommunicate request_size=4 [22:06:41]MH_SAM_APDU [22:06:41]CAPDU: 80 13 01 00 [22:06:41]Write to MH i2c: E2 08 00 06 29 80 13 01 00 00 00 00 00 AC [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:41]Read from MH i2c: E2 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 0E 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 0E 00 06 29 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D5 [22:06:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:06:41]wFMCommunicate OK [22:06:41]SAM_PROTO_GetShiftState done [22:06:41]FM_GetShiftState done [22:06:41]req_shift_opened done [22:06:41]requested_item shift.open_date is exist - process it [22:06:41]req_shift_open_date [22:06:41]req_shift_open_date done [22:06:41]produce_requested_data done [22:06:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139785,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:06:41]process_action_free close_receipt [22:06:41]json_value_free [22:06:41]json_value_free done [22:06:41]process_json_proto returns [22:06:41]Send response to host [22:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139785,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:06:41]free response buf [22:06:41]execute_script done [22:06:41]execute_script returns [22:06:41]free content buf [22:06:41]Sock 7.Close socket [22:06:41]Sock 7.Thread stoped [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:01]accept exits with 9 [22:12:01]New connection [22:12:01]New thread 3066654052 created [22:12:01]Thread 3066510692 joined [22:12:01]Waiting for new connection... [22:12:01] Sock 9.Parse request [22:12:01]Sock 9.Check first char [22:12:01]Sock 9.First char is OK [22:12:01]request: POST /json_proto HTTP/1.0 [22:12:01]Method: POST [22:12:01]URL: /json_proto [22:12:01]Method is POST - this is cgi request [22:12:01]url: /json_proto [22:12:01]query_string will be loaded in cgi processing [22:12:01]execute_cgi json_proto POST (null) [22:12:01]execute_cgi path=json_proto method=POST [22:12:01]POST find Content-Length [22:12:01]Host: 172.17.50.196:8080 [22:12:01]Content-Length: 623 [22:12:01]Content-Type: application/json [22:12:01] [22:12:01]POST finish read [22:12:01]Found Content-Length = 623 [22:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335620", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:01]execute_script... [22:12: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)335620", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:01]POST & json_proto [22:12:01]process_json_proto [22:12:01]json parsed OK: [22:12:01]protocol is kg_v1.0 [22:12:01]action value=close_receipt [22:12:01]process_action close_receipt [22:12:01]cmd_close_receipt [22:12:01]MH_GetDate [22:12:01]Write to MH i2c: F0 00 00 07 29 1F [22:12:01]Write i2c OK [22:12:01]MH_I2C_Read... [22:12:01]Read from MH i2c: F0 [22:12:01]MH_I2C_Read... [22:12:01]Read from MH i2c: F0 09 00 [22:12:01]MH_I2C_Read... [22:12:01]Read from MH i2c: F0 09 00 07 29 00 B4 00 24 67 72 0D 1C 67 69 [22:12:01]GetLastDocTimeStamp 1730412400 [22:12:01]current date 1730412724 [22:12:01]FM_GetShiftState [22:12:01]SAM_PROTO_GetShiftState [22:12:01]wFMCommunicate request_size=4 [22:12:01]MH_SAM_APDU [22:12:01]CAPDU: 80 13 01 00 [22:12:01]Write to MH i2c: E2 08 00 08 29 80 13 01 00 00 00 00 00 AE [22:12:01]Write i2c OK [22:12:01]MH_I2C_Read... [22:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:01]Read from MH i2c: E2 [22:12:01]MH_I2C_Read... [22:12:01]Read from MH i2c: E2 0E 00 [22:12:01]MH_I2C_Read... [22:12:01]Read from MH i2c: E2 0E 00 08 29 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D7 [22:12:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:12:01]wFMCommunicate OK [22:12:01]SAM_PROTO_GetShiftState done [22:12:01]FM_GetShiftState done [22:12:01]opened in 1730332621 [22:12:01]opened+sec_in_day 1730419021 [22:12:01]quantity*price = 42500 [22:12:01]sum+1 = 42501 [22:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 263 31.10.2024 22:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139786 ФПД: 280110608616503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221204&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139786&fm=280110608616503&tin=02508201610067®Number=0000000000091631&sum=42500 0 [22:12:02]StoreToDocumentArchive [22:12:02]shift 557 fd 139786 [22:12:02]save to /storage/0557/doc_00139786 [22:12:02]save last doc name /storage/0557/doc_00139786 to /storage/kkm_last_doc_name [22:12:02]save OK [22:12:02]Clear old archive folders... [22:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=267 [22:12:02]tlvbuf is 00AD8990 [22:12:02]SAM_PROTO_ClearQueue [22:12:02]wFMCommunicate request_size=4 [22:12:02]MH_SAM_APDU [22:12:02]CAPDU: 80 09 00 00 [22:12:02]Write to MH i2c: E2 08 00 15 29 80 09 00 00 00 00 00 00 B0 [22:12:02]Write i2c OK [22:12:02]MH_I2C_Read... [22:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:02]Read from MH i2c: E2 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 03 00 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 03 00 15 29 00 90 00 B2 [22:12:02]RAPDU: 90 00 [22:12:02]wFMCommunicate OK [22:12:02]SAM_PROTO_ClearQueue done [22:12:02]KKMCreateOFDPacket [22:12:02]OFDProtocolAddRootSTLVToBuf [22:12:02]FM_MakeSignedData [22:12:02]FM_MakeSignedData [22:12:02]SAM_PROTO_SignData [22:12:02]wFMCommunicate request_size=4 [22:12:02]MH_SAM_APDU [22:12:02]CAPDU: 80 0D 01 02 [22:12:02]Write to MH i2c: E2 08 00 16 29 80 0D 01 02 00 00 00 00 B8 [22:12:02]Write i2c OK [22:12:02]MH_I2C_Read... [22:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:02]Read from MH i2c: E2 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 03 00 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 03 00 16 29 00 90 00 B3 [22:12:02]RAPDU: 90 00 [22:12:02]wFMCommunicate OK [22:12:02]wFMCommunicate request_size=255 [22:12:02]MH_SAM_APDU [22:12:02]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 B4 00 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [22:12:02]Write to MH i2c: E2 02 01 17 29 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 B4 00 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 0D [22:12:02]Write i2c OK [22:12:02]MH_I2C_Read... [22:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:03]Read from MH i2c: E2 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 03 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 03 00 17 29 00 90 00 B4 [22:12:03]RAPDU: 90 00 [22:12:03]wFMCommunicate OK [22:12:03]wFMCommunicate request_size=26 [22:12:03]MH_SAM_APDU [22:12:03]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 0A 22 02 00 35 04 06 00 FE C2 55 53 0C 37 [22:12:03]Write to MH i2c: E2 1D 00 18 29 80 0D 02 02 15 00 36 36 39 10 04 04 00 0A 22 02 00 35 04 06 00 FE C2 55 53 0C 37 00 00 BA [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:03]Read from MH i2c: E2 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 03 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 03 00 18 29 00 90 00 B5 [22:12:03]RAPDU: 90 00 [22:12:03]wFMCommunicate OK [22:12:03]wFMCommunicate request_size=4 [22:12:03]MH_SAM_APDU [22:12:03]CAPDU: 80 0D 03 02 [22:12:03]Write to MH i2c: E2 08 00 19 29 80 0D 03 02 00 00 00 00 BD [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:03]Read from MH i2c: E2 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 0B 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 0B 00 19 29 00 43 60 9B 25 72 E2 22 C7 90 00 5E [22:12:03]RAPDU: 43 60 9B 25 72 E2 22 C7 90 00 [22:12:03]wFMCommunicate OK [22:12:03]SAM_PROTO_SignData done [22:12:03]FM_MakeSignedData done [22:12:03]CreateOFDProtocolMessage [22:12:03]wFMCommunicate request_size=4 [22:12:03]MH_SAM_APDU [22:12:03]CAPDU: 80 11 00 00 [22:12:03]Write to MH i2c: E2 08 00 1A 29 80 11 00 00 00 00 00 00 BD [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:03]Read from MH i2c: E2 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 17 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: E2 17 00 1A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [22:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:12:03]wFMCommunicate OK [22:12:03]CreateOFDProtocolMessage done [22:12:03]OFDSenderStorePacket 139786 [22:12:03]StoreOFDPacket docnum=139786 [22:12: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 1F 01 00 00 C6 C6 17 01 5B D7 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 B4 00 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0A 22 02 00 35 04 06 00 FE C2 55 53 0C 37 43 60 9B 25 72 E2 22 C7 [22:12:03]CheckFolder [22:12:03]dirname=/storage/ofd_packets [22:12:03]CheckFolder done [22:12:03]ProducePacketName [22:12:03]name=ofd_packets/00139786 [22:12:03]NVStorageSaveData ofd_packets/00139786 [22:12:03]File name is /storage/ofd_packets/00139786 [22:12:03]Write 317 bytes [22:12:03]NVStorageSaveData done [22:12:03]OFDSenderStorePacket done [22:12:03]KKMCreateOFDPacket done [22:12:03]NVStorageSaveData kkm_last_timestamp [22:12:03]File name is /storage/kkm_last_timestamp [22:12:03]Write 4 bytes [22:12:03]NVStorageSaveData done [22:12:03]ExternCall_PrintAddStr [22:12:03]wPrintStart [22:12:03]Write to MH i2c: 01 00 00 1B 29 44 [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 1B 29 00 00 00 00 00 FF 0F 59 [22:12:03]RasterBufferAndPrint [22:12:03]line Счет N : (3)335620 [22:12:03]line ИНН: 02508201610067 [22:12:03]line Контрольно-Кассовый Чек [22:12:03]line ПРОДАЖА [22:12:03]line Товар: 4700003150486 [22:12:03]line Водка Ороон 0,5 [22:12:03]line 1.000 * 425.00 [22:12:03]line = 425.00 [22:12:03]line НДС 12% НСП 1% [22:12:03]line > о реализуемом товаре [22:12:03]line ИТОГО: 425.00 [22:12:03]line НСП 1% : 3.76 [22:12:03]line НДС 12% : 45.13 [22:12:03]line Наличными: 425.00 [22:12:03]line Безнал.: 0.00 [22:12:03]line Место: АЗС № 101 "Партнер Нефть" [22:12:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:12:03]line СНО: Общий режим [22:12:03]line Чек 263 31.10.2024 22:12 [22:12:03]line Смена: 557 ФФД: 1.0 [22:12:03]line ЗНМ: 0300000081 [22:12:03]line РНМ: 0000000000091631 [22:12:03]line Версия ККМ: 001 [22:12:03]line ФМ: 0000000000874669 [22:12:03]line ФД: 139786 [22:12:03]line ФПД: 280110608616503 [22:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221204&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139786&fm=280110608616503&tin=02508201610067®Number=0000000000091631&sum=42500 [22:12:03]line 0 [22:12:03]OFD Sender: Processing packet 139786 [packets to send 34, broken 33] [22:12:03]ProducePacketName [22:12:03]name=ofd_packets/00139786 [22:12:03]OFD Sender: To server: pG, [22:12:03]CommunicateWithHost lk.salyk.kg:30040 [22:12:03]ConnectInit lk.salyk.kg [22:12:03]written 0, free lines is 4095 [22:12:03]Connected sock=10 [22:12: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 1F 01 00 00 C6 C6 17 01 5B D7 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 B4 00 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0A 22 02 00 35 04 06 00 FE C2 55 53 0C 37 43 60 9B 25 72 E2 22 C7 [22:12: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 A4 C5 47 00 04 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0A 22 02 00 F4 03 04 00 60 AC 23 67 B6 04 01 00 00 E1 16 52 8A 9D 09 73 03 [22:12:03]CommunicateWithHost err = 0 [22:12:03]CheckOFDResponse [22:12:03]1017 (14) - 77093643461234 [22:12:03]1041 (16) - 0000000000874669 [22:12:03]1040 (4) - 139786 [22:12:03]1012 (4) - 31.10.2024 16:12 [22:12:03]1206 (1) - 0 [22:12:03]OFD Sender: Remove packet 139786 [22:12:03]ProducePacketName [22:12:03]name=ofd_packets/00139786 [22:12:03]NVStorageDeleteData [22:12:04]Write to MH i2c: 01 00 00 43 29 6C [22:12:04]Write i2c OK [22:12:04]MH_I2C_Read... [22:12:04]Read from MH i2c: 01 [22:12:04]MH_I2C_Read... [22:12:04]Read from MH i2c: 01 07 00 [22:12:04]MH_I2C_Read... [22:12:04]Read from MH i2c: 01 07 00 43 29 00 00 00 00 00 0B 0D 8B [22:12:04]RasterBufferAndPrint [22:12:04]line [22:12:04]line [22:12:04]line [22:12:04]line [22:12:04]line [22:12:04]written 0, free lines is 3345 [22:12:04]MH_Cut [22:12:04]Write to MH i2c: D1 01 00 4A 29 01 45 [22:12:04]Write i2c OK [22:12:04]MH_I2C_Read... [22:12:04]Read from MH i2c: D1 [22:12:04]MH_I2C_Read... [22:12:04]Read from MH i2c: D1 01 00 [22:12:04]MH_I2C_Read... [22:12:04]Read from MH i2c: D1 01 00 4A 29 00 44 [22:12:04]Write to MH i2c: 01 00 00 4B 29 74 [22:12:04]Write i2c OK [22:12:04]MH_I2C_Read... [22:12:04]OFD Sender: No OFD packet to send [22:12:04]*** Cut start [22:12:04]*** Partial cut [22:12:04]*** CUTSNS_PIN = 1 [22:12:04]*** CUTSNS_PIN = 0 [22:12:04]*** Brake cut motor [22:12:05]Read from MH i2c: 01 [22:12:05]MH_I2C_Read... [22:12:05]*** Stop cut motor [22:12:05]*** Cut end [22:12:05]Read from MH i2c: 01 07 00 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: 01 07 00 4B 29 00 00 00 00 00 FF 0F 89 [22:12:05]process_action close_receipt done [22:12:05]requested_data is exist [22:12:05]produce_requested_data [22:12:05]requested_item fm.sn is exist - process it [22:12:05]wFMCommunicate request_size=4 [22:12:05]MH_SAM_APDU [22:12:05]CAPDU: 80 11 00 00 [22:12:05]Write to MH i2c: E2 08 00 4C 29 80 11 00 00 00 00 00 00 EF [22:12:05]Write i2c OK [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 [22:12:05]MH_I2C_Read... [22:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:05]Read from MH i2c: E2 17 00 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 17 00 4C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4A [22:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:12:05]wFMCommunicate OK [22:12:05]requested_item fd.num is exist - process it [22:12:05]SAM_PROTO_GetFieldsCounters [22:12:05]wFMCommunicate request_size=4 [22:12:05]MH_SAM_APDU [22:12:05]CAPDU: 80 13 00 00 [22:12:05]Write to MH i2c: E2 08 00 4D 29 80 13 00 00 00 00 00 00 F2 [22:12:05]Write i2c OK [22:12:05]MH_I2C_Read... [22:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:05]Read from MH i2c: E2 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 62 00 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 62 00 4D 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [22:12: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 0A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:05]wFMCommunicate OK [22:12:05]SAM_PROTO_GetFieldsCounters done [22:12:05]requested_item shift.num is exist - process it [22:12:05]requested_item shift.opened is exist - process it [22:12:05]req_shift_opened [22:12:05]FM_GetShiftState [22:12:05]SAM_PROTO_GetShiftState [22:12:05]wFMCommunicate request_size=4 [22:12:05]MH_SAM_APDU [22:12:05]CAPDU: 80 13 01 00 [22:12:05]Write to MH i2c: E2 08 00 4E 29 80 13 01 00 00 00 00 00 F4 [22:12:05]Write i2c OK [22:12:05]MH_I2C_Read... [22:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:05]Read from MH i2c: E2 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 0E 00 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 0E 00 4E 29 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1D [22:12:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:12:05]wFMCommunicate OK [22:12:05]SAM_PROTO_GetShiftState done [22:12:05]FM_GetShiftState done [22:12:05]req_shift_opened done [22:12:05]requested_item shift.open_date is exist - process it [22:12:05]req_shift_open_date [22:12:05]req_shift_open_date done [22:12:05]produce_requested_data done [22:12:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139786,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:12:05]process_action_free close_receipt [22:12:05]json_value_free [22:12:05]json_value_free done [22:12:05]process_json_proto returns [22:12:05]Send response to host [22:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139786,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:12:05]free response buf [22:12:05]execute_script done [22:12:05]execute_script returns [22:12:05]free content buf [22:12:05]Sock 9.Close socket [22:12:05]Sock 9.Thread stoped [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:03]accept exits with 7 [22:13:03]New connection [22:13:03]New thread 3066510692 created [22:13:03]Thread 3066654052 joined [22:13:03]Waiting for new connection... [22:13:03] Sock 7.Parse request [22:13:03]Sock 7.Check first char [22:13:03]Sock 7.First char is OK [22:13:03]request: POST /json_proto HTTP/1.0 [22:13:03]Method: POST [22:13:03]URL: /json_proto [22:13:03]Method is POST - this is cgi request [22:13:03]url: /json_proto [22:13:03]query_string will be loaded in cgi processing [22:13:03]execute_cgi json_proto POST (null) [22:13:03]execute_cgi path=json_proto method=POST [22:13:03]POST find Content-Length [22:13:03]Host: 172.17.50.196:8080 [22:13:03]Content-Length: 875 [22:13:03]Content-Type: application/json [22:13:03] [22:13:03]POST finish read [22:13:03]Found Content-Length = 875 [22:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335621", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 2.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:03]execute_script... [22:13: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)335621", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 2.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:03]POST & json_proto [22:13:03]process_json_proto [22:13:03]json parsed OK: [22:13:03]protocol is kg_v1.0 [22:13:03]action value=close_receipt [22:13:03]process_action close_receipt [22:13:03]cmd_close_receipt [22:13:03]MH_GetDate [22:13:03]Write to MH i2c: F0 00 00 4F 29 67 [22:13:03]Write i2c OK [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 09 00 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 09 00 4F 29 00 F2 00 24 67 72 0D 1C 67 EF [22:13:03]GetLastDocTimeStamp 1730412724 [22:13:03]current date 1730412786 [22:13:03]FM_GetShiftState [22:13:03]SAM_PROTO_GetShiftState [22:13:03]wFMCommunicate request_size=4 [22:13:03]MH_SAM_APDU [22:13:03]CAPDU: 80 13 01 00 [22:13:03]Write to MH i2c: E2 08 00 50 29 80 13 01 00 00 00 00 00 F6 [22:13:03]Write i2c OK [22:13:03]MH_I2C_Read... [22:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:03]Read from MH i2c: E2 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: E2 0E 00 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: E2 0E 00 50 29 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1F [22:13:03]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:13:03]wFMCommunicate OK [22:13:03]SAM_PROTO_GetShiftState done [22:13:03]FM_GetShiftState done [22:13:03]opened in 1730332621 [22:13:03]opened+sec_in_day 1730419021 [22:13:03]quantity*price = 4000 [22:13:03]sum+1 = 4001 [22:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 264 31.10.2024 22:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139787 ФПД: 37934700630680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221306&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139787&fm=37934700630680&tin=02508201610067®Number=0000000000091631&sum=4000 0 [22:13:04]StoreToDocumentArchive [22:13:04]shift 557 fd 139787 [22:13:04]save to /storage/0557/doc_00139787 [22:13:04]save last doc name /storage/0557/doc_00139787 to /storage/kkm_last_doc_name [22:13:04]save OK [22:13:04]Clear old archive folders... [22:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=311 [22:13:04]tlvbuf is 00AD85E0 [22:13:04]SAM_PROTO_ClearQueue [22:13:04]wFMCommunicate request_size=4 [22:13:04]MH_SAM_APDU [22:13:04]CAPDU: 80 09 00 00 [22:13:04]Write to MH i2c: E2 08 00 5D 29 80 09 00 00 00 00 00 00 F8 [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:04]Read from MH i2c: E2 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 5D 29 00 90 00 FA [22:13:04]RAPDU: 90 00 [22:13:04]wFMCommunicate OK [22:13:04]SAM_PROTO_ClearQueue done [22:13:04]KKMCreateOFDPacket [22:13:04]OFDProtocolAddRootSTLVToBuf [22:13:04]FM_MakeSignedData [22:13:04]FM_MakeSignedData [22:13:04]SAM_PROTO_SignData [22:13:04]wFMCommunicate request_size=4 [22:13:04]MH_SAM_APDU [22:13:04]CAPDU: 80 0D 01 02 [22:13:04]Write to MH i2c: E2 08 00 5E 29 80 0D 01 02 00 00 00 00 00 [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:04]Read from MH i2c: E2 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 5E 29 00 90 00 FB [22:13:04]RAPDU: 90 00 [22:13:04]wFMCommunicate OK [22:13:04]wFMCommunicate request_size=255 [22:13:04]MH_SAM_APDU [22:13:04]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 F2 00 24 67 0E 04 04 00 2D 02 [22:13:04]Write to MH i2c: E2 02 01 5F 29 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 F2 00 24 67 0E 04 04 00 2D 02 00 00 2C [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 5F 29 00 90 00 FC [22:13:05]RAPDU: 90 00 [22:13:05]wFMCommunicate OK [22:13:05]wFMCommunicate request_size=70 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 22 02 00 35 04 06 00 22 80 5C 5B 12 98 [22:13:05]Write to MH i2c: E2 49 00 60 29 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 22 02 00 35 04 06 00 22 80 5C 5B 12 98 00 00 4F [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 60 29 00 90 00 FD [22:13:05]RAPDU: 90 00 [22:13:05]wFMCommunicate OK [22:13:05]wFMCommunicate request_size=4 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 0D 03 02 [22:13:05]Write to MH i2c: E2 08 00 61 29 80 0D 03 02 00 00 00 00 05 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0B 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0B 00 61 29 00 39 A9 29 7A C4 27 85 9E 90 00 99 [22:13:05]RAPDU: 39 A9 29 7A C4 27 85 9E 90 00 [22:13:05]wFMCommunicate OK [22:13:05]SAM_PROTO_SignData done [22:13:05]FM_MakeSignedData done [22:13:05]CreateOFDProtocolMessage [22:13:05]wFMCommunicate request_size=4 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 11 00 00 [22:13:05]Write to MH i2c: E2 08 00 62 29 80 11 00 00 00 00 00 00 05 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 17 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 17 00 62 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 60 [22:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:13:05]wFMCommunicate OK [22:13:05]CreateOFDProtocolMessage done [22:13:05]OFDSenderStorePacket 139787 [22:13:05]StoreOFDPacket docnum=139787 [22:13: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 4B 01 00 00 0D 3A 43 01 FE 68 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 F2 00 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 22 02 00 35 04 06 00 22 80 5C 5B 12 98 39 A9 29 7A C4 27 85 9E [22:13:05]CheckFolder [22:13:05]dirname=/storage/ofd_packets [22:13:05]CheckFolder done [22:13:05]ProducePacketName [22:13:05]name=ofd_packets/00139787 [22:13:05]NVStorageSaveData ofd_packets/00139787 [22:13:05]File name is /storage/ofd_packets/00139787 [22:13:05]Write 361 bytes [22:13:05]NVStorageSaveData done [22:13:05]OFDSenderStorePacket done [22:13:05]KKMCreateOFDPacket done [22:13:05]NVStorageSaveData kkm_last_timestamp [22:13:05]File name is /storage/kkm_last_timestamp [22:13:05]Write 4 bytes [22:13:05]NVStorageSaveData done [22:13:05]ExternCall_PrintAddStr [22:13:05]wPrintStart [22:13:05]Write to MH i2c: 01 00 00 63 29 8C [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 63 29 00 00 00 00 00 FF 0F A1 [22:13:05]RasterBufferAndPrint [22:13:05]line Счет N : (3)335621 [22:13:05]line ИНН: 02508201610067 [22:13:05]line Контрольно-Кассовый Чек [22:13:05]line ПРОДАЖА [22:13:05]line Товар: 4700003730039 [22:13:05]line Снек Возд пшеница Бадырак сладкая 30гр [22:13:05]line 2.000 * 20.00 [22:13:05]line = 40.00 [22:13:05]line НДС 12% НСП 1% [22:13:05]line > о реализуемом товаре [22:13:05]line ИТОГО: 40.00 [22:13:05]line НСП 1% : 0.35 [22:13:05]line НДС 12% : 4.25 [22:13:05]line Наличными: 0.00 [22:13:05]line Безнал.: 40.00 [22:13:05]line Место: АЗС № 101 "Партнер Нефть" [22:13:05]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:13:05]line СНО: Общий режим [22:13:05]line Чек 264 31.10.2024 22:13 [22:13:05]line Смена: 557 ФФД: 1.0 [22:13:05]line ЗНМ: 0300000081 [22:13:05]line РНМ: 0000000000091631 [22:13:05]line Версия ККМ: 001 [22:13:05]line Платежная система: Mbank [22:13:05]line ФМ: 0000000000874669 [22:13:05]line ФД: 139787 [22:13:05]line ФПД: 37934700630680 [22:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221306&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139787&fm=37934700630680&tin=02508201610067®Number=0000000000091631&sum=4000 [22:13:05]line 0 [22:13:05]OFD Sender: Processing packet 139787 [packets to send 34, broken 33] [22:13:05]ProducePacketName [22:13:05]name=ofd_packets/00139787 [22:13:05]OFD Sender: To server: pG, [22:13:05]CommunicateWithHost lk.salyk.kg:30040 [22:13:05]ConnectInit lk.salyk.kg [22:13:05]written 0, free lines is 4095 [22:13:05]Connected sock=11 [22:13: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 4B 01 00 00 0D 3A 43 01 FE 68 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 F2 00 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 22 02 00 35 04 06 00 22 80 5C 5B 12 98 39 A9 29 7A C4 27 85 9E [22:13: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 73 9C 47 00 75 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 0B 22 02 00 F4 03 04 00 9E AC 23 67 B6 04 01 00 00 CB 29 29 97 E6 43 7A AF [22:13:05]CommunicateWithHost err = 0 [22:13:05]CheckOFDResponse [22:13:05]1017 (14) - 77093643461234 [22:13:05]1041 (16) - 0000000000874669 [22:13:05]1040 (4) - 139787 [22:13:05]1012 (4) - 31.10.2024 16:13 [22:13:05]1206 (1) - 0 [22:13:05]OFD Sender: Remove packet 139787 [22:13:05]ProducePacketName [22:13:05]name=ofd_packets/00139787 [22:13:05]NVStorageDeleteData [22:13:06]Write to MH i2c: 01 00 00 8D 29 B6 [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: 01 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: 01 07 00 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: 01 07 00 8D 29 00 00 00 00 00 EB 0C B4 [22:13:06]RasterBufferAndPrint [22:13:06]line [22:13:06]line [22:13:06]line [22:13:06]line [22:13:06]line [22:13:06]written 0, free lines is 3313 [22:13:06]MH_Cut [22:13:06]Write to MH i2c: D1 01 00 94 29 01 8F [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: D1 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: D1 01 00 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: D1 01 00 94 29 00 8E [22:13:06]Write to MH i2c: 01 00 00 95 29 BE [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]OFD Sender: No OFD packet to send [22:13:06]*** Cut start [22:13:06]*** Partial cut [22:13:06]*** CUTSNS_PIN = 1 [22:13:06]*** CUTSNS_PIN = 0 [22:13:07]*** Brake cut motor [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]*** Stop cut motor [22:13:07]*** Cut end [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 95 29 00 00 00 00 00 FF 0F D3 [22:13:07]process_action close_receipt done [22:13:07]requested_data is exist [22:13:07]produce_requested_data [22:13:07]requested_item fm.sn is exist - process it [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 11 00 00 [22:13:07]Write to MH i2c: E2 08 00 96 29 80 11 00 00 00 00 00 00 39 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 96 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [22:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:13:07]wFMCommunicate OK [22:13:07]requested_item fd.num is exist - process it [22:13:07]SAM_PROTO_GetFieldsCounters [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 00 00 [22:13:07]Write to MH i2c: E2 08 00 97 29 80 13 00 00 00 00 00 00 3C [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 62 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 62 00 97 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0B 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [22:13: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 0B 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetFieldsCounters done [22:13:07]requested_item shift.num is exist - process it [22:13:07]requested_item shift.opened is exist - process it [22:13:07]req_shift_opened [22:13:07]FM_GetShiftState [22:13:07]SAM_PROTO_GetShiftState [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 01 00 [22:13:07]Write to MH i2c: E2 08 00 98 29 80 13 01 00 00 00 00 00 3E [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 98 29 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 67 [22:13:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetShiftState done [22:13:07]FM_GetShiftState done [22:13:07]req_shift_opened done [22:13:07]requested_item shift.open_date is exist - process it [22:13:07]req_shift_open_date [22:13:07]req_shift_open_date done [22:13:07]produce_requested_data done [22:13:07]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139787,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:13:07]process_action_free close_receipt [22:13:07]json_value_free [22:13:07]json_value_free done [22:13:07]process_json_proto returns [22:13:07]Send response to host [22:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139787,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:13:07]free response buf [22:13:07]execute_script done [22:13:07]execute_script returns [22:13:07]free content buf [22:13:07]Sock 7.Close socket [22:13:07]Sock 7.Thread stoped [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:29]accept exits with 9 [22:19:29]New connection [22:19:29]New thread 3066654052 created [22:19:29]Thread 3066510692 joined [22:19:29]Waiting for new connection... [22:19:29] Sock 9.Parse request [22:19:29]Sock 9.Check first char [22:19:29]Sock 9.First char is OK [22:19:29]request: POST /json_proto HTTP/1.0 [22:19:29]Method: POST [22:19:29]URL: /json_proto [22:19:29]Method is POST - this is cgi request [22:19:29]url: /json_proto [22:19:29]query_string will be loaded in cgi processing [22:19:29]execute_cgi json_proto POST (null) [22:19:29]execute_cgi path=json_proto method=POST [22:19:29]POST find Content-Length [22:19:29]Host: 172.17.50.196:8080 [22:19:29]Content-Length: 2902 [22:19:29]Content-Type: application/json [22:19:29] [22:19:29]POST finish read [22:19:29]Found Content-Length = 2902 [22:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335622", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "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": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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": "4823077639753", "name": "\u041F\u0435\u0447 \u0441\u0430\u0445 Multicake \u043A\u0440\u0435\u043C-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 195 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235760", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 795.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:29]execute_script... [22: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)335622", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "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": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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": "4823077639753", "name": "\u041F\u0435\u0447 \u0441\u0430\u0445 Multicake \u043A\u0440\u0435\u043C-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 195 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235760", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 795.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:30]POST & json_proto [22:19:30]process_json_proto [22:19:30]json parsed OK: [22:19:30]protocol is kg_v1.0 [22:19:30]action value=close_receipt [22:19:30]process_action close_receipt [22:19:30]cmd_close_receipt [22:19:30]MH_GetDate [22:19:30]Write to MH i2c: F0 00 00 99 29 B1 [22:19:30]Write i2c OK [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: F0 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: F0 09 00 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: F0 09 00 99 29 00 74 02 24 67 72 0D 1C 67 BD [22:19:30]GetLastDocTimeStamp 1730412786 [22:19:30]current date 1730413172 [22:19:30]FM_GetShiftState [22:19:30]SAM_PROTO_GetShiftState [22:19:30]wFMCommunicate request_size=4 [22:19:30]MH_SAM_APDU [22:19:30]CAPDU: 80 13 01 00 [22:19:30]Write to MH i2c: E2 08 00 9A 29 80 13 01 00 00 00 00 00 40 [22:19:30]Write i2c OK [22:19:30]MH_I2C_Read... [22:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:30]Read from MH i2c: E2 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: E2 0E 00 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: E2 0E 00 9A 29 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 69 [22:19:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:19:30]wFMCommunicate OK [22:19:30]SAM_PROTO_GetShiftState done [22:19:30]FM_GetShiftState done [22:19:30]opened in 1730332621 [22:19:30]opened+sec_in_day 1730419021 [22:19:30]quantity*price = 14100 [22:19:30]sum+1 = 14101 [22:19:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004968 Пиво Жатецкий Гусь 9 крепкое 0,43л ж/б 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001414 Вода Боржоми 0,75л ПЭТ 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189318 Холодный чай Fuse лимон 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290003032 Крекер Яшкино Французский хруст с кунжут 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077639753 Печ сах Multicake крем-клубника 195 гр 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235760 Печ. сд. Яшкино апельсин 137г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 795.00 НСП 1% : 7.03 НДС 12% : 84.41 Наличными: 795.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 265 31.10.2024 22:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139788 ФПД: 278647106379959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221932&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139788&fm=278647106379959&tin=02508201610067®Number=0000000000091631&sum=79500 0 [22:19:31]StoreToDocumentArchive [22:19:31]shift 557 fd 139788 [22:19:31]save to /storage/0557/doc_00139788 [22:19:31]save last doc name /storage/0557/doc_00139788 to /storage/kkm_last_doc_name [22:19:31]save OK [22:19:31]Clear old archive folders... [22:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=1172 [22:19:31]tlvbuf is 00B38F60 [22:19:31]SAM_PROTO_ClearQueue [22:19:31]wFMCommunicate request_size=4 [22:19:31]MH_SAM_APDU [22:19:31]CAPDU: 80 09 00 00 [22:19:31]Write to MH i2c: E2 08 00 A7 29 80 09 00 00 00 00 00 00 42 [22:19:31]Write i2c OK [22:19:31]MH_I2C_Read... [22:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:31]Read from MH i2c: E2 [22:19:31]MH_I2C_Read... [22:19:31]Read from MH i2c: E2 03 00 [22:19:31]MH_I2C_Read... [22:19:31]Read from MH i2c: E2 03 00 A7 29 00 90 00 44 [22:19:31]RAPDU: 90 00 [22:19:31]wFMCommunicate OK [22:19:31]SAM_PROTO_ClearQueue done [22:19:31]KKMCreateOFDPacket [22:19:31]OFDProtocolAddRootSTLVToBuf [22:19:31]FM_MakeSignedData [22:19:31]FM_MakeSignedData [22:19:31]SAM_PROTO_SignData [22:19:31]wFMCommunicate request_size=4 [22:19:31]MH_SAM_APDU [22:19:31]CAPDU: 80 0D 01 02 [22:19:31]Write to MH i2c: E2 08 00 A8 29 80 0D 01 02 00 00 00 00 4A [22:19:31]Write i2c OK [22:19:31]MH_I2C_Read... [22:19:31]OFD Sender: No OFD packet to send [22:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:31]Read from MH i2c: E2 [22:19:31]MH_I2C_Read... [22:19:31]Read from MH i2c: E2 03 00 [22:19:31]MH_I2C_Read... [22:19:31]Read from MH i2c: E2 03 00 A8 29 00 90 00 45 [22:19:31]RAPDU: 90 00 [22:19:31]wFMCommunicate OK [22:19:31]wFMCommunicate request_size=255 [22:19:31]MH_SAM_APDU [22:19:31]CAPDU: 80 0D 02 02 FA 03 00 94 04 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 [22:19:32]Write to MH i2c: E2 02 01 A9 29 80 0D 02 02 FA 00 03 00 94 04 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 49 [22:19:32]Write i2c OK [22:19:32]MH_I2C_Read... [22:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:32]Read from MH i2c: E2 [22:19:32]MH_I2C_Read... [22:19:32]Read from MH i2c: E2 03 00 [22:19:32]MH_I2C_Read... [22:19:32]Read from MH i2c: E2 03 00 A9 29 00 90 00 46 [22:19:32]RAPDU: 90 00 [22:19:32]wFMCommunicate OK [22:19:32]wFMCommunicate request_size=255 [22:19:32]MH_SAM_APDU [22:19:32]CAPDU: 80 0D 02 02 FA 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [22:19:32]Write to MH i2c: E2 02 01 AA 29 80 0D 02 02 FA 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 F1 [22:19:32]Write i2c OK [22:19:32]MH_I2C_Read... [22:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:32]Read from MH i2c: E2 [22:19:32]MH_I2C_Read... [22:19:32]Read from MH i2c: E2 03 00 [22:19:32]MH_I2C_Read... [22:19:32]Read from MH i2c: E2 03 00 AA 29 00 90 00 47 [22:19:32]RAPDU: 90 00 [22:19:32]wFMCommunicate OK [22:19:32]wFMCommunicate request_size=255 [22:19:32]MH_SAM_APDU [22:19:32]CAPDU: 80 0D 02 02 FA 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 [22:19:32]Write to MH i2c: E2 02 01 AB 29 80 0D 02 02 FA 00 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 00 00 71 [22:19:32]Write i2c OK [22:19:32]MH_I2C_Read... [22:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:33]Read from MH i2c: E2 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 03 00 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 03 00 AB 29 00 90 00 48 [22:19:33]RAPDU: 90 00 [22:19:33]wFMCommunicate OK [22:19:33]wFMCommunicate request_size=255 [22:19:33]MH_SAM_APDU [22:19:33]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 [22:19:33]Write to MH i2c: E2 02 01 AC 29 80 0D 02 02 FA 00 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 00 00 EB [22:19:33]Write i2c OK [22:19:33]MH_I2C_Read... [22:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:33]Read from MH i2c: E2 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 03 00 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 03 00 AC 29 00 90 00 49 [22:19:33]RAPDU: 90 00 [22:19:33]wFMCommunicate OK [22:19:33]wFMCommunicate request_size=181 [22:19:33]MH_SAM_APDU [22:19:33]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 20 00 00 00 00 07 04 06 00 8C 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 74 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 22 02 00 35 04 06 00 FD 6D 95 CB 20 B7 [22:19:33]Write to MH i2c: E2 B8 00 AD 29 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 20 00 00 00 00 07 04 06 00 8C 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 74 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 22 02 00 35 04 06 00 FD 6D 95 CB 20 B7 00 00 1E [22:19:33]Write i2c OK [22:19:33]MH_I2C_Read... [22:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:33]Read from MH i2c: E2 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 03 00 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 03 00 AD 29 00 90 00 4A [22:19:33]RAPDU: 90 00 [22:19:33]wFMCommunicate OK [22:19:33]wFMCommunicate request_size=4 [22:19:33]MH_SAM_APDU [22:19:33]CAPDU: 80 0D 03 02 [22:19:33]Write to MH i2c: E2 08 00 AE 29 80 0D 03 02 00 00 00 00 52 [22:19:33]Write i2c OK [22:19:33]MH_I2C_Read... [22:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:33]Read from MH i2c: E2 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 0B 00 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 0B 00 AE 29 00 D8 C9 D7 30 9B 3D 55 48 90 00 70 [22:19:33]RAPDU: D8 C9 D7 30 9B 3D 55 48 90 00 [22:19:33]wFMCommunicate OK [22:19:33]SAM_PROTO_SignData done [22:19:33]FM_MakeSignedData done [22:19:33]CreateOFDProtocolMessage [22:19:33]wFMCommunicate request_size=4 [22:19:33]MH_SAM_APDU [22:19:33]CAPDU: 80 11 00 00 [22:19:33]Write to MH i2c: E2 08 00 AF 29 80 11 00 00 00 00 00 00 52 [22:19:33]Write i2c OK [22:19:33]MH_I2C_Read... [22:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:33]Read from MH i2c: E2 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 17 00 [22:19:33]MH_I2C_Read... [22:19:33]Read from MH i2c: E2 17 00 AF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AD [22: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 [22:19:33]wFMCommunicate OK [22:19:33]CreateOFDProtocolMessage done [22:19:33]OFDSenderStorePacket 139788 [22:19:33]StoreOFDPacket docnum=139788 [22: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 A8 04 00 00 C2 EC A0 04 EB 3C 5A 03 01 00 03 00 94 04 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 20 00 00 00 00 07 04 06 00 8C 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 74 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 22 02 00 35 04 06 00 FD 6D 95 CB 20 B7 D8 C9 D7 30 9B 3D 55 48 [22:19:33]CheckFolder [22:19:33]dirname=/storage/ofd_packets [22:19:33]CheckFolder done [22:19:33]ProducePacketName [22:19:33]name=ofd_packets/00139788 [22:19:33]NVStorageSaveData ofd_packets/00139788 [22:19:33]File name is /storage/ofd_packets/00139788 [22:19:33]Write 1222 bytes [22:19:33]NVStorageSaveData done [22:19:33]OFDSenderStorePacket done [22:19:34]KKMCreateOFDPacket done [22:19:34]NVStorageSaveData kkm_last_timestamp [22:19:34]File name is /storage/kkm_last_timestamp [22:19:34]Write 4 bytes [22:19:34]NVStorageSaveData done [22:19:34]ExternCall_PrintAddStr [22:19:34]wPrintStart [22:19:34]Write to MH i2c: 01 00 00 B0 29 D9 [22:19:34]OFD Sender: Processing packet 139788 [packets to send 34, broken 33] [22:19:34]ProducePacketName [22:19:34]name=ofd_packets/00139788 [22:19:34]OFD Sender: To server: pG, [22:19:34]CommunicateWithHost lk.salyk.kg:30040 [22:19:34]ConnectInit lk.salyk.kg [22:19:34]Write i2c OK [22:19:34]MH_I2C_Read... [22:19:34]Read from MH i2c: 01 [22:19:34]MH_I2C_Read... [22:19:34]Read from MH i2c: 01 07 00 [22:19:34]MH_I2C_Read... [22:19:34]Read from MH i2c: 01 07 00 B0 29 00 00 00 00 00 FF 0F EE [22:19:34]RasterBufferAndPrint [22:19:34]line Счет N : (3)335622 [22:19:34]line ИНН: 02508201610067 [22:19:34]line Контрольно-Кассовый Чек [22:19:34]line ПРОДАЖА [22:19:34]line Товар: 4870145002155 [22:19:34]line Пиво Большая Кружка Мягкое 0,64л ст/б [22:19:34]line 1.000 * 141.00 [22:19:34]line = 141.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line Товар: 4870145004968 [22:19:34]line Пиво Жатецкий Гусь 9 крепкое 0,43л ж/б [22:19:34]line 1.000 * 105.00 [22:19:34]line = 105.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line Товар: 4860019001414 [22:19:34]line Вода Боржоми 0,75л ПЭТ [22:19:34]line 1.000 * 165.00 [22:19:34]line = 165.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line Товар: 2000031750019 [22:19:34]line Пакет Партнер Нефть [22:19:34]line 1.000 * 4.00 [22:19:34]line = 4.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line Товар: 5449000189318 [22:19:34]line Холодный чай Fuse лимон 1л [22:19:34]line 1.000 * 120.00 [22:19:34]line = 120.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line Товар: 4603290003032 [22:19:34]line Крекер Яшкино Французский хруст с кунжут [22:19:34]line 1.000 * 70.00 [22:19:34]line = 70.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line Товар: 4823077639753 [22:19:34]line Печ сах Multicake крем-клубника 195 гр [22:19:34]line 1.000 * 100.00 [22:19:34]line = 100.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line Товар: 4607015235760 [22:19:34]line Печ. сд. Яшкино апельсин 137г [22:19:34]line 1.000 * 90.00 [22:19:34]line = 90.00 [22:19:34]line НДС 12% НСП 1% [22:19:34]line > о реализуемом товаре [22:19:34]line ИТОГО: 795.00 [22:19:34]line НСП 1% : 7.03 [22:19:34]line НДС 12% : 84.41 [22:19:34]line Наличными: 795.00 [22:19:34]line Безнал.: 0.00 [22:19:34]line Место: АЗС № 101 "Партнер Нефть" [22:19:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:19:34]line СНО: Общий режим [22:19:34]line Чек 265 31.10.2024 22:19 [22:19:34]line Смена: 557 ФФД: 1.0 [22:19:34]line ЗНМ: 0300000081 [22:19:34]line РНМ: 0000000000091631 [22:19:34]line Версия ККМ: 001 [22:19:34]line ФМ: 0000000000874669 [22:19:34]line ФД: 139788 [22:19:34]line ФПД: 278647106379959 [22:19:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T221932&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139788&fm=278647106379959&tin=02508201610067®Number=0000000000091631&sum=79500 [22:19:34]line 0 [22:19:34]written 0, free lines is 4095 [22:19:34]Connected sock=7 [22:19: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 A8 04 00 00 C2 EC A0 04 EB 3C 5A 03 01 00 03 00 94 04 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 7E 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 39 37 35 33 06 04 3A 00 D0 9F D0 B5 D1 87 20 D1 81 D0 B0 D1 85 20 4D 75 6C 74 69 63 61 6B 65 20 D0 BA D1 80 D0 B5 D0 BC 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 39 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 20 00 00 00 00 07 04 06 00 8C 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 74 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 22 02 00 35 04 06 00 FD 6D 95 CB 20 B7 D8 C9 D7 30 9B 3D 55 48 [22:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B1 86 47 00 58 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 22 02 00 F4 03 04 00 23 AE 23 67 B6 04 01 00 00 E1 D8 03 61 9F 3C 26 CC [22:19:34]CommunicateWithHost err = 0 [22:19:34]CheckOFDResponse [22:19:34]1017 (14) - 77093643461234 [22:19:34]1041 (16) - 0000000000874669 [22:19:34]1040 (4) - 139788 [22:19:34]1012 (4) - 31.10.2024 16:19 [22:19:34]1206 (1) - 0 [22:19:34]OFD Sender: Remove packet 139788 [22:19:34]ProducePacketName [22:19:34]name=ofd_packets/00139788 [22:19:34]NVStorageDeleteData [22:19:35]OFD Sender: No OFD packet to send [22:19:35]Write to MH i2c: 01 00 00 06 2A 30 [22:19:35]Write i2c OK [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: 01 [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: 01 07 00 [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: 01 07 00 06 2A 00 00 00 00 00 FB 0A 3C [22:19:35]RasterBufferAndPrint [22:19:35]line [22:19:35]line [22:19:35]line [22:19:35]line [22:19:35]line [22:19:35]written 0, free lines is 2827 [22:19:35]MH_Cut [22:19:35]Write to MH i2c: D1 01 00 0D 2A 01 09 [22:19:35]Write i2c OK [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: D1 [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: D1 01 00 [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: D1 01 00 0D 2A 00 08 [22:19:35]Write to MH i2c: 01 00 00 0E 2A 38 [22:19:35]Write i2c OK [22:19:35]MH_I2C_Read... [22:19:36]*** Cut start [22:19:36]*** Partial cut [22:19:36]*** CUTSNS_PIN = 1 [22:19:36]*** CUTSNS_PIN = 0 [22:19:36]*** Brake cut motor [22:19:36]Read from MH i2c: 01 [22:19:36]MH_I2C_Read... [22:19:36]*** Stop cut motor [22:19:36]*** Cut end [22:19:36]Read from MH i2c: 01 07 00 [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: 01 07 00 0E 2A 00 00 00 00 00 FF 0F 4D [22:19:36]process_action close_receipt done [22:19:36]requested_data is exist [22:19:36]produce_requested_data [22:19:36]requested_item fm.sn is exist - process it [22:19:36]wFMCommunicate request_size=4 [22:19:36]MH_SAM_APDU [22:19:36]CAPDU: 80 11 00 00 [22:19:36]Write to MH i2c: E2 08 00 0F 2A 80 11 00 00 00 00 00 00 B3 [22:19:36]Write i2c OK [22:19:36]MH_I2C_Read... [22:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:36]Read from MH i2c: E2 [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: E2 17 00 [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: E2 17 00 0F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [22:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:19:36]wFMCommunicate OK [22:19:36]requested_item fd.num is exist - process it [22:19:36]SAM_PROTO_GetFieldsCounters [22:19:36]wFMCommunicate request_size=4 [22:19:36]MH_SAM_APDU [22:19:36]CAPDU: 80 13 00 00 [22:19:36]Write to MH i2c: E2 08 00 10 2A 80 13 00 00 00 00 00 00 B6 [22:19:36]Write i2c OK [22:19:36]MH_I2C_Read... [22:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:36]Read from MH i2c: E2 [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: E2 62 00 [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: E2 62 00 10 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0C 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [22:19: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 0C 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:36]wFMCommunicate OK [22:19:36]SAM_PROTO_GetFieldsCounters done [22:19:36]requested_item shift.num is exist - process it [22:19:36]requested_item shift.opened is exist - process it [22:19:36]req_shift_opened [22:19:36]FM_GetShiftState [22:19:36]SAM_PROTO_GetShiftState [22:19:36]wFMCommunicate request_size=4 [22:19:36]MH_SAM_APDU [22:19:36]CAPDU: 80 13 01 00 [22:19:36]Write to MH i2c: E2 08 00 11 2A 80 13 01 00 00 00 00 00 B8 [22:19:36]Write i2c OK [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: E2 [22:19:36]MH_I2C_Read... [22:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:36]Read from MH i2c: E2 0E 00 [22:19:36]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 0E 00 11 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E1 [22:19:37]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:19:37]wFMCommunicate OK [22:19:37]SAM_PROTO_GetShiftState done [22:19:37]FM_GetShiftState done [22:19:37]req_shift_opened done [22:19:37]requested_item shift.open_date is exist - process it [22:19:37]req_shift_open_date [22:19:37]req_shift_open_date done [22:19:37]produce_requested_data done [22:19:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139788,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:19:37]process_action_free close_receipt [22:19:37]json_value_free [22:19:37]json_value_free done [22:19:37]process_json_proto returns [22:19:37]Send response to host [22:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139788,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:19:37]free response buf [22:19:37]execute_script done [22:19:37]execute_script returns [22:19:37]free content buf [22:19:37]Sock 9.Close socket [22:19:37]Sock 9.Thread stoped [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:35]accept exits with 10 [22:21:35]New connection [22:21:35]New thread 3066510692 created [22:21:35]Thread 3066654052 joined [22:21:35]Waiting for new connection... [22:21:35] Sock 10.Parse request [22:21:35]Sock 10.Check first char [22:21:35]Sock 10.First char is OK [22:21:35]request: POST /json_proto HTTP/1.0 [22:21:35]Method: POST [22:21:35]URL: /json_proto [22:21:35]Method is POST - this is cgi request [22:21:35]url: /json_proto [22:21:35]query_string will be loaded in cgi processing [22:21:35]execute_cgi json_proto POST (null) [22:21:35]execute_cgi path=json_proto method=POST [22:21:35]POST find Content-Length [22:21:35]Host: 172.17.50.196:8080 [22:21:35]Content-Length: 895 [22:21:35]Content-Type: application/json [22:21:35] [22:21:35]POST finish read [22:21:35]Found Content-Length = 895 [22:21:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335623", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:35]execute_script... [22:21: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)335623", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:35]POST & json_proto [22:21:35]process_json_proto [22:21:35]json parsed OK: [22:21:35]protocol is kg_v1.0 [22:21:35]action value=close_receipt [22:21:35]process_action close_receipt [22:21:35]cmd_close_receipt [22:21:35]MH_GetDate [22:21:35]Write to MH i2c: F0 00 00 12 2A 2B [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: F0 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: F0 09 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: F0 09 00 12 2A 00 F2 02 24 67 72 0D 1C 67 B5 [22:21:35]GetLastDocTimeStamp 1730413172 [22:21:35]current date 1730413298 [22:21:35]FM_GetShiftState [22:21:35]SAM_PROTO_GetShiftState [22:21:35]wFMCommunicate request_size=4 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 13 01 00 [22:21:35]Write to MH i2c: E2 08 00 13 2A 80 13 01 00 00 00 00 00 BA [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:35]Read from MH i2c: E2 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 0E 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 0E 00 13 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E3 [22:21:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:21:35]wFMCommunicate OK [22:21:35]SAM_PROTO_GetShiftState done [22:21:35]FM_GetShiftState done [22:21:35]opened in 1730332621 [22:21:35]opened+sec_in_day 1730419021 [22:21:35]quantity*price = 9500 [22:21:35]sum+1 = 9501 [22:21:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.11 НДС 12% : 25.38 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 266 31.10.2024 22:21 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139789 ФПД: 45608728796151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T222138&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139789&fm=45608728796151&tin=02508201610067®Number=0000000000091631&sum=23900 0 [22:21:36]StoreToDocumentArchive [22:21:36]shift 557 fd 139789 [22:21:36]save to /storage/0557/doc_00139789 [22:21:36]save last doc name /storage/0557/doc_00139789 to /storage/kkm_last_doc_name [22:21:36]save OK [22:21:36]Clear old archive folders... [22:21:36]ProcessDocumentItem done err = 0, tmpTLVsize=391 [22:21:36]tlvbuf is 00A3B1A0 [22:21:36]SAM_PROTO_ClearQueue [22:21:36]wFMCommunicate request_size=4 [22:21:36]MH_SAM_APDU [22:21:36]CAPDU: 80 09 00 00 [22:21:36]Write to MH i2c: E2 08 00 20 2A 80 09 00 00 00 00 00 00 BC [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:36]Read from MH i2c: E2 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 20 2A 00 90 00 BE [22:21:36]RAPDU: 90 00 [22:21:36]wFMCommunicate OK [22:21:36]SAM_PROTO_ClearQueue done [22:21:36]KKMCreateOFDPacket [22:21:36]OFDProtocolAddRootSTLVToBuf [22:21:36]FM_MakeSignedData [22:21:36]FM_MakeSignedData [22:21:36]SAM_PROTO_SignData [22:21:36]wFMCommunicate request_size=4 [22:21:36]MH_SAM_APDU [22:21:36]CAPDU: 80 0D 01 02 [22:21:36]Write to MH i2c: E2 08 00 21 2A 80 0D 01 02 00 00 00 00 C4 [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:36]Read from MH i2c: E2 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 21 2A 00 90 00 BF [22:21:36]RAPDU: 90 00 [22:21:36]wFMCommunicate OK [22:21:36]wFMCommunicate request_size=255 [22:21:36]MH_SAM_APDU [22:21:36]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [22:21:36]Write to MH i2c: E2 02 01 22 2A 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 F4 [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 22 2A 00 90 00 C0 [22:21:37]RAPDU: 90 00 [22:21:37]wFMCommunicate OK [22:21:37]wFMCommunicate request_size=150 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F2 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 22 02 00 35 04 06 00 29 7B 1C 14 1B F7 [22:21:37]Write to MH i2c: E2 99 00 23 2A 80 0D 02 02 91 00 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F2 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 22 02 00 35 04 06 00 29 7B 1C 14 1B F7 00 00 6A [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 23 2A 00 90 00 C1 [22:21:37]RAPDU: 90 00 [22:21:37]wFMCommunicate OK [22:21:37]wFMCommunicate request_size=4 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 0D 03 02 [22:21:37]Write to MH i2c: E2 08 00 24 2A 80 0D 03 02 00 00 00 00 C9 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 0B 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 0B 00 24 2A 00 AE 4D CC 54 DF E8 22 CC 90 00 9A [22:21:37]RAPDU: AE 4D CC 54 DF E8 22 CC 90 00 [22:21:37]wFMCommunicate OK [22:21:37]SAM_PROTO_SignData done [22:21:37]FM_MakeSignedData done [22:21:37]CreateOFDProtocolMessage [22:21:37]wFMCommunicate request_size=4 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 11 00 00 [22:21:37]Write to MH i2c: E2 08 00 25 2A 80 11 00 00 00 00 00 00 C9 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 17 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 17 00 25 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 24 [22:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:21:37]wFMCommunicate OK [22:21:37]CreateOFDProtocolMessage done [22:21:37]OFDSenderStorePacket 139789 [22:21:37]StoreOFDPacket docnum=139789 [22:21: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 9B 01 00 00 5A 1B 93 01 FB 7F 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F2 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 22 02 00 35 04 06 00 29 7B 1C 14 1B F7 AE 4D CC 54 DF E8 22 CC [22:21:37]CheckFolder [22:21:37]dirname=/storage/ofd_packets [22:21:37]CheckFolder done [22:21:37]ProducePacketName [22:21:37]name=ofd_packets/00139789 [22:21:37]NVStorageSaveData ofd_packets/00139789 [22:21:37]File name is /storage/ofd_packets/00139789 [22:21:37]Write 441 bytes [22:21:37]NVStorageSaveData done [22:21:37]OFDSenderStorePacket done [22:21:37]KKMCreateOFDPacket done [22:21:37]NVStorageSaveData kkm_last_timestamp [22:21:37]File name is /storage/kkm_last_timestamp [22:21:37]Write 4 bytes [22:21:37]NVStorageSaveData done [22:21:37]ExternCall_PrintAddStr [22:21:37]wPrintStart [22:21:37]Write to MH i2c: 01 00 00 26 2A 50 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 26 2A 00 00 00 00 00 FF 0F 65 [22:21:37]RasterBufferAndPrint [22:21:37]line Счет N : (3)335623 [22:21:37]line ИНН: 02508201610067 [22:21:37]line Контрольно-Кассовый Чек [22:21:37]line ПРОДАЖА [22:21:37]line Товар: 4700000481453 [22:21:37]line Напиток энерг Nitro Max 0,45 ж/б [22:21:37]line 1.000 * 95.00 [22:21:37]line = 95.00 [22:21:37]line НДС 12% НСП 1% [22:21:37]line > о реализуемом товаре [22:21:37]line Товар: 48743570 [22:21:37]line Сигареты Winston XStyle Blue [22:21:37]line 1.000 * 144.00 [22:21:37]line = 144.00 [22:21:37]line НДС 12% НСП 1% [22:21:37]line > о реализуемом товаре [22:21:37]line ИТОГО: 239.00 [22:21:37]line НСП 1% : 2.11 [22:21:37]line НДС 12% : 25.38 [22:21:37]line Наличными: 239.00 [22:21:37]line Безнал.: 0.00 [22:21:37]line Место: АЗС № 101 "Партнер Нефть" [22:21:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:21:37]line СНО: Общий режим [22:21:37]line Чек 266 31.10.2024 22:21 [22:21:37]line Смена: 557 ФФД: 1.0 [22:21:37]line ЗНМ: 0300000081 [22:21:37]line РНМ: 0000000000091631 [22:21:37]line Версия ККМ: 001 [22:21:37]line ФМ: 0000000000874669 [22:21:37]line ФД: 139789 [22:21:37]line ФПД: 45608728796151 [22:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T222138&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139789&fm=45608728796151&tin=02508201610067®Number=0000000000091631&sum=23900 [22:21:37]line 0 [22:21:37]OFD Sender: Processing packet 139789 [packets to send 34, broken 33] [22:21:37]ProducePacketName [22:21:37]name=ofd_packets/00139789 [22:21:37]OFD Sender: To server: pG, [22:21:37]CommunicateWithHost lk.salyk.kg:30040 [22:21:37]ConnectInit lk.salyk.kg [22:21:37]written 0, free lines is 4095 [22:21:37]Connected sock=9 [22:21: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 9B 01 00 00 5A 1B 93 01 FB 7F 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F2 02 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 22 02 00 35 04 06 00 29 7B 1C 14 1B F7 AE 4D CC 54 DF E8 22 CC [22:21:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E5 0F 47 00 76 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 22 02 00 F4 03 04 00 9F AE 23 67 B6 04 01 00 00 36 E8 62 CE 09 73 7E 11 [22:21:38]CommunicateWithHost err = 0 [22:21:38]CheckOFDResponse [22:21:38]1017 (14) - 77093643461234 [22:21:38]1041 (16) - 0000000000874669 [22:21:38]1040 (4) - 139789 [22:21:38]1012 (4) - 31.10.2024 16:21 [22:21:38]1206 (1) - 0 [22:21:38]OFD Sender: Remove packet 139789 [22:21:38]ProducePacketName [22:21:38]name=ofd_packets/00139789 [22:21:38]NVStorageDeleteData [22:21:38]Write to MH i2c: 01 00 00 55 2A 7F [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 55 2A 00 00 00 00 00 98 0C 2A [22:21:38]RasterBufferAndPrint [22:21:38]line [22:21:38]line [22:21:38]line [22:21:38]line [22:21:38]line [22:21:38]written 0, free lines is 3230 [22:21:38]MH_Cut [22:21:38]Write to MH i2c: D1 01 00 5C 2A 01 58 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: D1 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: D1 01 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: D1 01 00 5C 2A 00 57 [22:21:38]Write to MH i2c: 01 00 00 5D 2A 87 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]OFD Sender: No OFD packet to send [22:21:39]*** Cut start [22:21:39]*** Partial cut [22:21:39]*** CUTSNS_PIN = 1 [22:21:39]*** CUTSNS_PIN = 0 [22:21:39]*** Brake cut motor [22:21:39]Read from MH i2c: 01 [22:21:39]MH_I2C_Read... [22:21:39]int [22:21:39]Read from MH i2c: 01 07 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: 01 07 00 5D 2A 00 00 00 00 00 FF 0F 9C [22:21:39]process_action close_receipt done [22:21:39]requested_data is exist [22:21:39]produce_requested_data [22:21:39]requested_item fm.sn is exist - process it [22:21:39]wFMCommunicate request_size=4 [22:21:39]MH_SAM_APDU [22:21:39]CAPDU: 80 11 00 00 [22:21:39]Write to MH i2c: E2 08 00 5E 2A 80 11 00 00 00 00 00 00 02 [22:21:39]*** Stop cut motor [22:21:39]*** Cut end [22:21:39]Write i2c OK [22:21:39]MH_I2C_Read... [22:21:39]*** FLAG_PRN_PAP1 set [22:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:39]*** FLAG_PRN_PAP2 set [22:21:39]Read from MH i2c: E2 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 17 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 17 00 5E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5D [22:21:39]RAPDU: Write to MH i2c: 11 01 04 00 10 00 00 5F 30 2A 30 89 30 30 [22:21:39]30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:21:39]wFMCommunicate OK [22:21:39]requested_item fd.num is exist - process it [22:21:39]SAM_PROTO_GetFieldsCounters [22:21:39]wFMCommunicate request_size=4 [22:21:39]MH_SAM_APDU [22:21:39]CAPDU: 80 13 00 00 [22:21:39]Write i2c OK [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: 01 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: 01 07 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: 01 07 00 5F 2A 00 03 00 00 00 FF 0F A1 [22:21:39]state=0 [22:21:39]Write to MH i2c: No paper [22:21:39]E2 Cover opened [22:21:39]08 00 60 2A 80 13 00 00 00 00 00 00 06 [22:21:39]Write i2c OK [22:21:39]MH_I2C_Read... [22:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:39]Read from MH i2c: E2 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 62 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 62 00 60 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0D 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [22:21: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 0D 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:39]wFMCommunicate OK [22:21:39]SAM_PROTO_GetFieldsCounters done [22:21:39]requested_item shift.num is exist - process it [22:21:39]requested_item shift.opened is exist - process it [22:21:39]req_shift_opened [22:21:39]FM_GetShiftState [22:21:39]SAM_PROTO_GetShiftState [22:21:39]wFMCommunicate request_size=4 [22:21:39]MH_SAM_APDU [22:21:39]CAPDU: 80 13 01 00 [22:21:39]Write to MH i2c: E2 08 00 61 2A 80 13 01 00 00 00 00 00 08 [22:21:39]Write i2c OK [22:21:39]MH_I2C_Read... [22:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:39]Read from MH i2c: E2 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 0E 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 0E 00 61 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 31 [22:21:39]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:21:39]wFMCommunicate OK [22:21:39]SAM_PROTO_GetShiftState done [22:21:39]FM_GetShiftState done [22:21:39]req_shift_opened done [22:21:39]requested_item shift.open_date is exist - process it [22:21:39]req_shift_open_date [22:21:39]req_shift_open_date done [22:21:39]produce_requested_data done [22:21:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139789,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:21:39]process_action_free close_receipt [22:21:39]json_value_free [22:21:39]json_value_free done [22:21:39]process_json_proto returns [22:21:39]Send response to host [22:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139789,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:21:39]free response buf [22:21:39]execute_script done [22:21:39]execute_script returns [22:21:39]free content buf [22:21:39]Sock 10.Close socket [22:21:39]Sock 10.Thread stoped [22:21:43]OFD Sender: No OFD packet to send [22:21:44]Write to MH i2c: 01 00 00 62 2A 8C [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: 01 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: 01 07 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: 01 07 00 62 2A 00 03 00 00 00 FF 0F A4 [22:21:44]state=3 [22:21:44]No paper [22:21:44]Cover opened [22:21:48]OFD Sender: No OFD packet to send [22:21:49]Write to MH i2c: 01 00 00 63 2A 8D [22:21:49]Write i2c OK [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: 01 [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: 01 07 00 [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: 01 07 00 63 2A 00 03 00 00 00 FF 0F A5 [22:21:49]state=3 [22:21:49]No paper [22:21:49]Cover opened [22:21:52]int [22:21:52]Write to MH i2c: 01 00 00 64 2A 8E [22:21:52]*** FLAG_PRN_PAP2 reset [22:21:52]Write i2c OK [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 07 00 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 07 00 64 2A 00 01 00 00 00 FF 0F A4 [22:21:52]state=3 [22:21:52]No paper [22:21:52]Cover closed [22:21:52]int [22:21:52]Write to MH i2c: 01 00 00 65 2A 8F [22:21:52]*** FLAG_PRN_PAP1 reset [22:21:52]Write i2c OK [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 07 00 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 07 00 65 2A 00 00 00 00 00 FF 0F A4 [22:21:52]state=0 [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:19]accept exits with 7 [22:25:19]New connection [22:25:19]New thread 3066654052 created [22:25:19]Thread 3066510692 joined [22:25:19]Waiting for new connection... [22:25:19] Sock 7.Parse request [22:25:19]Sock 7.Check first char [22:25:19]Sock 7.First char is OK [22:25:19]request: POST /json_proto HTTP/1.0 [22:25:19]Method: POST [22:25:19]URL: /json_proto [22:25:19]Method is POST - this is cgi request [22:25:19]url: /json_proto [22:25:19]query_string will be loaded in cgi processing [22:25:19]execute_cgi json_proto POST (null) [22:25:19]execute_cgi path=json_proto method=POST [22:25:19]POST find Content-Length [22:25:19]Host: 172.17.50.196:8080 [22:25:19]Content-Length: 718 [22:25:19]Content-Type: application/json [22:25:19] [22:25:19]POST finish read [22:25:19]Found Content-Length = 718 [22:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335624", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:19]execute_script... [22:25: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)335624", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:19]POST & json_proto [22:25:19]process_json_proto [22:25:19]json parsed OK: [22:25:19]protocol is kg_v1.0 [22:25:19]action value=close_receipt [22:25:19]process_action close_receipt [22:25:19]cmd_close_receipt [22:25:19]MH_GetDate [22:25:19]Write to MH i2c: F0 00 00 66 2A 7F [22:25:19]Write i2c OK [22:25:19]MH_I2C_Read... [22:25:19]Read from MH i2c: F0 [22:25:19]MH_I2C_Read... [22:25:19]Read from MH i2c: F0 09 00 [22:25:19]MH_I2C_Read... [22:25:19]Read from MH i2c: F0 09 00 66 2A 00 D2 03 24 67 72 0D 1C 67 EA [22:25:19]GetLastDocTimeStamp 1730413298 [22:25:19]current date 1730413522 [22:25:19]FM_GetShiftState [22:25:19]SAM_PROTO_GetShiftState [22:25:19]wFMCommunicate request_size=4 [22:25:19]MH_SAM_APDU [22:25:19]CAPDU: 80 13 01 00 [22:25:19]Write to MH i2c: E2 08 00 67 2A 80 13 01 00 00 00 00 00 0E [22:25:19]Write i2c OK [22:25:19]MH_I2C_Read... [22:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:19]Read from MH i2c: E2 [22:25:19]MH_I2C_Read... [22:25:19]Read from MH i2c: E2 0E 00 [22:25:19]MH_I2C_Read... [22:25:19]Read from MH i2c: E2 0E 00 67 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 37 [22:25:19]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:25:19]wFMCommunicate OK [22:25:19]SAM_PROTO_GetShiftState done [22:25:19]FM_GetShiftState done [22:25:19]opened in 1730332621 [22:25:19]opened+sec_in_day 1730419021 [22:25:19]quantity*price = 10400 [22:25:19]sum+1 = 10401 [22:25:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 267 31.10.2024 22:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139790 ФПД: 260802504791734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T222522&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139790&fm=260802504791734&tin=02508201610067®Number=0000000000091631&sum=10400 0 [22:25:20]StoreToDocumentArchive [22:25:20]shift 557 fd 139790 [22:25:20]save to /storage/0557/doc_00139790 [22:25:20]save last doc name /storage/0557/doc_00139790 to /storage/kkm_last_doc_name [22:25:20]save OK [22:25:20]Clear old archive folders... [22:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=306 [22:25:20]tlvbuf is B6F0F8C0 [22:25:20]SAM_PROTO_ClearQueue [22:25:20]wFMCommunicate request_size=4 [22:25:20]MH_SAM_APDU [22:25:20]CAPDU: 80 09 00 00 [22:25:20]Write to MH i2c: E2 08 00 74 2A 80 09 00 00 00 00 00 00 10 [22:25:20]Write i2c OK [22:25:20]MH_I2C_Read... [22:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:20]Read from MH i2c: E2 [22:25:20]MH_I2C_Read... [22:25:20]Read from MH i2c: E2 03 00 [22:25:20]MH_I2C_Read... [22:25:20]Read from MH i2c: E2 03 00 74 2A 00 90 00 12 [22:25:20]RAPDU: 90 00 [22:25:20]wFMCommunicate OK [22:25:20]SAM_PROTO_ClearQueue done [22:25:20]KKMCreateOFDPacket [22:25:20]OFDProtocolAddRootSTLVToBuf [22:25:20]FM_MakeSignedData [22:25:20]FM_MakeSignedData [22:25:20]SAM_PROTO_SignData [22:25:20]wFMCommunicate request_size=4 [22:25:20]MH_SAM_APDU [22:25:20]CAPDU: 80 0D 01 02 [22:25:20]Write to MH i2c: E2 08 00 75 2A 80 0D 01 02 00 00 00 00 18 [22:25:20]Write i2c OK [22:25:20]MH_I2C_Read... [22:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:20]Read from MH i2c: E2 [22:25:20]MH_I2C_Read... [22:25:20]Read from MH i2c: E2 03 00 [22:25:20]MH_I2C_Read... [22:25:20]Read from MH i2c: E2 03 00 75 2A 00 90 00 13 [22:25:20]RAPDU: 90 00 [22:25:20]wFMCommunicate OK [22:25:20]wFMCommunicate request_size=255 [22:25:20]MH_SAM_APDU [22:25:20]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 03 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 [22:25:20]Write to MH i2c: E2 02 01 76 2A 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 03 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 00 A2 [22:25:20]Write i2c OK [22:25:20]MH_I2C_Read... [22:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:21]Read from MH i2c: E2 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 03 00 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 03 00 76 2A 00 90 00 14 [22:25:21]RAPDU: 90 00 [22:25:21]wFMCommunicate OK [22:25:21]wFMCommunicate request_size=65 [22:25:21]MH_SAM_APDU [22:25:21]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 22 02 00 35 04 06 00 ED 32 D0 A7 96 B6 [22:25:21]Write to MH i2c: E2 44 00 77 2A 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 22 02 00 35 04 06 00 ED 32 D0 A7 96 B6 00 00 81 [22:25:21]Write i2c OK [22:25:21]MH_I2C_Read... [22:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:21]Read from MH i2c: E2 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 03 00 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 03 00 77 2A 00 90 00 15 [22:25:21]RAPDU: 90 00 [22:25:21]wFMCommunicate OK [22:25:21]wFMCommunicate request_size=4 [22:25:21]MH_SAM_APDU [22:25:21]CAPDU: 80 0D 03 02 [22:25:21]Write to MH i2c: E2 08 00 78 2A 80 0D 03 02 00 00 00 00 1D [22:25:21]Write i2c OK [22:25:21]MH_I2C_Read... [22:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:21]Read from MH i2c: E2 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 0B 00 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 0B 00 78 2A 00 46 E5 A0 CA 34 BD FB 1B 90 00 BA [22:25:21]RAPDU: 46 E5 A0 CA 34 BD FB 1B 90 00 [22:25:21]wFMCommunicate OK [22:25:21]SAM_PROTO_SignData done [22:25:21]FM_MakeSignedData done [22:25:21]CreateOFDProtocolMessage [22:25:21]wFMCommunicate request_size=4 [22:25:21]MH_SAM_APDU [22:25:21]CAPDU: 80 11 00 00 [22:25:21]Write to MH i2c: E2 08 00 79 2A 80 11 00 00 00 00 00 00 1D [22:25:21]Write i2c OK [22:25:21]MH_I2C_Read... [22:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:21]Read from MH i2c: E2 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 17 00 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: E2 17 00 79 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 78 [22:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:25:21]wFMCommunicate OK [22:25:21]CreateOFDProtocolMessage done [22:25:21]OFDSenderStorePacket 139790 [22:25:21]StoreOFDPacket docnum=139790 [22:25: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 46 01 00 00 6D DF 3E 01 67 59 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 03 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 22 02 00 35 04 06 00 ED 32 D0 A7 96 B6 46 E5 A0 CA 34 BD FB 1B [22:25:21]CheckFolder [22:25:21]dirname=/storage/ofd_packets [22:25:21]CheckFolder done [22:25:21]ProducePacketName [22:25:21]name=ofd_packets/00139790 [22:25:21]NVStorageSaveData ofd_packets/00139790 [22:25:21]File name is /storage/ofd_packets/00139790 [22:25:21]Write 356 bytes [22:25:21]NVStorageSaveData done [22:25:21]OFDSenderStorePacket done [22:25:21]KKMCreateOFDPacket done [22:25:21]NVStorageSaveData kkm_last_timestamp [22:25:21]File name is /storage/kkm_last_timestamp [22:25:21]Write 4 bytes [22:25:21]NVStorageSaveData done [22:25:21]ExternCall_PrintAddStr [22:25:21]wPrintStart [22:25:21]Write to MH i2c: 01 00 00 7A 2A A4 [22:25:21]Write i2c OK [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: 01 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: 01 07 00 [22:25:21]MH_I2C_Read... [22:25:21]Read from MH i2c: 01 07 00 7A 2A 00 00 00 00 00 FF 0F B9 [22:25:21]RasterBufferAndPrint [22:25:21]line Счет N : (3)335624 [22:25:21]line ИНН: 02508201610067 [22:25:21]line Контрольно-Кассовый Чек [22:25:21]line ПРОДАЖА [22:25:21]line Товар: 4870202522671 [22:25:21]line Garden напиток со вкусом граната 1,20 ПЭ [22:25:21]line 1.000 * 104.00 [22:25:21]line = 104.00 [22:25:21]line НДС 12% НСП 1% [22:25:21]line > о реализуемом товаре [22:25:21]line ИТОГО: 104.00 [22:25:21]line НСП 1% : 0.92 [22:25:21]line НДС 12% : 11.04 [22:25:21]line Наличными: 104.00 [22:25:21]line Безнал.: 0.00 [22:25:21]line Место: АЗС № 101 "Партнер Нефть" [22:25:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:25:21]line СНО: Общий режим [22:25:21]line Чек 267 31.10.2024 22:25 [22:25:21]line Смена: 557 ФФД: 1.0 [22:25:21]line ЗНМ: 0300000081 [22:25:21]line РНМ: 0000000000091631 [22:25:21]line Версия ККМ: 001 [22:25:21]line ФМ: 0000000000874669 [22:25:21]line ФД: 139790 [22:25:21]line ФПД: 260802504791734 [22:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T222522&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139790&fm=260802504791734&tin=02508201610067®Number=0000000000091631&sum=10400 [22:25:21]line 0 [22:25:21]OFD Sender: Processing packet 139790 [packets to send 34, broken 33] [22:25:21]ProducePacketName [22:25:21]name=ofd_packets/00139790 [22:25:21]OFD Sender: To server: pG, [22:25:21]CommunicateWithHost lk.salyk.kg:30040 [22:25:21]ConnectInit lk.salyk.kg [22:25:21]written 0, free lines is 4095 [22:25:21]Connected sock=10 [22:25: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 46 01 00 00 6D DF 3E 01 67 59 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 03 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 22 02 00 35 04 06 00 ED 32 D0 A7 96 B6 46 E5 A0 CA 34 BD FB 1B [22:25: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 16 55 47 00 B0 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 22 02 00 F4 03 04 00 7E AF 23 67 B6 04 01 00 00 2D 14 A1 0F 0B 0F 4D 51 [22:25:21]CommunicateWithHost err = 0 [22:25:21]CheckOFDResponse [22:25:21]1017 (14) - 77093643461234 [22:25:21]1041 (16) - 0000000000874669 [22:25:21]1040 (4) - 139790 [22:25:21]1012 (4) - 31.10.2024 16:25 [22:25:21]1206 (1) - 0 [22:25:21]OFD Sender: Remove packet 139790 [22:25:21]ProducePacketName [22:25:21]name=ofd_packets/00139790 [22:25:21]NVStorageDeleteData [22:25:22]Write to MH i2c: 01 00 00 A3 2A CD [22:25:22]Write i2c OK [22:25:22]MH_I2C_Read... [22:25:22]Read from MH i2c: 01 [22:25:22]MH_I2C_Read... [22:25:22]Read from MH i2c: 01 07 00 [22:25:22]MH_I2C_Read... [22:25:22]Read from MH i2c: 01 07 00 A3 2A 00 00 00 00 00 F5 0C D5 [22:25:22]RasterBufferAndPrint [22:25:22]line [22:25:22]line [22:25:22]line [22:25:22]line [22:25:22]line [22:25:22]written 0, free lines is 3326 [22:25:22]MH_Cut [22:25:22]Write to MH i2c: D1 01 00 AA 2A 01 A6 [22:25:22]Write i2c OK [22:25:22]MH_I2C_Read... [22:25:22]Read from MH i2c: D1 [22:25:22]MH_I2C_Read... [22:25:22]Read from MH i2c: D1 01 00 [22:25:22]MH_I2C_Read... [22:25:22]Read from MH i2c: D1 01 00 AA 2A 00 A5 [22:25:22]Write to MH i2c: 01 00 00 AB 2A D5 [22:25:22]Write i2c OK [22:25:22]MH_I2C_Read... [22:25:22]OFD Sender: No OFD packet to send [22:25:22]*** Cut start [22:25:22]*** Partial cut [22:25:22]*** CUTSNS_PIN = 1 [22:25:22]*** CUTSNS_PIN = 0 [22:25:22]*** Brake cut motor [22:25:23]Read from MH i2c: 01 [22:25:23]MH_I2C_Read... [22:25:23]*** Stop cut motor [22:25:23]*** Cut end [22:25:23]Read from MH i2c: 01 07 00 [22:25:23]MH_I2C_Read... [22:25:23]Read from MH i2c: 01 07 00 AB 2A 00 00 00 00 00 FF 0F EA [22:25:23]process_action close_receipt done [22:25:23]requested_data is exist [22:25:23]produce_requested_data [22:25:23]requested_item fm.sn is exist - process it [22:25:23]wFMCommunicate request_size=4 [22:25:23]MH_SAM_APDU [22:25:23]CAPDU: 80 11 00 00 [22:25:23]Write to MH i2c: E2 08 00 AC 2A 80 11 00 00 00 00 00 00 50 [22:25:23]Write i2c OK [22:25:23]MH_I2C_Read... [22:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:23]Read from MH i2c: E2 [22:25:23]MH_I2C_Read... [22:25:23]Read from MH i2c: E2 17 00 [22:25:23]MH_I2C_Read... [22:25:23]Read from MH i2c: E2 17 00 AC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AB [22:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:25:23]wFMCommunicate OK [22:25:23]requested_item fd.num is exist - process it [22:25:23]SAM_PROTO_GetFieldsCounters [22:25:23]wFMCommunicate request_size=4 [22:25:23]MH_SAM_APDU [22:25:23]CAPDU: 80 13 00 00 [22:25:23]Write to MH i2c: E2 08 00 AD 2A 80 13 00 00 00 00 00 00 53 [22:25:23]Write i2c OK [22:25:23]MH_I2C_Read... [22:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:23]Read from MH i2c: E2 [22:25:23]MH_I2C_Read... [22:25:23]Read from MH i2c: E2 62 00 [22:25:23]MH_I2C_Read... [22:25:23]Read from MH i2c: E2 62 00 AD 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0E 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [22:25: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 0E 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:23]wFMCommunicate OK [22:25:23]SAM_PROTO_GetFieldsCounters done [22:25:23]requested_item shift.num is exist - process it [22:25:23]requested_item shift.opened is exist - process it [22:25:23]req_shift_opened [22:25:23]FM_GetShiftState [22:25:23]SAM_PROTO_GetShiftState [22:25:23]wFMCommunicate request_size=4 [22:25:23]MH_SAM_APDU [22:25:23]CAPDU: 80 13 01 00 [22:25:23]Write to MH i2c: E2 08 00 AE 2A 80 13 01 00 00 00 00 00 55 [22:25:23]Write i2c OK [22:25:23]MH_I2C_Read... [22:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:23]Read from MH i2c: E2 [22:25:23]MH_I2C_Read... [22:25:23]Read from MH i2c: E2 0E 00 [22:25:23]MH_I2C_Read... [22:25:23]Read from MH i2c: E2 0E 00 AE 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7E [22:25:23]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:25:23]wFMCommunicate OK [22:25:23]SAM_PROTO_GetShiftState done [22:25:23]FM_GetShiftState done [22:25:23]req_shift_opened done [22:25:23]requested_item shift.open_date is exist - process it [22:25:23]req_shift_open_date [22:25:23]req_shift_open_date done [22:25:23]produce_requested_data done [22:25:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139790,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:25:23]process_action_free close_receipt [22:25:23]json_value_free [22:25:23]json_value_free done [22:25:23]process_json_proto returns [22:25:23]Send response to host [22:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139790,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:25:23]free response buf [22:25:23]execute_script done [22:25:23]execute_script returns [22:25:23]free content buf [22:25:23]Sock 7.Close socket [22:25:23]Sock 7.Thread stoped [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:05]accept exits with 9 [22:36:05]New connection [22:36:05]New thread 3066510692 created [22:36:05]Thread 3066654052 joined [22:36:05]Waiting for new connection... [22:36:05] Sock 9.Parse request [22:36:05]Sock 9.Check first char [22:36:05]Sock 9.First char is OK [22:36:05]request: POST /json_proto HTTP/1.0 [22:36:05]Method: POST [22:36:05]URL: /json_proto [22:36:05]Method is POST - this is cgi request [22:36:05]url: /json_proto [22:36:05]query_string will be loaded in cgi processing [22:36:05]execute_cgi json_proto POST (null) [22:36:05]execute_cgi path=json_proto method=POST [22:36:05]POST find Content-Length [22:36:05]Host: 172.17.50.196:8080 [22:36:05]Content-Length: 702 [22:36:05]Content-Type: application/json [22:36:05] [22:36:05]POST finish read [22:36:05]Found Content-Length = 702 [22:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335625", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:05]execute_script... [22:36:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335625", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:05]POST & json_proto [22:36:05]process_json_proto [22:36:05]json parsed OK: [22:36:05]protocol is kg_v1.0 [22:36:05]action value=close_receipt [22:36:05]process_action close_receipt [22:36:05]cmd_close_receipt [22:36:05]MH_GetDate [22:36:05]Write to MH i2c: F0 00 00 AF 2A C8 [22:36:05]Write i2c OK [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: F0 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: F0 09 00 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: F0 09 00 AF 2A 00 58 06 24 67 72 0D 1C 67 BC [22:36:05]GetLastDocTimeStamp 1730413522 [22:36:05]current date 1730414168 [22:36:05]FM_GetShiftState [22:36:05]SAM_PROTO_GetShiftState [22:36:05]wFMCommunicate request_size=4 [22:36:05]MH_SAM_APDU [22:36:05]CAPDU: 80 13 01 00 [22:36:05]Write to MH i2c: E2 08 00 B0 2A 80 13 01 00 00 00 00 00 57 [22:36:05]Write i2c OK [22:36:05]MH_I2C_Read... [22:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:05]Read from MH i2c: E2 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: E2 0E 00 [22:36:05]MH_I2C_Read... [22:36:05]Read from MH i2c: E2 0E 00 B0 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 80 [22:36:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:36:05]wFMCommunicate OK [22:36:05]SAM_PROTO_GetShiftState done [22:36:05]FM_GetShiftState done [22:36:05]opened in 1730332621 [22:36:05]opened+sec_in_day 1730419021 [22:36:05]quantity*price = 12500 [22:36:05]sum+1 = 12501 [22:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 268 31.10.2024 22:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139791 ФПД: 81908217478365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T223608&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139791&fm=81908217478365&tin=02508201610067®Number=0000000000091631&sum=12500 0 [22:36:06]StoreToDocumentArchive [22:36:06]shift 557 fd 139791 [22:36:06]save to /storage/0557/doc_00139791 [22:36:06]save last doc name /storage/0557/doc_00139791 to /storage/kkm_last_doc_name [22:36:06]save OK [22:36:06]Clear old archive folders... [22:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=298 [22:36:06]tlvbuf is B6F0F8C0 [22:36:06]SAM_PROTO_ClearQueue [22:36:06]wFMCommunicate request_size=4 [22:36:06]MH_SAM_APDU [22:36:06]CAPDU: 80 09 00 00 [22:36:06]Write to MH i2c: E2 08 00 BD 2A 80 09 00 00 00 00 00 00 59 [22:36:06]Write i2c OK [22:36:06]MH_I2C_Read... [22:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:06]Read from MH i2c: E2 [22:36:06]MH_I2C_Read... [22:36:06]Read from MH i2c: E2 03 00 [22:36:06]MH_I2C_Read... [22:36:06]Read from MH i2c: E2 03 00 BD 2A 00 90 00 5B [22:36:06]RAPDU: 90 00 [22:36:06]wFMCommunicate OK [22:36:06]SAM_PROTO_ClearQueue done [22:36:06]KKMCreateOFDPacket [22:36:06]OFDProtocolAddRootSTLVToBuf [22:36:06]FM_MakeSignedData [22:36:06]FM_MakeSignedData [22:36:06]SAM_PROTO_SignData [22:36:06]wFMCommunicate request_size=4 [22:36:06]MH_SAM_APDU [22:36:06]CAPDU: 80 0D 01 02 [22:36:06]Write to MH i2c: E2 08 00 BE 2A 80 0D 01 02 00 00 00 00 61 [22:36:06]Write i2c OK [22:36:06]MH_I2C_Read... [22:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:06]Read from MH i2c: E2 [22:36:06]MH_I2C_Read... [22:36:06]Read from MH i2c: E2 03 00 [22:36:06]MH_I2C_Read... [22:36:06]Read from MH i2c: E2 03 00 BE 2A 00 90 00 5C [22:36:06]RAPDU: 90 00 [22:36:06]wFMCommunicate OK [22:36:06]wFMCommunicate request_size=255 [22:36:06]MH_SAM_APDU [22:36:06]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 58 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [22:36:06]Write to MH i2c: E2 02 01 BF 2A 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 58 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 EA [22:36:06]Write i2c OK [22:36:06]MH_I2C_Read... [22:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:06]Read from MH i2c: E2 [22:36:06]MH_I2C_Read... [22:36:06]Read from MH i2c: E2 03 00 [22:36:06]MH_I2C_Read... [22:36:06]Read from MH i2c: E2 03 00 BF 2A 00 90 00 5D [22:36:06]RAPDU: 90 00 [22:36:06]wFMCommunicate OK [22:36:06]wFMCommunicate request_size=57 [22:36:06]MH_SAM_APDU [22:36:06]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 0F 22 02 00 35 04 06 00 4A 7E BE 34 FC DD [22:36:06]Write to MH i2c: E2 3C 00 C0 2A 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 0F 22 02 00 35 04 06 00 4A 7E BE 34 FC DD 00 00 EA [22:36:06]Write i2c OK [22:36:06]MH_I2C_Read... [22:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:07]Read from MH i2c: E2 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: E2 03 00 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: E2 03 00 C0 2A 00 90 00 5E [22:36:07]RAPDU: 90 00 [22:36:07]wFMCommunicate OK [22:36:07]wFMCommunicate request_size=4 [22:36:07]MH_SAM_APDU [22:36:07]CAPDU: 80 0D 03 02 [22:36:07]Write to MH i2c: E2 08 00 C1 2A 80 0D 03 02 00 00 00 00 66 [22:36:07]Write i2c OK [22:36:07]MH_I2C_Read... [22:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:07]Read from MH i2c: E2 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: E2 0B 00 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: E2 0B 00 C1 2A 00 31 08 C7 43 80 25 C5 51 90 00 65 [22:36:07]RAPDU: 31 08 C7 43 80 25 C5 51 90 00 [22:36:07]wFMCommunicate OK [22:36:07]SAM_PROTO_SignData done [22:36:07]FM_MakeSignedData done [22:36:07]CreateOFDProtocolMessage [22:36:07]wFMCommunicate request_size=4 [22:36:07]MH_SAM_APDU [22:36:07]CAPDU: 80 11 00 00 [22:36:07]Write to MH i2c: E2 08 00 C2 2A 80 11 00 00 00 00 00 00 66 [22:36:07]Write i2c OK [22:36:07]MH_I2C_Read... [22:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:07]Read from MH i2c: E2 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: E2 17 00 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: E2 17 00 C2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [22:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:36:07]wFMCommunicate OK [22:36:07]CreateOFDProtocolMessage done [22:36:07]OFDSenderStorePacket 139791 [22:36:07]StoreOFDPacket docnum=139791 [22:36: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 3E 01 00 00 08 C7 36 01 B8 EE 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 58 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0F 22 02 00 35 04 06 00 4A 7E BE 34 FC DD 31 08 C7 43 80 25 C5 51 [22:36:07]CheckFolder [22:36:07]dirname=/storage/ofd_packets [22:36:07]CheckFolder done [22:36:07]ProducePacketName [22:36:07]name=ofd_packets/00139791 [22:36:07]NVStorageSaveData ofd_packets/00139791 [22:36:07]File name is /storage/ofd_packets/00139791 [22:36:07]Write 348 bytes [22:36:07]NVStorageSaveData done [22:36:07]OFDSenderStorePacket done [22:36:07]KKMCreateOFDPacket done [22:36:07]NVStorageSaveData kkm_last_timestamp [22:36:07]File name is /storage/kkm_last_timestamp [22:36:07]Write 4 bytes [22:36:07]NVStorageSaveData done [22:36:07]ExternCall_PrintAddStr [22:36:07]wPrintStart [22:36:07]Write to MH i2c: 01 00 00 C3 2A ED [22:36:07]Write i2c OK [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: 01 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: 01 07 00 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: 01 07 00 C3 2A 00 00 00 00 00 FF 0F 02 [22:36:07]RasterBufferAndPrint [22:36:07]line Счет N : (3)335625 [22:36:07]line ИНН: 02508201610067 [22:36:07]line Контрольно-Кассовый Чек [22:36:07]line ПРОДАЖА [22:36:07]line Товар: 4870202522701 [22:36:07]line Напиток Maxi Чай черный Малина 1,2 [22:36:07]line 1.000 * 125.00 [22:36:07]line = 125.00 [22:36:07]line НДС 12% НСП 1% [22:36:07]line > о реализуемом товаре [22:36:07]line ИТОГО: 125.00 [22:36:07]line НСП 1% : 1.11 [22:36:07]line НДС 12% : 13.27 [22:36:07]line Наличными: 125.00 [22:36:07]line Безнал.: 0.00 [22:36:07]line Место: АЗС № 101 "Партнер Нефть" [22:36:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:36:07]line СНО: Общий режим [22:36:07]line Чек 268 31.10.2024 22:36 [22:36:07]line Смена: 557 ФФД: 1.0 [22:36:07]line ЗНМ: 0300000081 [22:36:07]line РНМ: 0000000000091631 [22:36:07]line Версия ККМ: 001 [22:36:07]line ФМ: 0000000000874669 [22:36:07]line ФД: 139791 [22:36:07]line ФПД: 81908217478365 [22:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T223608&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139791&fm=81908217478365&tin=02508201610067®Number=0000000000091631&sum=12500 [22:36:07]line 0 [22:36:07]OFD Sender: Processing packet 139791 [packets to send 34, broken 33] [22:36:07]ProducePacketName [22:36:07]name=ofd_packets/00139791 [22:36:07]OFD Sender: To server: pG, [22:36:07]CommunicateWithHost lk.salyk.kg:30040 [22:36:07]ConnectInit lk.salyk.kg [22:36:07]written 0, free lines is 4095 [22:36:07]Connected sock=10 [22:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3E 01 00 00 08 C7 36 01 B8 EE 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 58 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0F 22 02 00 35 04 06 00 4A 7E BE 34 FC DD 31 08 C7 43 80 25 C5 51 [22:36: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 3C 94 47 00 00 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 0F 22 02 00 F4 03 04 00 04 B2 23 67 B6 04 01 00 00 BA 22 BF 95 1C B8 04 E3 [22:36:07]CommunicateWithHost err = 0 [22:36:07]CheckOFDResponse [22:36:07]1017 (14) - 77093643461234 [22:36:07]1041 (16) - 0000000000874669 [22:36:07]1040 (4) - 139791 [22:36:07]1012 (4) - 31.10.2024 16:36 [22:36:07]1206 (1) - 0 [22:36:07]OFD Sender: Remove packet 139791 [22:36:07]ProducePacketName [22:36:07]name=ofd_packets/00139791 [22:36:07]NVStorageDeleteData [22:36:07]Write to MH i2c: 01 00 00 EC 2A 16 [22:36:07]Write i2c OK [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: 01 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: 01 07 00 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: 01 07 00 EC 2A 00 00 00 00 00 F2 0C 1B [22:36:07]RasterBufferAndPrint [22:36:07]line [22:36:07]line [22:36:07]line [22:36:07]line [22:36:07]line [22:36:07]written 0, free lines is 3320 [22:36:07]MH_Cut [22:36:07]Write to MH i2c: D1 01 00 F3 2A 01 EF [22:36:07]Write i2c OK [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: D1 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: D1 01 00 [22:36:07]MH_I2C_Read... [22:36:07]Read from MH i2c: D1 01 00 F3 2A 00 EE [22:36:07]Write to MH i2c: 01 00 00 F4 2A 1E [22:36:07]Write i2c OK [22:36:07]MH_I2C_Read... [22:36:08]OFD Sender: No OFD packet to send [22:36:08]*** Cut start [22:36:08]*** Partial cut [22:36:08]*** CUTSNS_PIN = 1 [22:36:08]*** CUTSNS_PIN = 0 [22:36:08]*** Brake cut motor [22:36:09]Read from MH i2c: 01 [22:36:09]MH_I2C_Read... [22:36:09]*** Stop cut motor [22:36:09]*** Cut end [22:36:09]Read from MH i2c: 01 07 00 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [22:36:09]process_action close_receipt done [22:36:09]requested_data is exist [22:36:09]produce_requested_data [22:36:09]requested_item fm.sn is exist - process it [22:36:09]wFMCommunicate request_size=4 [22:36:09]MH_SAM_APDU [22:36:09]CAPDU: 80 11 00 00 [22:36:09]Write to MH i2c: E2 08 00 F5 2A 80 11 00 00 00 00 00 00 99 [22:36:09]Write i2c OK [22:36:09]MH_I2C_Read... [22:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:09]Read from MH i2c: E2 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 17 00 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 17 00 F5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F4 [22:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:36:09]wFMCommunicate OK [22:36:09]requested_item fd.num is exist - process it [22:36:09]SAM_PROTO_GetFieldsCounters [22:36:09]wFMCommunicate request_size=4 [22:36:09]MH_SAM_APDU [22:36:09]CAPDU: 80 13 00 00 [22:36:09]Write to MH i2c: E2 08 00 F6 2A 80 13 00 00 00 00 00 00 9C [22:36:09]Write i2c OK [22:36:09]MH_I2C_Read... [22:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:09]Read from MH i2c: E2 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 62 00 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 62 00 F6 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0F 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [22:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0F 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:09]wFMCommunicate OK [22:36:09]SAM_PROTO_GetFieldsCounters done [22:36:09]requested_item shift.num is exist - process it [22:36:09]requested_item shift.opened is exist - process it [22:36:09]req_shift_opened [22:36:09]FM_GetShiftState [22:36:09]SAM_PROTO_GetShiftState [22:36:09]wFMCommunicate request_size=4 [22:36:09]MH_SAM_APDU [22:36:09]CAPDU: 80 13 01 00 [22:36:09]Write to MH i2c: E2 08 00 F7 2A 80 13 01 00 00 00 00 00 9E [22:36:09]Write i2c OK [22:36:09]MH_I2C_Read... [22:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:09]Read from MH i2c: E2 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 0E 00 [22:36:09]MH_I2C_Read... [22:36:09]Read from MH i2c: E2 0E 00 F7 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C7 [22:36:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:36:09]wFMCommunicate OK [22:36:09]SAM_PROTO_GetShiftState done [22:36:09]FM_GetShiftState done [22:36:09]req_shift_opened done [22:36:09]requested_item shift.open_date is exist - process it [22:36:09]req_shift_open_date [22:36:09]req_shift_open_date done [22:36:09]produce_requested_data done [22:36:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139791,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:36:09]process_action_free close_receipt [22:36:09]json_value_free [22:36:09]json_value_free done [22:36:09]process_json_proto returns [22:36:09]Send response to host [22:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139791,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:36:09]free response buf [22:36:09]execute_script done [22:36:09]execute_script returns [22:36:09]free content buf [22:36:09]Sock 9.Close socket [22:36:09]Sock 9.Thread stoped [22:36:12]accept exits with 7 [22:36:12]New connection [22:36:12]New thread 3066654052 created [22:36:12]Thread 3066510692 joined [22:36:12]Waiting for new connection... [22:36:12] Sock 7.Parse request [22:36:12]Sock 7.Check first char [22:36:12]Sock 7.First char is OK [22:36:12]request: POST /json_proto HTTP/1.0 [22:36:12]Method: POST [22:36:12]URL: /json_proto [22:36:12]Method is POST - this is cgi request [22:36:12]url: /json_proto [22:36:12]query_string will be loaded in cgi processing [22:36:12]execute_cgi json_proto POST (null) [22:36:12]execute_cgi path=json_proto method=POST [22:36:12]POST find Content-Length [22:36:12]Host: 172.17.50.196:8080 [22:36:12]Content-Length: 639 [22:36:12]Content-Type: application/json [22:36:12] [22:36:12]POST finish read [22:36:12]Found Content-Length = 639 [22:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335626", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:12]execute_script... [22:36: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)335626", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:12]POST & json_proto [22:36:12]process_json_proto [22:36:12]json parsed OK: [22:36:12]protocol is kg_v1.0 [22:36:12]action value=close_receipt [22:36:12]process_action close_receipt [22:36:12]cmd_close_receipt [22:36:12]MH_GetDate [22:36:12]Write to MH i2c: F0 00 00 F8 2A 11 [22:36:12]Write i2c OK [22:36:12]MH_I2C_Read... [22:36:12]Read from MH i2c: F0 [22:36:12]MH_I2C_Read... [22:36:12]Read from MH i2c: F0 09 00 [22:36:12]MH_I2C_Read... [22:36:12]Read from MH i2c: F0 09 00 F8 2A 00 5F 06 24 67 72 0D 1C 67 0C [22:36:12]GetLastDocTimeStamp 1730414168 [22:36:12]current date 1730414175 [22:36:12]FM_GetShiftState [22:36:12]SAM_PROTO_GetShiftState [22:36:12]wFMCommunicate request_size=4 [22:36:12]MH_SAM_APDU [22:36:12]CAPDU: 80 13 01 00 [22:36:12]Write to MH i2c: E2 08 00 F9 2A 80 13 01 00 00 00 00 00 A0 [22:36:12]Write i2c OK [22:36:12]MH_I2C_Read... [22:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:12]Read from MH i2c: E2 [22:36:12]MH_I2C_Read... [22:36:12]Read from MH i2c: E2 0E 00 [22:36:12]MH_I2C_Read... [22:36:12]Read from MH i2c: E2 0E 00 F9 2A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C9 [22:36:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:36:12]wFMCommunicate OK [22:36:12]SAM_PROTO_GetShiftState done [22:36:12]FM_GetShiftState done [22:36:12]opened in 1730332621 [22:36:12]opened+sec_in_day 1730419021 [22:36:12]quantity*price = 4000 [22:36:12]sum+1 = 4001 [22:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 269 31.10.2024 22:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139792 ФПД: 91419156461002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T223615&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139792&fm=91419156461002&tin=02508201610067®Number=0000000000091631&sum=4000 0 [22:36:13]StoreToDocumentArchive [22:36:13]shift 557 fd 139792 [22:36:13]save to /storage/0557/doc_00139792 [22:36:13]save last doc name /storage/0557/doc_00139792 to /storage/kkm_last_doc_name [22:36:13]save OK [22:36:13]Clear old archive folders... [22:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:36:13]tlvbuf is B6F0F4C0 [22:36:13]SAM_PROTO_ClearQueue [22:36:13]wFMCommunicate request_size=4 [22:36:13]MH_SAM_APDU [22:36:13]CAPDU: 80 09 00 00 [22:36:13]Write to MH i2c: E2 08 00 06 2B 80 09 00 00 00 00 00 00 A3 [22:36:13]Write i2c OK [22:36:13]MH_I2C_Read... [22:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:13]Read from MH i2c: E2 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 03 00 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 03 00 06 2B 00 90 00 A5 [22:36:13]RAPDU: 90 00 [22:36:13]wFMCommunicate OK [22:36:13]SAM_PROTO_ClearQueue done [22:36:13]KKMCreateOFDPacket [22:36:13]OFDProtocolAddRootSTLVToBuf [22:36:13]FM_MakeSignedData [22:36:13]FM_MakeSignedData [22:36:13]SAM_PROTO_SignData [22:36:13]wFMCommunicate request_size=4 [22:36:13]MH_SAM_APDU [22:36:13]CAPDU: 80 0D 01 02 [22:36:13]Write to MH i2c: E2 08 00 07 2B 80 0D 01 02 00 00 00 00 AB [22:36:13]Write i2c OK [22:36:13]MH_I2C_Read... [22:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:13]Read from MH i2c: E2 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 03 00 [22:36:13]MH_I2C_Read... [22:36:13]Read from MH i2c: E2 03 00 07 2B 00 90 00 A6 [22:36:13]RAPDU: 90 00 [22:36:13]wFMCommunicate OK [22:36:13]wFMCommunicate request_size=255 [22:36:13]MH_SAM_APDU [22:36:13]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5F 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [22:36:13]Write to MH i2c: E2 02 01 08 2B 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5F 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 04 [22:36:13]Write i2c OK [22:36:13]MH_I2C_Read... [22:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:14]Read from MH i2c: E2 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 03 00 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 03 00 08 2B 00 90 00 A7 [22:36:14]RAPDU: 90 00 [22:36:14]wFMCommunicate OK [22:36:14]wFMCommunicate request_size=33 [22:36:14]MH_SAM_APDU [22:36:14]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 22 02 00 35 04 06 00 53 25 2E 58 B5 CA [22:36:14]Write to MH i2c: E2 24 00 09 2B 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 22 02 00 35 04 06 00 53 25 2E 58 B5 CA 00 00 F6 [22:36:14]Write i2c OK [22:36:14]MH_I2C_Read... [22:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:14]Read from MH i2c: E2 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 03 00 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 03 00 09 2B 00 90 00 A8 [22:36:14]RAPDU: 90 00 [22:36:14]wFMCommunicate OK [22:36:14]wFMCommunicate request_size=4 [22:36:14]MH_SAM_APDU [22:36:14]CAPDU: 80 0D 03 02 [22:36:14]Write to MH i2c: E2 08 00 0A 2B 80 0D 03 02 00 00 00 00 B0 [22:36:14]Write i2c OK [22:36:14]MH_I2C_Read... [22:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:14]Read from MH i2c: E2 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 0B 00 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 0B 00 0A 2B 00 70 26 3A BC 6D 15 BF 18 90 00 96 [22:36:14]RAPDU: 70 26 3A BC 6D 15 BF 18 90 00 [22:36:14]wFMCommunicate OK [22:36:14]SAM_PROTO_SignData done [22:36:14]FM_MakeSignedData done [22:36:14]CreateOFDProtocolMessage [22:36:14]wFMCommunicate request_size=4 [22:36:14]MH_SAM_APDU [22:36:14]CAPDU: 80 11 00 00 [22:36:14]Write to MH i2c: E2 08 00 0B 2B 80 11 00 00 00 00 00 00 B0 [22:36:14]Write i2c OK [22:36:14]MH_I2C_Read... [22:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:14]Read from MH i2c: E2 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 17 00 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: E2 17 00 0B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [22:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:36:14]wFMCommunicate OK [22:36:14]CreateOFDProtocolMessage done [22:36:14]OFDSenderStorePacket 139792 [22:36:14]StoreOFDPacket docnum=139792 [22:36: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 26 01 00 00 A2 B5 1E 01 7E 06 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5F 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 22 02 00 35 04 06 00 53 25 2E 58 B5 CA 70 26 3A BC 6D 15 BF 18 [22:36:14]CheckFolder [22:36:14]dirname=/storage/ofd_packets [22:36:14]CheckFolder done [22:36:14]ProducePacketName [22:36:14]name=ofd_packets/00139792 [22:36:14]NVStorageSaveData ofd_packets/00139792 [22:36:14]File name is /storage/ofd_packets/00139792 [22:36:14]Write 324 bytes [22:36:14]NVStorageSaveData done [22:36:14]OFDSenderStorePacket done [22:36:14]KKMCreateOFDPacket done [22:36:14]NVStorageSaveData kkm_last_timestamp [22:36:14]File name is /storage/kkm_last_timestamp [22:36:14]Write 4 bytes [22:36:14]NVStorageSaveData done [22:36:14]ExternCall_PrintAddStr [22:36:14]wPrintStart [22:36:14]Write to MH i2c: 01 00 00 0C 2B 37 [22:36:14]Write i2c OK [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: 01 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: 01 07 00 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: 01 07 00 0C 2B 00 00 00 00 00 FF 0F 4C [22:36:14]RasterBufferAndPrint [22:36:14]line Счет N : (3)335626 [22:36:14]line ИНН: 02508201610067 [22:36:14]line Контрольно-Кассовый Чек [22:36:14]line ПРОДАЖА [22:36:14]line Товар: 4700000160044 [22:36:14]line Вода Ыссык Ата 0,5л [22:36:14]line 1.000 * 40.00 [22:36:14]line = 40.00 [22:36:14]line НДС 12% НСП 1% [22:36:14]line > о реализуемом товаре [22:36:14]line ИТОГО: 40.00 [22:36:14]line НСП 1% : 0.35 [22:36:14]line НДС 12% : 4.25 [22:36:14]line Наличными: 40.00 [22:36:14]line Безнал.: 0.00 [22:36:14]line Место: АЗС № 101 "Партнер Нефть" [22:36:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:36:14]line СНО: Общий режим [22:36:14]line Чек 269 31.10.2024 22:36 [22:36:14]line Смена: 557 ФФД: 1.0 [22:36:14]line ЗНМ: 0300000081 [22:36:14]line РНМ: 0000000000091631 [22:36:14]line Версия ККМ: 001 [22:36:14]line ФМ: 0000000000874669 [22:36:14]line ФД: 139792 [22:36:14]line ФПД: 91419156461002 [22:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T223615&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139792&fm=91419156461002&tin=02508201610067®Number=0000000000091631&sum=4000 [22:36:14]line 0 [22:36:14]written 0, free lines is 4095 [22:36:14]OFD Sender: Processing packet 139792 [packets to send 34, broken 33] [22:36:14]ProducePacketName [22:36:14]name=ofd_packets/00139792 [22:36:14]OFD Sender: To server: pG, [22:36:14]CommunicateWithHost lk.salyk.kg:30040 [22:36:14]ConnectInit lk.salyk.kg [22:36:14]Connected sock=10 [22:36: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 26 01 00 00 A2 B5 1E 01 7E 06 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5F 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 22 02 00 35 04 06 00 53 25 2E 58 B5 CA 70 26 3A BC 6D 15 BF 18 [22:36: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 B9 2E 47 00 1F CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 22 02 00 F4 03 04 00 0B B2 23 67 B6 04 01 00 00 AC 39 69 D6 D2 BC 78 09 [22:36:14]CommunicateWithHost err = 0 [22:36:14]CheckOFDResponse [22:36:14]1017 (14) - 77093643461234 [22:36:14]1041 (16) - 0000000000874669 [22:36:14]1040 (4) - 139792 [22:36:14]1012 (4) - 31.10.2024 16:36 [22:36:14]1206 (1) - 0 [22:36:14]OFD Sender: Remove packet 139792 [22:36:14]ProducePacketName [22:36:14]name=ofd_packets/00139792 [22:36:14]NVStorageDeleteData [22:36:14]Write to MH i2c: 01 00 00 34 2B 5F [22:36:14]Write i2c OK [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: 01 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: 01 07 00 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: 01 07 00 34 2B 00 00 00 00 00 21 0D 94 [22:36:14]RasterBufferAndPrint [22:36:14]line [22:36:14]line [22:36:14]line [22:36:14]line [22:36:14]line [22:36:14]written 0, free lines is 3372 [22:36:14]MH_Cut [22:36:14]Write to MH i2c: D1 01 00 3B 2B 01 38 [22:36:14]Write i2c OK [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: D1 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: D1 01 00 [22:36:14]MH_I2C_Read... [22:36:14]Read from MH i2c: D1 01 00 3B 2B 00 37 [22:36:14]Write to MH i2c: 01 00 00 3C 2B 67 [22:36:14]Write i2c OK [22:36:14]MH_I2C_Read... [22:36:15]OFD Sender: No OFD packet to send [22:36:15]*** Cut start [22:36:15]*** Partial cut [22:36:15]*** CUTSNS_PIN = 1 [22:36:15]*** CUTSNS_PIN = 0 [22:36:15]*** Brake cut motor [22:36:15]Read from MH i2c: 01 [22:36:15]MH_I2C_Read... [22:36:15]*** Stop cut motor [22:36:15]*** Cut end [22:36:15]Read from MH i2c: 01 07 00 [22:36:15]MH_I2C_Read... [22:36:15]Read from MH i2c: 01 07 00 3C 2B 00 00 00 00 00 FF 0F 7C [22:36:15]process_action close_receipt done [22:36:15]requested_data is exist [22:36:15]produce_requested_data [22:36:15]requested_item fm.sn is exist - process it [22:36:15]wFMCommunicate request_size=4 [22:36:15]MH_SAM_APDU [22:36:15]CAPDU: 80 11 00 00 [22:36:15]Write to MH i2c: E2 08 00 3D 2B 80 11 00 00 00 00 00 00 E2 [22:36:15]Write i2c OK [22:36:15]MH_I2C_Read... [22:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:16]Read from MH i2c: E2 [22:36:16]MH_I2C_Read... [22:36:16]Read from MH i2c: E2 17 00 [22:36:16]MH_I2C_Read... [22:36:16]Read from MH i2c: E2 17 00 3D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [22:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:36:16]wFMCommunicate OK [22:36:16]requested_item fd.num is exist - process it [22:36:16]SAM_PROTO_GetFieldsCounters [22:36:16]wFMCommunicate request_size=4 [22:36:16]MH_SAM_APDU [22:36:16]CAPDU: 80 13 00 00 [22:36:16]Write to MH i2c: E2 08 00 3E 2B 80 13 00 00 00 00 00 00 E5 [22:36:16]Write i2c OK [22:36:16]MH_I2C_Read... [22:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:16]Read from MH i2c: E2 [22:36:16]MH_I2C_Read... [22:36:16]Read from MH i2c: E2 62 00 [22:36:16]MH_I2C_Read... [22:36:16]Read from MH i2c: E2 62 00 3E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 10 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [22:36: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 10 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:16]wFMCommunicate OK [22:36:16]SAM_PROTO_GetFieldsCounters done [22:36:16]requested_item shift.num is exist - process it [22:36:16]requested_item shift.opened is exist - process it [22:36:16]req_shift_opened [22:36:16]FM_GetShiftState [22:36:16]SAM_PROTO_GetShiftState [22:36:16]wFMCommunicate request_size=4 [22:36:16]MH_SAM_APDU [22:36:16]CAPDU: 80 13 01 00 [22:36:16]Write to MH i2c: E2 08 00 3F 2B 80 13 01 00 00 00 00 00 E7 [22:36:16]Write i2c OK [22:36:16]MH_I2C_Read... [22:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:16]Read from MH i2c: E2 [22:36:16]MH_I2C_Read... [22:36:16]Read from MH i2c: E2 0E 00 [22:36:16]MH_I2C_Read... [22:36:16]Read from MH i2c: E2 0E 00 3F 2B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 10 [22:36:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:36:16]wFMCommunicate OK [22:36:16]SAM_PROTO_GetShiftState done [22:36:16]FM_GetShiftState done [22:36:16]req_shift_opened done [22:36:16]requested_item shift.open_date is exist - process it [22:36:16]req_shift_open_date [22:36:16]req_shift_open_date done [22:36:16]produce_requested_data done [22:36:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139792,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:36:16]process_action_free close_receipt [22:36:16]json_value_free [22:36:16]json_value_free done [22:36:16]process_json_proto returns [22:36:16]Send response to host [22:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139792,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:36:16]free response buf [22:36:16]execute_script done [22:36:16]execute_script returns [22:36:16]free content buf [22:36:16]Sock 7.Close socket [22:36:16]Sock 7.Thread stoped [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:07]accept exits with 9 [22:37:07]New connection [22:37:07]New thread 3066510692 created [22:37:07]Thread 3066654052 joined [22:37:07]Waiting for new connection... [22:37:07] Sock 9.Parse request [22:37:07]Sock 9.Check first char [22:37:07]Sock 9.First char is OK [22:37:07]request: POST /json_proto HTTP/1.0 [22:37:07]Method: POST [22:37:07]URL: /json_proto [22:37:07]Method is POST - this is cgi request [22:37:07]url: /json_proto [22:37:07]query_string will be loaded in cgi processing [22:37:07]execute_cgi json_proto POST (null) [22:37:07]execute_cgi path=json_proto method=POST [22:37:07]POST find Content-Length [22:37:07]Host: 172.17.50.196:8080 [22:37:07]Content-Length: 681 [22:37:07]Content-Type: application/json [22:37:07] [22:37:07]POST finish read [22:37:07]Found Content-Length = 681 [22:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335627", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:07]execute_script... [22:37: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)335627", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:07]POST & json_proto [22:37:07]process_json_proto [22:37:07]json parsed OK: [22:37:07]protocol is kg_v1.0 [22:37:07]action value=close_receipt [22:37:07]process_action close_receipt [22:37:07]cmd_close_receipt [22:37:07]MH_GetDate [22:37:07]Write to MH i2c: F0 00 00 40 2B 5A [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: F0 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: F0 09 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: F0 09 00 40 2B 00 96 06 24 67 72 0D 1C 67 8C [22:37:07]GetLastDocTimeStamp 1730414175 [22:37:07]current date 1730414230 [22:37:07]FM_GetShiftState [22:37:07]SAM_PROTO_GetShiftState [22:37:07]wFMCommunicate request_size=4 [22:37:07]MH_SAM_APDU [22:37:07]CAPDU: 80 13 01 00 [22:37:07]Write to MH i2c: E2 08 00 41 2B 80 13 01 00 00 00 00 00 E9 [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:07]Read from MH i2c: E2 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 0E 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 0E 00 41 2B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 12 [22:37:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:37:07]wFMCommunicate OK [22:37:07]SAM_PROTO_GetShiftState done [22:37:07]FM_GetShiftState done [22:37:07]opened in 1730332621 [22:37:07]opened+sec_in_day 1730419021 [22:37:07]quantity*price = 7000 [22:37:07]sum+1 = 7001 [22:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 270 31.10.2024 22:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139793 ФПД: 1856074461393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T223710&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139793&fm=1856074461393&tin=02508201610067®Number=0000000000091631&sum=7000 0 [22:37:08]StoreToDocumentArchive [22:37:08]shift 557 fd 139793 [22:37:08]save to /storage/0557/doc_00139793 [22:37:08]save last doc name /storage/0557/doc_00139793 to /storage/kkm_last_doc_name [22:37:08]save OK [22:37:08]Clear old archive folders... [22:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=292 [22:37:08]tlvbuf is B6F0C190 [22:37:08]SAM_PROTO_ClearQueue [22:37:08]wFMCommunicate request_size=4 [22:37:08]MH_SAM_APDU [22:37:08]CAPDU: 80 09 00 00 [22:37:08]Write to MH i2c: E2 08 00 4E 2B 80 09 00 00 00 00 00 00 EB [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:08]Read from MH i2c: E2 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 03 00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 03 00 4E 2B 00 90 00 ED [22:37:08]RAPDU: 90 00 [22:37:08]wFMCommunicate OK [22:37:08]SAM_PROTO_ClearQueue done [22:37:08]KKMCreateOFDPacket [22:37:08]OFDProtocolAddRootSTLVToBuf [22:37:08]FM_MakeSignedData [22:37:08]FM_MakeSignedData [22:37:08]SAM_PROTO_SignData [22:37:08]wFMCommunicate request_size=4 [22:37:08]MH_SAM_APDU [22:37:08]CAPDU: 80 0D 01 02 [22:37:08]Write to MH i2c: E2 08 00 4F 2B 80 0D 01 02 00 00 00 00 F3 [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:08]Read from MH i2c: E2 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 03 00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 03 00 4F 2B 00 90 00 EE [22:37:08]RAPDU: 90 00 [22:37:08]wFMCommunicate OK [22:37:08]wFMCommunicate request_size=255 [22:37:08]MH_SAM_APDU [22:37:08]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 0E 01 00 00 F4 03 04 00 96 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [22:37:08]Write to MH i2c: E2 02 01 50 2B 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 0E 01 00 00 F4 03 04 00 96 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 4C [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:09]Read from MH i2c: E2 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 03 00 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 03 00 50 2B 00 90 00 EF [22:37:09]RAPDU: 90 00 [22:37:09]wFMCommunicate OK [22:37:09]wFMCommunicate request_size=51 [22:37:09]MH_SAM_APDU [22:37:09]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 11 22 02 00 35 04 06 00 01 B0 26 A8 B0 D1 [22:37:09]Write to MH i2c: E2 36 00 51 2B 80 0D 02 02 2E 00 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 11 22 02 00 35 04 06 00 01 B0 26 A8 B0 D1 00 00 BF [22:37:09]Write i2c OK [22:37:09]MH_I2C_Read... [22:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:09]Read from MH i2c: E2 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 03 00 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 03 00 51 2B 00 90 00 F0 [22:37:09]RAPDU: 90 00 [22:37:09]wFMCommunicate OK [22:37:09]wFMCommunicate request_size=4 [22:37:09]MH_SAM_APDU [22:37:09]CAPDU: 80 0D 03 02 [22:37:09]Write to MH i2c: E2 08 00 52 2B 80 0D 03 02 00 00 00 00 F8 [22:37:09]Write i2c OK [22:37:09]MH_I2C_Read... [22:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:09]Read from MH i2c: E2 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 0B 00 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 0B 00 52 2B 00 E3 56 A0 75 D6 C2 DC EA 90 00 A5 [22:37:09]RAPDU: E3 56 A0 75 D6 C2 DC EA 90 00 [22:37:09]wFMCommunicate OK [22:37:09]SAM_PROTO_SignData done [22:37:09]FM_MakeSignedData done [22:37:09]CreateOFDProtocolMessage [22:37:09]wFMCommunicate request_size=4 [22:37:09]MH_SAM_APDU [22:37:09]CAPDU: 80 11 00 00 [22:37:09]Write to MH i2c: E2 08 00 53 2B 80 11 00 00 00 00 00 00 F8 [22:37:09]Write i2c OK [22:37:09]MH_I2C_Read... [22:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:09]Read from MH i2c: E2 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 17 00 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 17 00 53 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [22: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 [22:37:09]wFMCommunicate OK [22:37:09]CreateOFDProtocolMessage done [22:37:09]OFDSenderStorePacket 139793 [22:37:09]StoreOFDPacket docnum=139793 [22: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 38 01 00 00 54 13 30 01 31 FB 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 0E 01 00 00 F4 03 04 00 96 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 11 22 02 00 35 04 06 00 01 B0 26 A8 B0 D1 E3 56 A0 75 D6 C2 DC EA [22:37:09]CheckFolder [22:37:09]dirname=/storage/ofd_packets [22:37:09]CheckFolder done [22:37:09]ProducePacketName [22:37:09]name=ofd_packets/00139793 [22:37:09]NVStorageSaveData ofd_packets/00139793 [22:37:09]File name is /storage/ofd_packets/00139793 [22:37:09]Write 342 bytes [22:37:09]NVStorageSaveData done [22:37:09]OFDSenderStorePacket done [22:37:09]KKMCreateOFDPacket done [22:37:09]NVStorageSaveData kkm_last_timestamp [22:37:09]File name is /storage/kkm_last_timestamp [22:37:09]Write 4 bytes [22:37:09]NVStorageSaveData done [22:37:09]ExternCall_PrintAddStr [22:37:09]wPrintStart [22:37:09]Write to MH i2c: 01 00 00 54 2B 7F [22:37:09]Write i2c OK [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: 01 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: 01 07 00 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: 01 07 00 54 2B 00 00 00 00 00 FF 0F 94 [22:37:09]RasterBufferAndPrint [22:37:09]line Счет N : (3)335627 [22:37:09]line ИНН: 02508201610067 [22:37:09]line Контрольно-Кассовый Чек [22:37:09]line ПРОДАЖА [22:37:09]line Товар: 4870202522008 [22:37:09]line Напиток Maxi Чай Грушевый 0,45л [22:37:09]line 1.000 * 70.00 [22:37:09]line = 70.00 [22:37:09]line НДС 12% НСП 1% [22:37:09]line > о реализуемом товаре [22:37:09]line ИТОГО: 70.00 [22:37:09]line НСП 1% : 0.62 [22:37:09]line НДС 12% : 7.43 [22:37:09]line Наличными: 70.00 [22:37:09]line Безнал.: 0.00 [22:37:09]line Место: АЗС № 101 "Партнер Нефть" [22:37:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:37:09]line СНО: Общий режим [22:37:09]line Чек 270 31.10.2024 22:37 [22:37:09]line Смена: 557 ФФД: 1.0 [22:37:09]line ЗНМ: 0300000081 [22:37:09]line РНМ: 0000000000091631 [22:37:09]line Версия ККМ: 001 [22:37:09]line ФМ: 0000000000874669 [22:37:09]line ФД: 139793 [22:37:09]line ФПД: 1856074461393 [22:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T223710&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139793&fm=1856074461393&tin=02508201610067®Number=0000000000091631&sum=7000 [22:37:09]line 0 [22:37:09]OFD Sender: Processing packet 139793 [packets to send 34, broken 33] [22:37:09]ProducePacketName [22:37:09]name=ofd_packets/00139793 [22:37:09]OFD Sender: To server: pG, [22:37:09]CommunicateWithHost lk.salyk.kg:30040 [22:37:09]ConnectInit lk.salyk.kg [22:37:09]written 0, free lines is 4095 [22:37:09]Connected sock=10 [22:37: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 38 01 00 00 54 13 30 01 31 FB 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 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 0E 01 00 00 F4 03 04 00 96 06 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 11 22 02 00 35 04 06 00 01 B0 26 A8 B0 D1 E3 56 A0 75 D6 C2 DC EA [22:37: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 0E 22 47 00 7B 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 11 22 02 00 F4 03 04 00 42 B2 23 67 B6 04 01 00 00 8A 29 36 63 C0 33 F5 6F [22:37:09]CommunicateWithHost err = 0 [22:37:09]CheckOFDResponse [22:37:09]1017 (14) - 77093643461234 [22:37:09]1041 (16) - 0000000000874669 [22:37:09]1040 (4) - 139793 [22:37:09]1012 (4) - 31.10.2024 16:37 [22:37:09]1206 (1) - 0 [22:37:09]OFD Sender: Remove packet 139793 [22:37:09]ProducePacketName [22:37:09]name=ofd_packets/00139793 [22:37:09]NVStorageDeleteData [22:37:10]Write to MH i2c: 01 00 00 7D 2B A8 [22:37:10]Write i2c OK [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: 01 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: 01 07 00 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: 01 07 00 7D 2B 00 00 00 00 00 F5 0C B0 [22:37:10]RasterBufferAndPrint [22:37:10]line [22:37:10]line [22:37:10]line [22:37:10]line [22:37:10]line [22:37:10]written 0, free lines is 3323 [22:37:10]MH_Cut [22:37:10]Write to MH i2c: D1 01 00 84 2B 01 81 [22:37:10]Write i2c OK [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: D1 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: D1 01 00 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: D1 01 00 84 2B 00 80 [22:37:10]Write to MH i2c: 01 00 00 85 2B B0 [22:37:10]Write i2c OK [22:37:10]MH_I2C_Read... [22:37:10]OFD Sender: No OFD packet to send [22:37:10]*** Cut start [22:37:10]*** Partial cut [22:37:10]*** CUTSNS_PIN = 1 [22:37:10]*** CUTSNS_PIN = 0 [22:37:10]*** Brake cut motor [22:37:11]Read from MH i2c: 01 [22:37:11]MH_I2C_Read... [22:37:11]*** Stop cut motor [22:37:11]*** Cut end [22:37:11]Read from MH i2c: 01 07 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: 01 07 00 85 2B 00 00 00 00 00 FF 0F C5 [22:37:11]process_action close_receipt done [22:37:11]requested_data is exist [22:37:11]produce_requested_data [22:37:11]requested_item fm.sn is exist - process it [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 11 00 00 [22:37:11]Write to MH i2c: E2 08 00 86 2B 80 11 00 00 00 00 00 00 2B [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 17 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 17 00 86 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 86 [22:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:37:11]wFMCommunicate OK [22:37:11]requested_item fd.num is exist - process it [22:37:11]SAM_PROTO_GetFieldsCounters [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 13 00 00 [22:37:11]Write to MH i2c: E2 08 00 87 2B 80 13 00 00 00 00 00 00 2E [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 62 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 62 00 87 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 11 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 11 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:11]wFMCommunicate OK [22:37:11]SAM_PROTO_GetFieldsCounters done [22:37:11]requested_item shift.num is exist - process it [22:37:11]requested_item shift.opened is exist - process it [22:37:11]req_shift_opened [22:37:11]FM_GetShiftState [22:37:11]SAM_PROTO_GetShiftState [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 13 01 00 [22:37:11]Write to MH i2c: E2 08 00 88 2B 80 13 01 00 00 00 00 00 30 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0E 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0E 00 88 2B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 59 [22:37:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:37:11]wFMCommunicate OK [22:37:11]SAM_PROTO_GetShiftState done [22:37:11]FM_GetShiftState done [22:37:11]req_shift_opened done [22:37:11]requested_item shift.open_date is exist - process it [22:37:11]req_shift_open_date [22:37:11]req_shift_open_date done [22:37:11]produce_requested_data done [22:37:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139793,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:37:11]process_action_free close_receipt [22:37:11]json_value_free [22:37:11]json_value_free done [22:37:11]process_json_proto returns [22:37:11]Send response to host [22:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139793,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:37:11]free response buf [22:37:11]execute_script done [22:37:11]execute_script returns [22:37:11]free content buf [22:37:11]Sock 9.Close socket [22:37:11]Sock 9.Thread stoped [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:36]accept exits with 7 [22:40:36]New connection [22:40:36]New thread 3066654052 created [22:40:36]Thread 3066510692 joined [22:40:36]Waiting for new connection... [22:40:36] Sock 7.Parse request [22:40:36]Sock 7.Check first char [22:40:36]Sock 7.First char is OK [22:40:36]request: POST /json_proto HTTP/1.0 [22:40:36]Method: POST [22:40:36]URL: /json_proto [22:40:36]Method is POST - this is cgi request [22:40:36]url: /json_proto [22:40:36]query_string will be loaded in cgi processing [22:40:36]execute_cgi json_proto POST (null) [22:40:36]execute_cgi path=json_proto method=POST [22:40:36]POST find Content-Length [22:40:36]Host: 172.17.50.196:8080 [22:40:36]Content-Length: 621 [22:40:36]Content-Type: application/json [22:40:36] [22:40:36]POST finish read [22:40:36]Found Content-Length = 621 [22:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335628", "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 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:36]execute_script... [22:40:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335628", "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 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:36]POST & json_proto [22:40:36]process_json_proto [22:40:36]json parsed OK: [22:40:36]protocol is kg_v1.0 [22:40:36]action value=close_receipt [22:40:36]process_action close_receipt [22:40:36]cmd_close_receipt [22:40:36]MH_GetDate [22:40:36]Write to MH i2c: F0 00 00 89 2B A3 [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: F0 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: F0 09 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: F0 09 00 89 2B 00 67 07 24 67 72 0D 1C 67 A7 [22:40:36]GetLastDocTimeStamp 1730414230 [22:40:36]current date 1730414439 [22:40:36]FM_GetShiftState [22:40:36]SAM_PROTO_GetShiftState [22:40:36]wFMCommunicate request_size=4 [22:40:36]MH_SAM_APDU [22:40:36]CAPDU: 80 13 01 00 [22:40:36]Write to MH i2c: E2 08 00 8A 2B 80 13 01 00 00 00 00 00 32 [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:36]Read from MH i2c: E2 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 0E 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: E2 0E 00 8A 2B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5B [22:40:36]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:40:36]wFMCommunicate OK [22:40:36]SAM_PROTO_GetShiftState done [22:40:36]FM_GetShiftState done [22:40:36]opened in 1730332621 [22:40:36]opened+sec_in_day 1730419021 [22:40:36]quantity*price = 14400 [22:40:36]sum+1 = 14401 [22:40:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 271 31.10.2024 22:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139794 ФПД: 140349246101946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224039&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139794&fm=140349246101946&tin=02508201610067®Number=0000000000091631&sum=14400 0 [22:40:37]StoreToDocumentArchive [22:40:37]shift 557 fd 139794 [22:40:37]save to /storage/0557/doc_00139794 [22:40:37]save last doc name /storage/0557/doc_00139794 to /storage/kkm_last_doc_name [22:40:37]save OK [22:40:37]Clear old archive folders... [22:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:40:37]tlvbuf is B6E91350 [22:40:37]SAM_PROTO_ClearQueue [22:40:37]wFMCommunicate request_size=4 [22:40:37]MH_SAM_APDU [22:40:37]CAPDU: 80 09 00 00 [22:40:37]Write to MH i2c: E2 08 00 97 2B 80 09 00 00 00 00 00 00 34 [22:40:37]Write i2c OK [22:40:37]MH_I2C_Read... [22:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:37]Read from MH i2c: E2 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 03 00 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 03 00 97 2B 00 90 00 36 [22:40:37]RAPDU: 90 00 [22:40:37]wFMCommunicate OK [22:40:37]SAM_PROTO_ClearQueue done [22:40:37]KKMCreateOFDPacket [22:40:37]OFDProtocolAddRootSTLVToBuf [22:40:37]FM_MakeSignedData [22:40:37]FM_MakeSignedData [22:40:37]SAM_PROTO_SignData [22:40:37]wFMCommunicate request_size=4 [22:40:37]MH_SAM_APDU [22:40:37]CAPDU: 80 0D 01 02 [22:40:37]Write to MH i2c: E2 08 00 98 2B 80 0D 01 02 00 00 00 00 3C [22:40:37]Write i2c OK [22:40:37]MH_I2C_Read... [22:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:37]Read from MH i2c: E2 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 03 00 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 03 00 98 2B 00 90 00 37 [22:40:37]RAPDU: 90 00 [22:40:37]wFMCommunicate OK [22:40:37]wFMCommunicate request_size=255 [22:40:37]MH_SAM_APDU [22:40:37]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 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 0F 01 00 00 F4 03 04 00 67 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [22:40:37]Write to MH i2c: E2 02 01 99 2B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 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 0F 01 00 00 F4 03 04 00 67 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 D9 [22:40:37]Write i2c OK [22:40:37]MH_I2C_Read... [22:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:38]Read from MH i2c: E2 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 03 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 03 00 99 2B 00 90 00 38 [22:40:38]RAPDU: 90 00 [22:40:38]wFMCommunicate OK [22:40:38]wFMCommunicate request_size=32 [22:40:38]MH_SAM_APDU [22:40:38]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 12 22 02 00 35 04 06 00 7F A5 9A F5 59 BA [22:40:38]Write to MH i2c: E2 23 00 9A 2B 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 12 22 02 00 35 04 06 00 7F A5 9A F5 59 BA 00 00 A0 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:38]Read from MH i2c: E2 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 03 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 03 00 9A 2B 00 90 00 39 [22:40:38]RAPDU: 90 00 [22:40:38]wFMCommunicate OK [22:40:38]wFMCommunicate request_size=4 [22:40:38]MH_SAM_APDU [22:40:38]CAPDU: 80 0D 03 02 [22:40:38]Write to MH i2c: E2 08 00 9B 2B 80 0D 03 02 00 00 00 00 41 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:38]Read from MH i2c: E2 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 0B 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 0B 00 9B 2B 00 3B 08 BC 88 45 EF B4 C2 90 00 73 [22:40:38]RAPDU: 3B 08 BC 88 45 EF B4 C2 90 00 [22:40:38]wFMCommunicate OK [22:40:38]SAM_PROTO_SignData done [22:40:38]FM_MakeSignedData done [22:40:38]CreateOFDProtocolMessage [22:40:38]wFMCommunicate request_size=4 [22:40:38]MH_SAM_APDU [22:40:38]CAPDU: 80 11 00 00 [22:40:38]Write to MH i2c: E2 08 00 9C 2B 80 11 00 00 00 00 00 00 41 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:38]Read from MH i2c: E2 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 17 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 17 00 9C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [22: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 [22:40:38]wFMCommunicate OK [22:40:38]CreateOFDProtocolMessage done [22:40:38]OFDSenderStorePacket 139794 [22:40:38]StoreOFDPacket docnum=139794 [22:40: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 25 01 00 00 CA B2 1D 01 10 61 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 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 0F 01 00 00 F4 03 04 00 67 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 22 02 00 35 04 06 00 7F A5 9A F5 59 BA 3B 08 BC 88 45 EF B4 C2 [22:40:38]CheckFolder [22:40:38]dirname=/storage/ofd_packets [22:40:38]CheckFolder done [22:40:38]ProducePacketName [22:40:38]name=ofd_packets/00139794 [22:40:38]NVStorageSaveData ofd_packets/00139794 [22:40:38]File name is /storage/ofd_packets/00139794 [22:40:38]Write 323 bytes [22:40:38]NVStorageSaveData done [22:40:38]OFDSenderStorePacket done [22:40:38]KKMCreateOFDPacket done [22:40:38]NVStorageSaveData kkm_last_timestamp [22:40:38]File name is /storage/kkm_last_timestamp [22:40:38]Write 4 bytes [22:40:38]NVStorageSaveData done [22:40:38]ExternCall_PrintAddStr [22:40:38]wPrintStart [22:40:38]Write to MH i2c: 01 00 00 9D 2B C8 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: 01 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: 01 07 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: 01 07 00 9D 2B 00 00 00 00 00 FF 0F DD [22:40:38]RasterBufferAndPrint [22:40:38]line Счет N : (3)335628 [22:40:38]line ИНН: 02508201610067 [22:40:38]line Контрольно-Кассовый Чек [22:40:38]line ПРОДАЖА [22:40:38]line Товар: 48743570 [22:40:38]line Сигареты Winston XStyle Blue [22:40:38]line 1.000 * 144.00 [22:40:38]line = 144.00 [22:40:38]line НДС 12% НСП 1% [22:40:38]line > о реализуемом товаре [22:40:38]line ИТОГО: 144.00 [22:40:38]line НСП 1% : 1.27 [22:40:38]line НДС 12% : 15.29 [22:40:38]line Наличными: 144.00 [22:40:38]line Безнал.: 0.00 [22:40:38]line Место: АЗС № 101 "Партнер Нефть" [22:40:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:40:38]line СНО: Общий режим [22:40:38]line Чек 271 31.10.2024 22:40 [22:40:38]line Смена: 557 ФФД: 1.0 [22:40:38]line ЗНМ: 0300000081 [22:40:38]line РНМ: 0000000000091631 [22:40:38]line Версия ККМ: 001 [22:40:38]line ФМ: 0000000000874669 [22:40:38]line ФД: 139794 [22:40:38]line ФПД: 140349246101946 [22:40:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224039&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139794&fm=140349246101946&tin=02508201610067®Number=0000000000091631&sum=14400 [22:40:38]OFD Sender: Processing packet 139794 [packets to send 34, broken 33] [22:40:38]ProducePacketName [22:40:38]name=ofd_packets/00139794 [22:40:38]OFD Sender: To server: pG, [22:40:38]CommunicateWithHost lk.salyk.kg:30040 [22:40:38]ConnectInit lk.salyk.kg [22:40:38]line 0 [22:40:38]written 0, free lines is 4095 [22:40:38]Connected sock=10 [22:40:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 CA B2 1D 01 10 61 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 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 0F 01 00 00 F4 03 04 00 67 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 22 02 00 35 04 06 00 7F A5 9A F5 59 BA 3B 08 BC 88 45 EF B4 C2 [22:40:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 74 16 47 00 E8 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 22 02 00 F4 03 04 00 13 B3 23 67 B6 04 01 00 00 3C 07 FD 26 1A 67 1D 94 [22:40:38]CommunicateWithHost err = 0 [22:40:38]CheckOFDResponse [22:40:38]1017 (14) - 77093643461234 [22:40:38]1041 (16) - 0000000000874669 [22:40:38]1040 (4) - 139794 [22:40:38]1012 (4) - 31.10.2024 16:40 [22:40:38]1206 (1) - 0 [22:40:38]OFD Sender: Remove packet 139794 [22:40:38]ProducePacketName [22:40:38]name=ofd_packets/00139794 [22:40:38]NVStorageDeleteData [22:40:38]Write to MH i2c: 01 00 00 C5 2B F0 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: 01 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: 01 07 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: 01 07 00 C5 2B 00 00 00 00 00 0A 0D 0E [22:40:38]RasterBufferAndPrint [22:40:38]line [22:40:38]line [22:40:38]line [22:40:38]line [22:40:38]line [22:40:38]written 0, free lines is 3344 [22:40:38]MH_Cut [22:40:38]Write to MH i2c: D1 01 00 CC 2B 01 C9 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: D1 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: D1 01 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: D1 01 00 CC 2B 00 C8 [22:40:38]Write to MH i2c: 01 00 00 CD 2B F8 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:39]OFD Sender: No OFD packet to send [22:40:39]*** Cut start [22:40:39]*** Partial cut [22:40:39]*** CUTSNS_PIN = 1 [22:40:39]*** CUTSNS_PIN = 0 [22:40:39]*** Brake cut motor [22:40:40]Read from MH i2c: 01 [22:40:40]MH_I2C_Read... [22:40:40]*** Stop cut motor [22:40:40]*** Cut end [22:40:40]Read from MH i2c: 01 07 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: 01 07 00 CD 2B 00 00 00 00 00 FF 0F 0D [22:40:40]process_action close_receipt done [22:40:40]requested_data is exist [22:40:40]produce_requested_data [22:40:40]requested_item fm.sn is exist - process it [22:40:40]wFMCommunicate request_size=4 [22:40:40]MH_SAM_APDU [22:40:40]CAPDU: 80 11 00 00 [22:40:40]Write to MH i2c: E2 08 00 CE 2B 80 11 00 00 00 00 00 00 73 [22:40:40]Write i2c OK [22:40:40]MH_I2C_Read... [22:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:40]Read from MH i2c: E2 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 17 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 17 00 CE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [22:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:40:40]wFMCommunicate OK [22:40:40]requested_item fd.num is exist - process it [22:40:40]SAM_PROTO_GetFieldsCounters [22:40:40]wFMCommunicate request_size=4 [22:40:40]MH_SAM_APDU [22:40:40]CAPDU: 80 13 00 00 [22:40:40]Write to MH i2c: E2 08 00 CF 2B 80 13 00 00 00 00 00 00 76 [22:40:40]Write i2c OK [22:40:40]MH_I2C_Read... [22:40:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:40]Read from MH i2c: E2 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 62 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 62 00 CF 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 12 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [22:40:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 12 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:40]wFMCommunicate OK [22:40:40]SAM_PROTO_GetFieldsCounters done [22:40:40]requested_item shift.num is exist - process it [22:40:40]requested_item shift.opened is exist - process it [22:40:40]req_shift_opened [22:40:40]FM_GetShiftState [22:40:40]SAM_PROTO_GetShiftState [22:40:40]wFMCommunicate request_size=4 [22:40:40]MH_SAM_APDU [22:40:40]CAPDU: 80 13 01 00 [22:40:40]Write to MH i2c: E2 08 00 D0 2B 80 13 01 00 00 00 00 00 78 [22:40:40]Write i2c OK [22:40:40]MH_I2C_Read... [22:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:40]Read from MH i2c: E2 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 0E 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 0E 00 D0 2B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [22:40:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:40:40]wFMCommunicate OK [22:40:40]SAM_PROTO_GetShiftState done [22:40:40]FM_GetShiftState done [22:40:40]req_shift_opened done [22:40:40]requested_item shift.open_date is exist - process it [22:40:40]req_shift_open_date [22:40:40]req_shift_open_date done [22:40:40]produce_requested_data done [22:40:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139794,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:40:40]process_action_free close_receipt [22:40:40]json_value_free [22:40:40]json_value_free done [22:40:40]process_json_proto returns [22:40:40]Send response to host [22:40:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139794,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:40:40]free response buf [22:40:40]execute_script done [22:40:40]execute_script returns [22:40:40]free content buf [22:40:40]Sock 7.Close socket [22:40:40]Sock 7.Thread stoped [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:06]accept exits with 9 [22:42:06]New connection [22:42:06]New thread 3066510692 created [22:42:06]Thread 3066654052 joined [22:42:06]Waiting for new connection... [22:42:06] Sock 9.Parse request [22:42:06]Sock 9.Check first char [22:42:06]Sock 9.First char is OK [22:42:06]request: POST /json_proto HTTP/1.0 [22:42:06]Method: POST [22:42:06]URL: /json_proto [22:42:06]Method is POST - this is cgi request [22:42:06]url: /json_proto [22:42:06]query_string will be loaded in cgi processing [22:42:06]execute_cgi json_proto POST (null) [22:42:06]execute_cgi path=json_proto method=POST [22:42:06]POST find Content-Length [22:42:06]Host: 172.17.50.196:8080 [22:42:06]Content-Length: 678 [22:42:06]Content-Type: application/json [22:42:06] [22:42:06]POST finish read [22:42:06]Found Content-Length = 678 [22:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095537", "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" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:06]execute_script... [22:42: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)1095537", "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" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:06]POST & json_proto [22:42:06]process_json_proto [22:42:06]json parsed OK: [22:42:06]protocol is kg_v1.0 [22:42:06]action value=close_receipt [22:42:06]process_action close_receipt [22:42:06]cmd_close_receipt [22:42:06]MH_GetDate [22:42:06]Write to MH i2c: F0 00 00 D1 2B EB [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: F0 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: F0 09 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: F0 09 00 D1 2B 00 C0 07 24 67 72 0D 1C 67 48 [22:42:06]GetLastDocTimeStamp 1730414439 [22:42:06]current date 1730414528 [22:42:06]FM_GetShiftState [22:42:06]SAM_PROTO_GetShiftState [22:42:06]wFMCommunicate request_size=4 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 13 01 00 [22:42:06]Write to MH i2c: E2 08 00 D2 2B 80 13 01 00 00 00 00 00 7A [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 0E 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 0E 00 D2 2B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A3 [22:42:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:42:06]wFMCommunicate OK [22:42:06]SAM_PROTO_GetShiftState done [22:42:06]FM_GetShiftState done [22:42:06]opened in 1730332621 [22:42:06]opened+sec_in_day 1730419021 [22:42:06]quantity*price = 20003 [22:42:06]sum+1 = 20004 [22:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 272 31.10.2024 22:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139795 ФПД: 265130474140339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224208&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139795&fm=265130474140339&tin=02508201610067®Number=0000000000091631&sum=20000 [22:42:07]StoreToDocumentArchive [22:42:07]shift 557 fd 139795 [22:42:07]save to /storage/0557/doc_00139795 [22:42:07]save last doc name /storage/0557/doc_00139795 to /storage/kkm_last_doc_name [22:42:07]save OK [22:42:07]Clear old archive folders... [22:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:07]tlvbuf is 00A3B5B0 [22:42:07]SAM_PROTO_ClearQueue [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 09 00 00 [22:42:07]Write to MH i2c: E2 08 00 DF 2B 80 09 00 00 00 00 00 00 7C [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 DF 2B 00 90 00 7E [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]SAM_PROTO_ClearQueue done [22:42:07]KKMCreateOFDPacket [22:42:07]OFDProtocolAddRootSTLVToBuf [22:42:07]FM_MakeSignedData [22:42:07]FM_MakeSignedData [22:42:07]SAM_PROTO_SignData [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 01 02 [22:42:07]Write to MH i2c: E2 08 00 E0 2B 80 0D 01 02 00 00 00 00 84 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 E0 2B 00 90 00 7F [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=255 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C0 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 22 02 00 35 04 06 00 F1 [22:42:07]Write to MH i2c: E2 02 01 E1 2B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C0 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 22 02 00 35 04 06 00 F1 00 00 8F [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 E1 2B 00 90 00 80 [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=10 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 02 02 05 22 7F BA F2 B3 [22:42:07]Write to MH i2c: E2 0D 00 E2 2B 80 0D 02 02 05 00 22 7F BA F2 B3 00 00 91 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 E2 2B 00 90 00 81 [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 03 02 [22:42:07]Write to MH i2c: E2 08 00 E3 2B 80 0D 03 02 00 00 00 00 89 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 0B 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 0B 00 E3 2B 00 24 5A 43 92 B0 7C FA E8 90 00 EB [22:42:07]RAPDU: 24 5A 43 92 B0 7C FA E8 90 00 [22:42:07]wFMCommunicate OK [22:42:07]SAM_PROTO_SignData done [22:42:07]FM_MakeSignedData done [22:42:07]CreateOFDProtocolMessage [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 11 00 00 [22:42:07]Write to MH i2c: E2 08 00 E4 2B 80 11 00 00 00 00 00 00 89 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 17 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 17 00 E4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E4 [22:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:42:07]wFMCommunicate OK [22:42:07]CreateOFDProtocolMessage done [22:42:07]OFDSenderStorePacket 139795 [22:42:07]StoreOFDPacket docnum=139795 [22:42: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 0F 01 00 00 9B 48 07 01 E1 AF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C0 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 22 02 00 35 04 06 00 F1 22 7F BA F2 B3 24 5A 43 92 B0 7C FA E8 [22:42:07]CheckFolder [22:42:07]dirname=/storage/ofd_packets [22:42:07]CheckFolder done [22:42:07]ProducePacketName [22:42:07]name=ofd_packets/00139795 [22:42:07]NVStorageSaveData ofd_packets/00139795 [22:42:07]File name is /storage/ofd_packets/00139795 [22:42:07]Write 301 bytes [22:42:07]NVStorageSaveData done [22:42:07]OFDSenderStorePacket done [22:42:07]KKMCreateOFDPacket done [22:42:07]NVStorageSaveData kkm_last_timestamp [22:42:07]File name is /storage/kkm_last_timestamp [22:42:07]Write 4 bytes [22:42:07]NVStorageSaveData done [22:42:07]ExternCall_PrintAddStr [22:42:07]wPrintStart [22:42:07]Write to MH i2c: 01 00 00 E5 2B 10 [22:42:07]OFD Sender: Processing packet 139795 [packets to send 34, broken 33] [22:42:07]ProducePacketName [22:42:07]name=ofd_packets/00139795 [22:42:07]OFD Sender: To server: pG, [22:42:07]CommunicateWithHost lk.salyk.kg:30040 [22:42:07]ConnectInit lk.salyk.kg [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 E5 2B 00 00 00 00 00 FF 0F 25 [22:42:07]RasterBufferAndPrint [22:42:07]line Счет N : (1)1095537 [22:42:07]line ИНН: 02508201610067 [22:42:07]line Контрольно-Кассовый Чек [22:42:07]line ПРОДАЖА [22:42:07]line ТРК (МРК, ГНК) : 53 [22:42:07]line Товар: 2710124130 [22:42:07]line Аи-92-К-2 [22:42:07]line 2.990 * 66.90 [22:42:07]line = 200.03 [22:42:07]line НДС 12% НСП 1% [22:42:07]line > о реализуемом товаре [22:42:07]line ОКРУГЛЕНИЕ: -0.03 [22:42:07]line ИТОГО: 200.00 [22:42:07]line Внесено: 200.00 [22:42:07]line СДАЧА: 0.00 [22:42:07]line НСП 1% : 1.77 [22:42:07]line НДС 12% : 21.24 [22:42:07]line Наличными: 200.00 [22:42:07]line Безнал.: 0.00 [22:42:07]line Место: АЗС № 101 "Партнер Нефть" [22:42:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:42:07]line СНО: Общий режим [22:42:07]line Чек 272 31.10.2024 22:42 [22:42:07]line Смена: 557 ФФД: 1.0 [22:42:07]line ЗНМ: 0300000081 [22:42:07]line РНМ: 0000000000091631 [22:42:07]line Версия ККМ: 001 [22:42:07]line ФМ: 0000000000874669 [22:42:07]line ФД: 139795 [22:42:07]line ФПД: 265130474140339 [22:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224208&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139795&fm=265130474140339&tin=02508201610067®Number=0000000000091631&sum=20000 [22:42:08]Connected sock=10 [22:42: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 0F 01 00 00 9B 48 07 01 E1 AF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C0 07 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 22 02 00 35 04 06 00 F1 22 7F BA F2 B3 24 5A 43 92 B0 7C FA E8 [22:42:08]written 0, free lines is 4095 [22:42: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 BB 73 47 00 41 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 22 02 00 F4 03 04 00 6D B3 23 67 B6 04 01 00 00 22 15 D5 B7 72 8D E8 46 [22:42:08]CommunicateWithHost err = 0 [22:42:08]CheckOFDResponse [22:42:08]1017 (14) - 77093643461234 [22:42:08]1041 (16) - 0000000000874669 [22:42:08]1040 (4) - 139795 [22:42:08]1012 (4) - 31.10.2024 16:42 [22:42:08]1206 (1) - 0 [22:42:08]OFD Sender: Remove packet 139795 [22:42:08]ProducePacketName [22:42:08]name=ofd_packets/00139795 [22:42:08]NVStorageDeleteData [22:42:08]Write to MH i2c: 01 00 00 10 2C 3C [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 07 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 07 00 10 2C 00 00 00 00 00 E0 0C 2F [22:42:08]RasterBufferAndPrint [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]written 0, free lines is 3302 [22:42:08]MH_Cut [22:42:08]Write to MH i2c: D1 01 00 17 2C 01 15 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 01 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 01 00 17 2C 00 14 [22:42:08]Write to MH i2c: 01 00 00 18 2C 44 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]OFD Sender: No OFD packet to send [22:42:09]*** Cut start [22:42:09]*** Partial cut [22:42:09]*** CUTSNS_PIN = 1 [22:42:09]*** CUTSNS_PIN = 0 [22:42:09]*** Brake cut motor [22:42:09]Read from MH i2c: 01 [22:42:09]MH_I2C_Read... [22:42:09]*** Stop cut motor [22:42:09]*** Cut end [22:42:09]Read from MH i2c: 01 07 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: 01 07 00 18 2C 00 00 00 00 00 FF 0F 59 [22:42:09]process_action close_receipt done [22:42:09]requested_data is exist [22:42:09]produce_requested_data [22:42:09]requested_item fm.sn is exist - process it [22:42:09]wFMCommunicate request_size=4 [22:42:09]MH_SAM_APDU [22:42:09]CAPDU: 80 11 00 00 [22:42:09]Write to MH i2c: E2 08 00 19 2C 80 11 00 00 00 00 00 00 BF [22:42:09]Write i2c OK [22:42:09]MH_I2C_Read... [22:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:09]Read from MH i2c: E2 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 17 00 [22:42:09]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 17 00 19 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1A [22:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:42:10]wFMCommunicate OK [22:42:10]requested_item fd.num is exist - process it [22:42:10]SAM_PROTO_GetFieldsCounters [22:42:10]wFMCommunicate request_size=4 [22:42:10]MH_SAM_APDU [22:42:10]CAPDU: 80 13 00 00 [22:42:10]Write to MH i2c: E2 08 00 1A 2C 80 13 00 00 00 00 00 00 C2 [22:42:10]Write i2c OK [22:42:10]MH_I2C_Read... [22:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:10]Read from MH i2c: E2 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 62 00 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 62 00 1A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 13 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [22:42: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 13 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:10]wFMCommunicate OK [22:42:10]SAM_PROTO_GetFieldsCounters done [22:42:10]requested_item shift.num is exist - process it [22:42:10]requested_item shift.opened is exist - process it [22:42:10]req_shift_opened [22:42:10]FM_GetShiftState [22:42:10]SAM_PROTO_GetShiftState [22:42:10]wFMCommunicate request_size=4 [22:42:10]MH_SAM_APDU [22:42:10]CAPDU: 80 13 01 00 [22:42:10]Write to MH i2c: E2 08 00 1B 2C 80 13 01 00 00 00 00 00 C4 [22:42:10]Write i2c OK [22:42:10]MH_I2C_Read... [22:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:10]Read from MH i2c: E2 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 0E 00 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: E2 0E 00 1B 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 ED [22:42:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:42:10]wFMCommunicate OK [22:42:10]SAM_PROTO_GetShiftState done [22:42:10]FM_GetShiftState done [22:42:10]req_shift_opened done [22:42:10]requested_item shift.open_date is exist - process it [22:42:10]req_shift_open_date [22:42:10]req_shift_open_date done [22:42:10]produce_requested_data done [22:42:10]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139795,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:42:10]process_action_free close_receipt [22:42:10]json_value_free [22:42:10]json_value_free done [22:42:10]process_json_proto returns [22:42:10]Send response to host [22:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139795,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:42:10]free response buf [22:42:10]execute_script done [22:42:10]execute_script returns [22:42:10]free content buf [22:42:10]Sock 9.Close socket [22:42:10]Sock 9.Thread stoped [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:30]accept exits with 7 [22:43:30]New connection [22:43:30]New thread 3066654052 created [22:43:30]Thread 3066510692 joined [22:43:30]Waiting for new connection... [22:43:30] Sock 7.Parse request [22:43:30]Sock 7.Check first char [22:43:30]Sock 7.First char is OK [22:43:30]request: POST /json_proto HTTP/1.0 [22:43:30]Method: POST [22:43:30]URL: /json_proto [22:43:30]Method is POST - this is cgi request [22:43:30]url: /json_proto [22:43:30]query_string will be loaded in cgi processing [22:43:30]execute_cgi json_proto POST (null) [22:43:30]execute_cgi path=json_proto method=POST [22:43:30]POST find Content-Length [22:43:30]Host: 172.17.50.196:8080 [22:43:30]Content-Length: 991 [22:43:30]Content-Type: application/json [22:43:30] [22:43:30]POST finish read [22:43:30]Found Content-Length = 991 [22:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335629", "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": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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" ] } } [22:43:30]execute_script... [22:43: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)335629", "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": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.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" ] } } [22:43:30]POST & json_proto [22:43:30]process_json_proto [22:43:30]json parsed OK: [22:43:30]protocol is kg_v1.0 [22:43:30]action value=close_receipt [22:43:30]process_action close_receipt [22:43:30]cmd_close_receipt [22:43:30]MH_GetDate [22:43:30]Write to MH i2c: F0 00 00 1C 2C 37 [22:43:30]Write i2c OK [22:43:30]MH_I2C_Read... [22:43:30]Read from MH i2c: F0 [22:43:30]MH_I2C_Read... [22:43:30]Read from MH i2c: F0 09 00 [22:43:30]MH_I2C_Read... [22:43:30]Read from MH i2c: F0 09 00 1C 2C 00 15 08 24 67 72 0D 1C 67 EA [22:43:30]GetLastDocTimeStamp 1730414528 [22:43:30]current date 1730414613 [22:43:30]FM_GetShiftState [22:43:30]SAM_PROTO_GetShiftState [22:43:30]wFMCommunicate request_size=4 [22:43:30]MH_SAM_APDU [22:43:30]CAPDU: 80 13 01 00 [22:43:30]Write to MH i2c: E2 08 00 1D 2C 80 13 01 00 00 00 00 00 C6 [22:43:30]Write i2c OK [22:43:30]MH_I2C_Read... [22:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:30]Read from MH i2c: E2 [22:43:30]MH_I2C_Read... [22:43:30]Read from MH i2c: E2 0E 00 [22:43:30]MH_I2C_Read... [22:43:30]Read from MH i2c: E2 0E 00 1D 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EF [22:43:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:43:30]wFMCommunicate OK [22:43:30]SAM_PROTO_GetShiftState done [22:43:30]FM_GetShiftState done [22:43:30]opened in 1730332621 [22:43:30]opened+sec_in_day 1730419021 [22:43:30]quantity*price = 6000 [22:43:30]sum+1 = 6001 [22:43:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 79.00 = 79.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 273 31.10.2024 22:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139796 ФПД: 61209214873707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224333&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139796&fm=61209214873707&tin=02508201610067®Number=0000000000091631&sum=13900 0 [22:43:31]StoreToDocumentArchive [22:43:31]shift 557 fd 139796 [22:43:31]save to /storage/0557/doc_00139796 [22:43:31]save last doc name /storage/0557/doc_00139796 to /storage/kkm_last_doc_name [22:43:31]save OK [22:43:31]Clear old archive folders... [22:43:31]ProcessDocumentItem done err = 0, tmpTLVsize=409 [22:43:31]tlvbuf is B6F0F940 [22:43:31]SAM_PROTO_ClearQueue [22:43:31]wFMCommunicate request_size=4 [22:43:31]MH_SAM_APDU [22:43:31]CAPDU: 80 09 00 00 [22:43:31]Write to MH i2c: E2 08 00 2A 2C 80 09 00 00 00 00 00 00 C8 [22:43:31]Write i2c OK [22:43:31]MH_I2C_Read... [22:43:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:31]Read from MH i2c: E2 [22:43:31]MH_I2C_Read... [22:43:31]Read from MH i2c: E2 03 00 [22:43:31]MH_I2C_Read... [22:43:31]Read from MH i2c: E2 03 00 2A 2C 00 90 00 CA [22:43:31]RAPDU: 90 00 [22:43:31]wFMCommunicate OK [22:43:31]SAM_PROTO_ClearQueue done [22:43:31]KKMCreateOFDPacket [22:43:31]OFDProtocolAddRootSTLVToBuf [22:43:31]FM_MakeSignedData [22:43:31]FM_MakeSignedData [22:43:31]SAM_PROTO_SignData [22:43:31]wFMCommunicate request_size=4 [22:43:31]MH_SAM_APDU [22:43:31]CAPDU: 80 0D 01 02 [22:43:31]Write to MH i2c: E2 08 00 2B 2C 80 0D 01 02 00 00 00 00 D0 [22:43:31]Write i2c OK [22:43:31]MH_I2C_Read... [22:43:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:32]Read from MH i2c: E2 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 03 00 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 03 00 2B 2C 00 90 00 CB [22:43:32]RAPDU: 90 00 [22:43:32]wFMCommunicate OK [22:43:32]wFMCommunicate request_size=255 [22:43:32]MH_SAM_APDU [22:43:32]CAPDU: 80 0D 02 02 FA 03 00 99 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [22:43:32]Write to MH i2c: E2 02 01 2C 2C 80 0D 02 02 FA 00 03 00 99 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 7F [22:43:32]Write i2c OK [22:43:32]MH_I2C_Read... [22:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:32]Read from MH i2c: E2 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 03 00 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 03 00 2C 2C 00 90 00 CC [22:43:32]RAPDU: 90 00 [22:43:32]wFMCommunicate OK [22:43:32]wFMCommunicate request_size=168 [22:43:32]MH_SAM_APDU [22:43:32]CAPDU: 80 0D 02 02 A3 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 11 01 00 00 F4 03 04 00 15 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 22 02 00 35 04 06 00 37 AB 61 82 70 6B [22:43:32]Write to MH i2c: E2 AB 00 2D 2C 80 0D 02 02 A3 00 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 11 01 00 00 F4 03 04 00 15 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 22 02 00 35 04 06 00 37 AB 61 82 70 6B 00 00 68 [22:43:32]Write i2c OK [22:43:32]MH_I2C_Read... [22:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:32]Read from MH i2c: E2 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 03 00 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 03 00 2D 2C 00 90 00 CD [22:43:32]RAPDU: 90 00 [22:43:32]wFMCommunicate OK [22:43:32]wFMCommunicate request_size=4 [22:43:32]MH_SAM_APDU [22:43:32]CAPDU: 80 0D 03 02 [22:43:32]Write to MH i2c: E2 08 00 2E 2C 80 0D 03 02 00 00 00 00 D5 [22:43:32]Write i2c OK [22:43:32]MH_I2C_Read... [22:43:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:32]Read from MH i2c: E2 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 0B 00 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 0B 00 2E 2C 00 F2 01 3D 14 C5 48 DD D4 90 00 D8 [22:43:32]RAPDU: F2 01 3D 14 C5 48 DD D4 90 00 [22:43:32]wFMCommunicate OK [22:43:32]SAM_PROTO_SignData done [22:43:32]FM_MakeSignedData done [22:43:32]CreateOFDProtocolMessage [22:43:32]wFMCommunicate request_size=4 [22:43:32]MH_SAM_APDU [22:43:32]CAPDU: 80 11 00 00 [22:43:32]Write to MH i2c: E2 08 00 2F 2C 80 11 00 00 00 00 00 00 D5 [22:43:32]Write i2c OK [22:43:32]MH_I2C_Read... [22:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:32]Read from MH i2c: E2 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 17 00 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: E2 17 00 2F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 30 [22:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:43:32]wFMCommunicate OK [22:43:32]CreateOFDProtocolMessage done [22:43:32]OFDSenderStorePacket 139796 [22:43:32]StoreOFDPacket docnum=139796 [22:43: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 AD 01 00 00 D8 D2 A5 01 B0 69 5A 03 01 00 03 00 99 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 11 01 00 00 F4 03 04 00 15 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 22 02 00 35 04 06 00 37 AB 61 82 70 6B F2 01 3D 14 C5 48 DD D4 [22:43:32]CheckFolder [22:43:32]dirname=/storage/ofd_packets [22:43:32]CheckFolder done [22:43:32]ProducePacketName [22:43:32]name=ofd_packets/00139796 [22:43:32]NVStorageSaveData ofd_packets/00139796 [22:43:32]File name is /storage/ofd_packets/00139796 [22:43:32]Write 459 bytes [22:43:32]NVStorageSaveData done [22:43:32]OFDSenderStorePacket done [22:43:32]KKMCreateOFDPacket done [22:43:32]NVStorageSaveData kkm_last_timestamp [22:43:32]File name is /storage/kkm_last_timestamp [22:43:32]Write 4 bytes [22:43:32]NVStorageSaveData done [22:43:32]ExternCall_PrintAddStr [22:43:32]wPrintStart [22:43:32]Write to MH i2c: 01 00 00 30 2C 5C [22:43:32]Write i2c OK [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: 01 [22:43:32]MH_I2C_Read... [22:43:32]Read from MH i2c: 01 07 00 [22:43:32]MH_I2C_Read... [22:43:32]OFD Sender: Processing packet 139796 [packets to send 34, broken 33] [22:43:32]ProducePacketName [22:43:32]name=ofd_packets/00139796 [22:43:32]Read from MH i2c: 01 OFD Sender: To server: pG, [22:43:32]07 00 CommunicateWithHost lk.salyk.kg:30040 [22:43:32]30 ConnectInit lk.salyk.kg [22:43:32]2C 00 00 00 00 00 FF 0F 71 [22:43:32]RasterBufferAndPrint [22:43:32]line Счет N : (3)335629 [22:43:32]line ИНН: 02508201610067 [22:43:32]line Контрольно-Кассовый Чек [22:43:32]line ПРОДАЖА [22:43:32]line Товар: 4700000160792 [22:43:32]line Снек Курут классический (круглый) [22:43:32]line 1.000 * 60.00 [22:43:32]line = 60.00 [22:43:32]line НДС 12% НСП 1% [22:43:32]line > о реализуемом товаре [22:43:32]line Товар: 4700000310043 [22:43:32]line Вода Жалалабат 27 1л [22:43:32]line 1.000 * 79.00 [22:43:32]line = 79.00 [22:43:32]line НДС 12% НСП 1% [22:43:32]line > о реализуемом товаре [22:43:32]line ИТОГО: 139.00 [22:43:32]line НСП 1% : 1.23 [22:43:32]line НДС 12% : 14.76 [22:43:32]line Наличными: 139.00 [22:43:32]line Безнал.: 0.00 [22:43:32]line Место: АЗС № 101 "Партнер Нефть" [22:43:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:43:32]line СНО: Общий режим [22:43:32]line Чек 273 31.10.2024 22:43 [22:43:32]line Смена: 557 ФФД: 1.0 [22:43:32]line ЗНМ: 0300000081 [22:43:32]line РНМ: 0000000000091631 [22:43:32]line Версия ККМ: 001 [22:43:32]line ФМ: 0000000000874669 [22:43:32]line ФД: 139796 [22:43:32]line ФПД: 61209214873707 [22:43:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224333&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139796&fm=61209214873707&tin=02508201610067®Number=0000000000091631&sum=13900 [22:43:32]line 0 [22:43:32]written 0, free lines is 4095 [22:43:32]Connected sock=11 [22:43: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 AD 01 00 00 D8 D2 A5 01 B0 69 5A 03 01 00 03 00 99 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 11 01 00 00 F4 03 04 00 15 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 22 02 00 35 04 06 00 37 AB 61 82 70 6B F2 01 3D 14 C5 48 DD D4 [22:43: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 3B 3A 47 00 9A E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 22 02 00 F4 03 04 00 C2 B3 23 67 B6 04 01 00 00 B3 CB DE A3 9E C8 C2 DB [22:43:33]CommunicateWithHost err = 0 [22:43:33]CheckOFDResponse [22:43:33]1017 (14) - 77093643461234 [22:43:33]1041 (16) - 0000000000874669 [22:43:33]1040 (4) - 139796 [22:43:33]1012 (4) - 31.10.2024 16:43 [22:43:33]1206 (1) - 0 [22:43:33]OFD Sender: Remove packet 139796 [22:43:33]ProducePacketName [22:43:33]name=ofd_packets/00139796 [22:43:33]NVStorageDeleteData [22:43:33]Write to MH i2c: 01 00 00 5F 2C 8B [22:43:33]Write i2c OK [22:43:33]MH_I2C_Read... [22:43:33]Read from MH i2c: 01 [22:43:33]MH_I2C_Read... [22:43:33]Read from MH i2c: 01 07 00 [22:43:33]MH_I2C_Read... [22:43:33]Read from MH i2c: 01 07 00 5F 2C 00 00 00 00 00 D1 0C 6F [22:43:33]RasterBufferAndPrint [22:43:33]line [22:43:33]line [22:43:33]line [22:43:33]line [22:43:33]line [22:43:33]written 0, free lines is 3290 [22:43:33]MH_Cut [22:43:33]Write to MH i2c: D1 01 00 66 2C 01 64 [22:43:33]Write i2c OK [22:43:33]MH_I2C_Read... [22:43:33]Read from MH i2c: D1 [22:43:33]MH_I2C_Read... [22:43:33]Read from MH i2c: D1 01 00 [22:43:33]MH_I2C_Read... [22:43:33]Read from MH i2c: D1 01 00 66 2C 00 63 [22:43:33]Write to MH i2c: 01 00 00 67 2C 93 [22:43:33]Write i2c OK [22:43:33]MH_I2C_Read... [22:43:33]OFD Sender: No OFD packet to send [22:43:34]*** Cut start [22:43:34]*** Partial cut [22:43:34]*** CUTSNS_PIN = 1 [22:43:34]*** CUTSNS_PIN = 0 [22:43:34]*** Brake cut motor [22:43:34]Read from MH i2c: 01 [22:43:34]MH_I2C_Read... [22:43:34]*** Stop cut motor [22:43:34]*** Cut end [22:43:34]Read from MH i2c: 01 07 00 [22:43:34]MH_I2C_Read... [22:43:34]Read from MH i2c: 01 07 00 67 2C 00 00 00 00 00 FF 0F A8 [22:43:34]process_action close_receipt done [22:43:34]requested_data is exist [22:43:34]produce_requested_data [22:43:34]requested_item fm.sn is exist - process it [22:43:34]wFMCommunicate request_size=4 [22:43:34]MH_SAM_APDU [22:43:34]CAPDU: 80 11 00 00 [22:43:34]Write to MH i2c: E2 08 00 68 2C 80 11 00 00 00 00 00 00 0E [22:43:34]Write i2c OK [22:43:34]MH_I2C_Read... [22:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:34]Read from MH i2c: E2 [22:43:34]MH_I2C_Read... [22:43:34]Read from MH i2c: E2 17 00 [22:43:34]MH_I2C_Read... [22:43:34]Read from MH i2c: E2 17 00 68 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 69 [22:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:43:34]wFMCommunicate OK [22:43:34]requested_item fd.num is exist - process it [22:43:34]SAM_PROTO_GetFieldsCounters [22:43:34]wFMCommunicate request_size=4 [22:43:34]MH_SAM_APDU [22:43:34]CAPDU: 80 13 00 00 [22:43:34]Write to MH i2c: E2 08 00 69 2C 80 13 00 00 00 00 00 00 11 [22:43:34]Write i2c OK [22:43:34]MH_I2C_Read... [22:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:34]Read from MH i2c: E2 [22:43:34]MH_I2C_Read... [22:43:34]Read from MH i2c: E2 62 00 [22:43:34]MH_I2C_Read... [22:43:34]Read from MH i2c: E2 62 00 69 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 14 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [22:43: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 14 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:34]wFMCommunicate OK [22:43:34]SAM_PROTO_GetFieldsCounters done [22:43:34]requested_item shift.num is exist - process it [22:43:34]requested_item shift.opened is exist - process it [22:43:34]req_shift_opened [22:43:34]FM_GetShiftState [22:43:34]SAM_PROTO_GetShiftState [22:43:34]wFMCommunicate request_size=4 [22:43:34]MH_SAM_APDU [22:43:34]CAPDU: 80 13 01 00 [22:43:34]Write to MH i2c: E2 08 00 6A 2C 80 13 01 00 00 00 00 00 13 [22:43:34]Write i2c OK [22:43:34]MH_I2C_Read... [22:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:35]Read from MH i2c: E2 [22:43:35]MH_I2C_Read... [22:43:35]Read from MH i2c: E2 0E 00 [22:43:35]MH_I2C_Read... [22:43:35]Read from MH i2c: E2 0E 00 6A 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3C [22:43:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:43:35]wFMCommunicate OK [22:43:35]SAM_PROTO_GetShiftState done [22:43:35]FM_GetShiftState done [22:43:35]req_shift_opened done [22:43:35]requested_item shift.open_date is exist - process it [22:43:35]req_shift_open_date [22:43:35]req_shift_open_date done [22:43:35]produce_requested_data done [22:43:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139796,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:43:35]process_action_free close_receipt [22:43:35]json_value_free [22:43:35]json_value_free done [22:43:35]process_json_proto returns [22:43:35]Send response to host [22:43:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139796,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:43:35]free response buf [22:43:35]execute_script done [22:43:35]execute_script returns [22:43:35]free content buf [22:43:35]Sock 7.Close socket [22:43:35]Sock 7.Thread stoped [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]accept exits with 9 [22:44:23]New connection [22:44:23]New thread 3066510692 created [22:44:23]Thread 3066654052 joined [22:44:23]Waiting for new connection... [22:44:23] Sock 9.Parse request [22:44:23]Sock 9.Check first char [22:44:23]Sock 9.First char is OK [22:44:23]request: POST /json_proto HTTP/1.0 [22:44:23]Method: POST [22:44:23]URL: /json_proto [22:44:23]Method is POST - this is cgi request [22:44:23]url: /json_proto [22:44:23]query_string will be loaded in cgi processing [22:44:23]execute_cgi json_proto POST (null) [22:44:23]execute_cgi path=json_proto method=POST [22:44:23]POST find Content-Length [22:44:23]Host: 172.17.50.196:8080 [22:44:23]Content-Length: 655 [22:44:23]Content-Type: application/json [22:44:23] [22:44:23]POST finish read [22:44:23]Found Content-Length = 655 [22:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335630", "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" ] } } [22:44:23]execute_script... [22: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)335630", "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" ] } } [22:44:23]POST & json_proto [22:44:23]process_json_proto [22:44:23]json parsed OK: [22:44:23]protocol is kg_v1.0 [22:44:23]action value=close_receipt [22:44:23]process_action close_receipt [22:44:23]cmd_close_receipt [22:44:23]MH_GetDate [22:44:23]Write to MH i2c: F0 00 00 6B 2C 86 [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 09 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 09 00 6B 2C 00 4A 08 24 67 72 0D 1C 67 6E [22:44:23]GetLastDocTimeStamp 1730414613 [22:44:23]current date 1730414666 [22:44:23]FM_GetShiftState [22:44:23]SAM_PROTO_GetShiftState [22:44:23]wFMCommunicate request_size=4 [22:44:23]MH_SAM_APDU [22:44:23]CAPDU: 80 13 01 00 [22:44:23]Write to MH i2c: E2 08 00 6C 2C 80 13 01 00 00 00 00 00 15 [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:23]Read from MH i2c: E2 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: E2 0E 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: E2 0E 00 6C 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3E [22:44:23]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:44:23]wFMCommunicate OK [22:44:23]SAM_PROTO_GetShiftState done [22:44:23]FM_GetShiftState done [22:44:23]opened in 1730332621 [22:44:23]opened+sec_in_day 1730419021 [22:44:23]quantity*price = 6900 [22:44:23]sum+1 = 6901 [22:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 274 31.10.2024 22:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139797 ФПД: 219366502169928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224426&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139797&fm=219366502169928&tin=02508201610067®Number=0000000000091631&sum=6900 0 [22:44:24]StoreToDocumentArchive [22:44:24]shift 557 fd 139797 [22:44:24]save to /storage/0557/doc_00139797 [22:44:24]save last doc name /storage/0557/doc_00139797 to /storage/kkm_last_doc_name [22:44:24]save OK [22:44:24]Clear old archive folders... [22:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=294 [22:44:24]tlvbuf is 00B4DCE0 [22:44:24]SAM_PROTO_ClearQueue [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 09 00 00 [22:44:24]Write to MH i2c: E2 08 00 79 2C 80 09 00 00 00 00 00 00 17 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 79 2C 00 90 00 19 [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]SAM_PROTO_ClearQueue done [22:44:24]KKMCreateOFDPacket [22:44:24]OFDProtocolAddRootSTLVToBuf [22:44:24]FM_MakeSignedData [22:44:24]FM_MakeSignedData [22:44:24]SAM_PROTO_SignData [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 0D 01 02 [22:44:24]Write to MH i2c: E2 08 00 7A 2C 80 0D 01 02 00 00 00 00 1F [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 7A 2C 00 90 00 1A [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]wFMCommunicate request_size=255 [22:44:24]MH_SAM_APDU [22:44:24]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 12 01 00 00 F4 03 04 00 4A 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [22:44:24]Write to MH i2c: E2 02 01 7B 2C 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 12 01 00 00 F4 03 04 00 4A 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4D [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 7B 2C 00 90 00 1B [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]wFMCommunicate request_size=53 [22:44:24]MH_SAM_APDU [22:44:24]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 15 22 02 00 35 04 06 00 C7 83 3E 6F FD 48 [22:44:24]Write to MH i2c: E2 38 00 7C 2C 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 15 22 02 00 35 04 06 00 C7 83 3E 6F FD 48 00 00 8F [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 7C 2C 00 90 00 1C [22:44:25]RAPDU: 90 00 [22:44:25]wFMCommunicate OK [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 0D 03 02 [22:44:25]Write to MH i2c: E2 08 00 7D 2C 80 0D 03 02 00 00 00 00 24 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 0B 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 0B 00 7D 2C 00 47 BD 0A 44 0B F8 0C 73 90 00 F9 [22:44:25]RAPDU: 47 BD 0A 44 0B F8 0C 73 90 00 [22:44:25]wFMCommunicate OK [22:44:25]SAM_PROTO_SignData done [22:44:25]FM_MakeSignedData done [22:44:25]CreateOFDProtocolMessage [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 11 00 00 [22:44:25]Write to MH i2c: E2 08 00 7E 2C 80 11 00 00 00 00 00 00 24 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 17 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 17 00 7E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7F [22: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 [22:44:25]wFMCommunicate OK [22:44:25]CreateOFDProtocolMessage done [22:44:25]OFDSenderStorePacket 139797 [22:44:25]StoreOFDPacket docnum=139797 [22: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 3A 01 00 00 11 E3 32 01 58 10 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 12 01 00 00 F4 03 04 00 4A 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 15 22 02 00 35 04 06 00 C7 83 3E 6F FD 48 47 BD 0A 44 0B F8 0C 73 [22:44:25]CheckFolder [22:44:25]dirname=/storage/ofd_packets [22:44:25]CheckFolder done [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00139797 [22:44:25]NVStorageSaveData ofd_packets/00139797 [22:44:25]File name is /storage/ofd_packets/00139797 [22:44:25]Write 344 bytes [22:44:25]NVStorageSaveData done [22:44:25]OFDSenderStorePacket done [22:44:25]KKMCreateOFDPacket done [22:44:25]NVStorageSaveData kkm_last_timestamp [22:44:25]File name is /storage/kkm_last_timestamp [22:44:25]Write 4 bytes [22:44:25]OFD Sender: Processing packet 139797 [packets to send 34, broken 33] [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00139797 [22:44:25]OFD Sender: To server: pG, [22:44:25]CommunicateWithHost lk.salyk.kg:30040 [22:44:25]ConnectInit lk.salyk.kg [22:44:25]NVStorageSaveData done [22:44:25]ExternCall_PrintAddStr [22:44:25]wPrintStart [22:44:25]Write to MH i2c: 01 00 00 7F 2C AB [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 7F 2C 00 00 00 00 00 FF 0F C0 [22:44:25]RasterBufferAndPrint [22:44:25]line Счет N : (3)335630 [22:44:25]line ИНН: 02508201610067 [22:44:25]line Контрольно-Кассовый Чек [22:44:25]line ПРОДАЖА [22:44:25]line Товар: 4600682557456 [22:44:25]line Напиток FLash up energy эн ж/б 0,5/0,45л [22:44:25]line 1.000 * 69.00 [22:44:25]line = 69.00 [22:44:25]line НДС 12% НСП 1% [22:44:25]line > о реализуемом товаре [22:44:25]line ИТОГО: 69.00 [22:44:25]line НСП 1% : 0.61 [22:44:25]line НДС 12% : 7.33 [22:44:25]line Наличными: 69.00 [22:44:25]line Безнал.: 0.00 [22:44:25]line Место: АЗС № 101 "Партнер Нефть" [22:44:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:44:25]line СНО: Общий режим [22:44:25]line Чек 274 31.10.2024 22:44 [22:44:25]line Смена: 557 ФФД: 1.0 [22:44:25]line ЗНМ: 0300000081 [22:44:25]line РНМ: 0000000000091631 [22:44:25]line Версия ККМ: 001 [22:44:25]line ФМ: 0000000000874669 [22:44:25]line ФД: 139797 [22:44:25]line ФПД: 219366502169928 [22:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224426&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139797&fm=219366502169928&tin=02508201610067®Number=0000000000091631&sum=6900 [22:44:25]line 0 [22:44:25]Connected sock=11 [22: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 3A 01 00 00 11 E3 32 01 58 10 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 12 01 00 00 F4 03 04 00 4A 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 15 22 02 00 35 04 06 00 C7 83 3E 6F FD 48 47 BD 0A 44 0B F8 0C 73 [22:44:25]written 0, free lines is 4095 [22: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 61 65 47 00 9E 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 15 22 02 00 F4 03 04 00 F6 B3 23 67 B6 04 01 00 00 B9 8F 81 32 C5 8B 8F B5 [22:44:25]CommunicateWithHost err = 0 [22:44:25]CheckOFDResponse [22:44:25]1017 (14) - 77093643461234 [22:44:25]1041 (16) - 0000000000874669 [22:44:25]1040 (4) - 139797 [22:44:25]1012 (4) - 31.10.2024 16:44 [22:44:25]1206 (1) - 0 [22:44:25]OFD Sender: Remove packet 139797 [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00139797 [22:44:25]NVStorageDeleteData [22:44:25]Write to MH i2c: 01 00 00 A8 2C D4 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 A8 2C 00 00 00 00 00 04 0D EC [22:44:25]RasterBufferAndPrint [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]written 0, free lines is 3340 [22:44:26]MH_Cut [22:44:26]Write to MH i2c: D1 01 00 AF 2C 01 AD [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: D1 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: D1 01 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: D1 01 00 AF 2C 00 AC [22:44:26]Write to MH i2c: 01 00 00 B0 2C DC [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]OFD Sender: No OFD packet to send [22:44:26]*** Cut start [22:44:26]*** Partial cut [22:44:26]*** CUTSNS_PIN = 1 [22:44:26]*** CUTSNS_PIN = 0 [22:44:26]*** Brake cut motor [22:44:27]Read from MH i2c: 01 [22:44:27]MH_I2C_Read... [22:44:27]*** Stop cut motor [22:44:27]*** Cut end [22:44:27]Read from MH i2c: 01 07 00 [22:44:27]MH_I2C_Read... [22:44:27]Read from MH i2c: 01 07 00 B0 2C 00 00 00 00 00 FF 0F F1 [22:44:27]process_action close_receipt done [22:44:27]requested_data is exist [22:44:27]produce_requested_data [22:44:27]requested_item fm.sn is exist - process it [22:44:27]wFMCommunicate request_size=4 [22:44:27]MH_SAM_APDU [22:44:27]CAPDU: 80 11 00 00 [22:44:27]Write to MH i2c: E2 08 00 B1 2C 80 11 00 00 00 00 00 00 57 [22:44:27]Write i2c OK [22:44:27]MH_I2C_Read... [22:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:27]Read from MH i2c: E2 [22:44:27]MH_I2C_Read... [22:44:27]Read from MH i2c: E2 17 00 [22:44:27]MH_I2C_Read... [22:44:27]Read from MH i2c: E2 17 00 B1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B2 [22: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 [22:44:27]wFMCommunicate OK [22:44:27]requested_item fd.num is exist - process it [22:44:27]SAM_PROTO_GetFieldsCounters [22:44:27]wFMCommunicate request_size=4 [22:44:27]MH_SAM_APDU [22:44:27]CAPDU: 80 13 00 00 [22:44:27]Write to MH i2c: E2 08 00 B2 2C 80 13 00 00 00 00 00 00 5A [22:44:27]Write i2c OK [22:44:27]MH_I2C_Read... [22:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:27]Read from MH i2c: E2 [22:44:27]MH_I2C_Read... [22:44:27]Read from MH i2c: E2 62 00 [22:44:27]MH_I2C_Read... [22:44:27]Read from MH i2c: E2 62 00 B2 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 15 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [22: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 15 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:27]wFMCommunicate OK [22:44:27]SAM_PROTO_GetFieldsCounters done [22:44:27]requested_item shift.num is exist - process it [22:44:27]requested_item shift.opened is exist - process it [22:44:27]req_shift_opened [22:44:27]FM_GetShiftState [22:44:27]SAM_PROTO_GetShiftState [22:44:27]wFMCommunicate request_size=4 [22:44:27]MH_SAM_APDU [22:44:27]CAPDU: 80 13 01 00 [22:44:27]Write to MH i2c: E2 08 00 B3 2C 80 13 01 00 00 00 00 00 5C [22:44:27]Write i2c OK [22:44:27]MH_I2C_Read... [22:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:27]Read from MH i2c: E2 [22:44:27]MH_I2C_Read... [22:44:27]Read from MH i2c: E2 0E 00 [22:44:27]MH_I2C_Read... [22:44:27]Read from MH i2c: E2 0E 00 B3 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 85 [22:44:27]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:44:27]wFMCommunicate OK [22:44:27]SAM_PROTO_GetShiftState done [22:44:27]FM_GetShiftState done [22:44:27]req_shift_opened done [22:44:27]requested_item shift.open_date is exist - process it [22:44:27]req_shift_open_date [22:44:27]req_shift_open_date done [22:44:27]produce_requested_data done [22:44:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139797,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:44:27]process_action_free close_receipt [22:44:27]json_value_free [22:44:27]json_value_free done [22:44:27]process_json_proto returns [22:44:27]Send response to host [22:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139797,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:44:27]free response buf [22:44:27]execute_script done [22:44:27]execute_script returns [22:44:27]free content buf [22:44:27]Sock 9.Close socket [22:44:27]Sock 9.Thread stoped [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:02]accept exits with 7 [22:45:02]New connection [22:45:02]New thread 3066654052 created [22:45:02]Thread 3066510692 joined [22:45:02]Waiting for new connection... [22:45:02] Sock 7.Parse request [22:45:02]Sock 7.Check first char [22:45:02]Sock 7.First char is OK [22:45:02]request: POST /json_proto HTTP/1.0 [22:45:02]Method: POST [22:45:02]URL: /json_proto [22:45:02]Method is POST - this is cgi request [22:45:02]url: /json_proto [22:45:02]query_string will be loaded in cgi processing [22:45:02]execute_cgi json_proto POST (null) [22:45:02]execute_cgi path=json_proto method=POST [22:45:02]POST find Content-Length [22:45:02]Host: 172.17.50.196:8080 [22:45:02]Content-Length: 620 [22:45:02]Content-Type: application/json [22:45:02] [22:45:02]POST finish read [22:45:02]Found Content-Length = 620 [22:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335631", "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" ] } } [22:45:02]execute_script... [22:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335631", "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" ] } } [22:45:02]POST & json_proto [22:45:02]process_json_proto [22:45:02]json parsed OK: [22:45:02]protocol is kg_v1.0 [22:45:02]action value=close_receipt [22:45:02]process_action close_receipt [22:45:02]cmd_close_receipt [22:45:02]MH_GetDate [22:45:02]Write to MH i2c: F0 00 00 B4 2C CF [22:45:02]Write i2c OK [22:45:02]MH_I2C_Read... [22:45:02]Read from MH i2c: F0 [22:45:02]MH_I2C_Read... [22:45:02]Read from MH i2c: F0 09 00 [22:45:02]MH_I2C_Read... [22:45:02]Read from MH i2c: F0 09 00 B4 2C 00 71 08 24 67 72 0D 1C 67 DE [22:45:02]GetLastDocTimeStamp 1730414666 [22:45:02]current date 1730414705 [22:45:02]FM_GetShiftState [22:45:02]SAM_PROTO_GetShiftState [22:45:02]wFMCommunicate request_size=4 [22:45:02]MH_SAM_APDU [22:45:02]CAPDU: 80 13 01 00 [22:45:02]Write to MH i2c: E2 08 00 B5 2C 80 13 01 00 00 00 00 00 5E [22:45:02]Write i2c OK [22:45:02]MH_I2C_Read... [22:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:02]Read from MH i2c: E2 [22:45:02]MH_I2C_Read... [22:45:02]Read from MH i2c: E2 0E 00 [22:45:02]MH_I2C_Read... [22:45:02]Read from MH i2c: E2 0E 00 B5 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 87 [22:45:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:45:02]wFMCommunicate OK [22:45:02]SAM_PROTO_GetShiftState done [22:45:02]FM_GetShiftState done [22:45:02]opened in 1730332621 [22:45:02]opened+sec_in_day 1730419021 [22:45:02]quantity*price = 4900 [22:45:02]sum+1 = 4901 [22:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 275 31.10.2024 22:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139798 ФПД: 91988765321673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224505&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139798&fm=91988765321673&tin=02508201610067®Number=0000000000091631&sum=4900 0 [22:45:03]StoreToDocumentArchive [22:45:03]shift 557 fd 139798 [22:45:03]save to /storage/0557/doc_00139798 [22:45:03]save last doc name /storage/0557/doc_00139798 to /storage/kkm_last_doc_name [22:45:03]save OK [22:45:03]Clear old archive folders... [22:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:45:03]tlvbuf is 00AE6780 [22:45:03]SAM_PROTO_ClearQueue [22:45:03]wFMCommunicate request_size=4 [22:45:03]MH_SAM_APDU [22:45:03]CAPDU: 80 09 00 00 [22:45:03]Write to MH i2c: E2 08 00 C2 2C 80 09 00 00 00 00 00 00 60 [22:45:03]Write i2c OK [22:45:03]MH_I2C_Read... [22:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:03]Read from MH i2c: E2 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 03 00 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 03 00 C2 2C 00 90 00 62 [22:45:03]RAPDU: 90 00 [22:45:03]wFMCommunicate OK [22:45:03]SAM_PROTO_ClearQueue done [22:45:03]KKMCreateOFDPacket [22:45:03]OFDProtocolAddRootSTLVToBuf [22:45:03]FM_MakeSignedData [22:45:03]FM_MakeSignedData [22:45:03]SAM_PROTO_SignData [22:45:03]wFMCommunicate request_size=4 [22:45:03]MH_SAM_APDU [22:45:03]CAPDU: 80 0D 01 02 [22:45:03]Write to MH i2c: E2 08 00 C3 2C 80 0D 01 02 00 00 00 00 68 [22:45:03]Write i2c OK [22:45:03]MH_I2C_Read... [22:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:03]Read from MH i2c: E2 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 03 00 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 03 00 C3 2C 00 90 00 63 [22:45:03]RAPDU: 90 00 [22:45:03]wFMCommunicate OK [22:45:03]wFMCommunicate request_size=255 [22:45:03]MH_SAM_APDU [22:45:03]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 13 01 00 00 F4 03 04 00 71 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 [22:45:03]Write to MH i2c: E2 02 01 C4 2C 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 13 01 00 00 F4 03 04 00 71 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 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 F2 [22:45:03]Write i2c OK [22:45:03]MH_I2C_Read... [22:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:03]Read from MH i2c: E2 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 03 00 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 03 00 C4 2C 00 90 00 64 [22:45:03]RAPDU: 90 00 [22:45:03]wFMCommunicate OK [22:45:03]wFMCommunicate request_size=38 [22:45:03]MH_SAM_APDU [22:45:03]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 16 22 02 00 35 04 06 00 53 A9 CD AE 29 C9 [22:45:03]Write to MH i2c: E2 29 00 C5 2C 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 16 22 02 00 35 04 06 00 53 A9 CD AE 29 C9 00 00 9F [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:04]Read from MH i2c: E2 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 03 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 03 00 C5 2C 00 90 00 65 [22:45:04]RAPDU: 90 00 [22:45:04]wFMCommunicate OK [22:45:04]wFMCommunicate request_size=4 [22:45:04]MH_SAM_APDU [22:45:04]CAPDU: 80 0D 03 02 [22:45:04]Write to MH i2c: E2 08 00 C6 2C 80 0D 03 02 00 00 00 00 6D [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:04]Read from MH i2c: E2 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 0B 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 0B 00 C6 2C 00 96 C3 AC 41 40 8A AC C3 90 00 ED [22:45:04]RAPDU: 96 C3 AC 41 40 8A AC C3 90 00 [22:45:04]wFMCommunicate OK [22:45:04]SAM_PROTO_SignData done [22:45:04]FM_MakeSignedData done [22:45:04]CreateOFDProtocolMessage [22:45:04]wFMCommunicate request_size=4 [22:45:04]MH_SAM_APDU [22:45:04]CAPDU: 80 11 00 00 [22:45:04]Write to MH i2c: E2 08 00 C7 2C 80 11 00 00 00 00 00 00 6D [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:04]Read from MH i2c: E2 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 17 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: E2 17 00 C7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C8 [22:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:45:04]wFMCommunicate OK [22:45:04]CreateOFDProtocolMessage done [22:45:04]OFDSenderStorePacket 139798 [22:45:04]StoreOFDPacket docnum=139798 [22:45:04]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 11 49 23 01 75 9C 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 13 01 00 00 F4 03 04 00 71 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 16 22 02 00 35 04 06 00 53 A9 CD AE 29 C9 96 C3 AC 41 40 8A AC C3 [22:45:04]CheckFolder [22:45:04]dirname=/storage/ofd_packets [22:45:04]CheckFolder done [22:45:04]ProducePacketName [22:45:04]name=ofd_packets/00139798 [22:45:04]NVStorageSaveData ofd_packets/00139798 [22:45:04]File name is /storage/ofd_packets/00139798 [22:45:04]Write 329 bytes [22:45:04]NVStorageSaveData done [22:45:04]OFDSenderStorePacket done [22:45:04]KKMCreateOFDPacket done [22:45:04]NVStorageSaveData kkm_last_timestamp [22:45:04]File name is /storage/kkm_last_timestamp [22:45:04]Write 4 bytes [22:45:04]NVStorageSaveData done [22:45:04]ExternCall_PrintAddStr [22:45:04]wPrintStart [22:45:04]Write to MH i2c: 01 00 00 C8 2C F4 [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: 01 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: 01 07 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: 01 07 00 C8 2C 00 00 00 00 00 FF 0F 09 [22:45:04]RasterBufferAndPrint [22:45:04]line Счет N : (3)335631 [22:45:04]line ИНН: 02508201610067 [22:45:04]line Контрольно-Кассовый Чек [22:45:04]line ПРОДАЖА [22:45:04]line Товар: 46214645 [22:45:04]line Р/ж mentos pure white клуб 16/15,5г [22:45:04]line 1.000 * 49.00 [22:45:04]line = 49.00 [22:45:04]line НДС 12% НСП 1% [22:45:04]line > о реализуемом товаре [22:45:04]line ИТОГО: 49.00 [22:45:04]line НСП 1% : 0.43 [22:45:04]line НДС 12% : 5.20 [22:45:04]line Наличными: 49.00 [22:45:04]line Безнал.: 0.00 [22:45:04]line Место: АЗС № 101 "Партнер Нефть" [22:45:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:45:04]line СНО: Общий режим [22:45:04]line Чек 275 31.10.2024 22:45 [22:45:04]line Смена: 557 ФФД: 1.0 [22:45:04]line ЗНМ: 0300000081 [22:45:04]line РНМ: 0000000000091631 [22:45:04]line Версия ККМ: 001 [22:45:04]line ФМ: 0000000000874669 [22:45:04]line ФД: 139798 [22:45:04]line ФПД: 91988765321673 [22:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224505&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139798&fm=91988765321673&tin=02508201610067®Number=0000000000091631&sum=4900 [22:45:04]OFD Sender: Processing packet 139798 [packets to send 34, broken 33] [22:45:04]ProducePacketName [22:45:04]name=ofd_packets/00139798 [22:45:04]OFD Sender: To server: pG, [22:45:04]CommunicateWithHost lk.salyk.kg:30040 [22:45:04]ConnectInit lk.salyk.kg [22:45:04]line 0 [22:45:04]written 0, free lines is 4095 [22:45:04]Connected sock=10 [22:45: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 2B 01 00 00 11 49 23 01 75 9C 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 13 01 00 00 F4 03 04 00 71 08 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 16 22 02 00 35 04 06 00 53 A9 CD AE 29 C9 96 C3 AC 41 40 8A AC C3 [22:45: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 40 8E 47 00 2F 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 16 22 02 00 F4 03 04 00 1D B4 23 67 B6 04 01 00 00 23 6F 0C 35 B0 95 BE B4 [22:45:04]CommunicateWithHost err = 0 [22:45:04]CheckOFDResponse [22:45:04]1017 (14) - 77093643461234 [22:45:04]1041 (16) - 0000000000874669 [22:45:04]1040 (4) - 139798 [22:45:04]1012 (4) - 31.10.2024 16:45 [22:45:04]1206 (1) - 0 [22:45:04]OFD Sender: Remove packet 139798 [22:45:04]ProducePacketName [22:45:04]name=ofd_packets/00139798 [22:45:04]NVStorageDeleteData [22:45:04]Write to MH i2c: 01 00 00 F1 2C 1D [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: 01 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: 01 07 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 03 0D 34 [22:45:04]RasterBufferAndPrint [22:45:04]line [22:45:04]line [22:45:04]line [22:45:04]line [22:45:04]line [22:45:04]written 0, free lines is 3337 [22:45:04]MH_Cut [22:45:04]Write to MH i2c: D1 01 00 F8 2C 01 F6 [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: D1 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: D1 01 00 [22:45:04]MH_I2C_Read... [22:45:04]Read from MH i2c: D1 01 00 F8 2C 00 F5 [22:45:04]Write to MH i2c: 01 00 00 F9 2C 25 [22:45:04]Write i2c OK [22:45:04]MH_I2C_Read... [22:45:05]OFD Sender: No OFD packet to send [22:45:05]*** Cut start [22:45:05]*** Partial cut [22:45:05]*** CUTSNS_PIN = 1 [22:45:05]*** CUTSNS_PIN = 0 [22:45:05]*** Brake cut motor [22:45:06]Read from MH i2c: 01 [22:45:06]MH_I2C_Read... [22:45:06]*** Stop cut motor [22:45:06]*** Cut end [22:45:06]Read from MH i2c: 01 07 00 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: 01 07 00 F9 2C 00 00 00 00 00 FF 0F 3A [22:45:06]process_action close_receipt done [22:45:06]requested_data is exist [22:45:06]produce_requested_data [22:45:06]requested_item fm.sn is exist - process it [22:45:06]wFMCommunicate request_size=4 [22:45:06]MH_SAM_APDU [22:45:06]CAPDU: 80 11 00 00 [22:45:06]Write to MH i2c: E2 08 00 FA 2C 80 11 00 00 00 00 00 00 A0 [22:45:06]Write i2c OK [22:45:06]MH_I2C_Read... [22:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:06]Read from MH i2c: E2 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: E2 17 00 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: E2 17 00 FA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FB [22:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:45:06]wFMCommunicate OK [22:45:06]requested_item fd.num is exist - process it [22:45:06]SAM_PROTO_GetFieldsCounters [22:45:06]wFMCommunicate request_size=4 [22:45:06]MH_SAM_APDU [22:45:06]CAPDU: 80 13 00 00 [22:45:06]Write to MH i2c: E2 08 00 FB 2C 80 13 00 00 00 00 00 00 A3 [22:45:06]Write i2c OK [22:45:06]MH_I2C_Read... [22:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:06]Read from MH i2c: E2 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: E2 62 00 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: E2 62 00 FB 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 16 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [22:45: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 16 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:06]wFMCommunicate OK [22:45:06]SAM_PROTO_GetFieldsCounters done [22:45:06]requested_item shift.num is exist - process it [22:45:06]requested_item shift.opened is exist - process it [22:45:06]req_shift_opened [22:45:06]FM_GetShiftState [22:45:06]SAM_PROTO_GetShiftState [22:45:06]wFMCommunicate request_size=4 [22:45:06]MH_SAM_APDU [22:45:06]CAPDU: 80 13 01 00 [22:45:06]Write to MH i2c: E2 08 00 FC 2C 80 13 01 00 00 00 00 00 A5 [22:45:06]Write i2c OK [22:45:06]MH_I2C_Read... [22:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:06]Read from MH i2c: E2 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: E2 0E 00 [22:45:06]MH_I2C_Read... [22:45:06]Read from MH i2c: E2 0E 00 FC 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CE [22:45:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:45:06]wFMCommunicate OK [22:45:06]SAM_PROTO_GetShiftState done [22:45:06]FM_GetShiftState done [22:45:06]req_shift_opened done [22:45:06]requested_item shift.open_date is exist - process it [22:45:06]req_shift_open_date [22:45:06]req_shift_open_date done [22:45:06]produce_requested_data done [22:45:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139798,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:45:06]process_action_free close_receipt [22:45:06]json_value_free [22:45:06]json_value_free done [22:45:06]process_json_proto returns [22:45:06]Send response to host [22:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139798,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:45:06]free response buf [22:45:06]execute_script done [22:45:06]execute_script returns [22:45:06]free content buf [22:45:06]Sock 7.Close socket [22:45:06]Sock 7.Thread stoped [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]accept exits with 9 [22:48:10]New connection [22:48:10]New thread 3066510692 created [22:48:10]Thread 3066654052 joined [22:48:10]Waiting for new connection... [22:48:10] Sock 9.Parse request [22:48:10]Sock 9.Check first char [22:48:10]Sock 9.First char is OK [22:48:10]request: POST /json_proto HTTP/1.0 [22:48:10]Method: POST [22:48:10]URL: /json_proto [22:48:10]Method is POST - this is cgi request [22:48:10]url: /json_proto [22:48:10]query_string will be loaded in cgi processing [22:48:10]execute_cgi json_proto POST (null) [22:48:10]execute_cgi path=json_proto method=POST [22:48:10]POST find Content-Length [22:48:10]Host: 172.17.50.196:8080 [22:48:10]Content-Length: 685 [22:48:10]Content-Type: application/json [22:48:10] [22:48:10]POST finish read [22:48:10]Found Content-Length = 685 [22:48:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335632", "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:10]execute_script... [22:48:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335632", "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:10]POST & json_proto [22:48:10]process_json_proto [22:48:10]json parsed OK: [22:48:10]protocol is kg_v1.0 [22:48:10]action value=close_receipt [22:48:10]process_action close_receipt [22:48:10]cmd_close_receipt [22:48:10]MH_GetDate [22:48:10]Write to MH i2c: F0 00 00 FD 2C 18 [22:48:10]Write i2c OK [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: F0 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: F0 09 00 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: F0 09 00 FD 2C 00 2D 09 24 67 72 0D 1C 67 E4 [22:48:10]GetLastDocTimeStamp 1730414705 [22:48:10]current date 1730414893 [22:48:10]FM_GetShiftState [22:48:10]SAM_PROTO_GetShiftState [22:48:10]wFMCommunicate request_size=4 [22:48:10]MH_SAM_APDU [22:48:10]CAPDU: 80 13 01 00 [22:48:10]Write to MH i2c: E2 08 00 FE 2C 80 13 01 00 00 00 00 00 A7 [22:48:10]Write i2c OK [22:48:10]MH_I2C_Read... [22:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:10]Read from MH i2c: E2 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: E2 0E 00 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: E2 0E 00 FE 2C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D0 [22:48:10]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:48:10]wFMCommunicate OK [22:48:10]SAM_PROTO_GetShiftState done [22:48:10]FM_GetShiftState done [22:48:10]opened in 1730332621 [22:48:10]opened+sec_in_day 1730419021 [22:48:10]quantity*price = 8000 [22:48:10]sum+1 = 8001 [22:48:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 276 31.10.2024 22:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139799 ФПД: 151385905088398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224813&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139799&fm=151385905088398&tin=02508201610067®Number=0000000000091631&sum=8000 0 [22:48:11]StoreToDocumentArchive [22:48:11]shift 557 fd 139799 [22:48:11]save to /storage/0557/doc_00139799 [22:48:11]save last doc name /storage/0557/doc_00139799 to /storage/kkm_last_doc_name [22:48:11]save OK [22:48:11]Clear old archive folders... [22:48:11]ProcessDocumentItem done err = 0, tmpTLVsize=296 [22:48:11]tlvbuf is 00B78710 [22:48:11]SAM_PROTO_ClearQueue [22:48:11]wFMCommunicate request_size=4 [22:48:11]MH_SAM_APDU [22:48:11]CAPDU: 80 09 00 00 [22:48:11]Write to MH i2c: E2 08 00 0B 2D 80 09 00 00 00 00 00 00 AA [22:48:11]Write i2c OK [22:48:11]MH_I2C_Read... [22:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:11]Read from MH i2c: E2 [22:48:11]MH_I2C_Read... [22:48:11]Read from MH i2c: E2 03 00 [22:48:11]MH_I2C_Read... [22:48:11]Read from MH i2c: E2 03 00 0B 2D 00 90 00 AC [22:48:11]RAPDU: 90 00 [22:48:11]wFMCommunicate OK [22:48:11]SAM_PROTO_ClearQueue done [22:48:11]KKMCreateOFDPacket [22:48:11]OFDProtocolAddRootSTLVToBuf [22:48:11]FM_MakeSignedData [22:48:11]FM_MakeSignedData [22:48:11]SAM_PROTO_SignData [22:48:11]wFMCommunicate request_size=4 [22:48:11]MH_SAM_APDU [22:48:11]CAPDU: 80 0D 01 02 [22:48:11]Write to MH i2c: E2 08 00 0C 2D 80 0D 01 02 00 00 00 00 B2 [22:48:11]Write i2c OK [22:48:11]MH_I2C_Read... [22:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:11]Read from MH i2c: E2 [22:48:11]MH_I2C_Read... [22:48:11]Read from MH i2c: E2 03 00 [22:48:11]MH_I2C_Read... [22:48:11]Read from MH i2c: E2 03 00 0C 2D 00 90 00 AD [22:48:11]RAPDU: 90 00 [22:48:11]wFMCommunicate OK [22:48:11]wFMCommunicate request_size=255 [22:48:11]MH_SAM_APDU [22:48:11]CAPDU: 80 0D 02 02 FA 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [22:48:11]Write to MH i2c: E2 02 01 0D 2D 80 0D 02 02 FA 00 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 76 [22:48:11]Write i2c OK [22:48:11]MH_I2C_Read... [22:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:11]Read from MH i2c: E2 [22:48:11]MH_I2C_Read... [22:48:11]Read from MH i2c: E2 03 00 [22:48:11]MH_I2C_Read... [22:48:11]Read from MH i2c: E2 03 00 0D 2D 00 90 00 AE [22:48:11]RAPDU: 90 00 [22:48:11]wFMCommunicate OK [22:48:11]wFMCommunicate request_size=55 [22:48:11]MH_SAM_APDU [22:48:11]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 17 22 02 00 35 04 06 00 89 AF 47 18 C7 8E [22:48:11]Write to MH i2c: E2 3A 00 0E 2D 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 17 22 02 00 35 04 06 00 89 AF 47 18 C7 8E 00 00 38 [22:48:11]Write i2c OK [22:48:11]MH_I2C_Read... [22:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:12]Read from MH i2c: E2 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: E2 03 00 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: E2 03 00 0E 2D 00 90 00 AF [22:48:12]RAPDU: 90 00 [22:48:12]wFMCommunicate OK [22:48:12]wFMCommunicate request_size=4 [22:48:12]MH_SAM_APDU [22:48:12]CAPDU: 80 0D 03 02 [22:48:12]Write to MH i2c: E2 08 00 0F 2D 80 0D 03 02 00 00 00 00 B7 [22:48:12]Write i2c OK [22:48:12]MH_I2C_Read... [22:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:12]Read from MH i2c: E2 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: E2 0B 00 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: E2 0B 00 0F 2D 00 FD 3F A2 0C D0 04 7C 1E 90 00 10 [22:48:12]RAPDU: FD 3F A2 0C D0 04 7C 1E 90 00 [22:48:12]wFMCommunicate OK [22:48:12]SAM_PROTO_SignData done [22:48:12]FM_MakeSignedData done [22:48:12]CreateOFDProtocolMessage [22:48:12]wFMCommunicate request_size=4 [22:48:12]MH_SAM_APDU [22:48:12]CAPDU: 80 11 00 00 [22:48:12]Write to MH i2c: E2 08 00 10 2D 80 11 00 00 00 00 00 00 B7 [22:48:12]Write i2c OK [22:48:12]MH_I2C_Read... [22:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:12]Read from MH i2c: E2 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: E2 17 00 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: E2 17 00 10 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 12 [22:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:48:12]wFMCommunicate OK [22:48:12]CreateOFDProtocolMessage done [22:48:12]OFDSenderStorePacket 139799 [22:48:12]StoreOFDPacket docnum=139799 [22:48: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 3C 01 00 00 19 27 34 01 31 EA 5A 03 01 00 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 17 22 02 00 35 04 06 00 89 AF 47 18 C7 8E FD 3F A2 0C D0 04 7C 1E [22:48:12]CheckFolder [22:48:12]dirname=/storage/ofd_packets [22:48:12]CheckFolder done [22:48:12]ProducePacketName [22:48:12]name=ofd_packets/00139799 [22:48:12]NVStorageSaveData ofd_packets/00139799 [22:48:12]File name is /storage/ofd_packets/00139799 [22:48:12]Write 346 bytes [22:48:12]NVStorageSaveData done [22:48:12]OFDSenderStorePacket done [22:48:12]KKMCreateOFDPacket done [22:48:12]NVStorageSaveData kkm_last_timestamp [22:48:12]File name is /storage/kkm_last_timestamp [22:48:12]Write 4 bytes [22:48:12]NVStorageSaveData done [22:48:12]ExternCall_PrintAddStr [22:48:12]wPrintStart [22:48:12]Write to MH i2c: 01 00 00 11 2D 3E [22:48:12]OFD Sender: Processing packet 139799 [packets to send 34, broken 33] [22:48:12]ProducePacketName [22:48:12]name=ofd_packets/00139799 [22:48:12]OFD Sender: To server: pG, [22:48:12]CommunicateWithHost lk.salyk.kg:30040 [22:48:12]ConnectInit lk.salyk.kg [22:48:12]Write i2c OK [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: 01 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: 01 07 00 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: 01 07 00 11 2D 00 00 00 00 00 FF 0F 53 [22:48:12]RasterBufferAndPrint [22:48:12]line Счет N : (3)335632 [22:48:12]line ИНН: 02508201610067 [22:48:12]line Контрольно-Кассовый Чек [22:48:12]line ПРОДАЖА [22:48:12]line Товар: 4700003010476 [22:48:12]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [22:48:12]line 1.000 * 80.00 [22:48:12]line = 80.00 [22:48:12]line НДС 12% НСП 1% [22:48:12]line > о реализуемом товаре [22:48:12]line ИТОГО: 80.00 [22:48:12]line НСП 1% : 0.71 [22:48:12]line НДС 12% : 8.50 [22:48:12]line Наличными: 80.00 [22:48:12]line Безнал.: 0.00 [22:48:12]line Место: АЗС № 101 "Партнер Нефть" [22:48:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:48:12]line СНО: Общий режим [22:48:12]line Чек 276 31.10.2024 22:48 [22:48:12]line Смена: 557 ФФД: 1.0 [22:48:12]line ЗНМ: 0300000081 [22:48:12]line РНМ: 0000000000091631 [22:48:12]line Версия ККМ: 001 [22:48:12]line ФМ: 0000000000874669 [22:48:12]line ФД: 139799 [22:48:12]line ФПД: 151385905088398 [22:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224813&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139799&fm=151385905088398&tin=02508201610067®Number=0000000000091631&sum=8000 [22:48:12]line 0 [22:48:12]Connected sock=10 [22:48: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 3C 01 00 00 19 27 34 01 31 EA 5A 03 01 00 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 17 22 02 00 35 04 06 00 89 AF 47 18 C7 8E FD 3F A2 0C D0 04 7C 1E [22:48:12]written 0, free lines is 4095 [22:48: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 E6 30 47 00 34 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 17 22 02 00 F4 03 04 00 D9 B4 23 67 B6 04 01 00 00 D0 CE 3C 9A B1 A7 5B 63 [22:48:12]CommunicateWithHost err = 0 [22:48:12]CheckOFDResponse [22:48:12]1017 (14) - 77093643461234 [22:48:12]1041 (16) - 0000000000874669 [22:48:12]1040 (4) - 139799 [22:48:12]1012 (4) - 31.10.2024 16:48 [22:48:12]1206 (1) - 0 [22:48:12]OFD Sender: Remove packet 139799 [22:48:12]ProducePacketName [22:48:12]name=ofd_packets/00139799 [22:48:12]NVStorageDeleteData [22:48:12]Write to MH i2c: 01 00 00 3A 2D 67 [22:48:12]Write i2c OK [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: 01 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: 01 07 00 [22:48:12]MH_I2C_Read... [22:48:12]Read from MH i2c: 01 07 00 3A 2D 00 00 00 00 00 05 0D 80 [22:48:12]RasterBufferAndPrint [22:48:12]line [22:48:12]line [22:48:12]line [22:48:12]line [22:48:12]line [22:48:12]written 0, free lines is 3342 [22:48:13]MH_Cut [22:48:13]Write to MH i2c: D1 01 00 41 2D 01 40 [22:48:13]Write i2c OK [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: D1 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: D1 01 00 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: D1 01 00 41 2D 00 3F [22:48:13]Write to MH i2c: 01 00 00 42 2D 6F [22:48:13]Write i2c OK [22:48:13]MH_I2C_Read... [22:48:13]OFD Sender: No OFD packet to send [22:48:13]*** Cut start [22:48:13]*** Partial cut [22:48:13]*** CUTSNS_PIN = 1 [22:48:13]*** CUTSNS_PIN = 0 [22:48:13]*** Brake cut motor [22:48:14]Read from MH i2c: 01 [22:48:14]MH_I2C_Read... [22:48:14]*** Stop cut motor [22:48:14]*** Cut end [22:48:14]Read from MH i2c: 01 07 00 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: 01 07 00 42 2D 00 00 00 00 00 FF 0F 84 [22:48:14]process_action close_receipt done [22:48:14]requested_data is exist [22:48:14]produce_requested_data [22:48:14]requested_item fm.sn is exist - process it [22:48:14]wFMCommunicate request_size=4 [22:48:14]MH_SAM_APDU [22:48:14]CAPDU: 80 11 00 00 [22:48:14]Write to MH i2c: E2 08 00 43 2D 80 11 00 00 00 00 00 00 EA [22:48:14]Write i2c OK [22:48:14]MH_I2C_Read... [22:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:14]Read from MH i2c: E2 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 17 00 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 17 00 43 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 45 [22:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:48:14]wFMCommunicate OK [22:48:14]requested_item fd.num is exist - process it [22:48:14]SAM_PROTO_GetFieldsCounters [22:48:14]wFMCommunicate request_size=4 [22:48:14]MH_SAM_APDU [22:48:14]CAPDU: 80 13 00 00 [22:48:14]Write to MH i2c: E2 08 00 44 2D 80 13 00 00 00 00 00 00 ED [22:48:14]Write i2c OK [22:48:14]MH_I2C_Read... [22:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:14]Read from MH i2c: E2 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 62 00 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 62 00 44 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 17 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [22:48: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 17 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:14]wFMCommunicate OK [22:48:14]SAM_PROTO_GetFieldsCounters done [22:48:14]requested_item shift.num is exist - process it [22:48:14]requested_item shift.opened is exist - process it [22:48:14]req_shift_opened [22:48:14]FM_GetShiftState [22:48:14]SAM_PROTO_GetShiftState [22:48:14]wFMCommunicate request_size=4 [22:48:14]MH_SAM_APDU [22:48:14]CAPDU: 80 13 01 00 [22:48:14]Write to MH i2c: E2 08 00 45 2D 80 13 01 00 00 00 00 00 EF [22:48:14]Write i2c OK [22:48:14]MH_I2C_Read... [22:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:14]Read from MH i2c: E2 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 0E 00 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 0E 00 45 2D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 18 [22:48:14]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:48:14]wFMCommunicate OK [22:48:14]SAM_PROTO_GetShiftState done [22:48:14]FM_GetShiftState done [22:48:14]req_shift_opened done [22:48:14]requested_item shift.open_date is exist - process it [22:48:14]req_shift_open_date [22:48:14]req_shift_open_date done [22:48:14]produce_requested_data done [22:48:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139799,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:48:14]process_action_free close_receipt [22:48:14]json_value_free [22:48:14]json_value_free done [22:48:14]process_json_proto returns [22:48:14]Send response to host [22:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139799,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:48:14]free response buf [22:48:14]execute_script done [22:48:14]execute_script returns [22:48:14]free content buf [22:48:14]Sock 9.Close socket [22:48:14]Sock 9.Thread stoped [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:43]accept exits with 7 [22:48:43]New connection [22:48:43]New thread 3066654052 created [22:48:43]Thread 3066510692 joined [22:48:43]Waiting for new connection... [22:48:43] Sock 7.Parse request [22:48:43]Sock 7.Check first char [22:48:43]Sock 7.First char is OK [22:48:43]request: POST /json_proto HTTP/1.0 [22:48:43]Method: POST [22:48:43]URL: /json_proto [22:48:43]Method is POST - this is cgi request [22:48:43]url: /json_proto [22:48:43]query_string will be loaded in cgi processing [22:48:43]execute_cgi json_proto POST (null) [22:48:43]execute_cgi path=json_proto method=POST [22:48:43]POST find Content-Length [22:48:43]Host: 172.17.50.196:8080 [22:48:43]Content-Length: 633 [22:48:43]Content-Type: application/json [22:48:43] [22:48:43]POST finish read [22:48:43]Found Content-Length = 633 [22:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335633", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "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" ] } } [22:48:43]execute_script... [22:48:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335633", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "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" ] } } [22:48:43]POST & json_proto [22:48:43]process_json_proto [22:48:43]json parsed OK: [22:48:43]protocol is kg_v1.0 [22:48:43]action value=close_receipt [22:48:43]process_action close_receipt [22:48:43]cmd_close_receipt [22:48:43]MH_GetDate [22:48:43]Write to MH i2c: F0 00 00 46 2D 62 [22:48:43]Write i2c OK [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: F0 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: F0 09 00 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: F0 09 00 46 2D 00 4E 09 24 67 72 0D 1C 67 4F [22:48:43]GetLastDocTimeStamp 1730414893 [22:48:43]current date 1730414926 [22:48:43]FM_GetShiftState [22:48:43]SAM_PROTO_GetShiftState [22:48:43]wFMCommunicate request_size=4 [22:48:43]MH_SAM_APDU [22:48:43]CAPDU: 80 13 01 00 [22:48:43]Write to MH i2c: E2 08 00 47 2D 80 13 01 00 00 00 00 00 F1 [22:48:43]Write i2c OK [22:48:43]MH_I2C_Read... [22:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:43]Read from MH i2c: E2 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 0E 00 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 0E 00 47 2D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1A [22:48:43]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:48:43]wFMCommunicate OK [22:48:43]SAM_PROTO_GetShiftState done [22:48:43]FM_GetShiftState done [22:48:43]opened in 1730332621 [22:48:43]opened+sec_in_day 1730419021 [22:48:43]quantity*price = 14400 [22:48:43]sum+1 = 14401 [22:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 277 31.10.2024 22:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139800 ФПД: 158938159842643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224846&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139800&fm=158938159842643&tin=02508201610067®Number=0000000000091631&sum=14400 0 [22:48:44]StoreToDocumentArchive [22:48:44]shift 557 fd 139800 [22:48:44]save to /storage/0557/doc_00139800 [22:48:44]save last doc name /storage/0557/doc_00139800 to /storage/kkm_last_doc_name [22:48:44]save OK [22:48:44]Clear old archive folders... [22:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=285 [22:48:44]tlvbuf is B6F0C070 [22:48:44]SAM_PROTO_ClearQueue [22:48:44]wFMCommunicate request_size=4 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 09 00 00 [22:48:44]Write to MH i2c: E2 08 00 54 2D 80 09 00 00 00 00 00 00 F3 [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 54 2D 00 90 00 F5 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]SAM_PROTO_ClearQueue done [22:48:44]KKMCreateOFDPacket [22:48:44]OFDProtocolAddRootSTLVToBuf [22:48:44]FM_MakeSignedData [22:48:44]FM_MakeSignedData [22:48:44]SAM_PROTO_SignData [22:48:44]wFMCommunicate request_size=4 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 0D 01 02 [22:48:44]Write to MH i2c: E2 08 00 55 2D 80 0D 01 02 00 00 00 00 FB [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 55 2D 00 90 00 F6 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]wFMCommunicate request_size=255 [22:48:44]MH_SAM_APDU [22:48:44]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 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 01 00 00 F4 03 04 00 4E 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 [22:48:44]Write to MH i2c: E2 02 01 56 2D 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 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 01 00 00 F4 03 04 00 4E 09 24 67 0E 04 04 00 2D 02 00 00 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 DA [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 56 2D 00 90 00 F7 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]wFMCommunicate request_size=44 [22:48:44]MH_SAM_APDU [22:48:44]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 18 22 02 00 35 04 06 00 90 8D AC 8F 05 53 [22:48:44]Write to MH i2c: E2 2F 00 57 2D 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 18 22 02 00 35 04 06 00 90 8D AC 8F 05 53 00 00 0D [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:45]Read from MH i2c: E2 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 03 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 03 00 57 2D 00 90 00 F8 [22:48:45]RAPDU: 90 00 [22:48:45]wFMCommunicate OK [22:48:45]wFMCommunicate request_size=4 [22:48:45]MH_SAM_APDU [22:48:45]CAPDU: 80 0D 03 02 [22:48:45]Write to MH i2c: E2 08 00 58 2D 80 0D 03 02 00 00 00 00 00 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:45]Read from MH i2c: E2 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 0B 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 0B 00 58 2D 00 37 99 6C 56 9D A9 DA F7 90 00 AA [22:48:45]RAPDU: 37 99 6C 56 9D A9 DA F7 90 00 [22:48:45]wFMCommunicate OK [22:48:45]SAM_PROTO_SignData done [22:48:45]FM_MakeSignedData done [22:48:45]CreateOFDProtocolMessage [22:48:45]wFMCommunicate request_size=4 [22:48:45]MH_SAM_APDU [22:48:45]CAPDU: 80 11 00 00 [22:48:45]Write to MH i2c: E2 08 00 59 2D 80 11 00 00 00 00 00 00 00 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:45]Read from MH i2c: E2 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 17 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 17 00 59 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5B [22:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:48:45]wFMCommunicate OK [22:48:45]CreateOFDProtocolMessage done [22:48:45]OFDSenderStorePacket 139800 [22:48:45]StoreOFDPacket docnum=139800 [22:48:45]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 47 36 29 01 16 67 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 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 01 00 00 F4 03 04 00 4E 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 18 22 02 00 35 04 06 00 90 8D AC 8F 05 53 37 99 6C 56 9D A9 DA F7 [22:48:45]CheckFolder [22:48:45]dirname=/storage/ofd_packets [22:48:45]CheckFolder done [22:48:45]ProducePacketName [22:48:45]name=ofd_packets/00139800 [22:48:45]NVStorageSaveData ofd_packets/00139800 [22:48:45]File name is /storage/ofd_packets/00139800 [22:48:45]Write 335 bytes [22:48:45]NVStorageSaveData done [22:48:45]OFDSenderStorePacket done [22:48:45]KKMCreateOFDPacket done [22:48:45]NVStorageSaveData kkm_last_timestamp [22:48:45]File name is /storage/kkm_last_timestamp [22:48:45]Write 4 bytes [22:48:45]NVStorageSaveData done [22:48:45]ExternCall_PrintAddStr [22:48:45]wPrintStart [22:48:45]Write to MH i2c: 01 00 00 5A 2D 87 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 5A 2D 00 00 00 00 00 FF 0F 9C [22:48:45]RasterBufferAndPrint [22:48:45]line Счет N : (3)335633 [22:48:45]line ИНН: 02508201610067 [22:48:45]line Контрольно-Кассовый Чек [22:48:45]line ПРОДАЖА [22:48:45]line Товар: 48745024 [22:48:45]line Сигареты Winston Superslims Expand Purpl [22:48:45]line 1.000 * 144.00 [22:48:45]line = 144.00 [22:48:45]line НДС 12% НСП 1% [22:48:45]line > о реализуемом товаре [22:48:45]line ИТОГО: 144.00 [22:48:45]line НСП 1% : 1.27 [22:48:45]line НДС 12% : 15.29 [22:48:45]line Наличными: 144.00 [22:48:45]line Безнал.: 0.00 [22:48:45]line Место: АЗС № 101 "Партнер Нефть" [22:48:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:48:45]line СНО: Общий режим [22:48:45]line Чек 277 31.10.2024 22:48 [22:48:45]line Смена: 557 ФФД: 1.0 [22:48:45]line ЗНМ: 0300000081 [22:48:45]line РНМ: 0000000000091631 [22:48:45]line Версия ККМ: 001 [22:48:45]line ФМ: 0000000000874669 [22:48:45]line ФД: 139800 [22:48:45]line ФПД: 158938159842643 [22:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T224846&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139800&fm=158938159842643&tin=02508201610067®Number=0000000000091631&sum=14400 [22:48:45]line 0 [22:48:45]written 0, free lines is 4095 [22:48:45]OFD Sender: Processing packet 139800 [packets to send 34, broken 33] [22:48:45]ProducePacketName [22:48:45]name=ofd_packets/00139800 [22:48:45]OFD Sender: To server: pG, [22:48:45]CommunicateWithHost lk.salyk.kg:30040 [22:48:45]ConnectInit lk.salyk.kg [22:48:45]Connected sock=11 [22:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 01 00 00 47 36 29 01 16 67 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 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 15 01 00 00 F4 03 04 00 4E 09 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 18 22 02 00 35 04 06 00 90 8D AC 8F 05 53 37 99 6C 56 9D A9 DA F7 [22:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 EA 8B 47 00 49 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 18 22 02 00 F4 03 04 00 FA B4 23 67 B6 04 01 00 00 04 B8 93 ED B8 AA 4D BE [22:48:45]CommunicateWithHost err = 0 [22:48:45]CheckOFDResponse [22:48:45]1017 (14) - 77093643461234 [22:48:45]1041 (16) - 0000000000874669 [22:48:45]1040 (4) - 139800 [22:48:45]1012 (4) - 31.10.2024 16:48 [22:48:45]1206 (1) - 0 [22:48:45]OFD Sender: Remove packet 139800 [22:48:45]ProducePacketName [22:48:45]name=ofd_packets/00139800 [22:48:45]NVStorageDeleteData [22:48:45]Write to MH i2c: 01 00 00 83 2D B0 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 83 2D 00 00 00 00 00 07 0D CB [22:48:45]RasterBufferAndPrint [22:48:45]line [22:48:45]line [22:48:45]line [22:48:45]line [22:48:45]line [22:48:45]written 0, free lines is 3341 [22:48:45]MH_Cut [22:48:45]Write to MH i2c: D1 01 00 8A 2D 01 89 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: D1 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: D1 01 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: D1 01 00 8A 2D 00 88 [22:48:45]Write to MH i2c: 01 00 00 8B 2D B8 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]OFD Sender: No OFD packet to send [22:48:46]*** Cut start [22:48:46]*** Partial cut [22:48:46]*** CUTSNS_PIN = 1 [22:48:46]*** CUTSNS_PIN = 0 [22:48:46]*** Brake cut motor [22:48:46]Read from MH i2c: 01 [22:48:46]MH_I2C_Read... [22:48:46]*** Stop cut motor [22:48:46]*** Cut end [22:48:46]Read from MH i2c: 01 07 00 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: 01 07 00 8B 2D 00 00 00 00 00 FF 0F CD [22:48:46]process_action close_receipt done [22:48:46]requested_data is exist [22:48:46]produce_requested_data [22:48:46]requested_item fm.sn is exist - process it [22:48:46]wFMCommunicate request_size=4 [22:48:46]MH_SAM_APDU [22:48:46]CAPDU: 80 11 00 00 [22:48:46]Write to MH i2c: E2 08 00 8C 2D 80 11 00 00 00 00 00 00 33 [22:48:46]Write i2c OK [22:48:46]MH_I2C_Read... [22:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:46]Read from MH i2c: E2 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 17 00 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 17 00 8C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [22:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:48:46]wFMCommunicate OK [22:48:46]requested_item fd.num is exist - process it [22:48:46]SAM_PROTO_GetFieldsCounters [22:48:46]wFMCommunicate request_size=4 [22:48:46]MH_SAM_APDU [22:48:46]CAPDU: 80 13 00 00 [22:48:46]Write to MH i2c: E2 08 00 8D 2D 80 13 00 00 00 00 00 00 36 [22:48:46]Write i2c OK [22:48:46]MH_I2C_Read... [22:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:47]Read from MH i2c: E2 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 62 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 62 00 8D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 18 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [22:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 18 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:47]wFMCommunicate OK [22:48:47]SAM_PROTO_GetFieldsCounters done [22:48:47]requested_item shift.num is exist - process it [22:48:47]requested_item shift.opened is exist - process it [22:48:47]req_shift_opened [22:48:47]FM_GetShiftState [22:48:47]SAM_PROTO_GetShiftState [22:48:47]wFMCommunicate request_size=4 [22:48:47]MH_SAM_APDU [22:48:47]CAPDU: 80 13 01 00 [22:48:47]Write to MH i2c: E2 08 00 8E 2D 80 13 01 00 00 00 00 00 38 [22:48:47]Write i2c OK [22:48:47]MH_I2C_Read... [22:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:47]Read from MH i2c: E2 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 0E 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 0E 00 8E 2D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 61 [22:48:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:48:47]wFMCommunicate OK [22:48:47]SAM_PROTO_GetShiftState done [22:48:47]FM_GetShiftState done [22:48:47]req_shift_opened done [22:48:47]requested_item shift.open_date is exist - process it [22:48:47]req_shift_open_date [22:48:47]req_shift_open_date done [22:48:47]produce_requested_data done [22:48:47]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139800,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [22:48:47]process_action_free close_receipt [22:48:47]json_value_free [22:48:47]json_value_free done [22:48:47]process_json_proto returns [22:48:47]Send response to host [22:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139800,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [22:48:47]free response buf [22:48:47]execute_script done [22:48:47]execute_script returns [22:48:47]free content buf [22:48:47]Sock 7.Close socket [22:48:47]Sock 7.Thread stoped [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [22:59:57]accept exits with 9 [22:59:57]New connection [22:59:57]New thread 3066510692 created [22:59:57]Thread 3066654052 joined [22:59:57]Waiting for new connection... [22:59:57] Sock 9.Parse request [22:59:57]Sock 9.Check first char [22:59:57]Sock 9.First char is OK [22:59:57]request: POST /json_proto HTTP/1.0 [22:59:57]Method: POST [22:59:57]URL: /json_proto [22:59:57]Method is POST - this is cgi request [22:59:57]url: /json_proto [22:59:57]query_string will be loaded in cgi processing [22:59:57]execute_cgi json_proto POST (null) [22:59:57]execute_cgi path=json_proto method=POST [22:59:57]POST find Content-Length [22:59:57]Host: 172.17.50.196:8080 [22:59:57]Content-Length: 621 [22:59:57]Content-Type: application/json [22:59:57] [22:59:57]POST finish read [22:59:57]Found Content-Length = 621 [22:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335634", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "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" ] } } [22:59:57]execute_script... [22:59: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)335634", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "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" ] } } [22:59:57]POST & json_proto [22:59:57]process_json_proto [22:59:57]json parsed OK: [22:59:57]protocol is kg_v1.0 [22:59:57]action value=close_receipt [22:59:57]process_action close_receipt [22:59:57]cmd_close_receipt [22:59:57]MH_GetDate [22:59:57]Write to MH i2c: F0 00 00 8F 2D AB [22:59:57]Write i2c OK [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: F0 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: F0 09 00 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: F0 09 00 8F 2D 00 F0 0B 24 67 72 0D 1C 67 3C [22:59:57]GetLastDocTimeStamp 1730414926 [22:59:57]current date 1730415600 [22:59:57]FM_GetShiftState [22:59:57]SAM_PROTO_GetShiftState [22:59:57]wFMCommunicate request_size=4 [22:59:57]MH_SAM_APDU [22:59:57]CAPDU: 80 13 01 00 [22:59:57]Write to MH i2c: E2 08 00 90 2D 80 13 01 00 00 00 00 00 3A [22:59:57]Write i2c OK [22:59:57]MH_I2C_Read... [22:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:57]Read from MH i2c: E2 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: E2 0E 00 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: E2 0E 00 90 2D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 63 [22:59:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [22:59:57]wFMCommunicate OK [22:59:57]SAM_PROTO_GetShiftState done [22:59:57]FM_GetShiftState done [22:59:57]opened in 1730332621 [22:59:57]opened+sec_in_day 1730419021 [22:59:57]quantity*price = 28800 [22:59:57]sum+1 = 28801 [22:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 278 31.10.2024 23:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139801 ФПД: 176698448067329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T230000&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139801&fm=176698448067329&tin=02508201610067®Number=0000000000091631&sum=28800 0 [22:59:58]StoreToDocumentArchive [22:59:58]shift 557 fd 139801 [22:59:58]save to /storage/0557/doc_00139801 [22:59:58]save last doc name /storage/0557/doc_00139801 to /storage/kkm_last_doc_name [22:59:58]save OK [22:59:58]Clear old archive folders... [22:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:59:58]tlvbuf is 00A9EEA0 [22:59:58]SAM_PROTO_ClearQueue [22:59:58]wFMCommunicate request_size=4 [22:59:58]MH_SAM_APDU [22:59:58]CAPDU: 80 09 00 00 [22:59:58]Write to MH i2c: E2 08 00 9D 2D 80 09 00 00 00 00 00 00 3C [22:59:58]Write i2c OK [22:59:58]MH_I2C_Read... [22:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:58]Read from MH i2c: E2 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 03 00 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 03 00 9D 2D 00 90 00 3E [22:59:58]RAPDU: 90 00 [22:59:58]wFMCommunicate OK [22:59:58]SAM_PROTO_ClearQueue done [22:59:58]KKMCreateOFDPacket [22:59:58]OFDProtocolAddRootSTLVToBuf [22:59:58]FM_MakeSignedData [22:59:58]FM_MakeSignedData [22:59:58]SAM_PROTO_SignData [22:59:58]wFMCommunicate request_size=4 [22:59:58]MH_SAM_APDU [22:59:58]CAPDU: 80 0D 01 02 [22:59:58]Write to MH i2c: E2 08 00 9E 2D 80 0D 01 02 00 00 00 00 44 [22:59:58]Write i2c OK [22:59:58]MH_I2C_Read... [22:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:58]Read from MH i2c: E2 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 03 00 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 03 00 9E 2D 00 90 00 3F [22:59:58]RAPDU: 90 00 [22:59:58]wFMCommunicate OK [22:59:58]wFMCommunicate request_size=255 [22:59:58]MH_SAM_APDU [22:59:58]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 16 01 00 00 F4 03 04 00 F0 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [22:59:58]Write to MH i2c: E2 02 01 9F 2D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 16 01 00 00 F4 03 04 00 F0 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 34 [22:59:58]Write i2c OK [22:59:58]MH_I2C_Read... [22:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:58]Read from MH i2c: E2 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 03 00 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 03 00 9F 2D 00 90 00 40 [22:59:58]RAPDU: 90 00 [22:59:58]wFMCommunicate OK [22:59:58]wFMCommunicate request_size=32 [22:59:58]MH_SAM_APDU [22:59:58]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 19 22 02 00 35 04 06 00 A0 B4 D0 3A BB 01 [22:59:58]Write to MH i2c: E2 23 00 A0 2D 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 19 22 02 00 35 04 06 00 A0 B4 D0 3A BB 01 00 00 03 [22:59:58]Write i2c OK [22:59:58]MH_I2C_Read... [22:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:59]Read from MH i2c: E2 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: E2 03 00 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: E2 03 00 A0 2D 00 90 00 41 [22:59:59]RAPDU: 90 00 [22:59:59]wFMCommunicate OK [22:59:59]wFMCommunicate request_size=4 [22:59:59]MH_SAM_APDU [22:59:59]CAPDU: 80 0D 03 02 [22:59:59]Write to MH i2c: E2 08 00 A1 2D 80 0D 03 02 00 00 00 00 49 [22:59:59]Write i2c OK [22:59:59]MH_I2C_Read... [22:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:59]Read from MH i2c: E2 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: E2 0B 00 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: E2 0B 00 A1 2D 00 EB 7A 26 B7 A5 6D 4A 48 90 00 30 [22:59:59]RAPDU: EB 7A 26 B7 A5 6D 4A 48 90 00 [22:59:59]wFMCommunicate OK [22:59:59]SAM_PROTO_SignData done [22:59:59]FM_MakeSignedData done [22:59:59]CreateOFDProtocolMessage [22:59:59]wFMCommunicate request_size=4 [22:59:59]MH_SAM_APDU [22:59:59]CAPDU: 80 11 00 00 [22:59:59]Write to MH i2c: E2 08 00 A2 2D 80 11 00 00 00 00 00 00 49 [22:59:59]Write i2c OK [22:59:59]MH_I2C_Read... [22:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:59]Read from MH i2c: E2 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: E2 17 00 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: E2 17 00 A2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [22:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:59:59]wFMCommunicate OK [22:59:59]CreateOFDProtocolMessage done [22:59:59]OFDSenderStorePacket 139801 [22:59:59]StoreOFDPacket docnum=139801 [22:59: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 25 01 00 00 EC 4F 1D 01 1B F5 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 16 01 00 00 F4 03 04 00 F0 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 22 02 00 35 04 06 00 A0 B4 D0 3A BB 01 EB 7A 26 B7 A5 6D 4A 48 [22:59:59]CheckFolder [22:59:59]dirname=/storage/ofd_packets [22:59:59]CheckFolder done [22:59:59]ProducePacketName [22:59:59]name=ofd_packets/00139801 [22:59:59]NVStorageSaveData ofd_packets/00139801 [22:59:59]File name is /storage/ofd_packets/00139801 [22:59:59]Write 323 bytes [22:59:59]NVStorageSaveData done [22:59:59]OFDSenderStorePacket done [22:59:59]KKMCreateOFDPacket done [22:59:59]NVStorageSaveData kkm_last_timestamp [22:59:59]File name is /storage/kkm_last_timestamp [22:59:59]Write 4 bytes [22:59:59]NVStorageSaveData done [22:59:59]ExternCall_PrintAddStr [22:59:59]wPrintStart [22:59:59]Write to MH i2c: 01 00 00 A3 2D D0 [22:59:59]Write i2c OK [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: 01 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: 01 07 00 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: 01 07 00 A3 2D 00 00 00 00 00 FF 0F E5 [22:59:59]RasterBufferAndPrint [22:59:59]line Счет N : (3)335634 [22:59:59]line ИНН: 02508201610067 [22:59:59]line Контрольно-Кассовый Чек [22:59:59]line ПРОДАЖА [22:59:59]line Товар: 48747059 [22:59:59]line Сигареты Winston Legend Blue [22:59:59]line 2.000 * 144.00 [22:59:59]line = 288.00 [22:59:59]line НДС 12% НСП 1% [22:59:59]line > о реализуемом товаре [22:59:59]line ИТОГО: 288.00 [22:59:59]line НСП 1% : 2.55 [22:59:59]line НДС 12% : 30.58 [22:59:59]line Наличными: 288.00 [22:59:59]line Безнал.: 0.00 [22:59:59]line Место: АЗС № 101 "Партнер Нефть" [22:59:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:59:59]line СНО: Общий режим [22:59:59]line Чек 278 31.10.2024 23:00 [22:59:59]line Смена: 557 ФФД: 1.0 [22:59:59]line ЗНМ: 0300000081 [22:59:59]line РНМ: 0000000000091631 [22:59:59]line Версия ККМ: 001 [22:59:59]line ФМ: 0000000000874669 [22:59:59]line ФД: 139801 [22:59:59]line ФПД: 176698448067329 [22:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T230000&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139801&fm=176698448067329&tin=02508201610067®Number=0000000000091631&sum=28800 [22:59:59]OFD Sender: Processing packet 139801 [packets to send 34, broken 33] [22:59:59]ProducePacketName [22:59:59]name=ofd_packets/00139801 [22:59:59]OFD Sender: To server: pG, [22:59:59]CommunicateWithHost lk.salyk.kg:30040 [22:59:59]ConnectInit lk.salyk.kg [22:59:59]line 0 [22:59:59]written 0, free lines is 4095 [22:59:59]Connected sock=10 [22:59: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 25 01 00 00 EC 4F 1D 01 1B F5 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 16 01 00 00 F4 03 04 00 F0 0B 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 22 02 00 35 04 06 00 A0 B4 D0 3A BB 01 EB 7A 26 B7 A5 6D 4A 48 [22:59: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 53 D0 47 00 11 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 22 02 00 F4 03 04 00 9C B7 23 67 B6 04 01 00 00 07 0A C5 A2 F2 33 A4 E3 [22:59:59]CommunicateWithHost err = 0 [22:59:59]CheckOFDResponse [22:59:59]1017 (14) - 77093643461234 [22:59:59]1041 (16) - 0000000000874669 [22:59:59]1040 (4) - 139801 [22:59:59]1012 (4) - 31.10.2024 17:00 [22:59:59]1206 (1) - 0 [22:59:59]OFD Sender: Remove packet 139801 [22:59:59]ProducePacketName [22:59:59]name=ofd_packets/00139801 [22:59:59]NVStorageDeleteData [22:59:59]Write to MH i2c: 01 00 00 CC 2D F9 [22:59:59]Write i2c OK [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: 01 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: 01 07 00 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: 01 07 00 CC 2D 00 00 00 00 00 06 0D 13 [22:59:59]RasterBufferAndPrint [22:59:59]line [22:59:59]line [22:59:59]line [22:59:59]line [22:59:59]line [22:59:59]written 0, free lines is 3340 [22:59:59]MH_Cut [22:59:59]Write to MH i2c: D1 01 00 D3 2D 01 D2 [22:59:59]Write i2c OK [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: D1 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: D1 01 00 [22:59:59]MH_I2C_Read... [22:59:59]Read from MH i2c: D1 01 00 D3 2D 00 D1 [22:59:59]Write to MH i2c: 01 00 00 D4 2D 01 [22:59:59]Write i2c OK [22:59:59]MH_I2C_Read... [23:00:00]OFD Sender: No OFD packet to send [23:00:00]*** Cut start [23:00:00]*** Partial cut [23:00:00]*** CUTSNS_PIN = 1 [23:00:00]*** CUTSNS_PIN = 0 [23:00:00]*** Brake cut motor [23:00:01]Read from MH i2c: 01 [23:00:01]MH_I2C_Read... [23:00:01]*** Stop cut motor [23:00:01]*** Cut end [23:00:01]Read from MH i2c: 01 07 00 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: 01 07 00 D4 2D 00 00 00 00 00 FF 0F 16 [23:00:01]process_action close_receipt done [23:00:01]requested_data is exist [23:00:01]produce_requested_data [23:00:01]requested_item fm.sn is exist - process it [23:00:01]wFMCommunicate request_size=4 [23:00:01]MH_SAM_APDU [23:00:01]CAPDU: 80 11 00 00 [23:00:01]Write to MH i2c: E2 08 00 D5 2D 80 11 00 00 00 00 00 00 7C [23:00:01]Write i2c OK [23:00:01]MH_I2C_Read... [23:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:01]Read from MH i2c: E2 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: E2 17 00 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: E2 17 00 D5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [23:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:00:01]wFMCommunicate OK [23:00:01]requested_item fd.num is exist - process it [23:00:01]SAM_PROTO_GetFieldsCounters [23:00:01]wFMCommunicate request_size=4 [23:00:01]MH_SAM_APDU [23:00:01]CAPDU: 80 13 00 00 [23:00:01]Write to MH i2c: E2 08 00 D6 2D 80 13 00 00 00 00 00 00 7F [23:00:01]Write i2c OK [23:00:01]MH_I2C_Read... [23:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:01]Read from MH i2c: E2 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: E2 62 00 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: E2 62 00 D6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 19 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [23:00: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 19 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:01]wFMCommunicate OK [23:00:01]SAM_PROTO_GetFieldsCounters done [23:00:01]requested_item shift.num is exist - process it [23:00:01]requested_item shift.opened is exist - process it [23:00:01]req_shift_opened [23:00:01]FM_GetShiftState [23:00:01]SAM_PROTO_GetShiftState [23:00:01]wFMCommunicate request_size=4 [23:00:01]MH_SAM_APDU [23:00:01]CAPDU: 80 13 01 00 [23:00:01]Write to MH i2c: E2 08 00 D7 2D 80 13 01 00 00 00 00 00 81 [23:00:01]Write i2c OK [23:00:01]MH_I2C_Read... [23:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:01]Read from MH i2c: E2 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: E2 0E 00 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: E2 0E 00 D7 2D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AA [23:00:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:00:01]wFMCommunicate OK [23:00:01]SAM_PROTO_GetShiftState done [23:00:01]FM_GetShiftState done [23:00:01]req_shift_opened done [23:00:01]requested_item shift.open_date is exist - process it [23:00:01]req_shift_open_date [23:00:01]req_shift_open_date done [23:00:01]produce_requested_data done [23:00:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139801,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:00:01]process_action_free close_receipt [23:00:01]json_value_free [23:00:01]json_value_free done [23:00:01]process_json_proto returns [23:00:01]Send response to host [23:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139801,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:00:01]free response buf [23:00:01]execute_script done [23:00:01]execute_script returns [23:00:01]free content buf [23:00:01]Sock 9.Close socket [23:00:01]Sock 9.Thread stoped [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:39]accept exits with 7 [23:01:39]New connection [23:01:39]New thread 3066654052 created [23:01:39]Thread 3066510692 joined [23:01:39]Waiting for new connection... [23:01:39] Sock 7.Parse request [23:01:39]Sock 7.Check first char [23:01:39]Sock 7.First char is OK [23:01:39]request: POST /json_proto HTTP/1.0 [23:01:39]Method: POST [23:01:39]URL: /json_proto [23:01:39]Method is POST - this is cgi request [23:01:39]url: /json_proto [23:01:39]query_string will be loaded in cgi processing [23:01:39]execute_cgi json_proto POST (null) [23:01:39]execute_cgi path=json_proto method=POST [23:01:39]POST find Content-Length [23:01:39]Host: 172.17.50.196:8080 [23:01:39]Content-Length: 1237 [23:01:39]Content-Type: application/json [23:01:39] [23:01:39]POST finish read [23:01:39]Found Content-Length = 1237 [23:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335635", "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": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:39]execute_script... [23:01: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)335635", "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": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:39]POST & json_proto [23:01:39]process_json_proto [23:01:39]json parsed OK: [23:01:39]protocol is kg_v1.0 [23:01:39]action value=close_receipt [23:01:39]process_action close_receipt [23:01:39]cmd_close_receipt [23:01:39]MH_GetDate [23:01:39]Write to MH i2c: F0 00 00 D8 2D F4 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: F0 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: F0 09 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: F0 09 00 D8 2D 00 56 0C 24 67 72 0D 1C 67 EC [23:01:39]GetLastDocTimeStamp 1730415600 [23:01:39]current date 1730415702 [23:01:39]FM_GetShiftState [23:01:39]SAM_PROTO_GetShiftState [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 13 01 00 [23:01:39]Write to MH i2c: E2 08 00 D9 2D 80 13 01 00 00 00 00 00 83 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0E 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0E 00 D9 2D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AC [23:01:39]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:01:39]wFMCommunicate OK [23:01:39]SAM_PROTO_GetShiftState done [23:01:39]FM_GetShiftState done [23:01:39]opened in 1730332621 [23:01:39]opened+sec_in_day 1730419021 [23:01:39]quantity*price = 17000 [23:01:39]sum+1 = 17001 [23:01:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521230 Напиток MAXI чай 1,2 черн.лимон 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 299.00 НСП 1% : 2.64 НДС 12% : 31.74 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 279 31.10.2024 23:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139802 ФПД: 41186220756748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T230142&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139802&fm=41186220756748&tin=02508201610067®Number=0000000000091631&sum=29900 0 [23:01:40]StoreToDocumentArchive [23:01:40]shift 557 fd 139802 [23:01:40]save to /storage/0557/doc_00139802 [23:01:40]save last doc name /storage/0557/doc_00139802 to /storage/kkm_last_doc_name [23:01:40]save OK [23:01:40]Clear old archive folders... [23:01:40]ProcessDocumentItem done err = 0, tmpTLVsize=517 [23:01:40]tlvbuf is 00B78750 [23:01:40]SAM_PROTO_ClearQueue [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 09 00 00 [23:01:40]Write to MH i2c: E2 08 00 E6 2D 80 09 00 00 00 00 00 00 85 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 03 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 03 00 E6 2D 00 90 00 87 [23:01:40]RAPDU: 90 00 [23:01:40]wFMCommunicate OK [23:01:40]SAM_PROTO_ClearQueue done [23:01:40]KKMCreateOFDPacket [23:01:40]OFDProtocolAddRootSTLVToBuf [23:01:40]FM_MakeSignedData [23:01:40]FM_MakeSignedData [23:01:40]SAM_PROTO_SignData [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 0D 01 02 [23:01:40]Write to MH i2c: E2 08 00 E7 2D 80 0D 01 02 00 00 00 00 8D [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 03 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 03 00 E7 2D 00 90 00 88 [23:01:40]RAPDU: 90 00 [23:01:40]wFMCommunicate OK [23:01:40]wFMCommunicate request_size=255 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 0D 02 02 FA 03 00 05 02 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 [23:01:41]Write to MH i2c: E2 02 01 E8 2D 80 0D 02 02 FA 00 03 00 05 02 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 00 00 53 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 E8 2D 00 90 00 89 [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=255 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 02 02 FA 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 56 0C 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [23:01:41]Write to MH i2c: E2 02 01 E9 2D 80 0D 02 02 FA 00 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 56 0C 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 F4 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 E9 2D 00 90 00 8A [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=26 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 1A 22 02 00 35 04 06 00 25 75 6A 0E CF 0C [23:01:41]Write to MH i2c: E2 1D 00 EA 2D 80 0D 02 02 15 00 36 36 39 10 04 04 00 1A 22 02 00 35 04 06 00 25 75 6A 0E CF 0C 00 00 E2 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 EA 2D 00 90 00 8B [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 03 02 [23:01:41]Write to MH i2c: E2 08 00 EB 2D 80 0D 03 02 00 00 00 00 93 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0B 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0B 00 EB 2D 00 4F C7 D8 C5 BC 00 C6 67 90 00 30 [23:01:41]RAPDU: 4F C7 D8 C5 BC 00 C6 67 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_SignData done [23:01:41]FM_MakeSignedData done [23:01:41]CreateOFDProtocolMessage [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 11 00 00 [23:01:41]Write to MH i2c: E2 08 00 EC 2D 80 11 00 00 00 00 00 00 93 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 EC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EE [23:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:01:42]wFMCommunicate OK [23:01:42]CreateOFDProtocolMessage done [23:01:42]OFDSenderStorePacket 139802 [23:01:42]StoreOFDPacket docnum=139802 [23:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 19 02 00 00 41 A0 11 02 C2 62 5A 03 01 00 03 00 05 02 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 56 0C 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 22 02 00 35 04 06 00 25 75 6A 0E CF 0C 4F C7 D8 C5 BC 00 C6 67 [23:01:42]CheckFolder [23:01:42]dirname=/storage/ofd_packets [23:01:42]CheckFolder done [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00139802 [23:01:42]NVStorageSaveData ofd_packets/00139802 [23:01:42]File name is /storage/ofd_packets/00139802 [23:01:42]Write 567 bytes [23:01:42]NVStorageSaveData done [23:01:42]OFDSenderStorePacket done [23:01:42]KKMCreateOFDPacket done [23:01:42]NVStorageSaveData kkm_last_timestamp [23:01:42]File name is /storage/kkm_last_timestamp [23:01:42]Write 4 bytes [23:01:42]NVStorageSaveData done [23:01:42]ExternCall_PrintAddStr [23:01:42]wPrintStart [23:01:42]Write to MH i2c: 01 00 00 ED 2D 1A [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 ED 2D 00 00 00 00 00 FF 0F 2F [23:01:42]RasterBufferAndPrint [23:01:42]line Счет N : (3)335635 [23:01:42]line ИНН: 02508201610067 [23:01:42]line Контрольно-Кассовый Чек [23:01:42]line ПРОДАЖА [23:01:42]line Товар: 5449000176448 [23:01:42]line Сок Piko Pulpy апельсин ПЭТ 1л [23:01:42]line 1.000 * 170.00 [23:01:42]line = 170.00 [23:01:42]line НДС 12% НСП 1% [23:01:42]line > о реализуемом товаре [23:01:42]line Товар: 2000031750019 [23:01:42]line Пакет Партнер Нефть [23:01:42]line 1.000 * 4.00 [23:01:42]line = 4.00 [23:01:42]line НДС 12% НСП 1% [23:01:42]line > о реализуемом товаре [23:01:42]line Товар: 4870202521230 [23:01:42]line Напиток MAXI чай 1,2 черн.лимон [23:01:42]line 1.000 * 125.00 [23:01:42]line = 125.00 [23:01:42]line НДС 12% НСП 1% [23:01:42]line > о реализуемом товаре [23:01:42]line ИТОГО: 299.00 [23:01:42]line НСП 1% : 2.64 [23:01:42]line НДС 12% : 31.74 [23:01:42]line Наличными: 299.00 [23:01:42]line Безнал.: 0.00 [23:01:42]line Место: АЗС № 101 "Партнер Нефть" [23:01:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:01:42]line СНО: Общий режим [23:01:42]line Чек 279 31.10.2024 23:01 [23:01:42]line Смена: 557 ФФД: 1.0 [23:01:42]line ЗНМ: 0300000081 [23:01:42]line РНМ: 0000000000091631 [23:01:42]line Версия ККМ: 001 [23:01:42]line ФМ: 0000000000874669 [23:01:42]line ФД: 139802 [23:01:42]line ФПД: 41186220756748 [23:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T230142&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139802&fm=41186220756748&tin=02508201610067®Number=0000000000091631&sum=29900 [23:01:42]line 0 [23:01:42]OFD Sender: Processing packet 139802 [packets to send 34, broken 33] [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00139802 [23:01:42]OFD Sender: To server: pG, [23:01:42]CommunicateWithHost lk.salyk.kg:30040 [23:01:42]ConnectInit lk.salyk.kg [23:01:42]written 0, free lines is 4095 [23:01:42]Connected sock=10 [23:01: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 19 02 00 00 41 A0 11 02 C2 62 5A 03 01 00 03 00 05 02 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 56 0C 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 22 02 00 35 04 06 00 25 75 6A 0E CF 0C 4F C7 D8 C5 BC 00 C6 67 [23:01: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 CC A1 47 00 30 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 22 02 00 F4 03 04 00 03 B8 23 67 B6 04 01 00 00 A4 93 FD DB 34 C8 D5 A7 [23:01:42]CommunicateWithHost err = 0 [23:01:42]CheckOFDResponse [23:01:42]1017 (14) - 77093643461234 [23:01:42]1041 (16) - 0000000000874669 [23:01:42]1040 (4) - 139802 [23:01:42]1012 (4) - 31.10.2024 17:01 [23:01:42]1206 (1) - 0 [23:01:42]OFD Sender: Remove packet 139802 [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00139802 [23:01:42]NVStorageDeleteData [23:01:42]Write to MH i2c: 01 00 00 23 2E 51 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 23 2E 00 00 00 00 00 56 0C BA [23:01:42]RasterBufferAndPrint [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]written 0, free lines is 3170 [23:01:42]MH_Cut [23:01:42]Write to MH i2c: D1 01 00 2A 2E 01 2A [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 01 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 01 00 2A 2E 00 29 [23:01:42]Write to MH i2c: 01 00 00 2B 2E 59 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:43]OFD Sender: No OFD packet to send [23:01:43]*** Cut start [23:01:43]*** Partial cut [23:01:43]*** CUTSNS_PIN = 1 [23:01:43]*** CUTSNS_PIN = 0 [23:01:43]*** Brake cut motor [23:01:44]Read from MH i2c: 01 [23:01:44]MH_I2C_Read... [23:01:44]*** Stop cut motor [23:01:44]*** Cut end [23:01:44]Read from MH i2c: 01 07 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: 01 07 00 2B 2E 00 00 00 00 00 FF 0F 6E [23:01:44]process_action close_receipt done [23:01:44]requested_data is exist [23:01:44]produce_requested_data [23:01:44]requested_item fm.sn is exist - process it [23:01:44]wFMCommunicate request_size=4 [23:01:44]MH_SAM_APDU [23:01:44]CAPDU: 80 11 00 00 [23:01:44]Write to MH i2c: E2 08 00 2C 2E 80 11 00 00 00 00 00 00 D4 [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 17 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 17 00 2C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2F [23:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:01:44]wFMCommunicate OK [23:01:44]requested_item fd.num is exist - process it [23:01:44]SAM_PROTO_GetFieldsCounters [23:01:44]wFMCommunicate request_size=4 [23:01:44]MH_SAM_APDU [23:01:44]CAPDU: 80 13 00 00 [23:01:44]Write to MH i2c: E2 08 00 2D 2E 80 13 00 00 00 00 00 00 D7 [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 62 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 62 00 2D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [23:01: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 1A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:44]wFMCommunicate OK [23:01:44]SAM_PROTO_GetFieldsCounters done [23:01:44]requested_item shift.num is exist - process it [23:01:44]requested_item shift.opened is exist - process it [23:01:44]req_shift_opened [23:01:44]FM_GetShiftState [23:01:44]SAM_PROTO_GetShiftState [23:01:44]wFMCommunicate request_size=4 [23:01:44]MH_SAM_APDU [23:01:44]CAPDU: 80 13 01 00 [23:01:44]Write to MH i2c: E2 08 00 2E 2E 80 13 01 00 00 00 00 00 D9 [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0E 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0E 00 2E 2E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 02 [23:01:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:01:44]wFMCommunicate OK [23:01:44]SAM_PROTO_GetShiftState done [23:01:44]FM_GetShiftState done [23:01:44]req_shift_opened done [23:01:44]requested_item shift.open_date is exist - process it [23:01:44]req_shift_open_date [23:01:44]req_shift_open_date done [23:01:44]produce_requested_data done [23:01:44]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139802,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:01:44]process_action_free close_receipt [23:01:44]json_value_free [23:01:44]json_value_free done [23:01:44]process_json_proto returns [23:01:44]Send response to host [23:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139802,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:01:44]free response buf [23:01:44]execute_script done [23:01:44]execute_script returns [23:01:44]free content buf [23:01:44]Sock 7.Close socket [23:01:44]Sock 7.Thread stoped [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:12]accept exits with 9 [23:14:12]New connection [23:14:12]New thread 3066510692 created [23:14:12]Thread 3066654052 joined [23:14:12]Waiting for new connection... [23:14:12] Sock 9.Parse request [23:14:12]Sock 9.Check first char [23:14:12]Sock 9.First char is OK [23:14:12]request: POST /json_proto HTTP/1.0 [23:14:12]Method: POST [23:14:12]URL: /json_proto [23:14:12]Method is POST - this is cgi request [23:14:12]url: /json_proto [23:14:12]query_string will be loaded in cgi processing [23:14:12]execute_cgi json_proto POST (null) [23:14:12]execute_cgi path=json_proto method=POST [23:14:12]POST find Content-Length [23:14:12]Host: 172.17.50.196:8080 [23:14:12]Content-Length: 727 [23:14:12]Content-Type: application/json [23:14:12] [23:14:12]POST finish read [23:14:12]Found Content-Length = 727 [23:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335636", "tax_sys" : 0, "items" : [ { "code": "4823077626364", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u0420\u043E\u0448\u0435\u043D \u0411\u0435\u043B\u044B\u0439 \u043F\u043E\u0440\u0438\u0441\u0442\u044B\u0439 80 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:12]execute_script... [23:14: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)335636", "tax_sys" : 0, "items" : [ { "code": "4823077626364", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u0420\u043E\u0448\u0435\u043D \u0411\u0435\u043B\u044B\u0439 \u043F\u043E\u0440\u0438\u0441\u0442\u044B\u0439 80 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:12]POST & json_proto [23:14:12]process_json_proto [23:14:12]json parsed OK: [23:14:12]protocol is kg_v1.0 [23:14:12]action value=close_receipt [23:14:12]process_action close_receipt [23:14:12]cmd_close_receipt [23:14:12]MH_GetDate [23:14:12]Write to MH i2c: F0 00 00 2F 2E 4C [23:14:12]Write i2c OK [23:14:12]MH_I2C_Read... [23:14:12]Read from MH i2c: F0 [23:14:12]MH_I2C_Read... [23:14:12]Read from MH i2c: F0 09 00 [23:14:12]MH_I2C_Read... [23:14:12]Read from MH i2c: F0 09 00 2F 2E 00 47 0F 24 67 72 0D 1C 67 38 [23:14:12]GetLastDocTimeStamp 1730415702 [23:14:12]current date 1730416455 [23:14:12]FM_GetShiftState [23:14:12]SAM_PROTO_GetShiftState [23:14:12]wFMCommunicate request_size=4 [23:14:12]MH_SAM_APDU [23:14:12]CAPDU: 80 13 01 00 [23:14:12]Write to MH i2c: E2 08 00 30 2E 80 13 01 00 00 00 00 00 DB [23:14:12]Write i2c OK [23:14:12]MH_I2C_Read... [23:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:12]Read from MH i2c: E2 [23:14:12]MH_I2C_Read... [23:14:12]Read from MH i2c: E2 0E 00 [23:14:12]MH_I2C_Read... [23:14:12]Read from MH i2c: E2 0E 00 30 2E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 04 [23:14:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:14:12]wFMCommunicate OK [23:14:12]SAM_PROTO_GetShiftState done [23:14:12]FM_GetShiftState done [23:14:12]opened in 1730332621 [23:14:12]opened+sec_in_day 1730419021 [23:14:12]quantity*price = 13000 [23:14:12]sum+1 = 13001 [23:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 280 31.10.2024 23:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139803 ФПД: 187778672701859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231415&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139803&fm=187778672701859&tin=02508201610067®Number=0000000000091631&sum=13000 0 [23:14:13]StoreToDocumentArchive [23:14:13]shift 557 fd 139803 [23:14:13]save to /storage/0557/doc_00139803 [23:14:13]save last doc name /storage/0557/doc_00139803 to /storage/kkm_last_doc_name [23:14:13]save OK [23:14:13]Clear old archive folders... [23:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=303 [23:14:13]tlvbuf is 00AE5F40 [23:14:13]SAM_PROTO_ClearQueue [23:14:13]wFMCommunicate request_size=4 [23:14:13]MH_SAM_APDU [23:14:13]CAPDU: 80 09 00 00 [23:14:13]Write to MH i2c: E2 08 00 3D 2E 80 09 00 00 00 00 00 00 DD [23:14:13]Write i2c OK [23:14:13]MH_I2C_Read... [23:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:13]Read from MH i2c: E2 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 3D 2E 00 90 00 DF [23:14:13]RAPDU: 90 00 [23:14:13]wFMCommunicate OK [23:14:13]SAM_PROTO_ClearQueue done [23:14:13]KKMCreateOFDPacket [23:14:13]OFDProtocolAddRootSTLVToBuf [23:14:13]FM_MakeSignedData [23:14:13]FM_MakeSignedData [23:14:13]SAM_PROTO_SignData [23:14:13]wFMCommunicate request_size=4 [23:14:13]MH_SAM_APDU [23:14:13]CAPDU: 80 0D 01 02 [23:14:13]Write to MH i2c: E2 08 00 3E 2E 80 0D 01 02 00 00 00 00 E5 [23:14:13]Write i2c OK [23:14:13]MH_I2C_Read... [23:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:13]Read from MH i2c: E2 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 3E 2E 00 90 00 E0 [23:14:13]RAPDU: 90 00 [23:14:13]wFMCommunicate OK [23:14:13]wFMCommunicate request_size=255 [23:14:13]MH_SAM_APDU [23:14:13]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 33 36 34 06 04 3D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 BF D0 BE D1 80 D0 B8 D1 81 D1 82 D1 8B D0 B9 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D [23:14:13]Write to MH i2c: E2 02 01 3F 2E 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 33 36 34 06 04 3D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 BF D0 BE D1 80 D0 B8 D1 81 D1 82 D1 8B D0 B9 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 00 00 9F [23:14:13]Write i2c OK [23:14:13]MH_I2C_Read... [23:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:13]Read from MH i2c: E2 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 3F 2E 00 90 00 E1 [23:14:13]RAPDU: 90 00 [23:14:13]wFMCommunicate OK [23:14:13]wFMCommunicate request_size=62 [23:14:13]MH_SAM_APDU [23:14:13]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 22 02 00 35 04 06 00 AA C8 A1 15 31 A3 [23:14:13]Write to MH i2c: E2 41 00 40 2E 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 22 02 00 35 04 06 00 AA C8 A1 15 31 A3 00 00 61 [23:14:13]Write i2c OK [23:14:13]MH_I2C_Read... [23:14:13]OFD Sender: No OFD packet to send [23:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:13]Read from MH i2c: E2 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 03 00 40 2E 00 90 00 E2 [23:14:13]RAPDU: 90 00 [23:14:13]wFMCommunicate OK [23:14:13]wFMCommunicate request_size=4 [23:14:13]MH_SAM_APDU [23:14:13]CAPDU: 80 0D 03 02 [23:14:13]Write to MH i2c: E2 08 00 41 2E 80 0D 03 02 00 00 00 00 EA [23:14:13]Write i2c OK [23:14:13]MH_I2C_Read... [23:14:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:13]Read from MH i2c: E2 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 0B 00 [23:14:13]MH_I2C_Read... [23:14:13]Read from MH i2c: E2 0B 00 41 2E 00 8F D2 DC 9B C7 6B 98 CE 90 00 5B [23:14:13]RAPDU: 8F D2 DC 9B C7 6B 98 CE 90 00 [23:14:13]wFMCommunicate OK [23:14:13]SAM_PROTO_SignData done [23:14:13]FM_MakeSignedData done [23:14:13]CreateOFDProtocolMessage [23:14:13]wFMCommunicate request_size=4 [23:14:13]MH_SAM_APDU [23:14:13]CAPDU: 80 11 00 00 [23:14:13]Write to MH i2c: E2 08 00 42 2E 80 11 00 00 00 00 00 00 EA [23:14:13]Write i2c OK [23:14:13]MH_I2C_Read... [23:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:14]Read from MH i2c: E2 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: E2 17 00 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: E2 17 00 42 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 45 [23:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:14:14]wFMCommunicate OK [23:14:14]CreateOFDProtocolMessage done [23:14:14]OFDSenderStorePacket 139803 [23:14:14]StoreOFDPacket docnum=139803 [23:14: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 43 01 00 00 BB 24 3B 01 A9 6D 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 33 36 34 06 04 3D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 BF D0 BE D1 80 D0 B8 D1 81 D1 82 D1 8B D0 B9 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 22 02 00 35 04 06 00 AA C8 A1 15 31 A3 8F D2 DC 9B C7 6B 98 CE [23:14:14]CheckFolder [23:14:14]dirname=/storage/ofd_packets [23:14:14]CheckFolder done [23:14:14]ProducePacketName [23:14:14]name=ofd_packets/00139803 [23:14:14]NVStorageSaveData ofd_packets/00139803 [23:14:14]File name is /storage/ofd_packets/00139803 [23:14:14]Write 353 bytes [23:14:14]NVStorageSaveData done [23:14:14]OFDSenderStorePacket done [23:14:14]KKMCreateOFDPacket done [23:14:14]NVStorageSaveData kkm_last_timestamp [23:14:14]File name is /storage/kkm_last_timestamp [23:14:14]Write 4 bytes [23:14:14]NVStorageSaveData done [23:14:14]ExternCall_PrintAddStr [23:14:14]wPrintStart [23:14:14]Write to MH i2c: 01 00 00 43 2E 71 [23:14:14]Write i2c OK [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: 01 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: 01 07 00 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: 01 07 00 43 2E 00 00 00 00 00 FF 0F 86 [23:14:14]RasterBufferAndPrint [23:14:14]line Счет N : (3)335636 [23:14:14]line ИНН: 02508201610067 [23:14:14]line Контрольно-Кассовый Чек [23:14:14]line ПРОДАЖА [23:14:14]line Товар: 4823077626364 [23:14:14]line Шоколад Рошен Белый пористый 80 гр [23:14:14]line 1.000 * 130.00 [23:14:14]line = 130.00 [23:14:14]line НДС 12% НСП 1% [23:14:14]line > о реализуемом товаре [23:14:14]line ИТОГО: 130.00 [23:14:14]line НСП 1% : 1.15 [23:14:14]line НДС 12% : 13.80 [23:14:14]line Наличными: 130.00 [23:14:14]line Безнал.: 0.00 [23:14:14]line Место: АЗС № 101 "Партнер Нефть" [23:14:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:14:14]line СНО: Общий режим [23:14:14]line Чек 280 31.10.2024 23:14 [23:14:14]line Смена: 557 ФФД: 1.0 [23:14:14]line ЗНМ: 0300000081 [23:14:14]line РНМ: 0000000000091631 [23:14:14]line Версия ККМ: 001 [23:14:14]line ФМ: 0000000000874669 [23:14:14]line ФД: 139803 [23:14:14]line ФПД: 187778672701859 [23:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231415&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139803&fm=187778672701859&tin=02508201610067®Number=0000000000091631&sum=13000 [23:14:14]line 0 [23:14:14]OFD Sender: Processing packet 139803 [packets to send 34, broken 33] [23:14:14]ProducePacketName [23:14:14]name=ofd_packets/00139803 [23:14:14]OFD Sender: To server: pG, [23:14:14]CommunicateWithHost lk.salyk.kg:30040 [23:14:14]ConnectInit lk.salyk.kg [23:14:14]written 0, free lines is 4095 [23:14:14]Connected sock=11 [23:14: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 43 01 00 00 BB 24 3B 01 A9 6D 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 33 36 34 06 04 3D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 BF D0 BE D1 80 D0 B8 D1 81 D1 82 D1 8B D0 B9 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 47 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 22 02 00 35 04 06 00 AA C8 A1 15 31 A3 8F D2 DC 9B C7 6B 98 CE [23:14: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 FE 4B 47 00 E4 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 22 02 00 F4 03 04 00 F3 BA 23 67 B6 04 01 00 00 96 E6 46 BB EB 1D 35 97 [23:14:14]CommunicateWithHost err = 0 [23:14:14]CheckOFDResponse [23:14:14]1017 (14) - 77093643461234 [23:14:14]1041 (16) - 0000000000874669 [23:14:14]1040 (4) - 139803 [23:14:14]1012 (4) - 31.10.2024 17:14 [23:14:14]1206 (1) - 0 [23:14:14]OFD Sender: Remove packet 139803 [23:14:14]ProducePacketName [23:14:14]name=ofd_packets/00139803 [23:14:14]NVStorageDeleteData [23:14:14]Write to MH i2c: 01 00 00 6C 2E 9A [23:14:14]Write i2c OK [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: 01 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: 01 07 00 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: 01 07 00 6C 2E 00 00 00 00 00 00 0D AE [23:14:14]RasterBufferAndPrint [23:14:14]line [23:14:14]line [23:14:14]line [23:14:14]line [23:14:14]line [23:14:14]written 0, free lines is 3334 [23:14:14]MH_Cut [23:14:14]Write to MH i2c: D1 01 00 73 2E 01 73 [23:14:14]Write i2c OK [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: D1 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: D1 01 00 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: D1 01 00 73 2E 00 72 [23:14:14]Write to MH i2c: 01 00 00 74 2E A2 [23:14:14]Write i2c OK [23:14:14]MH_I2C_Read... [23:14:15]OFD Sender: No OFD packet to send [23:14:15]*** Cut start [23:14:15]*** Partial cut [23:14:15]*** CUTSNS_PIN = 1 [23:14:15]*** CUTSNS_PIN = 0 [23:14:15]*** Brake cut motor [23:14:16]Read from MH i2c: 01 [23:14:16]MH_I2C_Read... [23:14:16]*** Stop cut motor [23:14:16]*** Cut end [23:14:16]Read from MH i2c: 01 07 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: 01 07 00 74 2E 00 00 00 00 00 FF 0F B7 [23:14:16]process_action close_receipt done [23:14:16]requested_data is exist [23:14:16]produce_requested_data [23:14:16]requested_item fm.sn is exist - process it [23:14:16]wFMCommunicate request_size=4 [23:14:16]MH_SAM_APDU [23:14:16]CAPDU: 80 11 00 00 [23:14:16]Write to MH i2c: E2 08 00 75 2E 80 11 00 00 00 00 00 00 1D [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:16]Read from MH i2c: E2 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 17 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 17 00 75 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 78 [23:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:14:16]wFMCommunicate OK [23:14:16]requested_item fd.num is exist - process it [23:14:16]SAM_PROTO_GetFieldsCounters [23:14:16]wFMCommunicate request_size=4 [23:14:16]MH_SAM_APDU [23:14:16]CAPDU: 80 13 00 00 [23:14:16]Write to MH i2c: E2 08 00 76 2E 80 13 00 00 00 00 00 00 20 [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:16]Read from MH i2c: E2 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 62 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 62 00 76 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1B 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [23:14: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 1B 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:16]wFMCommunicate OK [23:14:16]SAM_PROTO_GetFieldsCounters done [23:14:16]requested_item shift.num is exist - process it [23:14:16]requested_item shift.opened is exist - process it [23:14:16]req_shift_opened [23:14:16]FM_GetShiftState [23:14:16]SAM_PROTO_GetShiftState [23:14:16]wFMCommunicate request_size=4 [23:14:16]MH_SAM_APDU [23:14:16]CAPDU: 80 13 01 00 [23:14:16]Write to MH i2c: E2 08 00 77 2E 80 13 01 00 00 00 00 00 22 [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:16]Read from MH i2c: E2 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 0E 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 0E 00 77 2E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4B [23:14:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:14:16]wFMCommunicate OK [23:14:16]SAM_PROTO_GetShiftState done [23:14:16]FM_GetShiftState done [23:14:16]req_shift_opened done [23:14:16]requested_item shift.open_date is exist - process it [23:14:16]req_shift_open_date [23:14:16]req_shift_open_date done [23:14:16]produce_requested_data done [23:14:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139803,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:14:16]process_action_free close_receipt [23:14:16]json_value_free [23:14:16]json_value_free done [23:14:16]process_json_proto returns [23:14:16]Send response to host [23:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139803,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:14:16]free response buf [23:14:16]execute_script done [23:14:16]execute_script returns [23:14:16]free content buf [23:14:16]Sock 9.Close socket [23:14:16]Sock 9.Thread stoped [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:52]accept exits with 10 [23:15:52]New connection [23:15:52]New thread 3066654052 created [23:15:52]Thread 3066510692 joined [23:15:52]Waiting for new connection... [23:15:52] Sock 10.Parse request [23:15:52]Sock 10.Check first char [23:15:52]Sock 10.First char is OK [23:15:52]request: POST /json_proto HTTP/1.0 [23:15:52]Method: POST [23:15:52]URL: /json_proto [23:15:52]Method is POST - this is cgi request [23:15:52]url: /json_proto [23:15:52]query_string will be loaded in cgi processing [23:15:52]execute_cgi json_proto POST (null) [23:15:52]execute_cgi path=json_proto method=POST [23:15:52]POST find Content-Length [23:15:52]Host: 172.17.50.196:8080 [23:15:52]Content-Length: 825 [23:15:52]Content-Type: application/json [23:15:52] [23:15:52]POST finish read [23:15:52]Found Content-Length = 825 [23:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335637", "tax_sys" : 0, "items" : [ { "code": "4823077626227", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B. \u043F\u043E\u0440\u0438\u0441 \u0420\u043E\u0448\u0435\u043D 80 \u0433\u0440", "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" ] } } [23:15:52]execute_script... [23:15: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)335637", "tax_sys" : 0, "items" : [ { "code": "4823077626227", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B. \u043F\u043E\u0440\u0438\u0441 \u0420\u043E\u0448\u0435\u043D 80 \u0433\u0440", "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" ] } } [23:15:52]POST & json_proto [23:15:52]process_json_proto [23:15:52]json parsed OK: [23:15:52]protocol is kg_v1.0 [23:15:52]action value=close_receipt [23:15:52]process_action close_receipt [23:15:52]cmd_close_receipt [23:15:52]MH_GetDate [23:15:52]Write to MH i2c: F0 00 00 78 2E 95 [23:15:52]Write i2c OK [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: F0 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: F0 09 00 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: F0 09 00 78 2E 00 AB 0F 24 67 72 0D 1C 67 E5 [23:15:52]GetLastDocTimeStamp 1730416455 [23:15:52]current date 1730416555 [23:15:52]FM_GetShiftState [23:15:52]SAM_PROTO_GetShiftState [23:15:52]wFMCommunicate request_size=4 [23:15:52]MH_SAM_APDU [23:15:52]CAPDU: 80 13 01 00 [23:15:52]Write to MH i2c: E2 08 00 79 2E 80 13 01 00 00 00 00 00 24 [23:15:52]Write i2c OK [23:15:52]MH_I2C_Read... [23:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:52]Read from MH i2c: E2 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: E2 0E 00 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: E2 0E 00 79 2E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4D [23:15:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:15:52]wFMCommunicate OK [23:15:52]SAM_PROTO_GetShiftState done [23:15:52]FM_GetShiftState done [23:15:52]opened in 1730332621 [23:15:52]opened+sec_in_day 1730419021 [23:15:52]quantity*price = 13000 [23:15:52]sum+1 = 13001 [23:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 281 31.10.2024 23:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139804 ФПД: 264252087146333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139804&fm=264252087146333&tin=02508201610067®Number=0000000000091631&sum=13000 0 [23:15:53]StoreToDocumentArchive [23:15:53]shift 557 fd 139804 [23:15:53]save to /storage/0557/doc_00139804 [23:15:53]save last doc name /storage/0557/doc_00139804 to /storage/kkm_last_doc_name [23:15:53]save OK [23:15:53]Clear old archive folders... [23:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=294 [23:15:53]tlvbuf is 00A864F0 [23:15:53]SAM_PROTO_ClearQueue [23:15:53]wFMCommunicate request_size=4 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 09 00 00 [23:15:53]Write to MH i2c: E2 08 00 86 2E 80 09 00 00 00 00 00 00 26 [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 86 2E 00 90 00 28 [23:15:53]RAPDU: 90 00 [23:15:53]wFMCommunicate OK [23:15:53]SAM_PROTO_ClearQueue done [23:15:53]KKMCreateOFDPacket [23:15:53]OFDProtocolAddRootSTLVToBuf [23:15:53]FM_MakeSignedData [23:15:53]FM_MakeSignedData [23:15:53]SAM_PROTO_SignData [23:15:53]wFMCommunicate request_size=4 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 0D 01 02 [23:15:53]Write to MH i2c: E2 08 00 87 2E 80 0D 01 02 00 00 00 00 2E [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 87 2E 00 90 00 29 [23:15:53]RAPDU: 90 00 [23:15:53]wFMCommunicate OK [23:15:53]wFMCommunicate request_size=255 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 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 19 01 00 00 F4 03 04 00 AB 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [23:15:53]Write to MH i2c: E2 02 01 88 2E 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 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 19 01 00 00 F4 03 04 00 AB 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 A9 [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:54]Read from MH i2c: E2 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 03 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 03 00 88 2E 00 90 00 2A [23:15:54]RAPDU: 90 00 [23:15:54]wFMCommunicate OK [23:15:54]wFMCommunicate request_size=53 [23:15:54]MH_SAM_APDU [23:15:54]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 1C 22 02 00 35 04 06 00 F0 55 FB C9 17 5D [23:15:54]Write to MH i2c: E2 38 00 89 2E 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 1C 22 02 00 35 04 06 00 F0 55 FB C9 17 5D 00 00 E6 [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:54]Read from MH i2c: E2 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 03 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 03 00 89 2E 00 90 00 2B [23:15:54]RAPDU: 90 00 [23:15:54]wFMCommunicate OK [23:15:54]wFMCommunicate request_size=4 [23:15:54]MH_SAM_APDU [23:15:54]CAPDU: 80 0D 03 02 [23:15:54]Write to MH i2c: E2 08 00 8A 2E 80 0D 03 02 00 00 00 00 33 [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:54]Read from MH i2c: E2 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 0B 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 0B 00 8A 2E 00 4B 05 0A 7F BE 9D 84 13 90 00 FF [23:15:54]RAPDU: 4B 05 0A 7F BE 9D 84 13 90 00 [23:15:54]wFMCommunicate OK [23:15:54]SAM_PROTO_SignData done [23:15:54]FM_MakeSignedData done [23:15:54]CreateOFDProtocolMessage [23:15:54]wFMCommunicate request_size=4 [23:15:54]MH_SAM_APDU [23:15:54]CAPDU: 80 11 00 00 [23:15:54]Write to MH i2c: E2 08 00 8B 2E 80 11 00 00 00 00 00 00 33 [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:54]Read from MH i2c: E2 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 17 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: E2 17 00 8B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [23:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:15:54]wFMCommunicate OK [23:15:54]CreateOFDProtocolMessage done [23:15:54]OFDSenderStorePacket 139804 [23:15:54]StoreOFDPacket docnum=139804 [23:15: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 3A 01 00 00 11 15 32 01 7B 10 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 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 19 01 00 00 F4 03 04 00 AB 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 22 02 00 35 04 06 00 F0 55 FB C9 17 5D 4B 05 0A 7F BE 9D 84 13 [23:15:54]CheckFolder [23:15:54]dirname=/storage/ofd_packets [23:15:54]CheckFolder done [23:15:54]ProducePacketName [23:15:54]name=ofd_packets/00139804 [23:15:54]NVStorageSaveData ofd_packets/00139804 [23:15:54]File name is /storage/ofd_packets/00139804 [23:15:54]Write 344 bytes [23:15:54]NVStorageSaveData done [23:15:54]OFDSenderStorePacket done [23:15:54]KKMCreateOFDPacket done [23:15:54]NVStorageSaveData kkm_last_timestamp [23:15:54]File name is /storage/kkm_last_timestamp [23:15:54]Write 4 bytes [23:15:54]NVStorageSaveData done [23:15:54]ExternCall_PrintAddStr [23:15:54]wPrintStart [23:15:54]Write to MH i2c: 01 00 00 8C 2E BA [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 07 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 07 00 8C 2E 00 00 00 00 00 FF 0F CF [23:15:54]RasterBufferAndPrint [23:15:54]line Счет N : (3)335637 [23:15:54]line ИНН: 02508201610067 [23:15:54]line Контрольно-Кассовый Чек [23:15:54]line ПРОДАЖА [23:15:54]line Товар: 4823077626227 [23:15:54]line Шоколад мол. порис Рошен 80 гр [23:15:54]line 1.000 * 130.00 [23:15:54]line = 130.00 [23:15:54]line НДС 12% НСП 1% [23:15:54]line > о реализуемом товаре [23:15:54]line ИТОГО: 130.00 [23:15:54]line НСП 1% : 1.15 [23:15:54]line НДС 12% : 13.80 [23:15:54]line Наличными: 0.00 [23:15:54]line Безнал.: 130.00 [23:15:54]line Место: АЗС № 101 "Партнер Нефть" [23:15:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:15:54]line СНО: Общий режим [23:15:54]line Чек 281 31.10.2024 23:15 [23:15:54]line Смена: 557 ФФД: 1.0 [23:15:54]line ЗНМ: 0300000081 [23:15:54]line РНМ: 0000000000091631 [23:15:54]line Версия ККМ: 001 [23:15:54]line Платежная система: Mbank [23:15:54]line ФМ: 0000000000874669 [23:15:54]line ФД: 139804 [23:15:54]line ФПД: 264252087146333 [23:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139804&fm=264252087146333&tin=02508201610067®Number=0000000000091631&sum=13000 [23:15:54]line 0 [23:15:54]written 0, free lines is 4095 [23:15:54]OFD Sender: Processing packet 139804 [packets to send 34, broken 33] [23:15:54]ProducePacketName [23:15:54]name=ofd_packets/00139804 [23:15:54]OFD Sender: To server: pG, [23:15:54]CommunicateWithHost lk.salyk.kg:30040 [23:15:54]ConnectInit lk.salyk.kg [23:15:54]Connected sock=11 [23:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 11 15 32 01 7B 10 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 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 19 01 00 00 F4 03 04 00 AB 0F 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 22 02 00 35 04 06 00 F0 55 FB C9 17 5D 4B 05 0A 7F BE 9D 84 13 [23:15: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 D1 BC 47 00 59 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 22 02 00 F4 03 04 00 57 BB 23 67 B6 04 01 00 00 6E 13 6A 35 3C 6D EC 4E [23:15:54]CommunicateWithHost err = 0 [23:15:54]CheckOFDResponse [23:15:54]1017 (14) - 77093643461234 [23:15:54]1041 (16) - 0000000000874669 [23:15:54]1040 (4) - 139804 [23:15:54]1012 (4) - 31.10.2024 17:16 [23:15:54]1206 (1) - 0 [23:15:54]OFD Sender: Remove packet 139804 [23:15:54]ProducePacketName [23:15:54]name=ofd_packets/00139804 [23:15:54]NVStorageDeleteData [23:15:54]Write to MH i2c: 01 00 00 B6 2E E4 [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 07 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 07 00 B6 2E 00 00 00 00 00 07 0D FF [23:15:54]RasterBufferAndPrint [23:15:54]line [23:15:54]line [23:15:54]line [23:15:54]line [23:15:54]line [23:15:54]written 0, free lines is 3354 [23:15:54]MH_Cut [23:15:54]Write to MH i2c: D1 01 00 BD 2E 01 BD [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: D1 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: D1 01 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: D1 01 00 BD 2E 00 BC [23:15:54]Write to MH i2c: 01 00 00 BE 2E EC [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:55]OFD Sender: No OFD packet to send [23:15:55]*** Cut start [23:15:55]*** Partial cut [23:15:55]*** CUTSNS_PIN = 1 [23:15:55]*** CUTSNS_PIN = 0 [23:15:55]*** Brake cut motor [23:15:56]Read from MH i2c: 01 [23:15:56]MH_I2C_Read... [23:15:56]*** Stop cut motor [23:15:56]*** Cut end [23:15:56]Read from MH i2c: 01 07 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: 01 07 00 BE 2E 00 00 00 00 00 FF 0F 01 [23:15:56]process_action close_receipt done [23:15:56]requested_data is exist [23:15:56]produce_requested_data [23:15:56]requested_item fm.sn is exist - process it [23:15:56]wFMCommunicate request_size=4 [23:15:56]MH_SAM_APDU [23:15:56]CAPDU: 80 11 00 00 [23:15:56]Write to MH i2c: E2 08 00 BF 2E 80 11 00 00 00 00 00 00 67 [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:56]Read from MH i2c: E2 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 17 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 17 00 BF 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C2 [23:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:15:56]wFMCommunicate OK [23:15:56]requested_item fd.num is exist - process it [23:15:56]SAM_PROTO_GetFieldsCounters [23:15:56]wFMCommunicate request_size=4 [23:15:56]MH_SAM_APDU [23:15:56]CAPDU: 80 13 00 00 [23:15:56]Write to MH i2c: E2 08 00 C0 2E 80 13 00 00 00 00 00 00 6A [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:56]Read from MH i2c: E2 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 62 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 62 00 C0 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1C 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [23:15:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1C 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:56]wFMCommunicate OK [23:15:56]SAM_PROTO_GetFieldsCounters done [23:15:56]requested_item shift.num is exist - process it [23:15:56]requested_item shift.opened is exist - process it [23:15:56]req_shift_opened [23:15:56]FM_GetShiftState [23:15:56]SAM_PROTO_GetShiftState [23:15:56]wFMCommunicate request_size=4 [23:15:56]MH_SAM_APDU [23:15:56]CAPDU: 80 13 01 00 [23:15:56]Write to MH i2c: E2 08 00 C1 2E 80 13 01 00 00 00 00 00 6C [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:56]Read from MH i2c: E2 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 0E 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 0E 00 C1 2E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 95 [23:15:56]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:15:56]wFMCommunicate OK [23:15:56]SAM_PROTO_GetShiftState done [23:15:56]FM_GetShiftState done [23:15:56]req_shift_opened done [23:15:56]requested_item shift.open_date is exist - process it [23:15:56]req_shift_open_date [23:15:56]req_shift_open_date done [23:15:56]produce_requested_data done [23:15:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139804,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:15:56]process_action_free close_receipt [23:15:56]json_value_free [23:15:56]json_value_free done [23:15:56]process_json_proto returns [23:15:56]Send response to host [23:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139804,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:15:56]free response buf [23:15:56]execute_script done [23:15:56]execute_script returns [23:15:56]free content buf [23:15:56]Sock 10.Close socket [23:15:56]Sock 10.Thread stoped [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:17]ConnectInit Can't connect to host [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:46]accept exits with 9 [23:18:46]New connection [23:18:46]New thread 3066510692 created [23:18:46]Thread 3066654052 joined [23:18:46]Waiting for new connection... [23:18:46] Sock 9.Parse request [23:18:46]Sock 9.Check first char [23:18:46]Sock 9.First char is OK [23:18:46]request: POST /json_proto HTTP/1.0 [23:18:46]Method: POST [23:18:46]URL: /json_proto [23:18:46]Method is POST - this is cgi request [23:18:46]url: /json_proto [23:18:46]query_string will be loaded in cgi processing [23:18:46]execute_cgi json_proto POST (null) [23:18:46]execute_cgi path=json_proto method=POST [23:18:46]POST find Content-Length [23:18:46]Host: 172.17.50.196:8080 [23:18:46]Content-Length: 645 [23:18:46]Content-Type: application/json [23:18:46] [23:18:46]POST finish read [23:18:46]Found Content-Length = 645 [23:18:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335638", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:46]execute_script... [23:18: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)335638", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:46]POST & json_proto [23:18:46]process_json_proto [23:18:46]json parsed OK: [23:18:46]protocol is kg_v1.0 [23:18:46]action value=close_receipt [23:18:46]process_action close_receipt [23:18:46]cmd_close_receipt [23:18:46]MH_GetDate [23:18:46]Write to MH i2c: F0 00 00 C2 2E DF [23:18:46]Write i2c OK [23:18:46]MH_I2C_Read... [23:18:46]Read from MH i2c: F0 [23:18:46]MH_I2C_Read... [23:18:46]Read from MH i2c: F0 09 00 [23:18:46]MH_I2C_Read... [23:18:46]Read from MH i2c: F0 09 00 C2 2E 00 59 10 24 67 72 0D 1C 67 DE [23:18:46]GetLastDocTimeStamp 1730416555 [23:18:46]current date 1730416729 [23:18:46]FM_GetShiftState [23:18:46]SAM_PROTO_GetShiftState [23:18:46]wFMCommunicate request_size=4 [23:18:46]MH_SAM_APDU [23:18:46]CAPDU: 80 13 01 00 [23:18:46]Write to MH i2c: E2 08 00 C3 2E 80 13 01 00 00 00 00 00 6E [23:18:46]Write i2c OK [23:18:46]MH_I2C_Read... [23:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:46]Read from MH i2c: E2 [23:18:46]MH_I2C_Read... [23:18:46]Read from MH i2c: E2 0E 00 [23:18:46]MH_I2C_Read... [23:18:46]Read from MH i2c: E2 0E 00 C3 2E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 97 [23:18:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:18:46]wFMCommunicate OK [23:18:46]SAM_PROTO_GetShiftState done [23:18:46]FM_GetShiftState done [23:18:46]opened in 1730332621 [23:18:46]opened+sec_in_day 1730419021 [23:18:46]quantity*price = 7900 [23:18:46]sum+1 = 7901 [23:18:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 282 31.10.2024 23:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139805 ФПД: 132401227954169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231849&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139805&fm=132401227954169&tin=02508201610067®Number=0000000000091631&sum=7900 0 [23:18:47]StoreToDocumentArchive [23:18:47]shift 557 fd 139805 [23:18:47]save to /storage/0557/doc_00139805 [23:18:47]save last doc name /storage/0557/doc_00139805 to /storage/kkm_last_doc_name [23:18:47]save OK [23:18:47]Clear old archive folders... [23:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=276 [23:18:47]tlvbuf is B6E917A0 [23:18:47]SAM_PROTO_ClearQueue [23:18:47]wFMCommunicate request_size=4 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 09 00 00 [23:18:47]Write to MH i2c: E2 08 00 D0 2E 80 09 00 00 00 00 00 00 70 [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 D0 2E 00 90 00 72 [23:18:47]RAPDU: 90 00 [23:18:47]wFMCommunicate OK [23:18:47]SAM_PROTO_ClearQueue done [23:18:47]KKMCreateOFDPacket [23:18:47]OFDProtocolAddRootSTLVToBuf [23:18:47]FM_MakeSignedData [23:18:47]FM_MakeSignedData [23:18:47]SAM_PROTO_SignData [23:18:47]wFMCommunicate request_size=4 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 0D 01 02 [23:18:47]Write to MH i2c: E2 08 00 D1 2E 80 0D 01 02 00 00 00 00 78 [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 D1 2E 00 90 00 73 [23:18:47]RAPDU: 90 00 [23:18:47]wFMCommunicate OK [23:18:47]wFMCommunicate request_size=255 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 59 10 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [23:18:47]Write to MH i2c: E2 02 01 D2 2E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 59 10 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 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 94 [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 D2 2E 00 90 00 74 [23:18:47]RAPDU: 90 00 [23:18:47]wFMCommunicate OK [23:18:47]wFMCommunicate request_size=35 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 22 02 00 35 04 06 00 78 6B 10 28 F7 F9 [23:18:47]Write to MH i2c: E2 26 00 D3 2E 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 22 02 00 35 04 06 00 78 6B 10 28 F7 F9 00 00 C2 [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 03 00 D3 2E 00 90 00 75 [23:18:47]RAPDU: 90 00 [23:18:47]wFMCommunicate OK [23:18:47]wFMCommunicate request_size=4 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 0D 03 02 [23:18:47]Write to MH i2c: E2 08 00 D4 2E 80 0D 03 02 00 00 00 00 7D [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 0B 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 0B 00 D4 2E 00 26 EB FD 9C 3E DB 92 88 90 00 5B [23:18:47]RAPDU: 26 EB FD 9C 3E DB 92 88 90 00 [23:18:47]wFMCommunicate OK [23:18:47]SAM_PROTO_SignData done [23:18:47]FM_MakeSignedData done [23:18:47]CreateOFDProtocolMessage [23:18:47]wFMCommunicate request_size=4 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 11 00 00 [23:18:47]Write to MH i2c: E2 08 00 D5 2E 80 11 00 00 00 00 00 00 7D [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 17 00 [23:18:47]MH_I2C_Read... [23:18:48]Read from MH i2c: E2 17 00 D5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D8 [23:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:18:48]wFMCommunicate OK [23:18:48]CreateOFDProtocolMessage done [23:18:48]OFDSenderStorePacket 139805 [23:18:48]StoreOFDPacket docnum=139805 [23:18: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 28 01 00 00 71 D0 20 01 67 73 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 59 10 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 22 02 00 35 04 06 00 78 6B 10 28 F7 F9 26 EB FD 9C 3E DB 92 88 [23:18:48]CheckFolder [23:18:48]dirname=/storage/ofd_packets [23:18:48]CheckFolder done [23:18:48]ProducePacketName [23:18:48]name=ofd_packets/00139805 [23:18:48]NVStorageSaveData ofd_packets/00139805 [23:18:48]File name is /storage/ofd_packets/00139805 [23:18:48]Write 326 bytes [23:18:48]NVStorageSaveData done [23:18:48]OFDSenderStorePacket done [23:18:48]KKMCreateOFDPacket done [23:18:48]NVStorageSaveData kkm_last_timestamp [23:18:48]File name is /storage/kkm_last_timestamp [23:18:48]Write 4 bytes [23:18:48]NVStorageSaveData done [23:18:48]ExternCall_PrintAddStr [23:18:48]wPrintStart [23:18:48]Write to MH i2c: 01 00 00 D6 2E 04 [23:18:48]Write i2c OK [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: 01 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: 01 07 00 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: 01 07 00 D6 2E 00 00 00 00 00 FF 0F 19 [23:18:48]RasterBufferAndPrint [23:18:48]line Счет N : (3)335638 [23:18:48]line ИНН: 02508201610067 [23:18:48]line Контрольно-Кассовый Чек [23:18:48]line ПРОДАЖА [23:18:48]line Товар: 4700000310043 [23:18:48]line Вода Жалалабат 27 1л [23:18:48]line 1.000 * 79.00 [23:18:48]line = 79.00 [23:18:48]line НДС 12% НСП 1% [23:18:48]line > о реализуемом товаре [23:18:48]line ИТОГО: 79.00 [23:18:48]line НСП 1% : 0.70 [23:18:48]line НДС 12% : 8.39 [23:18:48]line Наличными: 79.00 [23:18:48]line Безнал.: 0.00 [23:18:48]line Место: АЗС № 101 "Партнер Нефть" [23:18:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:18:48]line СНО: Общий режим [23:18:48]line Чек 282 31.10.2024 23:18 [23:18:48]line Смена: 557 ФФД: 1.0 [23:18:48]line ЗНМ: 0300000081 [23:18:48]line РНМ: 0000000000091631 [23:18:48]line Версия ККМ: 001 [23:18:48]line ФМ: 0000000000874669 [23:18:48]line ФД: 139805 [23:18:48]line ФПД: 132401227954169 [23:18:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231849&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139805&fm=132401227954169&tin=02508201610067®Number=0000000000091631&sum=7900 [23:18:48]OFD Sender: Processing packet 139805 [packets to send 34, broken 33] [23:18:48]ProducePacketName [23:18:48]name=ofd_packets/00139805 [23:18:48]OFD Sender: To server: pG, [23:18:48]CommunicateWithHost lk.salyk.kg:30040 [23:18:48]ConnectInit lk.salyk.kg [23:18:48]line 0 [23:18:48]written 0, free lines is 4095 [23:18:48]Connected sock=10 [23:18: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 28 01 00 00 71 D0 20 01 67 73 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 59 10 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 22 02 00 35 04 06 00 78 6B 10 28 F7 F9 26 EB FD 9C 3E DB 92 88 [23:18: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 C4 1D 47 00 3F 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 22 02 00 F4 03 04 00 05 BC 23 67 B6 04 01 00 00 42 7E F2 3F 5A 43 15 51 [23:18:48]CommunicateWithHost err = 0 [23:18:48]CheckOFDResponse [23:18:48]1017 (14) - 77093643461234 [23:18:48]1041 (16) - 0000000000874669 [23:18:48]1040 (4) - 139805 [23:18:48]1012 (4) - 31.10.2024 17:19 [23:18:48]1206 (1) - 0 [23:18:48]OFD Sender: Remove packet 139805 [23:18:48]ProducePacketName [23:18:48]name=ofd_packets/00139805 [23:18:48]NVStorageDeleteData [23:18:48]Write to MH i2c: 01 00 00 FE 2E 2C [23:18:48]Write i2c OK [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: 01 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: 01 07 00 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: 01 07 00 FE 2E 00 00 00 00 00 15 0D 55 [23:18:48]RasterBufferAndPrint [23:18:48]line [23:18:48]line [23:18:48]line [23:18:48]line [23:18:48]line [23:18:48]written 0, free lines is 3359 [23:18:48]MH_Cut [23:18:48]Write to MH i2c: D1 01 00 05 2F 01 06 [23:18:48]Write i2c OK [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: D1 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: D1 01 00 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: D1 01 00 05 2F 00 05 [23:18:48]Write to MH i2c: 01 00 00 06 2F 35 [23:18:48]Write i2c OK [23:18:48]MH_I2C_Read... [23:18:49]OFD Sender: No OFD packet to send [23:18:49]*** Cut start [23:18:49]*** Partial cut [23:18:49]*** CUTSNS_PIN = 1 [23:18:49]*** CUTSNS_PIN = 0 [23:18:49]*** Brake cut motor [23:18:50]Read from MH i2c: 01 [23:18:50]MH_I2C_Read... [23:18:50]*** Stop cut motor [23:18:50]*** Cut end [23:18:50]Read from MH i2c: 01 07 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: 01 07 00 06 2F 00 00 00 00 00 FF 0F 4A [23:18:50]process_action close_receipt done [23:18:50]requested_data is exist [23:18:50]produce_requested_data [23:18:50]requested_item fm.sn is exist - process it [23:18:50]wFMCommunicate request_size=4 [23:18:50]MH_SAM_APDU [23:18:50]CAPDU: 80 11 00 00 [23:18:50]Write to MH i2c: E2 08 00 07 2F 80 11 00 00 00 00 00 00 B0 [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:50]Read from MH i2c: E2 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 17 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 17 00 07 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [23:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:18:50]wFMCommunicate OK [23:18:50]requested_item fd.num is exist - process it [23:18:50]SAM_PROTO_GetFieldsCounters [23:18:50]wFMCommunicate request_size=4 [23:18:50]MH_SAM_APDU [23:18:50]CAPDU: 80 13 00 00 [23:18:50]Write to MH i2c: E2 08 00 08 2F 80 13 00 00 00 00 00 00 B3 [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:50]Read from MH i2c: E2 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 62 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 62 00 08 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1D 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [23:18: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 1D 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:50]wFMCommunicate OK [23:18:50]SAM_PROTO_GetFieldsCounters done [23:18:50]requested_item shift.num is exist - process it [23:18:50]requested_item shift.opened is exist - process it [23:18:50]req_shift_opened [23:18:50]FM_GetShiftState [23:18:50]SAM_PROTO_GetShiftState [23:18:50]wFMCommunicate request_size=4 [23:18:50]MH_SAM_APDU [23:18:50]CAPDU: 80 13 01 00 [23:18:50]Write to MH i2c: E2 08 00 09 2F 80 13 01 00 00 00 00 00 B5 [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:50]Read from MH i2c: E2 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 0E 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 0E 00 09 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DE [23:18:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:18:50]wFMCommunicate OK [23:18:50]SAM_PROTO_GetShiftState done [23:18:50]FM_GetShiftState done [23:18:50]req_shift_opened done [23:18:50]requested_item shift.open_date is exist - process it [23:18:50]req_shift_open_date [23:18:50]req_shift_open_date done [23:18:50]produce_requested_data done [23:18:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139805,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:18:50]process_action_free close_receipt [23:18:50]json_value_free [23:18:50]json_value_free done [23:18:50]process_json_proto returns [23:18:50]Send response to host [23:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139805,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:18:50]free response buf [23:18:50]execute_script done [23:18:50]execute_script returns [23:18:50]free content buf [23:18:50]Sock 9.Close socket [23:18:50]Sock 9.Thread stoped [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:30]accept exits with 7 [23:19:30]New connection [23:19:30]New thread 3066654052 created [23:19:30]Thread 3066510692 joined [23:19:30]Waiting for new connection... [23:19:30] Sock 7.Parse request [23:19:30]Sock 7.Check first char [23:19:30]Sock 7.First char is OK [23:19:30]request: POST /json_proto HTTP/1.0 [23:19:30]Method: POST [23:19:30]URL: /json_proto [23:19:30]Method is POST - this is cgi request [23:19:30]url: /json_proto [23:19:30]query_string will be loaded in cgi processing [23:19:30]execute_cgi json_proto POST (null) [23:19:30]execute_cgi path=json_proto method=POST [23:19:30]POST find Content-Length [23:19:30]Host: 172.17.50.196:8080 [23:19:30]Content-Length: 1231 [23:19:30]Content-Type: application/json [23:19:30] [23:19:30]POST finish read [23:19:30]Found Content-Length = 1231 [23:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335639", "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 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 484.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:30]execute_script... [23: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)335639", "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 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 484.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:30]POST & json_proto [23:19:30]process_json_proto [23:19:30]json parsed OK: [23:19:30]protocol is kg_v1.0 [23:19:30]action value=close_receipt [23:19:30]process_action close_receipt [23:19:30]cmd_close_receipt [23:19:30]MH_GetDate [23:19:30]Write to MH i2c: F0 00 00 0A 2F 28 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: F0 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: F0 09 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: F0 09 00 0A 2F 00 85 10 24 67 72 0D 1C 67 53 [23:19:30]GetLastDocTimeStamp 1730416729 [23:19:30]current date 1730416773 [23:19:30]FM_GetShiftState [23:19:30]SAM_PROTO_GetShiftState [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 13 01 00 [23:19:30]Write to MH i2c: E2 08 00 0B 2F 80 13 01 00 00 00 00 00 B7 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0E 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0E 00 0B 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E0 [23:19:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:19:30]wFMCommunicate OK [23:19:30]SAM_PROTO_GetShiftState done [23:19:30]FM_GetShiftState done [23:19:30]opened in 1730332621 [23:19:30]opened+sec_in_day 1730419021 [23:19:30]quantity*price = 6900 [23:19:30]sum+1 = 6901 [23:19:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481989 Напиток энерг Nitro киви-мангостин 0,45 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 2.000 * 160.00 = 320.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 484.00 НСП 1% : 4.28 НДС 12% : 51.40 Наличными: 484.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 283 31.10.2024 23:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139806 ФПД: 245939760166484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231933&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139806&fm=245939760166484&tin=02508201610067®Number=0000000000091631&sum=48400 0 [23:19:31]StoreToDocumentArchive [23:19:31]shift 557 fd 139806 [23:19:31]save to /storage/0557/doc_00139806 [23:19:31]save last doc name /storage/0557/doc_00139806 to /storage/kkm_last_doc_name [23:19:31]save OK [23:19:31]Clear old archive folders... [23:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=535 [23:19:31]tlvbuf is B6E913B0 [23:19:31]SAM_PROTO_ClearQueue [23:19:31]wFMCommunicate request_size=4 [23:19:31]MH_SAM_APDU [23:19:31]CAPDU: 80 09 00 00 [23:19:31]Write to MH i2c: E2 08 00 18 2F 80 09 00 00 00 00 00 00 B9 [23:19:31]Write i2c OK [23:19:31]MH_I2C_Read... [23:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:32]Read from MH i2c: E2 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 18 2F 00 90 00 BB [23:19:32]RAPDU: 90 00 [23:19:32]wFMCommunicate OK [23:19:32]SAM_PROTO_ClearQueue done [23:19:32]KKMCreateOFDPacket [23:19:32]OFDProtocolAddRootSTLVToBuf [23:19:32]FM_MakeSignedData [23:19:32]FM_MakeSignedData [23:19:32]SAM_PROTO_SignData [23:19:32]wFMCommunicate request_size=4 [23:19:32]MH_SAM_APDU [23:19:32]CAPDU: 80 0D 01 02 [23:19:32]Write to MH i2c: E2 08 00 19 2F 80 0D 01 02 00 00 00 00 C1 [23:19:32]Write i2c OK [23:19:32]MH_I2C_Read... [23:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:32]Read from MH i2c: E2 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 19 2F 00 90 00 BC [23:19:32]RAPDU: 90 00 [23:19:32]wFMCommunicate OK [23:19:32]wFMCommunicate request_size=255 [23:19:32]MH_SAM_APDU [23:19:32]CAPDU: 80 0D 02 02 FA 03 00 17 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C [23:19:32]Write to MH i2c: E2 02 01 1A 2F 80 0D 02 02 FA 00 03 00 17 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 00 00 95 [23:19:32]Write i2c OK [23:19:32]MH_I2C_Read... [23:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:32]Read from MH i2c: E2 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 1A 2F 00 90 00 BD [23:19:32]RAPDU: 90 00 [23:19:32]wFMCommunicate OK [23:19:32]wFMCommunicate request_size=255 [23:19:32]MH_SAM_APDU [23:19:32]CAPDU: 80 0D 02 02 FA 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 85 10 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 [23:19:32]Write to MH i2c: E2 02 01 1B 2F 80 0D 02 02 FA 00 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 85 10 24 67 0E 04 04 00 2D 02 00 00 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 09 [23:19:32]Write i2c OK [23:19:32]MH_I2C_Read... [23:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:32]Read from MH i2c: E2 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 [23:19:32]MH_I2C_Read... [23:19:32]Read from MH i2c: E2 03 00 1B 2F 00 90 00 BE [23:19:32]RAPDU: 90 00 [23:19:32]wFMCommunicate OK [23:19:32]wFMCommunicate request_size=44 [23:19:32]MH_SAM_APDU [23:19:32]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 1E 22 02 00 35 04 06 00 DF AE 50 0A 76 54 [23:19:32]Write to MH i2c: E2 2F 00 1C 2F 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 1E 22 02 00 35 04 06 00 DF AE 50 0A 76 54 00 00 DB [23:19:32]Write i2c OK [23:19:32]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 03 00 1C 2F 00 90 00 BF [23:19:33]RAPDU: 90 00 [23:19:33]wFMCommunicate OK [23:19:33]wFMCommunicate request_size=4 [23:19:33]MH_SAM_APDU [23:19:33]CAPDU: 80 0D 03 02 [23:19:33]Write to MH i2c: E2 08 00 1D 2F 80 0D 03 02 00 00 00 00 C7 [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 0B 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 0B 00 1D 2F 00 3E F4 57 38 1C 50 9F A6 90 00 3A [23:19:33]RAPDU: 3E F4 57 38 1C 50 9F A6 90 00 [23:19:33]wFMCommunicate OK [23:19:33]SAM_PROTO_SignData done [23:19:33]FM_MakeSignedData done [23:19:33]CreateOFDProtocolMessage [23:19:33]wFMCommunicate request_size=4 [23:19:33]MH_SAM_APDU [23:19:33]CAPDU: 80 11 00 00 [23:19:33]Write to MH i2c: E2 08 00 1E 2F 80 11 00 00 00 00 00 00 C7 [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:33]Read from MH i2c: E2 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 17 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: E2 17 00 1E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 22 [23: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 [23:19:33]wFMCommunicate OK [23:19:33]CreateOFDProtocolMessage done [23:19:33]OFDSenderStorePacket 139806 [23:19:33]StoreOFDPacket docnum=139806 [23: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 2B 02 00 00 8F 2B 23 02 4F 98 5A 03 01 00 03 00 17 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 85 10 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 22 02 00 35 04 06 00 DF AE 50 0A 76 54 3E F4 57 38 1C 50 9F A6 [23:19:33]CheckFolder [23:19:33]dirname=/storage/ofd_packets [23:19:33]CheckFolder done [23:19:33]ProducePacketName [23:19:33]name=ofd_packets/00139806 [23:19:33]NVStorageSaveData ofd_packets/00139806 [23:19:33]File name is /storage/ofd_packets/00139806 [23:19:33]Write 585 bytes [23:19:33]NVStorageSaveData done [23:19:33]OFDSenderStorePacket done [23:19:33]KKMCreateOFDPacket done [23:19:33]NVStorageSaveData kkm_last_timestamp [23:19:33]File name is /storage/kkm_last_timestamp [23:19:33]Write 4 bytes [23:19:33]NVStorageSaveData done [23:19:33]ExternCall_PrintAddStr [23:19:33]wPrintStart [23:19:33]Write to MH i2c: 01 00 00 1F 2F 4E [23:19:33]Write i2c OK [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: 01 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: 01 07 00 [23:19:33]MH_I2C_Read... [23:19:33]Read from MH i2c: 01 07 00 1F 2F 00 00 00 00 00 FF 0F 63 [23:19:33]RasterBufferAndPrint [23:19:33]line Счет N : (3)335639 [23:19:33]line ИНН: 02508201610067 [23:19:33]line Контрольно-Кассовый Чек [23:19:33]line ПРОДАЖА [23:19:33]line Товар: 4600682557456 [23:19:33]line Напиток FLash up energy эн ж/б 0,5/0,45л [23:19:33]line 1.000 * 69.00 [23:19:33]line = 69.00 [23:19:33]line НДС 12% НСП 1% [23:19:33]line > о реализуемом товаре [23:19:33]line Товар: 4700000481989 [23:19:33]line Напиток энерг Nitro киви-мангостин 0,45 [23:19:33]line 1.000 * 95.00 [23:19:33]line = 95.00 [23:19:33]line НДС 12% НСП 1% [23:19:33]line > о реализуемом товаре [23:19:33]line Товар: 48741958 [23:19:33]line Сигареты Parliament Aqua Blue [23:19:33]line 2.000 * 160.00 [23:19:33]line = 320.00 [23:19:33]line НДС 12% НСП 1% [23:19:33]line > о реализуемом товаре [23:19:33]line ИТОГО: 484.00 [23:19:33]line НСП 1% : 4.28 [23:19:33]line НДС 12% : 51.40 [23:19:33]line Наличными: 484.00 [23:19:33]line Безнал.: 0.00 [23:19:33]line Место: АЗС № 101 "Партнер Нефть" [23:19:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:19:33]line СНО: Общий режим [23:19:33]line Чек 283 31.10.2024 23:19 [23:19:33]line Смена: 557 ФФД: 1.0 [23:19:33]line ЗНМ: 0300000081 [23:19:33]line РНМ: 0000000000091631 [23:19:33]line Версия ККМ: 001 [23:19:33]line ФМ: 0000000000874669 [23:19:33]line ФД: 139806 [23:19:33]line ФПД: 245939760166484 [23:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T231933&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139806&fm=245939760166484&tin=02508201610067®Number=0000000000091631&sum=48400 [23:19:33]line 0 [23:19:33]OFD Sender: Processing packet 139806 [packets to send 34, broken 33] [23:19:33]ProducePacketName [23:19:33]name=ofd_packets/00139806 [23:19:33]OFD Sender: To server: pG, [23:19:33]CommunicateWithHost lk.salyk.kg:30040 [23:19:33]ConnectInit lk.salyk.kg [23:19:33]written 0, free lines is 4095 [23:19:33]Connected sock=11 [23: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 2B 02 00 00 8F 2B 23 02 4F 98 5A 03 01 00 03 00 17 02 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 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 85 10 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 22 02 00 35 04 06 00 DF AE 50 0A 76 54 3E F4 57 38 1C 50 9F A6 [23: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 75 D2 47 00 74 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 22 02 00 F4 03 04 00 32 BC 23 67 B6 04 01 00 00 23 91 DA 72 15 7E 06 54 [23:19:33]CommunicateWithHost err = 0 [23:19:33]CheckOFDResponse [23:19:33]1017 (14) - 77093643461234 [23:19:33]1041 (16) - 0000000000874669 [23:19:33]1040 (4) - 139806 [23:19:33]1012 (4) - 31.10.2024 17:19 [23:19:33]1206 (1) - 0 [23:19:33]OFD Sender: Remove packet 139806 [23:19:33]ProducePacketName [23:19:33]name=ofd_packets/00139806 [23:19:33]NVStorageDeleteData [23:19:34]Write to MH i2c: 01 00 00 56 2F 85 [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: 01 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: 01 07 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: 01 07 00 56 2F 00 00 00 00 00 41 0C D9 [23:19:34]RasterBufferAndPrint [23:19:34]line [23:19:34]line [23:19:34]line [23:19:34]line [23:19:34]line [23:19:34]written 0, free lines is 3146 [23:19:34]MH_Cut [23:19:34]Write to MH i2c: D1 01 00 5D 2F 01 5E [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: D1 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: D1 01 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: D1 01 00 5D 2F 00 5D [23:19:34]Write to MH i2c: 01 00 00 5E 2F 8D [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]OFD Sender: No OFD packet to send [23:19:34]*** Cut start [23:19:34]*** Partial cut [23:19:34]*** CUTSNS_PIN = 1 [23:19:34]*** CUTSNS_PIN = 0 [23:19:35]*** Brake cut motor [23:19:35]Read from MH i2c: 01 [23:19:35]MH_I2C_Read... [23:19:35]*** Stop cut motor [23:19:35]*** Cut end [23:19:35]Read from MH i2c: 01 07 00 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: 01 07 00 5E 2F 00 00 00 00 00 FF 0F A2 [23:19:35]process_action close_receipt done [23:19:35]requested_data is exist [23:19:35]produce_requested_data [23:19:35]requested_item fm.sn is exist - process it [23:19:35]wFMCommunicate request_size=4 [23:19:35]MH_SAM_APDU [23:19:35]CAPDU: 80 11 00 00 [23:19:35]Write to MH i2c: E2 08 00 5F 2F 80 11 00 00 00 00 00 00 08 [23:19:35]Write i2c OK [23:19:35]MH_I2C_Read... [23:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:35]Read from MH i2c: E2 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 17 00 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 17 00 5F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [23: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 [23:19:35]wFMCommunicate OK [23:19:35]requested_item fd.num is exist - process it [23:19:35]SAM_PROTO_GetFieldsCounters [23:19:35]wFMCommunicate request_size=4 [23:19:35]MH_SAM_APDU [23:19:35]CAPDU: 80 13 00 00 [23:19:35]Write to MH i2c: E2 08 00 60 2F 80 13 00 00 00 00 00 00 0B [23:19:35]Write i2c OK [23:19:35]MH_I2C_Read... [23:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:35]Read from MH i2c: E2 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 62 00 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 62 00 60 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1E 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [23: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 1E 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:35]wFMCommunicate OK [23:19:35]SAM_PROTO_GetFieldsCounters done [23:19:35]requested_item shift.num is exist - process it [23:19:35]requested_item shift.opened is exist - process it [23:19:35]req_shift_opened [23:19:35]FM_GetShiftState [23:19:35]SAM_PROTO_GetShiftState [23:19:35]wFMCommunicate request_size=4 [23:19:35]MH_SAM_APDU [23:19:35]CAPDU: 80 13 01 00 [23:19:35]Write to MH i2c: E2 08 00 61 2F 80 13 01 00 00 00 00 00 0D [23:19:35]Write i2c OK [23:19:35]MH_I2C_Read... [23:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:35]Read from MH i2c: E2 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 0E 00 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 0E 00 61 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 36 [23:19:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:19:35]wFMCommunicate OK [23:19:35]SAM_PROTO_GetShiftState done [23:19:35]FM_GetShiftState done [23:19:35]req_shift_opened done [23:19:35]requested_item shift.open_date is exist - process it [23:19:35]req_shift_open_date [23:19:35]req_shift_open_date done [23:19:35]produce_requested_data done [23:19:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139806,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:19:35]process_action_free close_receipt [23:19:35]json_value_free [23:19:35]json_value_free done [23:19:35]process_json_proto returns [23:19:35]Send response to host [23:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139806,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:19:35]free response buf [23:19:35]execute_script done [23:19:35]execute_script returns [23:19:35]free content buf [23:19:35]Sock 7.Close socket [23:19:35]Sock 7.Thread stoped [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:41]accept exits with 9 [23:24:41]New connection [23:24:41]New thread 3066510692 created [23:24:41]Thread 3066654052 joined [23:24:41]Waiting for new connection... [23:24:41] Sock 9.Parse request [23:24:41]Sock 9.Check first char [23:24:41]Sock 9.First char is OK [23:24:41]request: POST /json_proto HTTP/1.0 [23:24:41]Method: POST [23:24:41]URL: /json_proto [23:24:41]Method is POST - this is cgi request [23:24:41]url: /json_proto [23:24:41]query_string will be loaded in cgi processing [23:24:41]execute_cgi json_proto POST (null) [23:24:41]execute_cgi path=json_proto method=POST [23:24:41]POST find Content-Length [23:24:41]Host: 172.17.50.196:8080 [23:24:41]Content-Length: 683 [23:24:41]Content-Type: application/json [23:24:41] [23:24:41]POST finish read [23:24:41]Found Content-Length = 683 [23:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095548", "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" ] } } [23:24:41]execute_script... [23:24: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)1095548", "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" ] } } [23:24:41]POST & json_proto [23:24:41]process_json_proto [23:24:41]json parsed OK: [23:24:41]protocol is kg_v1.0 [23:24:41]action value=close_receipt [23:24:41]process_action close_receipt [23:24:41]cmd_close_receipt [23:24:41]MH_GetDate [23:24:41]Write to MH i2c: F0 00 00 62 2F 80 [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: F0 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: F0 09 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: F0 09 00 62 2F 00 BC 11 24 67 72 0D 1C 67 E3 [23:24:41]GetLastDocTimeStamp 1730416773 [23:24:41]current date 1730417084 [23:24:41]FM_GetShiftState [23:24:41]SAM_PROTO_GetShiftState [23:24:41]wFMCommunicate request_size=4 [23:24:41]MH_SAM_APDU [23:24:41]CAPDU: 80 13 01 00 [23:24:41]Write to MH i2c: E2 08 00 63 2F 80 13 01 00 00 00 00 00 0F [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:41]Read from MH i2c: E2 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 0E 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 0E 00 63 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 38 [23:24:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:24:41]wFMCommunicate OK [23:24:41]SAM_PROTO_GetShiftState done [23:24:41]FM_GetShiftState done [23:24:41]opened in 1730332621 [23:24:41]opened+sec_in_day 1730419021 [23:24:41]quantity*price = 100021 [23:24:41]sum+1 = 100023 [23:24:41]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 СНО: Общий режим Чек 284 31.10.2024 23:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139807 ФПД: 96652877739598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232444&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139807&fm=96652877739598&tin=02508201610067®Number=0000000000091631&sum=100000 [23:24:42]StoreToDocumentArchive [23:24:42]shift 557 fd 139807 [23:24:42]save to /storage/0557/doc_00139807 [23:24:42]save last doc name /storage/0557/doc_00139807 to /storage/kkm_last_doc_name [23:24:42]save OK [23:24:42]Clear old archive folders... [23:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:42]tlvbuf is 00B78390 [23:24:42]SAM_PROTO_ClearQueue [23:24:42]wFMCommunicate request_size=4 [23:24:42]MH_SAM_APDU [23:24:42]CAPDU: 80 09 00 00 [23:24:42]Write to MH i2c: E2 08 00 70 2F 80 09 00 00 00 00 00 00 11 [23:24:42]Write i2c OK [23:24:42]MH_I2C_Read... [23:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:42]Read from MH i2c: E2 [23:24:42]MH_I2C_Read... [23:24:42]Read from MH i2c: E2 03 00 [23:24:42]MH_I2C_Read... [23:24:42]Read from MH i2c: E2 03 00 70 2F 00 90 00 13 [23:24:42]RAPDU: 90 00 [23:24:42]wFMCommunicate OK [23:24:42]SAM_PROTO_ClearQueue done [23:24:42]KKMCreateOFDPacket [23:24:42]OFDProtocolAddRootSTLVToBuf [23:24:42]FM_MakeSignedData [23:24:42]FM_MakeSignedData [23:24:42]SAM_PROTO_SignData [23:24:42]wFMCommunicate request_size=4 [23:24:42]MH_SAM_APDU [23:24:42]CAPDU: 80 0D 01 02 [23:24:42]Write to MH i2c: E2 08 00 71 2F 80 0D 01 02 00 00 00 00 19 [23:24:42]Write i2c OK [23:24:42]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 71 2F 00 90 00 14 [23:24:43]RAPDU: 90 00 [23:24:43]wFMCommunicate OK [23:24:43]wFMCommunicate request_size=255 [23:24:43]MH_SAM_APDU [23:24: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 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 1C 01 00 00 F4 03 04 00 BC 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 22 02 00 35 04 06 00 57 [23:24:43]Write to MH i2c: E2 02 01 72 2F 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 1C 01 00 00 F4 03 04 00 BC 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 22 02 00 35 04 06 00 57 00 00 04 [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 72 2F 00 90 00 15 [23:24:43]RAPDU: 90 00 [23:24:43]wFMCommunicate OK [23:24:43]wFMCommunicate request_size=10 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 0D 02 02 05 E7 C0 71 B6 4E [23:24:43]Write to MH i2c: E2 0D 00 73 2F 80 0D 02 02 05 00 E7 C0 71 B6 4E 00 00 42 [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 73 2F 00 90 00 16 [23:24:43]RAPDU: 90 00 [23:24:43]wFMCommunicate OK [23:24:43]wFMCommunicate request_size=4 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 0D 03 02 [23:24:43]Write to MH i2c: E2 08 00 74 2F 80 0D 03 02 00 00 00 00 1E [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 0B 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 0B 00 74 2F 00 B2 F9 A1 70 7E CC 9A C7 90 00 86 [23:24:43]RAPDU: B2 F9 A1 70 7E CC 9A C7 90 00 [23:24:43]wFMCommunicate OK [23:24:43]SAM_PROTO_SignData done [23:24:43]FM_MakeSignedData done [23:24:43]CreateOFDProtocolMessage [23:24:43]wFMCommunicate request_size=4 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 11 00 00 [23:24:43]Write to MH i2c: E2 08 00 75 2F 80 11 00 00 00 00 00 00 1E [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 17 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 17 00 75 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [23:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:24:43]wFMCommunicate OK [23:24:43]CreateOFDProtocolMessage done [23:24:43]OFDSenderStorePacket 139807 [23:24:43]StoreOFDPacket docnum=139807 [23:24: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 4D CD 07 01 0D 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 01 00 00 F4 03 04 00 BC 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 22 02 00 35 04 06 00 57 E7 C0 71 B6 4E B2 F9 A1 70 7E CC 9A C7 [23:24:43]CheckFolder [23:24:43]dirname=/storage/ofd_packets [23:24:43]CheckFolder done [23:24:43]ProducePacketName [23:24:43]name=ofd_packets/00139807 [23:24:43]NVStorageSaveData ofd_packets/00139807 [23:24:43]File name is /storage/ofd_packets/00139807 [23:24:43]Write 301 bytes [23:24:43]NVStorageSaveData done [23:24:43]OFDSenderStorePacket done [23:24:43]KKMCreateOFDPacket done [23:24:43]NVStorageSaveData kkm_last_timestamp [23:24:43]File name is /storage/kkm_last_timestamp [23:24:43]Write 4 bytes [23:24:43]NVStorageSaveData done [23:24:43]ExternCall_PrintAddStr [23:24:43]wPrintStart [23:24:43]Write to MH i2c: 01 00 00 76 2F A5 [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: 01 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: 01 07 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: 01 07 00 76 2F 00 00 00 00 00 FF 0F BA [23:24:43]RasterBufferAndPrint [23:24:43]line Счет N : (1)1095548 [23:24:43]line ИНН: 02508201610067 [23:24:43]line Контрольно-Кассовый Чек [23:24:43]line ПРОДАЖА [23:24:43]line ТРК (МРК, ГНК) : 44 [23:24:43]line Товар: 2710124500 [23:24:43]line Аи-95-К-3 [23:24:43]line 13.480 * 74.20 [23:24:43]line = 1000.22 [23:24:43]line НДС 12% НСП 1% [23:24:43]line > о реализуемом товаре [23:24:43]line ОКРУГЛЕНИЕ: -0.22 [23:24:43]line ИТОГО: 1000.00 [23:24:43]line Внесено: 1000.00 [23:24:43]line СДАЧА: 0.00 [23:24:43]line НСП 1% : 8.85 [23:24:43]line НДС 12% : 106.22 [23:24:43]line Наличными: 1000.00 [23:24:43]line Безнал.: 0.00 [23:24:43]line Место: АЗС № 101 "Партнер Нефть" [23:24:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:24:43]line СНО: Общий режим [23:24:43]line Чек 284 31.10.2024 23:24 [23:24:43]line Смена: 557 ФФД: 1.0 [23:24:43]line ЗНМ: 0300000081 [23:24:43]line РНМ: 0000000000091631 [23:24:43]line Версия ККМ: 001 [23:24:43]line ФМ: 0000000000874669 [23:24:43]line ФД: 139807 [23:24:43]line ФПД: 96652877739598 [23:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232444&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139807&fm=96652877739598&tin=02508201610067®Number=0000000000091631&sum=100000 [23:24:43]OFD Sender: Processing packet 139807 [packets to send 34, broken 33] [23:24:43]ProducePacketName [23:24:43]name=ofd_packets/00139807 [23:24:43]OFD Sender: To server: pG, [23:24:43]CommunicateWithHost lk.salyk.kg:30040 [23:24:43]ConnectInit lk.salyk.kg [23:24:43]written 0, free lines is 4095 [23:24:43]Connected sock=11 [23:24: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 4D CD 07 01 0D 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 01 00 00 F4 03 04 00 BC 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 22 02 00 35 04 06 00 57 E7 C0 71 B6 4E B2 F9 A1 70 7E CC 9A C7 [23:24: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 48 61 47 00 26 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 22 02 00 F4 03 04 00 69 BD 23 67 B6 04 01 00 00 3C 19 51 62 F8 C1 E3 78 [23:24:44]CommunicateWithHost err = 0 [23:24:44]CheckOFDResponse [23:24:44]1017 (14) - 77093643461234 [23:24:44]1041 (16) - 0000000000874669 [23:24:44]1040 (4) - 139807 [23:24:44]1012 (4) - 31.10.2024 17:24 [23:24:44]1206 (1) - 0 [23:24:44]OFD Sender: Remove packet 139807 [23:24:44]ProducePacketName [23:24:44]name=ofd_packets/00139807 [23:24:44]NVStorageDeleteData [23:24:44]Write to MH i2c: 01 00 00 A1 2F D0 [23:24:44]Write i2c OK [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: 01 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: 01 07 00 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: 01 07 00 A1 2F 00 00 00 00 00 F6 0C D9 [23:24:44]RasterBufferAndPrint [23:24:44]line [23:24:44]line [23:24:44]line [23:24:44]line [23:24:44]line [23:24:44]written 0, free lines is 3324 [23:24:44]MH_Cut [23:24:44]Write to MH i2c: D1 01 00 A8 2F 01 A9 [23:24:44]Write i2c OK [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: D1 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: D1 01 00 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: D1 01 00 A8 2F 00 A8 [23:24:44]Write to MH i2c: 01 00 00 A9 2F D8 [23:24:44]Write i2c OK [23:24:44]MH_I2C_Read... [23:24:44]OFD Sender: No OFD packet to send [23:24:44]*** Cut start [23:24:44]*** Partial cut [23:24:44]*** CUTSNS_PIN = 1 [23:24:44]*** CUTSNS_PIN = 0 [23:24:45]*** Brake cut motor [23:24:45]Read from MH i2c: 01 [23:24:45]MH_I2C_Read... [23:24:45]*** Stop cut motor [23:24:45]*** Cut end [23:24:45]Read from MH i2c: 01 07 00 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 FF 0F ED [23:24:45]process_action close_receipt done [23:24:45]requested_data is exist [23:24:45]produce_requested_data [23:24:45]requested_item fm.sn is exist - process it [23:24:45]wFMCommunicate request_size=4 [23:24:45]MH_SAM_APDU [23:24:45]CAPDU: 80 11 00 00 [23:24:45]Write to MH i2c: E2 08 00 AA 2F 80 11 00 00 00 00 00 00 53 [23:24:45]Write i2c OK [23:24:45]MH_I2C_Read... [23:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:45]Read from MH i2c: E2 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: E2 17 00 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: E2 17 00 AA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AE [23:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:24:45]wFMCommunicate OK [23:24:45]requested_item fd.num is exist - process it [23:24:45]SAM_PROTO_GetFieldsCounters [23:24:45]wFMCommunicate request_size=4 [23:24:45]MH_SAM_APDU [23:24:45]CAPDU: 80 13 00 00 [23:24:45]Write to MH i2c: E2 08 00 AB 2F 80 13 00 00 00 00 00 00 56 [23:24:45]Write i2c OK [23:24:45]MH_I2C_Read... [23:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:45]Read from MH i2c: E2 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: E2 62 00 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: E2 62 00 AB 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1F 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [23:24: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 1F 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:45]wFMCommunicate OK [23:24:45]SAM_PROTO_GetFieldsCounters done [23:24:45]requested_item shift.num is exist - process it [23:24:45]requested_item shift.opened is exist - process it [23:24:45]req_shift_opened [23:24:45]FM_GetShiftState [23:24:45]SAM_PROTO_GetShiftState [23:24:45]wFMCommunicate request_size=4 [23:24:45]MH_SAM_APDU [23:24:45]CAPDU: 80 13 01 00 [23:24:45]Write to MH i2c: E2 08 00 AC 2F 80 13 01 00 00 00 00 00 58 [23:24:45]Write i2c OK [23:24:45]MH_I2C_Read... [23:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:45]Read from MH i2c: E2 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: E2 0E 00 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: E2 0E 00 AC 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 81 [23:24:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:24:45]wFMCommunicate OK [23:24:45]SAM_PROTO_GetShiftState done [23:24:45]FM_GetShiftState done [23:24:45]req_shift_opened done [23:24:45]requested_item shift.open_date is exist - process it [23:24:45]req_shift_open_date [23:24:45]req_shift_open_date done [23:24:45]produce_requested_data done [23:24:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139807,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:24:45]process_action_free close_receipt [23:24:45]json_value_free [23:24:45]json_value_free done [23:24:45]process_json_proto returns [23:24:45]Send response to host [23:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139807,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:24:45]free response buf [23:24:45]execute_script done [23:24:45]execute_script returns [23:24:45]free content buf [23:24:45]Sock 9.Close socket [23:24:45]Sock 9.Thread stoped [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:08]accept exits with 7 [23:25:08]New connection [23:25:08]New thread 3066654052 created [23:25:08]Thread 3066510692 joined [23:25:08]Waiting for new connection... [23:25:08] Sock 7.Parse request [23:25:08]Sock 7.Check first char [23:25:08]Sock 7.First char is OK [23:25:08]request: POST /json_proto HTTP/1.0 [23:25:08]Method: POST [23:25:08]URL: /json_proto [23:25:08]Method is POST - this is cgi request [23:25:08]url: /json_proto [23:25:08]query_string will be loaded in cgi processing [23:25:08]execute_cgi json_proto POST (null) [23:25:08]execute_cgi path=json_proto method=POST [23:25:08]POST find Content-Length [23:25:08]Host: 172.17.50.196:8080 [23:25:08]Content-Length: 693 [23:25:08]Content-Type: application/json [23:25:08] [23:25:08]POST finish read [23:25:08]Found Content-Length = 693 [23:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335640", "tax_sys" : 0, "items" : [ { "code": "4601025111724", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0433\u0440\u0430\u043D\u0430\u0442 0,5", "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" ] } } [23:25:08]execute_script... [23:25: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)335640", "tax_sys" : 0, "items" : [ { "code": "4601025111724", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0433\u0440\u0430\u043D\u0430\u0442 0,5", "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" ] } } [23:25:08]POST & json_proto [23:25:08]process_json_proto [23:25:08]json parsed OK: [23:25:08]protocol is kg_v1.0 [23:25:08]action value=close_receipt [23:25:08]process_action close_receipt [23:25:08]cmd_close_receipt [23:25:08]MH_GetDate [23:25:08]Write to MH i2c: F0 00 00 AD 2F CB [23:25:08]Write i2c OK [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: F0 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: F0 09 00 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: F0 09 00 AD 2F 00 D7 11 24 67 72 0D 1C 67 49 [23:25:08]GetLastDocTimeStamp 1730417084 [23:25:08]current date 1730417111 [23:25:08]FM_GetShiftState [23:25:08]SAM_PROTO_GetShiftState [23:25:08]wFMCommunicate request_size=4 [23:25:08]MH_SAM_APDU [23:25:08]CAPDU: 80 13 01 00 [23:25:08]Write to MH i2c: E2 08 00 AE 2F 80 13 01 00 00 00 00 00 5A [23:25:08]Write i2c OK [23:25:08]MH_I2C_Read... [23:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:08]Read from MH i2c: E2 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 0E 00 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 0E 00 AE 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 83 [23:25:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:25:08]wFMCommunicate OK [23:25:08]SAM_PROTO_GetShiftState done [23:25:08]FM_GetShiftState done [23:25:08]opened in 1730332621 [23:25:08]opened+sec_in_day 1730419021 [23:25:08]quantity*price = 8500 [23:25:08]sum+1 = 8501 [23:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 285 31.10.2024 23:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139808 ФПД: 278595693271694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139808&fm=278595693271694&tin=02508201610067®Number=0000000000091631&sum=8500 0 [23:25:09]StoreToDocumentArchive [23:25:09]shift 557 fd 139808 [23:25:09]save to /storage/0557/doc_00139808 [23:25:09]save last doc name /storage/0557/doc_00139808 to /storage/kkm_last_doc_name [23:25:09]save OK [23:25:09]Clear old archive folders... [23:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=292 [23:25:09]tlvbuf is 00B60F60 [23:25:09]SAM_PROTO_ClearQueue [23:25:09]wFMCommunicate request_size=4 [23:25:09]MH_SAM_APDU [23:25:09]CAPDU: 80 09 00 00 [23:25:09]Write to MH i2c: E2 08 00 BB 2F 80 09 00 00 00 00 00 00 5C [23:25:09]Write i2c OK [23:25:09]MH_I2C_Read... [23:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:09]Read from MH i2c: E2 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 BB 2F 00 90 00 5E [23:25:09]RAPDU: 90 00 [23:25:09]wFMCommunicate OK [23:25:09]SAM_PROTO_ClearQueue done [23:25:09]KKMCreateOFDPacket [23:25:09]OFDProtocolAddRootSTLVToBuf [23:25:09]FM_MakeSignedData [23:25:09]FM_MakeSignedData [23:25:09]SAM_PROTO_SignData [23:25:09]wFMCommunicate request_size=4 [23:25:09]MH_SAM_APDU [23:25:09]CAPDU: 80 0D 01 02 [23:25:09]Write to MH i2c: E2 08 00 BC 2F 80 0D 01 02 00 00 00 00 64 [23:25:09]Write i2c OK [23:25:09]MH_I2C_Read... [23:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:09]Read from MH i2c: E2 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 BC 2F 00 90 00 5F [23:25:09]RAPDU: 90 00 [23:25:09]wFMCommunicate OK [23:25:09]wFMCommunicate request_size=255 [23:25:09]MH_SAM_APDU [23:25:09]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 31 37 32 34 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 20 30 2C 35 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 1D 01 00 00 F4 03 04 00 D7 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [23:25:09]Write to MH i2c: E2 02 01 BD 2F 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 31 37 32 34 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 20 30 2C 35 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 1D 01 00 00 F4 03 04 00 D7 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 A4 [23:25:09]Write i2c OK [23:25:09]MH_I2C_Read... [23:25:09]OFD Sender: No OFD packet to send [23:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:09]Read from MH i2c: E2 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 BD 2F 00 90 00 60 [23:25:09]RAPDU: 90 00 [23:25:09]wFMCommunicate OK [23:25:09]wFMCommunicate request_size=51 [23:25:09]MH_SAM_APDU [23:25:09]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 22 02 00 35 04 06 00 FD 61 9D 55 5A 8E [23:25:09]Write to MH i2c: E2 36 00 BE 2F 80 0D 02 02 2E 00 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 22 02 00 35 04 06 00 FD 61 9D 55 5A 8E 00 00 77 [23:25:09]Write i2c OK [23:25:09]MH_I2C_Read... [23:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:09]Read from MH i2c: E2 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 03 00 BE 2F 00 90 00 61 [23:25:09]RAPDU: 90 00 [23:25:09]wFMCommunicate OK [23:25:09]wFMCommunicate request_size=4 [23:25:09]MH_SAM_APDU [23:25:09]CAPDU: 80 0D 03 02 [23:25:09]Write to MH i2c: E2 08 00 BF 2F 80 0D 03 02 00 00 00 00 69 [23:25:09]Write i2c OK [23:25:09]MH_I2C_Read... [23:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:09]Read from MH i2c: E2 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 0B 00 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 0B 00 BF 2F 00 A0 03 68 0C 88 D5 50 68 90 00 96 [23:25:09]RAPDU: A0 03 68 0C 88 D5 50 68 90 00 [23:25:09]wFMCommunicate OK [23:25:09]SAM_PROTO_SignData done [23:25:09]FM_MakeSignedData done [23:25:09]CreateOFDProtocolMessage [23:25:09]wFMCommunicate request_size=4 [23:25:09]MH_SAM_APDU [23:25:09]CAPDU: 80 11 00 00 [23:25:09]Write to MH i2c: E2 08 00 C0 2F 80 11 00 00 00 00 00 00 69 [23:25:09]Write i2c OK [23:25:09]MH_I2C_Read... [23:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:09]Read from MH i2c: E2 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 17 00 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: E2 17 00 C0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C4 [23:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:25:09]wFMCommunicate OK [23:25:09]CreateOFDProtocolMessage done [23:25:09]OFDSenderStorePacket 139808 [23:25:09]StoreOFDPacket docnum=139808 [23:25: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 38 01 00 00 3C 93 30 01 E8 73 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 31 37 32 34 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 20 30 2C 35 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 1D 01 00 00 F4 03 04 00 D7 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 22 02 00 35 04 06 00 FD 61 9D 55 5A 8E A0 03 68 0C 88 D5 50 68 [23:25:09]CheckFolder [23:25:09]dirname=/storage/ofd_packets [23:25:09]CheckFolder done [23:25:09]ProducePacketName [23:25:09]name=ofd_packets/00139808 [23:25:09]NVStorageSaveData ofd_packets/00139808 [23:25:09]File name is /storage/ofd_packets/00139808 [23:25:09]Write 342 bytes [23:25:09]NVStorageSaveData done [23:25:09]OFDSenderStorePacket done [23:25:09]KKMCreateOFDPacket done [23:25:09]NVStorageSaveData kkm_last_timestamp [23:25:09]File name is /storage/kkm_last_timestamp [23:25:09]Write 4 bytes [23:25:09]NVStorageSaveData done [23:25:09]ExternCall_PrintAddStr [23:25:09]wPrintStart [23:25:09]Write to MH i2c: 01 00 00 C1 2F F0 [23:25:09]Write i2c OK [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: 01 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: 01 07 00 [23:25:09]MH_I2C_Read... [23:25:09]Read from MH i2c: 01 07 00 C1 2F 00 00 00 00 00 FF 0F 05 [23:25:09]RasterBufferAndPrint [23:25:09]line Счет N : (3)335640 [23:25:09]line ИНН: 02508201610067 [23:25:09]line Контрольно-Кассовый Чек [23:25:09]line ПРОДАЖА [23:25:09]line Товар: 4601025111724 [23:25:09]line Напиток Фрутмотив гранат 0,5 [23:25:09]line 1.000 * 85.00 [23:25:09]line = 85.00 [23:25:09]line НДС 12% НСП 1% [23:25:09]line > о реализуемом товаре [23:25:09]line ИТОГО: 85.00 [23:25:09]line НСП 1% : 0.75 [23:25:09]line НДС 12% : 9.03 [23:25:09]line Наличными: 85.00 [23:25:09]line Безнал.: 0.00 [23:25:09]line Место: АЗС № 101 "Партнер Нефть" [23:25:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:25:09]line СНО: Общий режим [23:25:09]line Чек 285 31.10.2024 23:25 [23:25:09]line Смена: 557 ФФД: 1.0 [23:25:09]line ЗНМ: 0300000081 [23:25:09]line РНМ: 0000000000091631 [23:25:09]line Версия ККМ: 001 [23:25:09]line ФМ: 0000000000874669 [23:25:09]line ФД: 139808 [23:25:09]line ФПД: 278595693271694 [23:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232511&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139808&fm=278595693271694&tin=02508201610067®Number=0000000000091631&sum=8500 [23:25:10]OFD Sender: Processing packet 139808 [packets to send 34, broken 33] [23:25:10]ProducePacketName [23:25:10]name=ofd_packets/00139808 [23:25:10]OFD Sender: To server: pG, [23:25:10]CommunicateWithHost lk.salyk.kg:30040 [23:25:10]ConnectInit lk.salyk.kg [23:25:10]line 0 [23:25:10]written 0, free lines is 4095 [23:25:10]Connected sock=10 [23:25: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 38 01 00 00 3C 93 30 01 E8 73 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 31 37 32 34 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 20 30 2C 35 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 1D 01 00 00 F4 03 04 00 D7 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 22 02 00 35 04 06 00 FD 61 9D 55 5A 8E A0 03 68 0C 88 D5 50 68 [23:25: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 9F 37 47 00 9B 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 22 02 00 F4 03 04 00 83 BD 23 67 B6 04 01 00 00 B1 5B 8F 08 7D EF B7 9C [23:25:10]CommunicateWithHost err = 0 [23:25:10]CheckOFDResponse [23:25:10]1017 (14) - 77093643461234 [23:25:10]1041 (16) - 0000000000874669 [23:25:10]1040 (4) - 139808 [23:25:10]1012 (4) - 31.10.2024 17:25 [23:25:10]1206 (1) - 0 [23:25:10]OFD Sender: Remove packet 139808 [23:25:10]ProducePacketName [23:25:10]name=ofd_packets/00139808 [23:25:10]NVStorageDeleteData [23:25:10]Write to MH i2c: 01 00 00 EA 2F 19 [23:25:10]Write i2c OK [23:25:10]MH_I2C_Read... [23:25:10]Read from MH i2c: 01 [23:25:10]MH_I2C_Read... [23:25:10]Read from MH i2c: 01 07 00 [23:25:10]MH_I2C_Read... [23:25:10]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 FE 0C 2A [23:25:10]RasterBufferAndPrint [23:25:10]line [23:25:10]line [23:25:10]line [23:25:10]line [23:25:10]line [23:25:10]written 0, free lines is 3332 [23:25:10]MH_Cut [23:25:10]Write to MH i2c: D1 01 00 F1 2F 01 F2 [23:25:10]Write i2c OK [23:25:10]MH_I2C_Read... [23:25:10]Read from MH i2c: D1 [23:25:10]MH_I2C_Read... [23:25:10]Read from MH i2c: D1 01 00 [23:25:10]MH_I2C_Read... [23:25:10]Read from MH i2c: D1 01 00 F1 2F 00 F1 [23:25:10]Write to MH i2c: 01 00 00 F2 2F 21 [23:25:10]Write i2c OK [23:25:10]MH_I2C_Read... [23:25:11]OFD Sender: No OFD packet to send [23:25:11]*** Cut start [23:25:11]*** Partial cut [23:25:11]*** CUTSNS_PIN = 1 [23:25:11]*** CUTSNS_PIN = 0 [23:25:11]*** Brake cut motor [23:25:12]Read from MH i2c: 01 [23:25:12]MH_I2C_Read... [23:25:12]*** Stop cut motor [23:25:12]*** Cut end [23:25:12]Read from MH i2c: 01 07 00 [23:25:12]MH_I2C_Read... [23:25:12]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 FF 0F 36 [23:25:12]process_action close_receipt done [23:25:12]requested_data is exist [23:25:12]produce_requested_data [23:25:12]requested_item fm.sn is exist - process it [23:25:12]wFMCommunicate request_size=4 [23:25:12]MH_SAM_APDU [23:25:12]CAPDU: 80 11 00 00 [23:25:12]Write to MH i2c: E2 08 00 F3 2F 80 11 00 00 00 00 00 00 9C [23:25:12]Write i2c OK [23:25:12]MH_I2C_Read... [23:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:12]Read from MH i2c: E2 [23:25:12]MH_I2C_Read... [23:25:12]Read from MH i2c: E2 17 00 [23:25:12]MH_I2C_Read... [23:25:12]Read from MH i2c: E2 17 00 F3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F7 [23:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:25:12]wFMCommunicate OK [23:25:12]requested_item fd.num is exist - process it [23:25:12]SAM_PROTO_GetFieldsCounters [23:25:12]wFMCommunicate request_size=4 [23:25:12]MH_SAM_APDU [23:25:12]CAPDU: 80 13 00 00 [23:25:12]Write to MH i2c: E2 08 00 F4 2F 80 13 00 00 00 00 00 00 9F [23:25:12]Write i2c OK [23:25:12]MH_I2C_Read... [23:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:12]Read from MH i2c: E2 [23:25:12]MH_I2C_Read... [23:25:12]Read from MH i2c: E2 62 00 [23:25:12]MH_I2C_Read... [23:25:12]Read from MH i2c: E2 62 00 F4 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 20 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [23:25: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 20 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:12]wFMCommunicate OK [23:25:12]SAM_PROTO_GetFieldsCounters done [23:25:12]requested_item shift.num is exist - process it [23:25:12]requested_item shift.opened is exist - process it [23:25:12]req_shift_opened [23:25:12]FM_GetShiftState [23:25:12]SAM_PROTO_GetShiftState [23:25:12]wFMCommunicate request_size=4 [23:25:12]MH_SAM_APDU [23:25:12]CAPDU: 80 13 01 00 [23:25:12]Write to MH i2c: E2 08 00 F5 2F 80 13 01 00 00 00 00 00 A1 [23:25:12]Write i2c OK [23:25:12]MH_I2C_Read... [23:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:12]Read from MH i2c: E2 [23:25:12]MH_I2C_Read... [23:25:12]Read from MH i2c: E2 0E 00 [23:25:12]MH_I2C_Read... [23:25:12]Read from MH i2c: E2 0E 00 F5 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CA [23:25:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:25:12]wFMCommunicate OK [23:25:12]SAM_PROTO_GetShiftState done [23:25:12]FM_GetShiftState done [23:25:12]req_shift_opened done [23:25:12]requested_item shift.open_date is exist - process it [23:25:12]req_shift_open_date [23:25:12]req_shift_open_date done [23:25:12]produce_requested_data done [23:25:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139808,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:25:12]process_action_free close_receipt [23:25:12]json_value_free [23:25:12]json_value_free done [23:25:12]process_json_proto returns [23:25:12]Send response to host [23:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139808,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:25:12]free response buf [23:25:12]execute_script done [23:25:12]execute_script returns [23:25:12]free content buf [23:25:12]Sock 7.Close socket [23:25:12]Sock 7.Thread stoped [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:41]accept exits with 9 [23:25:41]New connection [23:25:41]New thread 3066510692 created [23:25:41]Thread 3066654052 joined [23:25:41]Waiting for new connection... [23:25:41] Sock 9.Parse request [23:25:41]Sock 9.Check first char [23:25:41]Sock 9.First char is OK [23:25:41]request: POST /json_proto HTTP/1.0 [23:25:41]Method: POST [23:25:41]URL: /json_proto [23:25:41]Method is POST - this is cgi request [23:25:41]url: /json_proto [23:25:41]query_string will be loaded in cgi processing [23:25:41]execute_cgi json_proto POST (null) [23:25:41]execute_cgi path=json_proto method=POST [23:25:41]POST find Content-Length [23:25:41]Host: 172.17.50.196:8080 [23:25:41]Content-Length: 688 [23:25:41]Content-Type: application/json [23:25:41] [23:25:41]POST finish read [23:25:41]Found Content-Length = 688 [23:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:41]execute_script... [23:25: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)1095549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:41]POST & json_proto [23:25:41]process_json_proto [23:25:41]json parsed OK: [23:25:41]protocol is kg_v1.0 [23:25:41]action value=close_receipt [23:25:41]process_action close_receipt [23:25:41]cmd_close_receipt [23:25:41]MH_GetDate [23:25:41]Write to MH i2c: F0 00 00 F6 2F 14 [23:25:41]Write i2c OK [23:25:41]MH_I2C_Read... [23:25:41]Read from MH i2c: F0 [23:25:41]MH_I2C_Read... [23:25:41]Read from MH i2c: F0 09 00 [23:25:41]MH_I2C_Read... [23:25:41]Read from MH i2c: F0 09 00 F6 2F 00 F8 11 24 67 72 0D 1C 67 B3 [23:25:41]GetLastDocTimeStamp 1730417111 [23:25:41]current date 1730417144 [23:25:41]FM_GetShiftState [23:25:41]SAM_PROTO_GetShiftState [23:25:41]wFMCommunicate request_size=4 [23:25:41]MH_SAM_APDU [23:25:41]CAPDU: 80 13 01 00 [23:25:41]Write to MH i2c: E2 08 00 F7 2F 80 13 01 00 00 00 00 00 A3 [23:25:41]Write i2c OK [23:25:41]MH_I2C_Read... [23:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:41]Read from MH i2c: E2 [23:25:41]MH_I2C_Read... [23:25:41]Read from MH i2c: E2 0E 00 [23:25:41]MH_I2C_Read... [23:25:41]Read from MH i2c: E2 0E 00 F7 2F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CC [23:25:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:25:41]wFMCommunicate OK [23:25:41]SAM_PROTO_GetShiftState done [23:25:41]FM_GetShiftState done [23:25:41]opened in 1730332621 [23:25:41]opened+sec_in_day 1730419021 [23:25:41]quantity*price = 200025 [23:25:41]sum+1 = 200026 [23:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 286 31.10.2024 23:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139809 ФПД: 182851638160303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232544&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139809&fm=182851638160303&tin=02508201610067®Number=0000000000091631&sum=200000 [23:25:42]StoreToDocumentArchive [23:25:42]shift 557 fd 139809 [23:25:42]save to /storage/0557/doc_00139809 [23:25:42]save last doc name /storage/0557/doc_00139809 to /storage/kkm_last_doc_name [23:25:42]save OK [23:25:42]Clear old archive folders... [23:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:25:42]tlvbuf is B6F0F230 [23:25:42]SAM_PROTO_ClearQueue [23:25:42]wFMCommunicate request_size=4 [23:25:42]MH_SAM_APDU [23:25:42]CAPDU: 80 09 00 00 [23:25:42]Write to MH i2c: E2 08 00 04 30 80 09 00 00 00 00 00 00 A6 [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:42]Read from MH i2c: E2 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 04 30 00 90 00 A8 [23:25:42]RAPDU: 90 00 [23:25:42]wFMCommunicate OK [23:25:42]SAM_PROTO_ClearQueue done [23:25:42]KKMCreateOFDPacket [23:25:42]OFDProtocolAddRootSTLVToBuf [23:25:42]FM_MakeSignedData [23:25:42]FM_MakeSignedData [23:25:42]SAM_PROTO_SignData [23:25:42]wFMCommunicate request_size=4 [23:25:42]MH_SAM_APDU [23:25:42]CAPDU: 80 0D 01 02 [23:25:42]Write to MH i2c: E2 08 00 05 30 80 0D 01 02 00 00 00 00 AE [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:42]Read from MH i2c: E2 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 05 30 00 90 00 A9 [23:25:42]RAPDU: 90 00 [23:25:42]wFMCommunicate OK [23:25:42]wFMCommunicate request_size=255 [23:25:42]MH_SAM_APDU [23:25:42]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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1E 01 00 00 F4 03 04 00 F8 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 22 02 00 35 04 06 00 [23:25:42]Write to MH i2c: E2 02 01 06 30 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1E 01 00 00 F4 03 04 00 F8 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 22 02 00 35 04 06 00 00 00 30 [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:42]Read from MH i2c: E2 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 06 30 00 90 00 AA [23:25:42]RAPDU: 90 00 [23:25:42]wFMCommunicate OK [23:25:42]wFMCommunicate request_size=11 [23:25:42]MH_SAM_APDU [23:25:42]CAPDU: 80 0D 02 02 06 A6 4D 76 F0 6B AF [23:25:42]Write to MH i2c: E2 0E 00 07 30 80 0D 02 02 06 00 A6 4D 76 F0 6B AF 00 00 30 [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:42]Read from MH i2c: E2 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 03 00 07 30 00 90 00 AB [23:25:42]RAPDU: 90 00 [23:25:42]wFMCommunicate OK [23:25:42]wFMCommunicate request_size=4 [23:25:42]MH_SAM_APDU [23:25:42]CAPDU: 80 0D 03 02 [23:25:42]Write to MH i2c: E2 08 00 08 30 80 0D 03 02 00 00 00 00 B3 [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:43]Read from MH i2c: E2 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: E2 0B 00 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: E2 0B 00 08 30 00 95 24 81 C9 D6 2D A6 D4 90 00 34 [23:25:43]RAPDU: 95 24 81 C9 D6 2D A6 D4 90 00 [23:25:43]wFMCommunicate OK [23:25:43]SAM_PROTO_SignData done [23:25:43]FM_MakeSignedData done [23:25:43]CreateOFDProtocolMessage [23:25:43]wFMCommunicate request_size=4 [23:25:43]MH_SAM_APDU [23:25:43]CAPDU: 80 11 00 00 [23:25:43]Write to MH i2c: E2 08 00 09 30 80 11 00 00 00 00 00 00 B3 [23:25:43]Write i2c OK [23:25:43]MH_I2C_Read... [23:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:43]Read from MH i2c: E2 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: E2 17 00 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: E2 17 00 09 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [23:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:25:43]wFMCommunicate OK [23:25:43]CreateOFDProtocolMessage done [23:25:43]OFDSenderStorePacket 139809 [23:25:43]StoreOFDPacket docnum=139809 [23:25: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 10 01 00 00 23 6D 08 01 2D 00 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1E 01 00 00 F4 03 04 00 F8 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 22 02 00 35 04 06 00 A6 4D 76 F0 6B AF 95 24 81 C9 D6 2D A6 D4 [23:25:43]CheckFolder [23:25:43]dirname=/storage/ofd_packets [23:25:43]CheckFolder done [23:25:43]ProducePacketName [23:25:43]name=ofd_packets/00139809 [23:25:43]NVStorageSaveData ofd_packets/00139809 [23:25:43]File name is /storage/ofd_packets/00139809 [23:25:43]Write 302 bytes [23:25:43]NVStorageSaveData done [23:25:43]OFDSenderStorePacket done [23:25:43]KKMCreateOFDPacket done [23:25:43]NVStorageSaveData kkm_last_timestamp [23:25:43]File name is /storage/kkm_last_timestamp [23:25:43]Write 4 bytes [23:25:43]NVStorageSaveData done [23:25:43]ExternCall_PrintAddStr [23:25:43]wPrintStart [23:25:43]Write to MH i2c: 01 00 00 0A 30 3A [23:25:43]Write i2c OK [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: 01 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: 01 07 00 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: 01 07 00 0A 30 00 00 00 00 00 FF 0F 4F [23:25:43]RasterBufferAndPrint [23:25:43]line Счет N : (1)1095549 [23:25:43]line ИНН: 02508201610067 [23:25:43]line Контрольно-Кассовый Чек [23:25:43]line ПРОДАЖА [23:25:43]line ТРК (МРК, ГНК) : 31 [23:25:43]line Товар: 2710194210 [23:25:43]line ДТ(л)-К-2 [23:25:43]line 26.250 * 76.20 [23:25:43]line = 2000.25 [23:25:43]line НДС 12% НСП 1% [23:25:43]line > о реализуемом товаре [23:25:43]line ОКРУГЛЕНИЕ: -0.25 [23:25:43]line ИТОГО: 2000.00 [23:25:43]line Внесено: 2000.00 [23:25:43]line СДАЧА: 0.00 [23:25:43]line НСП 1% : 17.70 [23:25:43]line НДС 12% : 212.42 [23:25:43]line Наличными: 2000.00 [23:25:43]line Безнал.: 0.00 [23:25:43]line Место: АЗС № 101 "Партнер Нефть" [23:25:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:25:43]line СНО: Общий режим [23:25:43]line Чек 286 31.10.2024 23:25 [23:25:43]line Смена: 557 ФФД: 1.0 [23:25:43]line ЗНМ: 0300000081 [23:25:43]line РНМ: 0000000000091631 [23:25:43]line Версия ККМ: 001 [23:25:43]line ФМ: 0000000000874669 [23:25:43]line ФД: 139809 [23:25:43]line ФПД: 182851638160303 [23:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232544&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139809&fm=182851638160303&tin=02508201610067®Number=0000000000091631&sum=200000 [23:25:43]OFD Sender: Processing packet 139809 [packets to send 34, broken 33] [23:25:43]ProducePacketName [23:25:43]name=ofd_packets/00139809 [23:25:43]OFD Sender: To server: pG, [23:25:43]CommunicateWithHost lk.salyk.kg:30040 [23:25:43]ConnectInit lk.salyk.kg [23:25:43]written 0, free lines is 4095 [23:25:43]Connected sock=10 [23:25: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 10 01 00 00 23 6D 08 01 2D 00 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1E 01 00 00 F4 03 04 00 F8 11 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 22 02 00 35 04 06 00 A6 4D 76 F0 6B AF 95 24 81 C9 D6 2D A6 D4 [23:25:43]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 CD 47 00 55 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 22 02 00 F4 03 04 00 A4 BD 23 67 B6 04 01 00 00 FC 3D B1 B8 5C 80 EA 7D [23:25:43]CommunicateWithHost err = 0 [23:25:43]CheckOFDResponse [23:25:43]1017 (14) - 77093643461234 [23:25:43]1041 (16) - 0000000000874669 [23:25:43]1040 (4) - 139809 [23:25:43]1012 (4) - 31.10.2024 17:25 [23:25:43]1206 (1) - 0 [23:25:43]OFD Sender: Remove packet 139809 [23:25:43]ProducePacketName [23:25:43]name=ofd_packets/00139809 [23:25:43]NVStorageDeleteData [23:25:43]Write to MH i2c: 01 00 00 35 30 65 [23:25:43]Write i2c OK [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: 01 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: 01 07 00 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: 01 07 00 35 30 00 00 00 00 00 EA 0C 62 [23:25:43]RasterBufferAndPrint [23:25:43]line [23:25:43]line [23:25:43]line [23:25:43]line [23:25:43]line [23:25:43]written 0, free lines is 3312 [23:25:43]MH_Cut [23:25:43]Write to MH i2c: D1 01 00 3C 30 01 3E [23:25:43]Write i2c OK [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: D1 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: D1 01 00 [23:25:43]MH_I2C_Read... [23:25:43]Read from MH i2c: D1 01 00 3C 30 00 3D [23:25:43]Write to MH i2c: 01 00 00 3D 30 6D [23:25:43]Write i2c OK [23:25:43]MH_I2C_Read... [23:25:44]OFD Sender: No OFD packet to send [23:25:44]*** Cut start [23:25:44]*** Partial cut [23:25:44]*** CUTSNS_PIN = 1 [23:25:44]*** CUTSNS_PIN = 0 [23:25:44]*** Brake cut motor [23:25:45]Read from MH i2c: 01 [23:25:45]MH_I2C_Read... [23:25:45]*** Stop cut motor [23:25:45]*** Cut end [23:25:45]Read from MH i2c: 01 07 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: 01 07 00 3D 30 00 00 00 00 00 FF 0F 82 [23:25:45]process_action close_receipt done [23:25:45]requested_data is exist [23:25:45]produce_requested_data [23:25:45]requested_item fm.sn is exist - process it [23:25:45]wFMCommunicate request_size=4 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 11 00 00 [23:25:45]Write to MH i2c: E2 08 00 3E 30 80 11 00 00 00 00 00 00 E8 [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 17 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 17 00 3E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 43 [23:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:25:45]wFMCommunicate OK [23:25:45]requested_item fd.num is exist - process it [23:25:45]SAM_PROTO_GetFieldsCounters [23:25:45]wFMCommunicate request_size=4 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 13 00 00 [23:25:45]Write to MH i2c: E2 08 00 3F 30 80 13 00 00 00 00 00 00 EB [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 62 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 62 00 3F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 21 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [23:25: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 21 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:45]wFMCommunicate OK [23:25:45]SAM_PROTO_GetFieldsCounters done [23:25:45]requested_item shift.num is exist - process it [23:25:45]requested_item shift.opened is exist - process it [23:25:45]req_shift_opened [23:25:45]FM_GetShiftState [23:25:45]SAM_PROTO_GetShiftState [23:25:45]wFMCommunicate request_size=4 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 13 01 00 [23:25:45]Write to MH i2c: E2 08 00 40 30 80 13 01 00 00 00 00 00 ED [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 0E 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 0E 00 40 30 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 16 [23:25:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:25:45]wFMCommunicate OK [23:25:45]SAM_PROTO_GetShiftState done [23:25:45]FM_GetShiftState done [23:25:45]req_shift_opened done [23:25:45]requested_item shift.open_date is exist - process it [23:25:45]req_shift_open_date [23:25:45]req_shift_open_date done [23:25:45]produce_requested_data done [23:25:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139809,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:25:45]process_action_free close_receipt [23:25:45]json_value_free [23:25:45]json_value_free done [23:25:45]process_json_proto returns [23:25:45]Send response to host [23:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139809,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:25:45]free response buf [23:25:45]execute_script done [23:25:45]execute_script returns [23:25:45]free content buf [23:25:45]Sock 9.Close socket [23:25:45]Sock 9.Thread stoped [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:22]accept exits with 7 [23:27:22]New connection [23:27:22]New thread 3066654052 created [23:27:22]Thread 3066510692 joined [23:27:22]Waiting for new connection... [23:27:22] Sock 7.Parse request [23:27:22]Sock 7.Check first char [23:27:22]Sock 7.First char is OK [23:27:22]request: POST /json_proto HTTP/1.0 [23:27:22]Method: POST [23:27:22]URL: /json_proto [23:27:22]Method is POST - this is cgi request [23:27:22]url: /json_proto [23:27:22]query_string will be loaded in cgi processing [23:27:22]execute_cgi json_proto POST (null) [23:27:22]execute_cgi path=json_proto method=POST [23:27:22]POST find Content-Length [23:27:22]Host: 172.17.50.196:8080 [23:27:22]Content-Length: 881 [23:27:22]Content-Type: application/json [23:27:22] [23:27:22]POST finish read [23:27:22]Found Content-Length = 881 [23:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335641", "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": "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" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:22]execute_script... [23:27: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)335641", "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": "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" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:22]POST & json_proto [23:27:22]process_json_proto [23:27:22]json parsed OK: [23:27:22]protocol is kg_v1.0 [23:27:22]action value=close_receipt [23:27:22]process_action close_receipt [23:27:22]cmd_close_receipt [23:27:22]MH_GetDate [23:27:22]Write to MH i2c: F0 00 00 41 30 60 [23:27:22]Write i2c OK [23:27:22]MH_I2C_Read... [23:27:22]Read from MH i2c: F0 [23:27:22]MH_I2C_Read... [23:27:22]Read from MH i2c: F0 09 00 [23:27:22]MH_I2C_Read... [23:27:22]Read from MH i2c: F0 09 00 41 30 00 5D 12 24 67 72 0D 1C 67 65 [23:27:22]GetLastDocTimeStamp 1730417144 [23:27:22]current date 1730417245 [23:27:22]FM_GetShiftState [23:27:22]SAM_PROTO_GetShiftState [23:27:22]wFMCommunicate request_size=4 [23:27:22]MH_SAM_APDU [23:27:22]CAPDU: 80 13 01 00 [23:27:22]Write to MH i2c: E2 08 00 42 30 80 13 01 00 00 00 00 00 EF [23:27:22]Write i2c OK [23:27:22]MH_I2C_Read... [23:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:22]Read from MH i2c: E2 [23:27:22]MH_I2C_Read... [23:27:22]Read from MH i2c: E2 0E 00 [23:27:22]MH_I2C_Read... [23:27:22]Read from MH i2c: E2 0E 00 42 30 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 18 [23:27:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:27:22]wFMCommunicate OK [23:27:22]SAM_PROTO_GetShiftState done [23:27:22]FM_GetShiftState done [23:27:22]opened in 1730332621 [23:27:22]opened+sec_in_day 1730419021 [23:27:22]quantity*price = 4900 [23:27:22]sum+1 = 4901 [23:27:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.45 НДС 12% : 17.41 Наличными: 164.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 287 31.10.2024 23:27 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139810 ФПД: 111644485085536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232725&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139810&fm=111644485085536&tin=02508201610067®Number=0000000000091631&sum=16400 0 [23:27:23]StoreToDocumentArchive [23:27:23]shift 557 fd 139810 [23:27:23]save to /storage/0557/doc_00139810 [23:27:23]save last doc name /storage/0557/doc_00139810 to /storage/kkm_last_doc_name [23:27:23]save OK [23:27:23]Clear old archive folders... [23:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=389 [23:27:23]tlvbuf is B6E91350 [23:27:23]SAM_PROTO_ClearQueue [23:27:23]wFMCommunicate request_size=4 [23:27:23]MH_SAM_APDU [23:27:23]CAPDU: 80 09 00 00 [23:27:23]Write to MH i2c: E2 08 00 4F 30 80 09 00 00 00 00 00 00 F1 [23:27:23]Write i2c OK [23:27:23]MH_I2C_Read... [23:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:23]Read from MH i2c: E2 [23:27:23]MH_I2C_Read... [23:27:23]Read from MH i2c: E2 03 00 [23:27:23]MH_I2C_Read... [23:27:23]Read from MH i2c: E2 03 00 4F 30 00 90 00 F3 [23:27:23]RAPDU: 90 00 [23:27:23]wFMCommunicate OK [23:27:23]SAM_PROTO_ClearQueue done [23:27:23]KKMCreateOFDPacket [23:27:23]OFDProtocolAddRootSTLVToBuf [23:27:23]FM_MakeSignedData [23:27:23]FM_MakeSignedData [23:27:23]SAM_PROTO_SignData [23:27:23]wFMCommunicate request_size=4 [23:27:23]MH_SAM_APDU [23:27:23]CAPDU: 80 0D 01 02 [23:27:23]Write to MH i2c: E2 08 00 50 30 80 0D 01 02 00 00 00 00 F9 [23:27:23]Write i2c OK [23:27:23]MH_I2C_Read... [23:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:23]Read from MH i2c: E2 [23:27:23]MH_I2C_Read... [23:27:23]Read from MH i2c: E2 03 00 [23:27:23]MH_I2C_Read... [23:27:23]Read from MH i2c: E2 03 00 50 30 00 90 00 F4 [23:27:23]RAPDU: 90 00 [23:27:23]wFMCommunicate OK [23:27:23]wFMCommunicate request_size=255 [23:27:23]MH_SAM_APDU [23:27:23]CAPDU: 80 0D 02 02 FA 03 00 85 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 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 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [23:27:23]Write to MH i2c: E2 02 01 51 30 80 0D 02 02 FA 00 03 00 85 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 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 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 54 [23:27:23]Write i2c OK [23:27:23]MH_I2C_Read... [23:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:24]Read from MH i2c: E2 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 03 00 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 03 00 51 30 00 90 00 F5 [23:27:24]RAPDU: 90 00 [23:27:24]wFMCommunicate OK [23:27:24]wFMCommunicate request_size=148 [23:27:24]MH_SAM_APDU [23:27:24]CAPDU: 80 0D 02 02 8F 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 1F 01 00 00 F4 03 04 00 5D 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 22 02 00 35 04 06 00 65 8A 41 DF E9 60 [23:27:24]Write to MH i2c: E2 97 00 52 30 80 0D 02 02 8F 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 1F 01 00 00 F4 03 04 00 5D 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 22 02 00 35 04 06 00 65 8A 41 DF E9 60 00 00 E6 [23:27:24]Write i2c OK [23:27:24]MH_I2C_Read... [23:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:24]Read from MH i2c: E2 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 03 00 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 03 00 52 30 00 90 00 F6 [23:27:24]RAPDU: 90 00 [23:27:24]wFMCommunicate OK [23:27:24]wFMCommunicate request_size=4 [23:27:24]MH_SAM_APDU [23:27:24]CAPDU: 80 0D 03 02 [23:27:24]Write to MH i2c: E2 08 00 53 30 80 0D 03 02 00 00 00 00 FE [23:27:24]Write i2c OK [23:27:24]MH_I2C_Read... [23:27:24]OFD Sender: No OFD packet to send [23:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:24]Read from MH i2c: E2 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 0B 00 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 0B 00 53 30 00 FD E9 49 FF 6E 32 D9 49 90 00 EF [23:27:24]RAPDU: FD E9 49 FF 6E 32 D9 49 90 00 [23:27:24]wFMCommunicate OK [23:27:24]SAM_PROTO_SignData done [23:27:24]FM_MakeSignedData done [23:27:24]CreateOFDProtocolMessage [23:27:24]wFMCommunicate request_size=4 [23:27:24]MH_SAM_APDU [23:27:24]CAPDU: 80 11 00 00 [23:27:24]Write to MH i2c: E2 08 00 54 30 80 11 00 00 00 00 00 00 FE [23:27:24]Write i2c OK [23:27:24]MH_I2C_Read... [23:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:24]Read from MH i2c: E2 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 17 00 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: E2 17 00 54 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 59 [23:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:27:24]wFMCommunicate OK [23:27:24]CreateOFDProtocolMessage done [23:27:24]OFDSenderStorePacket 139810 [23:27:24]StoreOFDPacket docnum=139810 [23:27: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 99 01 00 00 D3 95 91 01 65 E0 5A 03 01 00 03 00 85 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 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 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 1F 01 00 00 F4 03 04 00 5D 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 22 02 00 35 04 06 00 65 8A 41 DF E9 60 FD E9 49 FF 6E 32 D9 49 [23:27:24]CheckFolder [23:27:24]dirname=/storage/ofd_packets [23:27:24]CheckFolder done [23:27:24]ProducePacketName [23:27:24]name=ofd_packets/00139810 [23:27:24]NVStorageSaveData ofd_packets/00139810 [23:27:24]File name is /storage/ofd_packets/00139810 [23:27:24]Write 439 bytes [23:27:24]NVStorageSaveData done [23:27:24]OFDSenderStorePacket done [23:27:24]KKMCreateOFDPacket done [23:27:24]NVStorageSaveData kkm_last_timestamp [23:27:24]File name is /storage/kkm_last_timestamp [23:27:24]Write 4 bytes [23:27:24]NVStorageSaveData done [23:27:24]ExternCall_PrintAddStr [23:27:24]wPrintStart [23:27:24]Write to MH i2c: 01 00 00 55 30 85 [23:27:24]Write i2c OK [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: 01 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: 01 07 00 [23:27:24]MH_I2C_Read... [23:27:24]Read from MH i2c: 01 07 00 55 30 00 00 00 00 00 FF 0F 9A [23:27:24]RasterBufferAndPrint [23:27:24]line Счет N : (3)335641 [23:27:24]line ИНН: 02508201610067 [23:27:24]line Контрольно-Кассовый Чек [23:27:24]line ПРОДАЖА [23:27:24]line Товар: 46214645 [23:27:24]line Р/ж mentos pure white клуб 16/15,5г [23:27:24]line 1.000 * 49.00 [23:27:24]line = 49.00 [23:27:24]line НДС 12% НСП 1% [23:27:24]line > о реализуемом товаре [23:27:24]line Товар: 2000036210013 [23:27:24]line Кофе Капучино (GABB TRADE) [23:27:24]line 1.000 * 115.00 [23:27:24]line = 115.00 [23:27:24]line НДС 12% НСП 1% [23:27:24]line > о реализуемом товаре [23:27:24]line ИТОГО: 164.00 [23:27:24]line НСП 1% : 1.45 [23:27:24]line НДС 12% : 17.41 [23:27:24]line Наличными: 164.00 [23:27:24]line Безнал.: 0.00 [23:27:24]line Место: АЗС № 101 "Партнер Нефть" [23:27:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:27:24]line СНО: Общий режим [23:27:24]line Чек 287 31.10.2024 23:27 [23:27:24]line Смена: 557 ФФД: 1.0 [23:27:24]line ЗНМ: 0300000081 [23:27:24]line РНМ: 0000000000091631 [23:27:24]line Версия ККМ: 001 [23:27:24]line ФМ: 0000000000874669 [23:27:24]line ФД: 139810 [23:27:24]line ФПД: 111644485085536 [23:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T232725&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139810&fm=111644485085536&tin=02508201610067®Number=0000000000091631&sum=16400 [23:27:24]line 0 [23:27:24]OFD Sender: Processing packet 139810 [packets to send 34, broken 33] [23:27:24]ProducePacketName [23:27:24]name=ofd_packets/00139810 [23:27:24]OFD Sender: To server: pG, [23:27:24]CommunicateWithHost lk.salyk.kg:30040 [23:27:24]ConnectInit lk.salyk.kg [23:27:24]written 0, free lines is 4095 [23:27:24]Connected sock=10 [23:27: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 99 01 00 00 D3 95 91 01 65 E0 5A 03 01 00 03 00 85 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 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 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 1F 01 00 00 F4 03 04 00 5D 12 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 22 02 00 35 04 06 00 65 8A 41 DF E9 60 FD E9 49 FF 6E 32 D9 49 [23:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AD 3C 47 00 C7 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 22 22 02 00 F4 03 04 00 0A BE 23 67 B6 04 01 00 00 92 DA 40 B9 7B 97 49 BA [23:27:25]CommunicateWithHost err = 0 [23:27:25]CheckOFDResponse [23:27:25]1017 (14) - 77093643461234 [23:27:25]1041 (16) - 0000000000874669 [23:27:25]1040 (4) - 139810 [23:27:25]1012 (4) - 31.10.2024 17:27 [23:27:25]1206 (1) - 0 [23:27:25]OFD Sender: Remove packet 139810 [23:27:25]ProducePacketName [23:27:25]name=ofd_packets/00139810 [23:27:25]NVStorageDeleteData [23:27:25]Write to MH i2c: 01 00 00 84 30 B4 [23:27:25]Write i2c OK [23:27:25]MH_I2C_Read... [23:27:25]Read from MH i2c: 01 [23:27:25]MH_I2C_Read... [23:27:25]Read from MH i2c: 01 07 00 [23:27:25]MH_I2C_Read... [23:27:25]Read from MH i2c: 01 07 00 84 30 00 00 00 00 00 C3 0C 8A [23:27:25]RasterBufferAndPrint [23:27:25]line [23:27:25]line [23:27:25]line [23:27:25]line [23:27:25]line [23:27:25]written 0, free lines is 3276 [23:27:25]MH_Cut [23:27:25]Write to MH i2c: D1 01 00 8B 30 01 8D [23:27:25]Write i2c OK [23:27:25]MH_I2C_Read... [23:27:25]Read from MH i2c: D1 [23:27:25]MH_I2C_Read... [23:27:25]Read from MH i2c: D1 01 00 [23:27:25]MH_I2C_Read... [23:27:25]Read from MH i2c: D1 01 00 8B 30 00 8C [23:27:25]Write to MH i2c: 01 00 00 8C 30 BC [23:27:25]Write i2c OK [23:27:25]MH_I2C_Read... [23:27:25]OFD Sender: No OFD packet to send [23:27:26]*** Cut start [23:27:26]*** Partial cut [23:27:26]*** CUTSNS_PIN = 1 [23:27:26]*** CUTSNS_PIN = 0 [23:27:26]*** Brake cut motor [23:27:26]Read from MH i2c: 01 [23:27:26]MH_I2C_Read... [23:27:26]*** Stop cut motor [23:27:26]*** Cut end [23:27:26]Read from MH i2c: 01 07 00 [23:27:26]MH_I2C_Read... [23:27:26]Read from MH i2c: 01 07 00 8C 30 00 00 00 00 00 FF 0F D1 [23:27:26]process_action close_receipt done [23:27:26]requested_data is exist [23:27:26]produce_requested_data [23:27:26]requested_item fm.sn is exist - process it [23:27:26]wFMCommunicate request_size=4 [23:27:26]MH_SAM_APDU [23:27:26]CAPDU: 80 11 00 00 [23:27:26]Write to MH i2c: E2 08 00 8D 30 80 11 00 00 00 00 00 00 37 [23:27:26]Write i2c OK [23:27:26]MH_I2C_Read... [23:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:26]Read from MH i2c: E2 [23:27:26]MH_I2C_Read... [23:27:26]Read from MH i2c: E2 17 00 [23:27:26]MH_I2C_Read... [23:27:26]Read from MH i2c: E2 17 00 8D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 92 [23:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:27:26]wFMCommunicate OK [23:27:26]requested_item fd.num is exist - process it [23:27:26]SAM_PROTO_GetFieldsCounters [23:27:26]wFMCommunicate request_size=4 [23:27:26]MH_SAM_APDU [23:27:26]CAPDU: 80 13 00 00 [23:27:26]Write to MH i2c: E2 08 00 8E 30 80 13 00 00 00 00 00 00 3A [23:27:26]Write i2c OK [23:27:26]MH_I2C_Read... [23:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:26]Read from MH i2c: E2 [23:27:26]MH_I2C_Read... [23:27:26]Read from MH i2c: E2 62 00 [23:27:26]MH_I2C_Read... [23:27:26]Read from MH i2c: E2 62 00 8E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 22 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [23:27: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 22 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:26]wFMCommunicate OK [23:27:26]SAM_PROTO_GetFieldsCounters done [23:27:26]requested_item shift.num is exist - process it [23:27:26]requested_item shift.opened is exist - process it [23:27:26]req_shift_opened [23:27:26]FM_GetShiftState [23:27:26]SAM_PROTO_GetShiftState [23:27:26]wFMCommunicate request_size=4 [23:27:26]MH_SAM_APDU [23:27:26]CAPDU: 80 13 01 00 [23:27:26]Write to MH i2c: E2 08 00 8F 30 80 13 01 00 00 00 00 00 3C [23:27:26]Write i2c OK [23:27:26]MH_I2C_Read... [23:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:26]Read from MH i2c: E2 [23:27:26]MH_I2C_Read... [23:27:26]Read from MH i2c: E2 0E 00 [23:27:26]MH_I2C_Read... [23:27:26]Read from MH i2c: E2 0E 00 8F 30 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 65 [23:27:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:27:26]wFMCommunicate OK [23:27:26]SAM_PROTO_GetShiftState done [23:27:26]FM_GetShiftState done [23:27:26]req_shift_opened done [23:27:26]requested_item shift.open_date is exist - process it [23:27:26]req_shift_open_date [23:27:26]req_shift_open_date done [23:27:26]produce_requested_data done [23:27:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139810,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:27:26]process_action_free close_receipt [23:27:26]json_value_free [23:27:26]json_value_free done [23:27:26]process_json_proto returns [23:27:26]Send response to host [23:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139810,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:27:26]free response buf [23:27:26]execute_script done [23:27:26]execute_script returns [23:27:26]free content buf [23:27:26]Sock 7.Close socket [23:27:26]Sock 7.Thread stoped [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:08]accept exits with 9 [23:30:08]New connection [23:30:08]New thread 3066510692 created [23:30:08]Thread 3066654052 joined [23:30:08]Waiting for new connection... [23:30:08] Sock 9.Parse request [23:30:08]Sock 9.Check first char [23:30:08]Sock 9.First char is OK [23:30:08]request: POST /json_proto HTTP/1.0 [23:30:08]Method: POST [23:30:08]URL: /json_proto [23:30:08]Method is POST - this is cgi request [23:30:08]url: /json_proto [23:30:08]query_string will be loaded in cgi processing [23:30:08]execute_cgi json_proto POST (null) [23:30:08]execute_cgi path=json_proto method=POST [23:30:08]POST find Content-Length [23:30:08]Host: 172.17.50.196:8080 [23:30:08]Content-Length: 767 [23:30:08]Content-Type: application/json [23:30:08] [23:30:08]POST finish read [23:30:08]Found Content-Length = 767 [23:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095550", "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" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 340.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:08]execute_script... [23:30:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095550", "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" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 340.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:08]POST & json_proto [23:30:08]process_json_proto [23:30:08]json parsed OK: [23:30:08]protocol is kg_v1.0 [23:30:08]action value=close_receipt [23:30:08]process_action close_receipt [23:30:08]cmd_close_receipt [23:30:08]MH_GetDate [23:30:08]Write to MH i2c: F0 00 00 90 30 AF [23:30:08]Write i2c OK [23:30:08]MH_I2C_Read... [23:30:08]Read from MH i2c: F0 [23:30:08]MH_I2C_Read... [23:30:08]Read from MH i2c: F0 09 00 [23:30:08]MH_I2C_Read... [23:30:08]Read from MH i2c: F0 09 00 90 30 00 03 13 24 67 72 0D 1C 67 5B [23:30:08]GetLastDocTimeStamp 1730417245 [23:30:08]current date 1730417411 [23:30:08]FM_GetShiftState [23:30:08]SAM_PROTO_GetShiftState [23:30:08]wFMCommunicate request_size=4 [23:30:08]MH_SAM_APDU [23:30:08]CAPDU: 80 13 01 00 [23:30:08]Write to MH i2c: E2 08 00 91 30 80 13 01 00 00 00 00 00 3E [23:30:08]Write i2c OK [23:30:08]MH_I2C_Read... [23:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:08]Read from MH i2c: E2 [23:30:08]MH_I2C_Read... [23:30:08]Read from MH i2c: E2 0E 00 [23:30:08]MH_I2C_Read... [23:30:08]Read from MH i2c: E2 0E 00 91 30 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 67 [23:30:08]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:30:08]wFMCommunicate OK [23:30:08]SAM_PROTO_GetShiftState done [23:30:08]FM_GetShiftState done [23:30:08]opened in 1730332621 [23:30:08]opened+sec_in_day 1730419021 [23:30:08]quantity*price = 34052 [23:30:08]sum+1 = 34053 [23:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.52 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 0.00 Безнал.: 340.52 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 288 31.10.2024 23:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139811 ФПД: 99866875996248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233011&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139811&fm=99866875996248&tin=02508201610067®Number=0000000000091631&sum=34052 [23:30:09]StoreToDocumentArchive [23:30:09]shift 557 fd 139811 [23:30:09]save to /storage/0557/doc_00139811 [23:30:09]save last doc name /storage/0557/doc_00139811 to /storage/kkm_last_doc_name [23:30:09]save OK [23:30:09]Clear old archive folders... [23:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:09]tlvbuf is 00B215E0 [23:30:09]SAM_PROTO_ClearQueue [23:30:09]wFMCommunicate request_size=4 [23:30:09]MH_SAM_APDU [23:30:09]CAPDU: 80 09 00 00 [23:30:09]Write to MH i2c: E2 08 00 9E 30 80 09 00 00 00 00 00 00 40 [23:30:09]Write i2c OK [23:30:09]MH_I2C_Read... [23:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:09]Read from MH i2c: E2 [23:30:09]MH_I2C_Read... [23:30:09]Read from MH i2c: E2 03 00 [23:30:09]MH_I2C_Read... [23:30:09]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [23:30:09]RAPDU: 90 00 [23:30:09]wFMCommunicate OK [23:30:09]SAM_PROTO_ClearQueue done [23:30:09]KKMCreateOFDPacket [23:30:09]OFDProtocolAddRootSTLVToBuf [23:30:09]FM_MakeSignedData [23:30:09]FM_MakeSignedData [23:30:09]SAM_PROTO_SignData [23:30:09]wFMCommunicate request_size=4 [23:30:09]MH_SAM_APDU [23:30:09]CAPDU: 80 0D 01 02 [23:30:09]Write to MH i2c: E2 08 00 9F 30 80 0D 01 02 00 00 00 00 48 [23:30:09]Write i2c OK [23:30:09]MH_I2C_Read... [23:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:09]Read from MH i2c: E2 [23:30:09]MH_I2C_Read... [23:30:09]Read from MH i2c: E2 03 00 [23:30:09]MH_I2C_Read... [23:30:09]Read from MH i2c: E2 03 00 9F 30 00 90 00 43 [23:30:09]RAPDU: 90 00 [23:30:09]wFMCommunicate OK [23:30:09]wFMCommunicate request_size=255 [23:30:09]MH_SAM_APDU [23:30: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 03 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 22 02 00 35 04 06 00 5A [23:30:09]Write to MH i2c: E2 02 01 A0 30 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 03 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 22 02 00 35 04 06 00 5A 00 00 0C [23:30:10]Write i2c OK [23:30:10]MH_I2C_Read... [23:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:10]Read from MH i2c: E2 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 03 00 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 03 00 A0 30 00 90 00 44 [23:30:10]RAPDU: 90 00 [23:30:10]wFMCommunicate OK [23:30:10]wFMCommunicate request_size=10 [23:30:10]MH_SAM_APDU [23:30:10]CAPDU: 80 0D 02 02 05 D4 11 AB 28 58 [23:30:10]Write to MH i2c: E2 0D 00 A1 30 80 0D 02 02 05 00 D4 11 AB 28 58 00 00 65 [23:30:10]Write i2c OK [23:30:10]MH_I2C_Read... [23:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:10]Read from MH i2c: E2 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 03 00 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 03 00 A1 30 00 90 00 45 [23:30:10]RAPDU: 90 00 [23:30:10]wFMCommunicate OK [23:30:10]wFMCommunicate request_size=4 [23:30:10]MH_SAM_APDU [23:30:10]CAPDU: 80 0D 03 02 [23:30:10]Write to MH i2c: E2 08 00 A2 30 80 0D 03 02 00 00 00 00 4D [23:30:10]Write i2c OK [23:30:10]MH_I2C_Read... [23:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:10]Read from MH i2c: E2 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 0B 00 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 0B 00 A2 30 00 0B 32 0F 25 03 A0 4C AB 90 00 59 [23:30:10]RAPDU: 0B 32 0F 25 03 A0 4C AB 90 00 [23:30:10]wFMCommunicate OK [23:30:10]SAM_PROTO_SignData done [23:30:10]FM_MakeSignedData done [23:30:10]CreateOFDProtocolMessage [23:30:10]wFMCommunicate request_size=4 [23:30:10]MH_SAM_APDU [23:30:10]CAPDU: 80 11 00 00 [23:30:10]Write to MH i2c: E2 08 00 A3 30 80 11 00 00 00 00 00 00 4D [23:30:10]Write i2c OK [23:30:10]MH_I2C_Read... [23:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:10]Read from MH i2c: E2 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 17 00 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 17 00 A3 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A8 [23:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:30:10]wFMCommunicate OK [23:30:10]CreateOFDProtocolMessage done [23:30:10]OFDSenderStorePacket 139811 [23:30:10]StoreOFDPacket docnum=139811 [23:30: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 42 62 07 01 BF 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 03 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 22 02 00 35 04 06 00 5A D4 11 AB 28 58 0B 32 0F 25 03 A0 4C AB [23:30:10]CheckFolder [23:30:10]dirname=/storage/ofd_packets [23:30:10]CheckFolder done [23:30:10]ProducePacketName [23:30:10]name=ofd_packets/00139811 [23:30:10]NVStorageSaveData ofd_packets/00139811 [23:30:10]File name is /storage/ofd_packets/00139811 [23:30:10]Write 301 bytes [23:30:10]NVStorageSaveData done [23:30:10]OFDSenderStorePacket done [23:30:10]KKMCreateOFDPacket done [23:30:10]NVStorageSaveData kkm_last_timestamp [23:30:10]File name is /storage/kkm_last_timestamp [23:30:10]Write 4 bytes [23:30:10]NVStorageSaveData done [23:30:10]ExternCall_PrintAddStr [23:30:10]wPrintStart [23:30:10]Write to MH i2c: 01 00 00 A4 30 D4 [23:30:10]Write i2c OK [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: 01 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: 01 07 00 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: 01 07 00 A4 30 00 00 00 00 00 FF 0F E9 [23:30:10]RasterBufferAndPrint [23:30:10]line Счет N : (1)1095550 [23:30:10]line ИНН: 02508201610067 [23:30:10]line Контрольно-Кассовый Чек [23:30:10]line ПРОДАЖА [23:30:10]line ТРК (МРК, ГНК) : 53 [23:30:10]line Товар: 2710124130 [23:30:10]line Аи-92-К-2 [23:30:10]line 5.090 * 66.90 [23:30:10]line = 340.52 [23:30:10]line НДС 12% НСП 1% [23:30:10]line > о реализуемом товаре [23:30:10]line ИТОГО: 340.52 [23:30:10]line НСП 1% : 3.01 [23:30:10]line НДС 12% : 36.16 [23:30:10]line Наличными: 0.00 [23:30:10]line Безнал.: 340.52 [23:30:10]line Место: АЗС № 101 "Партнер Нефть" [23:30:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:30:10]line СНО: Общий режим [23:30:10]line Чек 288 31.10.2024 23:30 [23:30:10]line Смена: 557 ФФД: 1.0 [23:30:10]line ЗНМ: 0300000081 [23:30:10]line РНМ: 0000000000091631 [23:30:10]line Версия ККМ: 001 [23:30:10]line Платежная система: Mbank [23:30:10]line ФМ: 0000000000874669 [23:30:10]line ФД: 139811 [23:30:10]line ФПД: 99866875996248 [23:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233011&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139811&fm=99866875996248&tin=02508201610067®Number=0000000000091631&sum=34052 [23:30:10]OFD Sender: Processing packet 139811 [packets to send 34, broken 33] [23:30:10]ProducePacketName [23:30:10]name=ofd_packets/00139811 [23:30:10]OFD Sender: To server: pG, [23:30:10]CommunicateWithHost lk.salyk.kg:30040 [23:30:10]ConnectInit lk.salyk.kg [23:30:10]written 0, free lines is 4095 [23:30:10]Connected sock=10 [23:30:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 42 62 07 01 BF 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 03 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 22 02 00 35 04 06 00 5A D4 11 AB 28 58 0B 32 0F 25 03 A0 4C AB [23:30: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 06 08 47 00 BB 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 23 22 02 00 F4 03 04 00 B0 BE 23 67 B6 04 01 00 00 D1 37 45 77 E4 C6 A6 D5 [23:30:11]CommunicateWithHost err = 0 [23:30:11]CheckOFDResponse [23:30:11]1017 (14) - 77093643461234 [23:30:11]1041 (16) - 0000000000874669 [23:30:11]1040 (4) - 139811 [23:30:11]1012 (4) - 31.10.2024 17:30 [23:30:11]1206 (1) - 0 [23:30:11]OFD Sender: Remove packet 139811 [23:30:11]ProducePacketName [23:30:11]name=ofd_packets/00139811 [23:30:11]NVStorageDeleteData [23:30:11]Write to MH i2c: 01 00 00 CD 30 FD [23:30:11]Write i2c OK [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: 01 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: 01 07 00 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: 01 07 00 CD 30 00 00 00 00 00 1F 0D 30 [23:30:11]RasterBufferAndPrint [23:30:11]line [23:30:11]line [23:30:11]line [23:30:11]line [23:30:11]line [23:30:11]written 0, free lines is 3365 [23:30:11]MH_Cut [23:30:11]Write to MH i2c: D1 01 00 D4 30 01 D6 [23:30:11]Write i2c OK [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: D1 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: D1 01 00 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: D1 01 00 D4 30 00 D5 [23:30:11]Write to MH i2c: 01 00 00 D5 30 05 [23:30:11]Write i2c OK [23:30:11]MH_I2C_Read... [23:30:11]OFD Sender: No OFD packet to send [23:30:11]*** Cut start [23:30:11]*** Partial cut [23:30:11]*** CUTSNS_PIN = 1 [23:30:11]*** CUTSNS_PIN = 0 [23:30:12]*** Brake cut motor [23:30:12]Read from MH i2c: 01 [23:30:12]MH_I2C_Read... [23:30:12]*** Stop cut motor [23:30:12]*** Cut end [23:30:12]Read from MH i2c: 01 07 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 D5 30 00 00 00 00 00 FF 0F 1A [23:30:12]process_action close_receipt done [23:30:12]requested_data is exist [23:30:12]produce_requested_data [23:30:12]requested_item fm.sn is exist - process it [23:30:12]wFMCommunicate request_size=4 [23:30:12]MH_SAM_APDU [23:30:12]CAPDU: 80 11 00 00 [23:30:12]Write to MH i2c: E2 08 00 D6 30 80 11 00 00 00 00 00 00 80 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:12]Read from MH i2c: E2 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 17 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 17 00 D6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DB [23:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:30:12]wFMCommunicate OK [23:30:12]requested_item fd.num is exist - process it [23:30:12]SAM_PROTO_GetFieldsCounters [23:30:12]wFMCommunicate request_size=4 [23:30:12]MH_SAM_APDU [23:30:12]CAPDU: 80 13 00 00 [23:30:12]Write to MH i2c: E2 08 00 D7 30 80 13 00 00 00 00 00 00 83 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:12]Read from MH i2c: E2 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 62 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 62 00 D7 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 23 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [23:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 23 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:12]wFMCommunicate OK [23:30:12]SAM_PROTO_GetFieldsCounters done [23:30:12]requested_item shift.num is exist - process it [23:30:12]requested_item shift.opened is exist - process it [23:30:12]req_shift_opened [23:30:12]FM_GetShiftState [23:30:12]SAM_PROTO_GetShiftState [23:30:12]wFMCommunicate request_size=4 [23:30:12]MH_SAM_APDU [23:30:12]CAPDU: 80 13 01 00 [23:30:12]Write to MH i2c: E2 08 00 D8 30 80 13 01 00 00 00 00 00 85 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:12]Read from MH i2c: E2 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 0E 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 0E 00 D8 30 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AE [23:30:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:30:12]wFMCommunicate OK [23:30:12]SAM_PROTO_GetShiftState done [23:30:12]FM_GetShiftState done [23:30:12]req_shift_opened done [23:30:12]requested_item shift.open_date is exist - process it [23:30:12]req_shift_open_date [23:30:12]req_shift_open_date done [23:30:12]produce_requested_data done [23:30:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139811,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:30:12]process_action_free close_receipt [23:30:12]json_value_free [23:30:12]json_value_free done [23:30:12]process_json_proto returns [23:30:12]Send response to host [23:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139811,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:30:12]free response buf [23:30:12]execute_script done [23:30:12]execute_script returns [23:30:12]free content buf [23:30:12]Sock 9.Close socket [23:30:12]Sock 9.Thread stoped [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:48]accept exits with 7 [23:30:48]New connection [23:30:48]New thread 3066654052 created [23:30:48]Thread 3066510692 joined [23:30:48]Waiting for new connection... [23:30:48] Sock 7.Parse request [23:30:48]Sock 7.Check first char [23:30:48]Sock 7.First char is OK [23:30:48]request: POST /json_proto HTTP/1.0 [23:30:48]Method: POST [23:30:48]URL: /json_proto [23:30:48]Method is POST - this is cgi request [23:30:48]url: /json_proto [23:30:48]query_string will be loaded in cgi processing [23:30:48]execute_cgi json_proto POST (null) [23:30:48]execute_cgi path=json_proto method=POST [23:30:48]POST find Content-Length [23:30:48]Host: 172.17.50.196:8080 [23:30:48]Content-Length: 838 [23:30:48]Content-Type: application/json [23:30:48] [23:30:48]POST finish read [23:30:48]Found Content-Length = 838 [23:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335642", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:48]execute_script... [23:30: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)335642", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:48]POST & json_proto [23:30:48]process_json_proto [23:30:48]json parsed OK: [23:30:48]protocol is kg_v1.0 [23:30:48]action value=close_receipt [23:30:48]process_action close_receipt [23:30:48]cmd_close_receipt [23:30:48]MH_GetDate [23:30:48]Write to MH i2c: F0 00 00 D9 30 F8 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: F0 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: F0 09 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: F0 09 00 D9 30 00 2B 13 24 67 72 0D 1C 67 CC [23:30:48]GetLastDocTimeStamp 1730417411 [23:30:48]current date 1730417451 [23:30:48]FM_GetShiftState [23:30:48]SAM_PROTO_GetShiftState [23:30:48]wFMCommunicate request_size=4 [23:30:48]MH_SAM_APDU [23:30:48]CAPDU: 80 13 01 00 [23:30:48]Write to MH i2c: E2 08 00 DA 30 80 13 01 00 00 00 00 00 87 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 0E 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 0E 00 DA 30 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B0 [23:30:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:30:48]wFMCommunicate OK [23:30:48]SAM_PROTO_GetShiftState done [23:30:48]FM_GetShiftState done [23:30:48]opened in 1730332621 [23:30:48]opened+sec_in_day 1730419021 [23:30:48]quantity*price = 8400 [23:30:48]sum+1 = 8401 [23:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 0.00 Безнал.: 84.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 289 31.10.2024 23:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139812 ФПД: 8168545910649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139812&fm=8168545910649&tin=02508201610067®Number=0000000000091631&sum=8400 0 [23:30:49]StoreToDocumentArchive [23:30:49]shift 557 fd 139812 [23:30:49]save to /storage/0557/doc_00139812 [23:30:49]save last doc name /storage/0557/doc_00139812 to /storage/kkm_last_doc_name [23:30:49]save OK [23:30:49]Clear old archive folders... [23:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=302 [23:30:49]tlvbuf is 00AE5F40 [23:30:49]SAM_PROTO_ClearQueue [23:30:49]wFMCommunicate request_size=4 [23:30:49]MH_SAM_APDU [23:30:49]CAPDU: 80 09 00 00 [23:30:49]Write to MH i2c: E2 08 00 E7 30 80 09 00 00 00 00 00 00 89 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:49]Read from MH i2c: E2 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 E7 30 00 90 00 8B [23:30:49]RAPDU: 90 00 [23:30:49]wFMCommunicate OK [23:30:49]SAM_PROTO_ClearQueue done [23:30:49]KKMCreateOFDPacket [23:30:49]OFDProtocolAddRootSTLVToBuf [23:30:49]FM_MakeSignedData [23:30:49]FM_MakeSignedData [23:30:49]SAM_PROTO_SignData [23:30:49]wFMCommunicate request_size=4 [23:30:49]MH_SAM_APDU [23:30:49]CAPDU: 80 0D 01 02 [23:30:49]Write to MH i2c: E2 08 00 E8 30 80 0D 01 02 00 00 00 00 91 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:49]Read from MH i2c: E2 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [23:30:49]RAPDU: 90 00 [23:30:49]wFMCommunicate OK [23:30:49]wFMCommunicate request_size=255 [23:30:49]MH_SAM_APDU [23:30:49]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 2B 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 [23:30:49]Write to MH i2c: E2 02 01 E9 30 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 2B 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 00 00 49 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:49]Read from MH i2c: E2 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 E9 30 00 90 00 8D [23:30:49]RAPDU: 90 00 [23:30:49]wFMCommunicate OK [23:30:49]wFMCommunicate request_size=61 [23:30:49]MH_SAM_APDU [23:30:49]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 22 02 00 35 04 06 00 07 6D E3 46 FF 79 [23:30:49]Write to MH i2c: E2 40 00 EA 30 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 22 02 00 35 04 06 00 07 6D E3 46 FF 79 00 00 29 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:49]Read from MH i2c: E2 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 03 00 EA 30 00 90 00 8E [23:30:49]RAPDU: 90 00 [23:30:49]wFMCommunicate OK [23:30:49]wFMCommunicate request_size=4 [23:30:49]MH_SAM_APDU [23:30:49]CAPDU: 80 0D 03 02 [23:30:49]Write to MH i2c: E2 08 00 EB 30 80 0D 03 02 00 00 00 00 96 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:49]Read from MH i2c: E2 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 0B 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 0B 00 EB 30 00 98 CF 27 49 CD 01 51 AC 90 00 39 [23:30:49]RAPDU: 98 CF 27 49 CD 01 51 AC 90 00 [23:30:49]wFMCommunicate OK [23:30:49]SAM_PROTO_SignData done [23:30:49]FM_MakeSignedData done [23:30:49]CreateOFDProtocolMessage [23:30:49]wFMCommunicate request_size=4 [23:30:49]MH_SAM_APDU [23:30:49]CAPDU: 80 11 00 00 [23:30:49]Write to MH i2c: E2 08 00 EC 30 80 11 00 00 00 00 00 00 96 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:49]Read from MH i2c: E2 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 17 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: E2 17 00 EC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F1 [23: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 [23:30:49]wFMCommunicate OK [23:30:49]CreateOFDProtocolMessage done [23:30:49]OFDSenderStorePacket 139812 [23:30:49]StoreOFDPacket docnum=139812 [23: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 42 01 00 00 4C B7 3A 01 DA F2 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 2B 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 22 02 00 35 04 06 00 07 6D E3 46 FF 79 98 CF 27 49 CD 01 51 AC [23:30:49]CheckFolder [23:30:49]dirname=/storage/ofd_packets [23:30:49]CheckFolder done [23:30:49]ProducePacketName [23:30:49]name=ofd_packets/00139812 [23:30:49]NVStorageSaveData ofd_packets/00139812 [23:30:49]File name is /storage/ofd_packets/00139812 [23:30:49]Write 352 bytes [23:30:49]NVStorageSaveData done [23:30:49]OFDSenderStorePacket done [23:30:49]KKMCreateOFDPacket done [23:30:49]NVStorageSaveData kkm_last_timestamp [23:30:49]File name is /storage/kkm_last_timestamp [23:30:49]Write 4 bytes [23:30:49]NVStorageSaveData done [23:30:49]ExternCall_PrintAddStr [23:30:49]wPrintStart [23:30:49]Write to MH i2c: 01 00 00 ED 30 1D [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: 01 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: 01 07 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: 01 07 00 ED 30 00 00 00 00 00 FF 0F 32 [23:30:49]RasterBufferAndPrint [23:30:49]line Счет N : (3)335642 [23:30:49]line ИНН: 02508201610067 [23:30:49]line Контрольно-Кассовый Чек [23:30:49]line ПРОДАЖА [23:30:49]line Товар: 4870001571030 [23:30:49]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [23:30:49]line 1.000 * 84.00 [23:30:49]line = 84.00 [23:30:49]line НДС 12% НСП 1% [23:30:49]line > о реализуемом товаре [23:30:49]line ИТОГО: 84.00 [23:30:49]line НСП 1% : 0.74 [23:30:49]line НДС 12% : 8.92 [23:30:49]line Наличными: 0.00 [23:30:49]line Безнал.: 84.00 [23:30:49]line Место: АЗС № 101 "Партнер Нефть" [23:30:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:30:49]line СНО: Общий режим [23:30:49]line Чек 289 31.10.2024 23:30 [23:30:49]line Смена: 557 ФФД: 1.0 [23:30:49]line ЗНМ: 0300000081 [23:30:49]line РНМ: 0000000000091631 [23:30:49]line Версия ККМ: 001 [23:30:49]line Платежная система: Mbank [23:30:49]line ФМ: 0000000000874669 [23:30:49]line ФД: 139812 [23:30:49]line ФПД: 8168545910649 [23:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139812&fm=8168545910649&tin=02508201610067®Number=0000000000091631&sum=8400 [23:30:50]line 0 [23:30:50]OFD Sender: Processing packet 139812 [packets to send 34, broken 33] [23:30:50]ProducePacketName [23:30:50]name=ofd_packets/00139812 [23:30:50]OFD Sender: To server: pG, [23:30:50]CommunicateWithHost lk.salyk.kg:30040 [23:30:50]ConnectInit lk.salyk.kg [23:30:50]written 0, free lines is 4095 [23:30:50]Connected sock=10 [23:30: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 42 01 00 00 4C B7 3A 01 DA F2 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 2B 13 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 22 02 00 35 04 06 00 07 6D E3 46 FF 79 98 CF 27 49 CD 01 51 AC [23: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 20 09 47 00 2A 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 24 22 02 00 F4 03 04 00 D7 BE 23 67 B6 04 01 00 00 1A 77 94 91 52 FE 59 FF [23:30:50]CommunicateWithHost err = 0 [23:30:50]CheckOFDResponse [23:30:50]1017 (14) - 77093643461234 [23:30:50]1041 (16) - 0000000000874669 [23:30:50]1040 (4) - 139812 [23:30:50]1012 (4) - 31.10.2024 17:31 [23:30:50]1206 (1) - 0 [23:30:50]OFD Sender: Remove packet 139812 [23:30:50]ProducePacketName [23:30:50]name=ofd_packets/00139812 [23:30:50]NVStorageDeleteData [23:30:50]Write to MH i2c: 01 00 00 17 31 48 [23:30:50]Write i2c OK [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: 01 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: 01 07 00 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: 01 07 00 17 31 00 00 00 00 00 FE 0C 59 [23:30:50]RasterBufferAndPrint [23:30:50]line [23:30:50]line [23:30:50]line [23:30:50]line [23:30:50]line [23:30:50]written 0, free lines is 3332 [23:30:50]MH_Cut [23:30:50]Write to MH i2c: D1 01 00 1E 31 01 21 [23:30:50]Write i2c OK [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: D1 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: D1 01 00 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: D1 01 00 1E 31 00 20 [23:30:50]Write to MH i2c: 01 00 00 1F 31 50 [23:30:50]Write i2c OK [23:30:50]MH_I2C_Read... [23:30:51]OFD Sender: No OFD packet to send [23:30:51]*** Cut start [23:30:51]*** Partial cut [23:30:51]*** CUTSNS_PIN = 1 [23:30:51]*** CUTSNS_PIN = 0 [23:30:51]*** Brake cut motor [23:30:51]Read from MH i2c: 01 [23:30:52]MH_I2C_Read... [23:30:52]*** Stop cut motor [23:30:52]*** Cut end [23:30:52]Read from MH i2c: 01 07 00 [23:30:52]MH_I2C_Read... [23:30:52]Read from MH i2c: 01 07 00 1F 31 00 00 00 00 00 FF 0F 65 [23:30:52]process_action close_receipt done [23:30:52]requested_data is exist [23:30:52]produce_requested_data [23:30:52]requested_item fm.sn is exist - process it [23:30:52]wFMCommunicate request_size=4 [23:30:52]MH_SAM_APDU [23:30:52]CAPDU: 80 11 00 00 [23:30:52]Write to MH i2c: E2 08 00 20 31 80 11 00 00 00 00 00 00 CB [23:30:52]Write i2c OK [23:30:52]MH_I2C_Read... [23:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:52]Read from MH i2c: E2 [23:30:52]MH_I2C_Read... [23:30:52]Read from MH i2c: E2 17 00 [23:30:52]MH_I2C_Read... [23:30:52]Read from MH i2c: E2 17 00 20 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 26 [23: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 [23:30:52]wFMCommunicate OK [23:30:52]requested_item fd.num is exist - process it [23:30:52]SAM_PROTO_GetFieldsCounters [23:30:52]wFMCommunicate request_size=4 [23:30:52]MH_SAM_APDU [23:30:52]CAPDU: 80 13 00 00 [23:30:52]Write to MH i2c: E2 08 00 21 31 80 13 00 00 00 00 00 00 CE [23:30:52]Write i2c OK [23:30:52]MH_I2C_Read... [23:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:52]Read from MH i2c: E2 [23:30:52]MH_I2C_Read... [23:30:52]Read from MH i2c: E2 62 00 [23:30:52]MH_I2C_Read... [23:30:52]Read from MH i2c: E2 62 00 21 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 24 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [23:30: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 24 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:52]wFMCommunicate OK [23:30:52]SAM_PROTO_GetFieldsCounters done [23:30:52]requested_item shift.num is exist - process it [23:30:52]requested_item shift.opened is exist - process it [23:30:52]req_shift_opened [23:30:52]FM_GetShiftState [23:30:52]SAM_PROTO_GetShiftState [23:30:52]wFMCommunicate request_size=4 [23:30:52]MH_SAM_APDU [23:30:52]CAPDU: 80 13 01 00 [23:30:52]Write to MH i2c: E2 08 00 22 31 80 13 01 00 00 00 00 00 D0 [23:30:52]Write i2c OK [23:30:52]MH_I2C_Read... [23:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:52]Read from MH i2c: E2 [23:30:52]MH_I2C_Read... [23:30:52]Read from MH i2c: E2 0E 00 [23:30:52]MH_I2C_Read... [23:30:52]Read from MH i2c: E2 0E 00 22 31 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F9 [23:30:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:30:52]wFMCommunicate OK [23:30:52]SAM_PROTO_GetShiftState done [23:30:52]FM_GetShiftState done [23:30:52]req_shift_opened done [23:30:52]requested_item shift.open_date is exist - process it [23:30:52]req_shift_open_date [23:30:52]req_shift_open_date done [23:30:52]produce_requested_data done [23:30:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139812,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:30:52]process_action_free close_receipt [23:30:52]json_value_free [23:30:52]json_value_free done [23:30:52]process_json_proto returns [23:30:52]Send response to host [23:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139812,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:30:52]free response buf [23:30:52]execute_script done [23:30:52]execute_script returns [23:30:52]free content buf [23:30:52]Sock 7.Close socket [23:30:52]Sock 7.Thread stoped [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:12]accept exits with 9 [23:36:12]New connection [23:36:12]New thread 3066510692 created [23:36:12]Thread 3066654052 joined [23:36:12]Waiting for new connection... [23:36:12] Sock 9.Parse request [23:36:12]Sock 9.Check first char [23:36:12]Sock 9.First char is OK [23:36:12]request: POST /json_proto HTTP/1.0 [23:36:12]Method: POST [23:36:12]URL: /json_proto [23:36:12]Method is POST - this is cgi request [23:36:12]url: /json_proto [23:36:12]query_string will be loaded in cgi processing [23:36:12]execute_cgi json_proto POST (null) [23:36:12]execute_cgi path=json_proto method=POST [23:36:12]POST find Content-Length [23:36:12]Host: 172.17.50.196:8080 [23:36:12]Content-Length: 747 [23:36:12]Content-Type: application/json [23:36:12] [23:36:12]POST finish read [23:36:12]Found Content-Length = 747 [23:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335643", "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 }]} ], "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" ] } } [23:36:12]execute_script... [23:36: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)335643", "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 }]} ], "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" ] } } [23:36:12]POST & json_proto [23:36:12]process_json_proto [23:36:12]json parsed OK: [23:36:12]protocol is kg_v1.0 [23:36:12]action value=close_receipt [23:36:12]process_action close_receipt [23:36:12]cmd_close_receipt [23:36:12]MH_GetDate [23:36:12]Write to MH i2c: F0 00 00 23 31 43 [23:36:12]Write i2c OK [23:36:12]MH_I2C_Read... [23:36:12]Read from MH i2c: F0 [23:36:12]MH_I2C_Read... [23:36:12]Read from MH i2c: F0 09 00 [23:36:12]MH_I2C_Read... [23:36:12]Read from MH i2c: F0 09 00 23 31 00 6F 14 24 67 72 0D 1C 67 5C [23:36:12]GetLastDocTimeStamp 1730417451 [23:36:12]current date 1730417775 [23:36:12]FM_GetShiftState [23:36:12]SAM_PROTO_GetShiftState [23:36:12]wFMCommunicate request_size=4 [23:36:12]MH_SAM_APDU [23:36:12]CAPDU: 80 13 01 00 [23:36:12]Write to MH i2c: E2 08 00 24 31 80 13 01 00 00 00 00 00 D2 [23:36:12]Write i2c OK [23:36:12]MH_I2C_Read... [23:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:12]Read from MH i2c: E2 [23:36:12]MH_I2C_Read... [23:36:12]Read from MH i2c: E2 0E 00 [23:36:12]MH_I2C_Read... [23:36:12]Read from MH i2c: E2 0E 00 24 31 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FB [23:36:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:36:12]wFMCommunicate OK [23:36:12]SAM_PROTO_GetShiftState done [23:36:12]FM_GetShiftState done [23:36:12]opened in 1730332621 [23:36:12]opened+sec_in_day 1730419021 [23:36:12]quantity*price = 13900 [23:36:12]sum+1 = 13901 [23:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 0.00 Безнал.: 139.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 290 31.10.2024 23:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139813 ФПД: 35584366852264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233615&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139813&fm=35584366852264&tin=02508201610067®Number=0000000000091631&sum=13900 0 [23:36:13]StoreToDocumentArchive [23:36:13]shift 557 fd 139813 [23:36:13]save to /storage/0557/doc_00139813 [23:36:13]save last doc name /storage/0557/doc_00139813 to /storage/kkm_last_doc_name [23:36:13]save OK [23:36:13]Clear old archive folders... [23:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=272 [23:36:13]tlvbuf is 00B4DBF0 [23:36:13]SAM_PROTO_ClearQueue [23:36:13]wFMCommunicate request_size=4 [23:36:13]MH_SAM_APDU [23:36:13]CAPDU: 80 09 00 00 [23:36:13]Write to MH i2c: E2 08 00 31 31 80 09 00 00 00 00 00 00 D4 [23:36:13]Write i2c OK [23:36:13]MH_I2C_Read... [23:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:13]Read from MH i2c: E2 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 31 31 00 90 00 D6 [23:36:13]RAPDU: 90 00 [23:36:13]wFMCommunicate OK [23:36:13]SAM_PROTO_ClearQueue done [23:36:13]KKMCreateOFDPacket [23:36:13]OFDProtocolAddRootSTLVToBuf [23:36:13]FM_MakeSignedData [23:36:13]FM_MakeSignedData [23:36:13]SAM_PROTO_SignData [23:36:13]wFMCommunicate request_size=4 [23:36:13]MH_SAM_APDU [23:36:13]CAPDU: 80 0D 01 02 [23:36:13]Write to MH i2c: E2 08 00 32 31 80 0D 01 02 00 00 00 00 DC [23:36:13]Write i2c OK [23:36:13]MH_I2C_Read... [23:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:13]Read from MH i2c: E2 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 32 31 00 90 00 D7 [23:36:13]RAPDU: 90 00 [23:36:13]wFMCommunicate OK [23:36:13]wFMCommunicate request_size=255 [23:36:13]MH_SAM_APDU [23:36:13]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 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 22 01 00 00 F4 03 04 00 6F 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [23:36:13]Write to MH i2c: E2 02 01 33 31 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 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 22 01 00 00 F4 03 04 00 6F 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 68 [23:36:13]Write i2c OK [23:36:13]MH_I2C_Read... [23:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:13]Read from MH i2c: E2 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [23:36:13]RAPDU: 90 00 [23:36:13]wFMCommunicate OK [23:36:13]wFMCommunicate request_size=31 [23:36:13]MH_SAM_APDU [23:36:13]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 25 22 02 00 35 04 06 00 20 5D 21 8B B8 A8 [23:36:13]Write to MH i2c: E2 22 00 34 31 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 25 22 02 00 35 04 06 00 20 5D 21 8B B8 A8 00 00 E4 [23:36:13]Write i2c OK [23:36:13]MH_I2C_Read... [23:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:13]Read from MH i2c: E2 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 03 00 34 31 00 90 00 D9 [23:36:13]RAPDU: 90 00 [23:36:13]wFMCommunicate OK [23:36:13]wFMCommunicate request_size=4 [23:36:13]MH_SAM_APDU [23:36:13]CAPDU: 80 0D 03 02 [23:36:13]Write to MH i2c: E2 08 00 35 31 80 0D 03 02 00 00 00 00 E1 [23:36:13]Write i2c OK [23:36:13]MH_I2C_Read... [23:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:13]Read from MH i2c: E2 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 0B 00 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 0B 00 35 31 00 AC 7A A4 5A 78 83 FC 0E 90 00 0B [23:36:13]RAPDU: AC 7A A4 5A 78 83 FC 0E 90 00 [23:36:13]wFMCommunicate OK [23:36:13]SAM_PROTO_SignData done [23:36:13]FM_MakeSignedData done [23:36:13]CreateOFDProtocolMessage [23:36:13]wFMCommunicate request_size=4 [23:36:13]MH_SAM_APDU [23:36:13]CAPDU: 80 11 00 00 [23:36:13]Write to MH i2c: E2 08 00 36 31 80 11 00 00 00 00 00 00 E1 [23:36:13]Write i2c OK [23:36:13]MH_I2C_Read... [23:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:13]Read from MH i2c: E2 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 17 00 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: E2 17 00 36 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3C [23:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:36:13]wFMCommunicate OK [23:36:13]CreateOFDProtocolMessage done [23:36:13]OFDSenderStorePacket 139813 [23:36:13]StoreOFDPacket docnum=139813 [23:36: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 24 01 00 00 F1 7E 1C 01 87 6A 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 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 22 01 00 00 F4 03 04 00 6F 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 25 22 02 00 35 04 06 00 20 5D 21 8B B8 A8 AC 7A A4 5A 78 83 FC 0E [23:36:13]CheckFolder [23:36:13]dirname=/storage/ofd_packets [23:36:13]CheckFolder done [23:36:13]ProducePacketName [23:36:13]name=ofd_packets/00139813 [23:36:13]NVStorageSaveData ofd_packets/00139813 [23:36:13]File name is /storage/ofd_packets/00139813 [23:36:13]Write 322 bytes [23:36:13]NVStorageSaveData done [23:36:13]OFDSenderStorePacket done [23:36:13]KKMCreateOFDPacket done [23:36:13]NVStorageSaveData kkm_last_timestamp [23:36:13]File name is /storage/kkm_last_timestamp [23:36:13]Write 4 bytes [23:36:13]NVStorageSaveData done [23:36:13]ExternCall_PrintAddStr [23:36:13]wPrintStart [23:36:13]Write to MH i2c: 01 00 00 37 31 68 [23:36:13]Write i2c OK [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: 01 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: 01 07 00 [23:36:13]MH_I2C_Read... [23:36:13]Read from MH i2c: 01 07 00 37 31 00 00 00 00 00 FF 0F 7D [23:36:13]RasterBufferAndPrint [23:36:13]line Счет N : (3)335643 [23:36:13]line ИНН: 02508201610067 [23:36:13]line Контрольно-Кассовый Чек [23:36:13]line ПРОДАЖА [23:36:13]line Товар: 48745000 [23:36:13]line Сигареты Winston Purple Mix [23:36:13]line 1.000 * 139.00 [23:36:13]line = 139.00 [23:36:13]line НДС 12% НСП 1% [23:36:13]line > о реализуемом товаре [23:36:13]line ИТОГО: 139.00 [23:36:13]line НСП 1% : 1.23 [23:36:13]line НДС 12% : 14.76 [23:36:13]line Наличными: 0.00 [23:36:13]line Безнал.: 139.00 [23:36:13]line Место: АЗС № 101 "Партнер Нефть" [23:36:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:36:13]line СНО: Общий режим [23:36:13]line Чек 290 31.10.2024 23:36 [23:36:13]line Смена: 557 ФФД: 1.0 [23:36:13]line ЗНМ: 0300000081 [23:36:13]line РНМ: 0000000000091631 [23:36:13]line Версия ККМ: 001 [23:36:13]line Платежная система: Mbank [23:36:13]line ФМ: 0000000000874669 [23:36:13]line ФД: 139813 [23:36:13]line ФПД: 35584366852264 [23:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233615&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139813&fm=35584366852264&tin=02508201610067®Number=0000000000091631&sum=13900 [23:36:14]line 0 [23:36:14]OFD Sender: Processing packet 139813 [packets to send 34, broken 33] [23:36:14]ProducePacketName [23:36:14]name=ofd_packets/00139813 [23:36:14]OFD Sender: To server: pG, [23:36:14]CommunicateWithHost lk.salyk.kg:30040 [23:36:14]ConnectInit lk.salyk.kg [23:36:14]written 0, free lines is 4095 [23:36:14]Connected sock=10 [23:36: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 24 01 00 00 F1 7E 1C 01 87 6A 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 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 22 01 00 00 F4 03 04 00 6F 14 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 25 22 02 00 35 04 06 00 20 5D 21 8B B8 A8 AC 7A A4 5A 78 83 FC 0E [23:36: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 B5 53 47 00 7C 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 25 22 02 00 F4 03 04 00 1B C0 23 67 B6 04 01 00 00 FB 2A 96 43 46 27 2B BB [23:36:14]CommunicateWithHost err = 0 [23:36:14]CheckOFDResponse [23:36:14]1017 (14) - 77093643461234 [23:36:14]1041 (16) - 0000000000874669 [23:36:14]1040 (4) - 139813 [23:36:14]1012 (4) - 31.10.2024 17:36 [23:36:14]1206 (1) - 0 [23:36:14]OFD Sender: Remove packet 139813 [23:36:14]ProducePacketName [23:36:14]name=ofd_packets/00139813 [23:36:14]NVStorageDeleteData [23:36:14]Write to MH i2c: 01 00 00 60 31 91 [23:36:14]Write i2c OK [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: 01 [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: 01 07 00 [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: 01 07 00 60 31 00 00 00 00 00 02 0D A7 [23:36:14]RasterBufferAndPrint [23:36:14]line [23:36:14]line [23:36:14]line [23:36:14]line [23:36:14]line [23:36:14]written 0, free lines is 3336 [23:36:14]MH_Cut [23:36:14]Write to MH i2c: D1 01 00 67 31 01 6A [23:36:14]Write i2c OK [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: D1 [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: D1 01 00 [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: D1 01 00 67 31 00 69 [23:36:14]Write to MH i2c: 01 00 00 68 31 99 [23:36:14]Write i2c OK [23:36:14]MH_I2C_Read... [23:36:15]OFD Sender: No OFD packet to send [23:36:15]*** Cut start [23:36:15]*** Partial cut [23:36:15]*** CUTSNS_PIN = 1 [23:36:15]*** CUTSNS_PIN = 0 [23:36:15]*** Brake cut motor [23:36:15]Read from MH i2c: 01 [23:36:15]MH_I2C_Read... [23:36:15]*** Stop cut motor [23:36:15]*** Cut end [23:36:15]Read from MH i2c: 01 07 00 [23:36:15]MH_I2C_Read... [23:36:15]Read from MH i2c: 01 07 00 68 31 00 00 00 00 00 FF 0F AE [23:36:15]process_action close_receipt done [23:36:15]requested_data is exist [23:36:15]produce_requested_data [23:36:15]requested_item fm.sn is exist - process it [23:36:15]wFMCommunicate request_size=4 [23:36:15]MH_SAM_APDU [23:36:15]CAPDU: 80 11 00 00 [23:36:15]Write to MH i2c: E2 08 00 69 31 80 11 00 00 00 00 00 00 14 [23:36:15]Write i2c OK [23:36:15]MH_I2C_Read... [23:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:16]Read from MH i2c: E2 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 17 00 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 17 00 69 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6F [23:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:36:16]wFMCommunicate OK [23:36:16]requested_item fd.num is exist - process it [23:36:16]SAM_PROTO_GetFieldsCounters [23:36:16]wFMCommunicate request_size=4 [23:36:16]MH_SAM_APDU [23:36:16]CAPDU: 80 13 00 00 [23:36:16]Write to MH i2c: E2 08 00 6A 31 80 13 00 00 00 00 00 00 17 [23:36:16]Write i2c OK [23:36:16]MH_I2C_Read... [23:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:16]Read from MH i2c: E2 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 62 00 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 62 00 6A 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 25 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [23:36: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 25 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:36:16]wFMCommunicate OK [23:36:16]SAM_PROTO_GetFieldsCounters done [23:36:16]requested_item shift.num is exist - process it [23:36:16]requested_item shift.opened is exist - process it [23:36:16]req_shift_opened [23:36:16]FM_GetShiftState [23:36:16]SAM_PROTO_GetShiftState [23:36:16]wFMCommunicate request_size=4 [23:36:16]MH_SAM_APDU [23:36:16]CAPDU: 80 13 01 00 [23:36:16]Write to MH i2c: E2 08 00 6B 31 80 13 01 00 00 00 00 00 19 [23:36:16]Write i2c OK [23:36:16]MH_I2C_Read... [23:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:16]Read from MH i2c: E2 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 0E 00 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 0E 00 6B 31 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 42 [23:36:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:36:16]wFMCommunicate OK [23:36:16]SAM_PROTO_GetShiftState done [23:36:16]FM_GetShiftState done [23:36:16]req_shift_opened done [23:36:16]requested_item shift.open_date is exist - process it [23:36:16]req_shift_open_date [23:36:16]req_shift_open_date done [23:36:16]produce_requested_data done [23:36:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139813,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:36:16]process_action_free close_receipt [23:36:16]json_value_free [23:36:16]json_value_free done [23:36:16]process_json_proto returns [23:36:16]Send response to host [23:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139813,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:36:16]free response buf [23:36:16]execute_script done [23:36:16]execute_script returns [23:36:16]free content buf [23:36:16]Sock 9.Close socket [23:36:16]Sock 9.Thread stoped [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:26]accept exits with 7 [23:39:26]New connection [23:39:26]New thread 3066654052 created [23:39:26]Thread 3066510692 joined [23:39:26]Waiting for new connection... [23:39:26] Sock 7.Parse request [23:39:26]Sock 7.Check first char [23:39:26]Sock 7.First char is OK [23:39:26]request: POST /json_proto HTTP/1.0 [23:39:26]Method: POST [23:39:26]URL: /json_proto [23:39:26]Method is POST - this is cgi request [23:39:26]url: /json_proto [23:39:26]query_string will be loaded in cgi processing [23:39:26]execute_cgi json_proto POST (null) [23:39:26]execute_cgi path=json_proto method=POST [23:39:26]POST find Content-Length [23:39:26]Host: 172.17.50.196:8080 [23:39:26]Content-Length: 622 [23:39:26]Content-Type: application/json [23:39:26] [23:39:26]POST finish read [23:39:26]Found Content-Length = 622 [23:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335644", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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" ] } } [23:39:26]execute_script... [23:39:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335644", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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" ] } } [23:39:26]POST & json_proto [23:39:26]process_json_proto [23:39:26]json parsed OK: [23:39:26]protocol is kg_v1.0 [23:39:26]action value=close_receipt [23:39:26]process_action close_receipt [23:39:26]cmd_close_receipt [23:39:26]MH_GetDate [23:39:26]Write to MH i2c: F0 00 00 6C 31 8C [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: F0 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: F0 09 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: F0 09 00 6C 31 00 31 15 24 67 72 0D 1C 67 68 [23:39:26]GetLastDocTimeStamp 1730417775 [23:39:26]current date 1730417969 [23:39:26]FM_GetShiftState [23:39:26]SAM_PROTO_GetShiftState [23:39:26]wFMCommunicate request_size=4 [23:39:26]MH_SAM_APDU [23:39:26]CAPDU: 80 13 01 00 [23:39:26]Write to MH i2c: E2 08 00 6D 31 80 13 01 00 00 00 00 00 1B [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:26]Read from MH i2c: E2 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 0E 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 0E 00 6D 31 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 44 [23:39:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:39:26]wFMCommunicate OK [23:39:26]SAM_PROTO_GetShiftState done [23:39:26]FM_GetShiftState done [23:39:26]opened in 1730332621 [23:39:26]opened+sec_in_day 1730419021 [23:39:26]quantity*price = 15900 [23:39:26]sum+1 = 15901 [23:39:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 291 31.10.2024 23:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139814 ФПД: 197859703293228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139814&fm=197859703293228&tin=02508201610067®Number=0000000000091631&sum=15900 0 [23:39:27]StoreToDocumentArchive [23:39:27]shift 557 fd 139814 [23:39:27]save to /storage/0557/doc_00139814 [23:39:27]save last doc name /storage/0557/doc_00139814 to /storage/kkm_last_doc_name [23:39:27]save OK [23:39:27]Clear old archive folders... [23:39:27]ProcessDocumentItem done err = 0, tmpTLVsize=274 [23:39:27]tlvbuf is 00A5DCB0 [23:39:27]SAM_PROTO_ClearQueue [23:39:27]wFMCommunicate request_size=4 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 09 00 00 [23:39:27]Write to MH i2c: E2 08 00 7A 31 80 09 00 00 00 00 00 00 1D [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:27]Read from MH i2c: E2 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 7A 31 00 90 00 1F [23:39:27]RAPDU: 90 00 [23:39:27]wFMCommunicate OK [23:39:27]SAM_PROTO_ClearQueue done [23:39:27]KKMCreateOFDPacket [23:39:27]OFDProtocolAddRootSTLVToBuf [23:39:27]FM_MakeSignedData [23:39:27]FM_MakeSignedData [23:39:27]SAM_PROTO_SignData [23:39:27]wFMCommunicate request_size=4 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 0D 01 02 [23:39:27]Write to MH i2c: E2 08 00 7B 31 80 0D 01 02 00 00 00 00 25 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:27]Read from MH i2c: E2 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 7B 31 00 90 00 20 [23:39:27]RAPDU: 90 00 [23:39:27]wFMCommunicate OK [23:39:27]wFMCommunicate request_size=255 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 01 00 00 F4 03 04 00 31 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [23:39:27]Write to MH i2c: E2 02 01 7C 31 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 01 00 00 F4 03 04 00 31 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 68 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:27]Read from MH i2c: E2 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 7C 31 00 90 00 21 [23:39:27]RAPDU: 90 00 [23:39:27]wFMCommunicate OK [23:39:27]wFMCommunicate request_size=33 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 26 22 02 00 35 04 06 00 B3 F3 CD 54 85 2C [23:39:27]Write to MH i2c: E2 24 00 7D 31 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 26 22 02 00 35 04 06 00 B3 F3 CD 54 85 2C 00 00 81 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:27]Read from MH i2c: E2 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 03 00 7D 31 00 90 00 22 [23:39:27]RAPDU: 90 00 [23:39:27]wFMCommunicate OK [23:39:27]wFMCommunicate request_size=4 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 0D 03 02 [23:39:27]Write to MH i2c: E2 08 00 7E 31 80 0D 03 02 00 00 00 00 2A [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:27]Read from MH i2c: E2 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 0B 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 0B 00 7E 31 00 57 52 0D 17 E3 46 BB 46 90 00 22 [23:39:27]RAPDU: 57 52 0D 17 E3 46 BB 46 90 00 [23:39:27]wFMCommunicate OK [23:39:27]SAM_PROTO_SignData done [23:39:27]FM_MakeSignedData done [23:39:27]CreateOFDProtocolMessage [23:39:27]wFMCommunicate request_size=4 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 11 00 00 [23:39:27]Write to MH i2c: E2 08 00 7F 31 80 11 00 00 00 00 00 00 2A [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 17 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 17 00 7F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 85 [23:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:39:28]wFMCommunicate OK [23:39:28]CreateOFDProtocolMessage done [23:39:28]OFDSenderStorePacket 139814 [23:39:28]StoreOFDPacket docnum=139814 [23:39:28]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 7F 3E 1E 01 E0 13 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 01 00 00 F4 03 04 00 31 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 26 22 02 00 35 04 06 00 B3 F3 CD 54 85 2C 57 52 0D 17 E3 46 BB 46 [23:39:28]CheckFolder [23:39:28]dirname=/storage/ofd_packets [23:39:28]CheckFolder done [23:39:28]ProducePacketName [23:39:28]name=ofd_packets/00139814 [23:39:28]NVStorageSaveData ofd_packets/00139814 [23:39:28]File name is /storage/ofd_packets/00139814 [23:39:28]Write 324 bytes [23:39:28]NVStorageSaveData done [23:39:28]OFDSenderStorePacket done [23:39:28]KKMCreateOFDPacket done [23:39:28]NVStorageSaveData kkm_last_timestamp [23:39:28]File name is /storage/kkm_last_timestamp [23:39:28]Write 4 bytes [23:39:28]NVStorageSaveData done [23:39:28]ExternCall_PrintAddStr [23:39:28]wPrintStart [23:39:28]Write to MH i2c: 01 00 00 80 31 B1 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: 01 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: 01 07 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: 01 07 00 80 31 00 00 00 00 00 FF 0F C6 [23:39:28]RasterBufferAndPrint [23:39:28]line Счет N : (3)335644 [23:39:28]line ИНН: 02508201610067 [23:39:28]line Контрольно-Кассовый Чек [23:39:28]line ПРОДАЖА [23:39:28]line Товар: 4640030091645 [23:39:28]line Сигареты ESSE Exchange M [23:39:28]line 1.000 * 159.00 [23:39:28]line = 159.00 [23:39:28]line НДС 12% НСП 1% [23:39:28]line > о реализуемом товаре [23:39:28]line ИТОГО: 159.00 [23:39:28]line НСП 1% : 1.41 [23:39:28]line НДС 12% : 16.88 [23:39:28]line Наличными: 159.00 [23:39:28]line Безнал.: 0.00 [23:39:28]line Место: АЗС № 101 "Партнер Нефть" [23:39:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:39:28]line СНО: Общий режим [23:39:28]line Чек 291 31.10.2024 23:39 [23:39:28]line Смена: 557 ФФД: 1.0 [23:39:28]line ЗНМ: 0300000081 [23:39:28]line РНМ: 0000000000091631 [23:39:28]line Версия ККМ: 001 [23:39:28]line ФМ: 0000000000874669 [23:39:28]line ФД: 139814 [23:39:28]line ФПД: 197859703293228 [23:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T233929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139814&fm=197859703293228&tin=02508201610067®Number=0000000000091631&sum=15900 [23:39:28]line 0 [23:39:28]OFD Sender: Processing packet 139814 [packets to send 34, broken 33] [23:39:28]ProducePacketName [23:39:28]name=ofd_packets/00139814 [23:39:28]OFD Sender: To server: pG, [23:39:28]CommunicateWithHost lk.salyk.kg:30040 [23:39:28]ConnectInit lk.salyk.kg [23:39:28]written 0, free lines is 4095 [23:39:28]Connected sock=10 [23:39: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 26 01 00 00 7F 3E 1E 01 E0 13 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 01 00 00 F4 03 04 00 31 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 26 22 02 00 35 04 06 00 B3 F3 CD 54 85 2C 57 52 0D 17 E3 46 BB 46 [23:39: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 CC E6 47 00 5D 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 26 22 02 00 F4 03 04 00 DD C0 23 67 B6 04 01 00 00 EA 97 DF D8 74 AE 10 71 [23:39:28]CommunicateWithHost err = 0 [23:39:28]CheckOFDResponse [23:39:28]1017 (14) - 77093643461234 [23:39:28]1041 (16) - 0000000000874669 [23:39:28]1040 (4) - 139814 [23:39:28]1012 (4) - 31.10.2024 17:39 [23:39:28]1206 (1) - 0 [23:39:28]OFD Sender: Remove packet 139814 [23:39:28]ProducePacketName [23:39:28]name=ofd_packets/00139814 [23:39:28]NVStorageDeleteData [23:39:28]Write to MH i2c: 01 00 00 A8 31 D9 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: 01 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: 01 07 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: 01 07 00 A8 31 00 00 00 00 00 1D 0D 0A [23:39:28]RasterBufferAndPrint [23:39:28]line [23:39:28]line [23:39:28]line [23:39:28]line [23:39:28]line [23:39:28]written 0, free lines is 3362 [23:39:28]MH_Cut [23:39:28]Write to MH i2c: D1 01 00 AF 31 01 B2 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: D1 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: D1 01 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: D1 01 00 AF 31 00 B1 [23:39:28]Write to MH i2c: 01 00 00 B0 31 E1 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:29]OFD Sender: No OFD packet to send [23:39:29]*** Cut start [23:39:29]*** Partial cut [23:39:29]*** CUTSNS_PIN = 1 [23:39:29]*** CUTSNS_PIN = 0 [23:39:29]*** Brake cut motor [23:39:30]Read from MH i2c: 01 [23:39:30]MH_I2C_Read... [23:39:30]*** Stop cut motor [23:39:30]*** Cut end [23:39:30]Read from MH i2c: 01 07 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: 01 07 00 B0 31 00 00 00 00 00 FF 0F F6 [23:39:30]process_action close_receipt done [23:39:30]requested_data is exist [23:39:30]produce_requested_data [23:39:30]requested_item fm.sn is exist - process it [23:39:30]wFMCommunicate request_size=4 [23:39:30]MH_SAM_APDU [23:39:30]CAPDU: 80 11 00 00 [23:39:30]Write to MH i2c: E2 08 00 B1 31 80 11 00 00 00 00 00 00 5C [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:30]Read from MH i2c: E2 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: E2 17 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: E2 17 00 B1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B7 [23:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:39:30]wFMCommunicate OK [23:39:30]requested_item fd.num is exist - process it [23:39:30]SAM_PROTO_GetFieldsCounters [23:39:30]wFMCommunicate request_size=4 [23:39:30]MH_SAM_APDU [23:39:30]CAPDU: 80 13 00 00 [23:39:30]Write to MH i2c: E2 08 00 B2 31 80 13 00 00 00 00 00 00 5F [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:30]Read from MH i2c: E2 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: E2 62 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: E2 62 00 B2 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 26 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [23:39:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 26 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:30]wFMCommunicate OK [23:39:30]SAM_PROTO_GetFieldsCounters done [23:39:30]requested_item shift.num is exist - process it [23:39:30]requested_item shift.opened is exist - process it [23:39:30]req_shift_opened [23:39:30]FM_GetShiftState [23:39:30]SAM_PROTO_GetShiftState [23:39:30]wFMCommunicate request_size=4 [23:39:30]MH_SAM_APDU [23:39:30]CAPDU: 80 13 01 00 [23:39:30]Write to MH i2c: E2 08 00 B3 31 80 13 01 00 00 00 00 00 61 [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:30]Read from MH i2c: E2 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: E2 0E 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: E2 0E 00 B3 31 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8A [23:39:30]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:39:30]wFMCommunicate OK [23:39:30]SAM_PROTO_GetShiftState done [23:39:30]FM_GetShiftState done [23:39:30]req_shift_opened done [23:39:30]requested_item shift.open_date is exist - process it [23:39:30]req_shift_open_date [23:39:30]req_shift_open_date done [23:39:30]produce_requested_data done [23:39:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139814,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:39:30]process_action_free close_receipt [23:39:30]json_value_free [23:39:30]json_value_free done [23:39:30]process_json_proto returns [23:39:30]Send response to host [23:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139814,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:39:30]free response buf [23:39:30]execute_script done [23:39:30]execute_script returns [23:39:30]free content buf [23:39:30]Sock 7.Close socket [23:39:30]Sock 7.Thread stoped [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:13]accept exits with 9 [23:40:13]New connection [23:40:13]New thread 3066510692 created [23:40:13]Thread 3066654052 joined [23:40:13]Waiting for new connection... [23:40:13] Sock 9.Parse request [23:40:13]Sock 9.Check first char [23:40:13]Sock 9.First char is OK [23:40:13]request: POST /json_proto HTTP/1.0 [23:40:13]Method: POST [23:40:13]URL: /json_proto [23:40:13]Method is POST - this is cgi request [23:40:13]url: /json_proto [23:40:13]query_string will be loaded in cgi processing [23:40:13]execute_cgi json_proto POST (null) [23:40:13]execute_cgi path=json_proto method=POST [23:40:13]POST find Content-Length [23:40:13]Host: 172.17.50.196:8080 [23:40:13]Content-Length: 683 [23:40:13]Content-Type: application/json [23:40:13] [23:40:13]POST finish read [23:40:13]Found Content-Length = 683 [23:40:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [23:40:13]execute_script... [23:40: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 : (1)1095552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [23:40:13]POST & json_proto [23:40:13]process_json_proto [23:40:13]json parsed OK: [23:40:13]protocol is kg_v1.0 [23:40:13]action value=close_receipt [23:40:13]process_action close_receipt [23:40:13]cmd_close_receipt [23:40:13]MH_GetDate [23:40:13]Write to MH i2c: F0 00 00 B4 31 D4 [23:40:13]Write i2c OK [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: F0 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: F0 09 00 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: F0 09 00 B4 31 00 60 15 24 67 72 0D 1C 67 DF [23:40:13]GetLastDocTimeStamp 1730417969 [23:40:13]current date 1730418016 [23:40:13]FM_GetShiftState [23:40:13]SAM_PROTO_GetShiftState [23:40:13]wFMCommunicate request_size=4 [23:40:13]MH_SAM_APDU [23:40:13]CAPDU: 80 13 01 00 [23:40:13]Write to MH i2c: E2 08 00 B5 31 80 13 01 00 00 00 00 00 63 [23:40:13]Write i2c OK [23:40:13]MH_I2C_Read... [23:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:13]Read from MH i2c: E2 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: E2 0E 00 [23:40:13]MH_I2C_Read... [23:40:13]Read from MH i2c: E2 0E 00 B5 31 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8C [23:40:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:40:13]wFMCommunicate OK [23:40:13]SAM_PROTO_GetShiftState done [23:40:13]FM_GetShiftState done [23:40:13]opened in 1730332621 [23:40:13]opened+sec_in_day 1730419021 [23:40:13]quantity*price = 40005 [23:40:13]sum+1 = 40006 [23:40:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 292 31.10.2024 23:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139815 ФПД: 42125662668503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234016&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139815&fm=42125662668503&tin=02508201610067®Number=0000000000091631&sum=40000 [23:40:14]StoreToDocumentArchive [23:40:14]shift 557 fd 139815 [23:40:14]save to /storage/0557/doc_00139815 [23:40:14]save last doc name /storage/0557/doc_00139815 to /storage/kkm_last_doc_name [23:40:14]save OK [23:40:14]Clear old archive folders... [23:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:40:14]tlvbuf is 00A26180 [23:40:14]SAM_PROTO_ClearQueue [23:40:14]wFMCommunicate request_size=4 [23:40:14]MH_SAM_APDU [23:40:14]CAPDU: 80 09 00 00 [23:40:14]Write to MH i2c: E2 08 00 C2 31 80 09 00 00 00 00 00 00 65 [23:40:14]Write i2c OK [23:40:14]MH_I2C_Read... [23:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:14]Read from MH i2c: E2 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 03 00 [23:40:14]MH_I2C_Read... [23:40:14]Read from MH i2c: E2 03 00 C2 31 00 90 00 67 [23:40:14]RAPDU: 90 00 [23:40:14]wFMCommunicate OK [23:40:14]SAM_PROTO_ClearQueue done [23:40:14]KKMCreateOFDPacket [23:40:14]OFDProtocolAddRootSTLVToBuf [23:40:14]FM_MakeSignedData [23:40:14]FM_MakeSignedData [23:40:14]SAM_PROTO_SignData [23:40:14]wFMCommunicate request_size=4 [23:40:14]MH_SAM_APDU [23:40:14]CAPDU: 80 0D 01 02 [23:40:14]Write to MH i2c: E2 08 00 C3 31 80 0D 01 02 00 00 00 00 6D [23:40:14]Write i2c OK [23:40:14]MH_I2C_Read... [23:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:15]Read from MH i2c: E2 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 03 00 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 03 00 C3 31 00 90 00 68 [23:40:15]RAPDU: 90 00 [23:40:15]wFMCommunicate OK [23:40:15]wFMCommunicate request_size=255 [23:40:15]MH_SAM_APDU [23:40:15]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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 60 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 22 02 00 35 04 06 00 [23:40:15]Write to MH i2c: E2 02 01 C4 31 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 60 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 22 02 00 35 04 06 00 00 00 6C [23:40:15]Write i2c OK [23:40:15]MH_I2C_Read... [23:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:15]Read from MH i2c: E2 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 03 00 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 03 00 C4 31 00 90 00 69 [23:40:15]RAPDU: 90 00 [23:40:15]wFMCommunicate OK [23:40:15]wFMCommunicate request_size=11 [23:40:15]MH_SAM_APDU [23:40:15]CAPDU: 80 0D 02 02 06 26 50 25 28 C6 D7 [23:40:15]Write to MH i2c: E2 0E 00 C5 31 80 0D 02 02 06 00 26 50 25 28 C6 D7 00 00 DC [23:40:15]Write i2c OK [23:40:15]MH_I2C_Read... [23:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:15]Read from MH i2c: E2 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 03 00 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 03 00 C5 31 00 90 00 6A [23:40:15]RAPDU: 90 00 [23:40:15]wFMCommunicate OK [23:40:15]wFMCommunicate request_size=4 [23:40:15]MH_SAM_APDU [23:40:15]CAPDU: 80 0D 03 02 [23:40:15]Write to MH i2c: E2 08 00 C6 31 80 0D 03 02 00 00 00 00 72 [23:40:15]Write i2c OK [23:40:15]MH_I2C_Read... [23:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:15]Read from MH i2c: E2 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 0B 00 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 0B 00 C6 31 00 C6 80 19 7F 8C 0D B5 B0 90 00 4F [23:40:15]RAPDU: C6 80 19 7F 8C 0D B5 B0 90 00 [23:40:15]wFMCommunicate OK [23:40:15]SAM_PROTO_SignData done [23:40:15]FM_MakeSignedData done [23:40:15]CreateOFDProtocolMessage [23:40:15]wFMCommunicate request_size=4 [23:40:15]MH_SAM_APDU [23:40:15]CAPDU: 80 11 00 00 [23:40:15]Write to MH i2c: E2 08 00 C7 31 80 11 00 00 00 00 00 00 72 [23:40:15]Write i2c OK [23:40:15]MH_I2C_Read... [23:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:15]Read from MH i2c: E2 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 17 00 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: E2 17 00 C7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CD [23:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:40:15]wFMCommunicate OK [23:40:15]CreateOFDProtocolMessage done [23:40:15]OFDSenderStorePacket 139815 [23:40:15]StoreOFDPacket docnum=139815 [23:40: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 10 01 00 00 F4 F8 08 01 79 1D 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 60 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 22 02 00 35 04 06 00 26 50 25 28 C6 D7 C6 80 19 7F 8C 0D B5 B0 [23:40:15]CheckFolder [23:40:15]dirname=/storage/ofd_packets [23:40:15]CheckFolder done [23:40:15]ProducePacketName [23:40:15]name=ofd_packets/00139815 [23:40:15]NVStorageSaveData ofd_packets/00139815 [23:40:15]File name is /storage/ofd_packets/00139815 [23:40:15]Write 302 bytes [23:40:15]NVStorageSaveData done [23:40:15]OFDSenderStorePacket done [23:40:15]KKMCreateOFDPacket done [23:40:15]NVStorageSaveData kkm_last_timestamp [23:40:15]File name is /storage/kkm_last_timestamp [23:40:15]Write 4 bytes [23:40:15]NVStorageSaveData done [23:40:15]ExternCall_PrintAddStr [23:40:15]wPrintStart [23:40:15]Write to MH i2c: 01 00 00 C8 31 F9 [23:40:15]Write i2c OK [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: 01 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: 01 07 00 [23:40:15]MH_I2C_Read... [23:40:15]Read from MH i2c: 01 07 00 C8 31 00 00 00 00 00 FF 0F 0E [23:40:15]RasterBufferAndPrint [23:40:15]line Счет N : (1)1095552 [23:40:15]line ИНН: 02508201610067 [23:40:15]line Контрольно-Кассовый Чек [23:40:15]line ПРОДАЖА [23:40:15]line ТРК (МРК, ГНК) : 61 [23:40:15]line Товар: 2710194210 [23:40:15]line ДТ(л)-К-2 [23:40:15]line 5.250 * 76.20 [23:40:15]line = 400.05 [23:40:15]line НДС 12% НСП 1% [23:40:15]line > о реализуемом товаре [23:40:15]line ОКРУГЛЕНИЕ: -0.05 [23:40:15]line ИТОГО: 400.00 [23:40:15]line Внесено: 400.00 [23:40:15]line СДАЧА: 0.00 [23:40:15]line НСП 1% : 3.54 [23:40:15]line НДС 12% : 42.48 [23:40:15]line Наличными: 400.00 [23:40:15]line Безнал.: 0.00 [23:40:15]line Место: АЗС № 101 "Партнер Нефть" [23:40:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:40:15]line СНО: Общий режим [23:40:15]line Чек 292 31.10.2024 23:40 [23:40:15]line Смена: 557 ФФД: 1.0 [23:40:15]line ЗНМ: 0300000081 [23:40:15]line РНМ: 0000000000091631 [23:40:15]line Версия ККМ: 001 [23:40:15]line ФМ: 0000000000874669 [23:40:15]line ФД: 139815 [23:40:15]line ФПД: 42125662668503 [23:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234016&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139815&fm=42125662668503&tin=02508201610067®Number=0000000000091631&sum=40000 [23:40:15]OFD Sender: Processing packet 139815 [packets to send 34, broken 33] [23:40:15]ProducePacketName [23:40:15]name=ofd_packets/00139815 [23:40:15]OFD Sender: To server: pG, [23:40:15]CommunicateWithHost lk.salyk.kg:30040 [23:40:15]ConnectInit lk.salyk.kg [23:40:15]written 0, free lines is 4095 [23:40:15]Connected sock=10 [23:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 F4 F8 08 01 79 1D 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 60 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 22 02 00 35 04 06 00 26 50 25 28 C6 D7 C6 80 19 7F 8C 0D B5 B0 [23:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 34 E1 47 00 FE D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 22 02 00 F4 03 04 00 0D C1 23 67 B6 04 01 00 00 A4 DA D2 E0 64 39 80 82 [23:40:16]CommunicateWithHost err = 0 [23:40:16]CheckOFDResponse [23:40:16]1017 (14) - 77093643461234 [23:40:16]1041 (16) - 0000000000874669 [23:40:16]1040 (4) - 139815 [23:40:16]1012 (4) - 31.10.2024 17:40 [23:40:16]1206 (1) - 0 [23:40:16]OFD Sender: Remove packet 139815 [23:40:16]ProducePacketName [23:40:16]name=ofd_packets/00139815 [23:40:16]NVStorageDeleteData [23:40:16]Write to MH i2c: 01 00 00 F3 31 24 [23:40:16]Write i2c OK [23:40:16]MH_I2C_Read... [23:40:16]Read from MH i2c: 01 [23:40:16]MH_I2C_Read... [23:40:16]Read from MH i2c: 01 07 00 [23:40:16]MH_I2C_Read... [23:40:16]Read from MH i2c: 01 07 00 F3 31 00 00 00 00 00 E8 0C 1F [23:40:16]RasterBufferAndPrint [23:40:16]line [23:40:16]line [23:40:16]line [23:40:16]line [23:40:16]line [23:40:16]written 0, free lines is 3310 [23:40:16]MH_Cut [23:40:16]Write to MH i2c: D1 01 00 FA 31 01 FD [23:40:16]Write i2c OK [23:40:16]MH_I2C_Read... [23:40:16]Read from MH i2c: D1 [23:40:16]MH_I2C_Read... [23:40:16]Read from MH i2c: D1 01 00 [23:40:16]MH_I2C_Read... [23:40:16]Read from MH i2c: D1 01 00 FA 31 00 FC [23:40:16]Write to MH i2c: 01 00 00 FB 31 2C [23:40:16]Write i2c OK [23:40:16]MH_I2C_Read... [23:40:16]OFD Sender: No OFD packet to send [23:40:16]*** Cut start [23:40:16]*** Partial cut [23:40:16]*** CUTSNS_PIN = 1 [23:40:16]*** CUTSNS_PIN = 0 [23:40:17]*** Brake cut motor [23:40:17]Read from MH i2c: 01 [23:40:17]MH_I2C_Read... [23:40:17]*** Stop cut motor [23:40:17]*** Cut end [23:40:17]Read from MH i2c: 01 07 00 [23:40:17]MH_I2C_Read... [23:40:17]Read from MH i2c: 01 07 00 FB 31 00 00 00 00 00 FF 0F 41 [23:40:17]process_action close_receipt done [23:40:17]requested_data is exist [23:40:17]produce_requested_data [23:40:17]requested_item fm.sn is exist - process it [23:40:17]wFMCommunicate request_size=4 [23:40:17]MH_SAM_APDU [23:40:17]CAPDU: 80 11 00 00 [23:40:17]Write to MH i2c: E2 08 00 FC 31 80 11 00 00 00 00 00 00 A7 [23:40:17]Write i2c OK [23:40:17]MH_I2C_Read... [23:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:17]Read from MH i2c: E2 [23:40:17]MH_I2C_Read... [23:40:17]Read from MH i2c: E2 17 00 [23:40:17]MH_I2C_Read... [23:40:17]Read from MH i2c: E2 17 00 FC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [23:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:40:17]wFMCommunicate OK [23:40:17]requested_item fd.num is exist - process it [23:40:17]SAM_PROTO_GetFieldsCounters [23:40:17]wFMCommunicate request_size=4 [23:40:17]MH_SAM_APDU [23:40:17]CAPDU: 80 13 00 00 [23:40:17]Write to MH i2c: E2 08 00 FD 31 80 13 00 00 00 00 00 00 AA [23:40:17]Write i2c OK [23:40:17]MH_I2C_Read... [23:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:17]Read from MH i2c: E2 [23:40:17]MH_I2C_Read... [23:40:17]Read from MH i2c: E2 62 00 [23:40:17]MH_I2C_Read... [23:40:17]Read from MH i2c: E2 62 00 FD 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 27 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [23:40:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 27 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:17]wFMCommunicate OK [23:40:17]SAM_PROTO_GetFieldsCounters done [23:40:17]requested_item shift.num is exist - process it [23:40:17]requested_item shift.opened is exist - process it [23:40:17]req_shift_opened [23:40:17]FM_GetShiftState [23:40:17]SAM_PROTO_GetShiftState [23:40:17]wFMCommunicate request_size=4 [23:40:17]MH_SAM_APDU [23:40:17]CAPDU: 80 13 01 00 [23:40:17]Write to MH i2c: E2 08 00 FE 31 80 13 01 00 00 00 00 00 AC [23:40:17]Write i2c OK [23:40:17]MH_I2C_Read... [23:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:17]Read from MH i2c: E2 [23:40:17]MH_I2C_Read... [23:40:17]Read from MH i2c: E2 0E 00 [23:40:17]MH_I2C_Read... [23:40:17]Read from MH i2c: E2 0E 00 FE 31 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D5 [23:40:17]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:40:17]wFMCommunicate OK [23:40:17]SAM_PROTO_GetShiftState done [23:40:17]FM_GetShiftState done [23:40:17]req_shift_opened done [23:40:17]requested_item shift.open_date is exist - process it [23:40:17]req_shift_open_date [23:40:17]req_shift_open_date done [23:40:17]produce_requested_data done [23:40:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139815,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:40:17]process_action_free close_receipt [23:40:17]json_value_free [23:40:17]json_value_free done [23:40:17]process_json_proto returns [23:40:17]Send response to host [23:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139815,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:40:17]free response buf [23:40:17]execute_script done [23:40:17]execute_script returns [23:40:17]free content buf [23:40:17]Sock 9.Close socket [23:40:17]Sock 9.Thread stoped [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:12]accept exits with 7 [23:41:12]New connection [23:41:12]New thread 3066654052 created [23:41:12]Thread 3066510692 joined [23:41:12]Waiting for new connection... [23:41:12] Sock 7.Parse request [23:41:12]Sock 7.Check first char [23:41:12]Sock 7.First char is OK [23:41:12]request: POST /json_proto HTTP/1.0 [23:41:12]Method: POST [23:41:12]URL: /json_proto [23:41:12]Method is POST - this is cgi request [23:41:12]url: /json_proto [23:41:12]query_string will be loaded in cgi processing [23:41:12]execute_cgi json_proto POST (null) [23:41:12]execute_cgi path=json_proto method=POST [23:41:12]POST find Content-Length [23:41:12]Host: 172.17.50.196:8080 [23:41:12]Content-Length: 608 [23:41:12]Content-Type: application/json [23:41:12] [23:41:12]POST finish read [23:41:12]Found Content-Length = 608 [23:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335645", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:12]execute_script... [23:41: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)335645", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:12]POST & json_proto [23:41:12]process_json_proto [23:41:12]json parsed OK: [23:41:12]protocol is kg_v1.0 [23:41:12]action value=close_receipt [23:41:12]process_action close_receipt [23:41:12]cmd_close_receipt [23:41:12]MH_GetDate [23:41:12]Write to MH i2c: F0 00 00 FF 31 1F [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: F0 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: F0 09 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: F0 09 00 FF 31 00 9B 15 24 67 72 0D 1C 67 65 [23:41:12]GetLastDocTimeStamp 1730418016 [23:41:12]current date 1730418075 [23:41:12]FM_GetShiftState [23:41:12]SAM_PROTO_GetShiftState [23:41:12]wFMCommunicate request_size=4 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 13 01 00 [23:41:12]Write to MH i2c: E2 08 00 00 32 80 13 01 00 00 00 00 00 AF [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 0E 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 0E 00 00 32 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D8 [23:41:12]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:41:12]wFMCommunicate OK [23:41:12]SAM_PROTO_GetShiftState done [23:41:12]FM_GetShiftState done [23:41:12]opened in 1730332621 [23:41:12]opened+sec_in_day 1730419021 [23:41:12]quantity*price = 2000 [23:41:12]sum+1 = 2001 [23:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 293 31.10.2024 23:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139816 ФПД: 241836132406496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139816&fm=241836132406496&tin=02508201610067®Number=0000000000091631&sum=2000 0 [23:41:13]StoreToDocumentArchive [23:41:13]shift 557 fd 139816 [23:41:13]save to /storage/0557/doc_00139816 [23:41:13]save last doc name /storage/0557/doc_00139816 to /storage/kkm_last_doc_name [23:41:13]save OK [23:41:13]Clear old archive folders... [23:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=267 [23:41:13]tlvbuf is 00AF55C0 [23:41:13]SAM_PROTO_ClearQueue [23:41:13]wFMCommunicate request_size=4 [23:41:13]MH_SAM_APDU [23:41:13]CAPDU: 80 09 00 00 [23:41:13]Write to MH i2c: E2 08 00 0D 32 80 09 00 00 00 00 00 00 B1 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:13]Read from MH i2c: E2 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 0D 32 00 90 00 B3 [23:41:13]RAPDU: 90 00 [23:41:13]wFMCommunicate OK [23:41:13]SAM_PROTO_ClearQueue done [23:41:13]KKMCreateOFDPacket [23:41:13]OFDProtocolAddRootSTLVToBuf [23:41:13]FM_MakeSignedData [23:41:13]FM_MakeSignedData [23:41:13]SAM_PROTO_SignData [23:41:13]wFMCommunicate request_size=4 [23:41:13]MH_SAM_APDU [23:41:13]CAPDU: 80 0D 01 02 [23:41:13]Write to MH i2c: E2 08 00 0E 32 80 0D 01 02 00 00 00 00 B9 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:13]Read from MH i2c: E2 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 0E 32 00 90 00 B4 [23:41:13]RAPDU: 90 00 [23:41:13]wFMCommunicate OK [23:41:13]wFMCommunicate request_size=255 [23:41:13]MH_SAM_APDU [23:41:13]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 9B 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [23:41:13]Write to MH i2c: E2 02 01 0F 32 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 9B 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 FD [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:13]Read from MH i2c: E2 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 0F 32 00 90 00 B5 [23:41:13]RAPDU: 90 00 [23:41:13]wFMCommunicate OK [23:41:13]wFMCommunicate request_size=26 [23:41:13]MH_SAM_APDU [23:41:13]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 28 22 02 00 35 04 06 00 DB F2 DC C4 14 E0 [23:41:13]Write to MH i2c: E2 1D 00 10 32 80 0D 02 02 15 00 36 36 39 10 04 04 00 28 22 02 00 35 04 06 00 DB F2 DC C4 14 E0 00 00 8F [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:13]Read from MH i2c: E2 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 03 00 10 32 00 90 00 B6 [23:41:13]RAPDU: 90 00 [23:41:13]wFMCommunicate OK [23:41:13]wFMCommunicate request_size=4 [23:41:13]MH_SAM_APDU [23:41:13]CAPDU: 80 0D 03 02 [23:41:13]Write to MH i2c: E2 08 00 11 32 80 0D 03 02 00 00 00 00 BE [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:13]Read from MH i2c: E2 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 0B 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 0B 00 11 32 00 08 A9 72 44 25 E8 91 C7 90 00 8B [23:41:13]RAPDU: 08 A9 72 44 25 E8 91 C7 90 00 [23:41:13]wFMCommunicate OK [23:41:13]SAM_PROTO_SignData done [23:41:13]FM_MakeSignedData done [23:41:13]CreateOFDProtocolMessage [23:41:13]wFMCommunicate request_size=4 [23:41:13]MH_SAM_APDU [23:41:13]CAPDU: 80 11 00 00 [23:41:13]Write to MH i2c: E2 08 00 12 32 80 11 00 00 00 00 00 00 BE [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:13]Read from MH i2c: E2 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 17 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 17 00 12 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 19 [23:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:41:13]wFMCommunicate OK [23:41:13]CreateOFDProtocolMessage done [23:41:13]OFDSenderStorePacket 139816 [23:41:13]StoreOFDPacket docnum=139816 [23:41: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 1F 01 00 00 E1 4E 17 01 E2 B4 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 9B 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 28 22 02 00 35 04 06 00 DB F2 DC C4 14 E0 08 A9 72 44 25 E8 91 C7 [23:41:13]CheckFolder [23:41:13]dirname=/storage/ofd_packets [23:41:13]CheckFolder done [23:41:13]ProducePacketName [23:41:13]name=ofd_packets/00139816 [23:41:13]NVStorageSaveData ofd_packets/00139816 [23:41:13]File name is /storage/ofd_packets/00139816 [23:41:13]Write 317 bytes [23:41:13]NVStorageSaveData done [23:41:13]OFDSenderStorePacket done [23:41:13]KKMCreateOFDPacket done [23:41:13]NVStorageSaveData kkm_last_timestamp [23:41:13]File name is /storage/kkm_last_timestamp [23:41:13]Write 4 bytes [23:41:13]NVStorageSaveData done [23:41:13]ExternCall_PrintAddStr [23:41:13]wPrintStart [23:41:13]Write to MH i2c: 01 00 00 13 32 45 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 07 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 07 00 13 32 00 00 00 00 00 FF 0F 5A [23:41:13]RasterBufferAndPrint [23:41:13]line Счет N : (3)335645 [23:41:13]line ИНН: 02508201610067 [23:41:13]line Контрольно-Кассовый Чек [23:41:13]line ПРОДАЖА [23:41:13]line Товар: 46231529 [23:41:13]line Mentos ПФ Арбуз 6*100*2 [23:41:13]line 2.000 * 10.00 [23:41:13]line = 20.00 [23:41:13]line НДС 12% НСП 1% [23:41:13]line > о реализуемом товаре [23:41:13]line ИТОГО: 20.00 [23:41:13]line НСП 1% : 0.18 [23:41:13]line НДС 12% : 2.12 [23:41:13]line Наличными: 20.00 [23:41:13]line Безнал.: 0.00 [23:41:13]line Место: АЗС № 101 "Партнер Нефть" [23:41:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:41:13]line СНО: Общий режим [23:41:13]line Чек 293 31.10.2024 23:41 [23:41:13]line Смена: 557 ФФД: 1.0 [23:41:13]line ЗНМ: 0300000081 [23:41:13]line РНМ: 0000000000091631 [23:41:13]line Версия ККМ: 001 [23:41:13]line ФМ: 0000000000874669 [23:41:13]line ФД: 139816 [23:41:13]line ФПД: 241836132406496 [23:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139816&fm=241836132406496&tin=02508201610067®Number=0000000000091631&sum=2000 [23:41:14]OFD Sender: Processing packet 139816 [packets to send 34, broken 33] [23:41:14]ProducePacketName [23:41:14]name=ofd_packets/00139816 [23:41:14]OFD Sender: To server: pG, [23:41:14]CommunicateWithHost lk.salyk.kg:30040 [23:41:14]ConnectInit lk.salyk.kg [23:41:14]line 0 [23:41:14]written 0, free lines is 4095 [23:41:14]Connected sock=10 [23:41: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 1F 01 00 00 E1 4E 17 01 E2 B4 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 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 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 9B 15 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 28 22 02 00 35 04 06 00 DB F2 DC C4 14 E0 08 A9 72 44 25 E8 91 C7 [23:41: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 48 52 47 00 DB 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 28 22 02 00 F4 03 04 00 47 C1 23 67 B6 04 01 00 00 07 D7 80 E3 C5 02 F5 1B [23:41:14]CommunicateWithHost err = 0 [23:41:14]CheckOFDResponse [23:41:14]1017 (14) - 77093643461234 [23:41:14]1041 (16) - 0000000000874669 [23:41:14]1040 (4) - 139816 [23:41:14]1012 (4) - 31.10.2024 17:41 [23:41:14]1206 (1) - 0 [23:41:14]OFD Sender: Remove packet 139816 [23:41:14]ProducePacketName [23:41:14]name=ofd_packets/00139816 [23:41:14]NVStorageDeleteData [23:41:14]Write to MH i2c: 01 00 00 3B 32 6D [23:41:14]Write i2c OK [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: 01 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: 01 07 00 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: 01 07 00 3B 32 00 00 00 00 00 20 0D A1 [23:41:14]RasterBufferAndPrint [23:41:14]line [23:41:14]line [23:41:14]line [23:41:14]line [23:41:14]line [23:41:14]written 0, free lines is 3366 [23:41:14]MH_Cut [23:41:14]Write to MH i2c: D1 01 00 42 32 01 46 [23:41:14]Write i2c OK [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: D1 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: D1 01 00 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: D1 01 00 42 32 00 45 [23:41:14]Write to MH i2c: 01 00 00 43 32 75 [23:41:14]Write i2c OK [23:41:14]MH_I2C_Read... [23:41:15]OFD Sender: No OFD packet to send [23:41:15]*** Cut start [23:41:15]*** Partial cut [23:41:15]*** CUTSNS_PIN = 1 [23:41:15]*** CUTSNS_PIN = 0 [23:41:15]*** Brake cut motor [23:41:15]Read from MH i2c: 01 [23:41:15]MH_I2C_Read... [23:41:15]*** Stop cut motor [23:41:15]*** Cut end [23:41:15]Read from MH i2c: 01 07 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: 01 07 00 43 32 00 00 00 00 00 FF 0F 8A [23:41:15]process_action close_receipt done [23:41:15]requested_data is exist [23:41:15]produce_requested_data [23:41:15]requested_item fm.sn is exist - process it [23:41:15]wFMCommunicate request_size=4 [23:41:15]MH_SAM_APDU [23:41:15]CAPDU: 80 11 00 00 [23:41:15]Write to MH i2c: E2 08 00 44 32 80 11 00 00 00 00 00 00 F0 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 17 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 17 00 44 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4B [23:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:41:16]wFMCommunicate OK [23:41:16]requested_item fd.num is exist - process it [23:41:16]SAM_PROTO_GetFieldsCounters [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 13 00 00 [23:41:16]Write to MH i2c: E2 08 00 45 32 80 13 00 00 00 00 00 00 F3 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 45 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 28 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [23:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 28 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetFieldsCounters done [23:41:16]requested_item shift.num is exist - process it [23:41:16]requested_item shift.opened is exist - process it [23:41:16]req_shift_opened [23:41:16]FM_GetShiftState [23:41:16]SAM_PROTO_GetShiftState [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 13 01 00 [23:41:16]Write to MH i2c: E2 08 00 46 32 80 13 01 00 00 00 00 00 F5 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 46 32 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1E [23:41:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetShiftState done [23:41:16]FM_GetShiftState done [23:41:16]req_shift_opened done [23:41:16]requested_item shift.open_date is exist - process it [23:41:16]req_shift_open_date [23:41:16]req_shift_open_date done [23:41:16]produce_requested_data done [23:41:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139816,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:41:16]process_action_free close_receipt [23:41:16]json_value_free [23:41:16]json_value_free done [23:41:16]process_json_proto returns [23:41:16]Send response to host [23:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139816,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:41:16]free response buf [23:41:16]execute_script done [23:41:16]execute_script returns [23:41:16]free content buf [23:41:16]Sock 7.Close socket [23:41:16]Sock 7.Thread stoped [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:49]accept exits with 9 [23:47:49]New connection [23:47:49]New thread 3066510692 created [23:47:49]Thread 3066654052 joined [23:47:49]Waiting for new connection... [23:47:49] Sock 9.Parse request [23:47:49]Sock 9.Check first char [23:47:49]Sock 9.First char is OK [23:47:49]request: POST /json_proto HTTP/1.0 [23:47:49]Method: POST [23:47:49]URL: /json_proto [23:47:49]Method is POST - this is cgi request [23:47:49]url: /json_proto [23:47:49]query_string will be loaded in cgi processing [23:47:49]execute_cgi json_proto POST (null) [23:47:49]execute_cgi path=json_proto method=POST [23:47:49]POST find Content-Length [23:47:49]Host: 172.17.50.196:8080 [23:47:49]Content-Length: 646 [23:47:49]Content-Type: application/json [23:47:49] [23:47:49]POST finish read [23:47:49]Found Content-Length = 646 [23:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335646", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:49]execute_script... [23:47: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)335646", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:49]POST & json_proto [23:47:49]process_json_proto [23:47:49]json parsed OK: [23:47:49]protocol is kg_v1.0 [23:47:49]action value=close_receipt [23:47:49]process_action close_receipt [23:47:49]cmd_close_receipt [23:47:49]MH_GetDate [23:47:49]Write to MH i2c: F0 00 00 47 32 68 [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: F0 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: F0 09 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: F0 09 00 47 32 00 28 17 24 67 72 0D 1C 67 3D [23:47:49]GetLastDocTimeStamp 1730418075 [23:47:49]current date 1730418472 [23:47:49]FM_GetShiftState [23:47:49]SAM_PROTO_GetShiftState [23:47:49]wFMCommunicate request_size=4 [23:47:49]MH_SAM_APDU [23:47:49]CAPDU: 80 13 01 00 [23:47:49]Write to MH i2c: E2 08 00 48 32 80 13 01 00 00 00 00 00 F7 [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:49]Read from MH i2c: E2 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 0E 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 0E 00 48 32 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 20 [23:47:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:47:49]wFMCommunicate OK [23:47:49]SAM_PROTO_GetShiftState done [23:47:49]FM_GetShiftState done [23:47:49]opened in 1730332621 [23:47:49]opened+sec_in_day 1730419021 [23:47:49]quantity*price = 26000 [23:47:49]sum+1 = 26001 [23:47:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 294 31.10.2024 23:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139817 ФПД: 19117037001766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234752&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139817&fm=19117037001766&tin=02508201610067®Number=0000000000091631&sum=26000 0 [23:47:50]StoreToDocumentArchive [23:47:50]shift 557 fd 139817 [23:47:50]save to /storage/0557/doc_00139817 [23:47:50]save last doc name /storage/0557/doc_00139817 to /storage/kkm_last_doc_name [23:47:50]save OK [23:47:50]Clear old archive folders... [23:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=282 [23:47:50]tlvbuf is 00A20F70 [23:47:50]SAM_PROTO_ClearQueue [23:47:50]wFMCommunicate request_size=4 [23:47:50]MH_SAM_APDU [23:47:50]CAPDU: 80 09 00 00 [23:47:50]Write to MH i2c: E2 08 00 55 32 80 09 00 00 00 00 00 00 F9 [23:47:50]Write i2c OK [23:47:50]MH_I2C_Read... [23:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:50]Read from MH i2c: E2 [23:47:50]MH_I2C_Read... [23:47:50]Read from MH i2c: E2 03 00 [23:47:50]MH_I2C_Read... [23:47:50]Read from MH i2c: E2 03 00 55 32 00 90 00 FB [23:47:50]RAPDU: 90 00 [23:47:50]wFMCommunicate OK [23:47:50]SAM_PROTO_ClearQueue done [23:47:50]KKMCreateOFDPacket [23:47:50]OFDProtocolAddRootSTLVToBuf [23:47:50]FM_MakeSignedData [23:47:50]FM_MakeSignedData [23:47:50]SAM_PROTO_SignData [23:47:50]wFMCommunicate request_size=4 [23:47:50]MH_SAM_APDU [23:47:50]CAPDU: 80 0D 01 02 [23:47:50]Write to MH i2c: E2 08 00 56 32 80 0D 01 02 00 00 00 00 01 [23:47:50]Write i2c OK [23:47:50]MH_I2C_Read... [23:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:50]Read from MH i2c: E2 [23:47:50]MH_I2C_Read... [23:47:50]Read from MH i2c: E2 03 00 [23:47:50]MH_I2C_Read... [23:47:50]Read from MH i2c: E2 03 00 56 32 00 90 00 FC [23:47:50]RAPDU: 90 00 [23:47:50]wFMCommunicate OK [23:47:50]wFMCommunicate request_size=255 [23:47:50]MH_SAM_APDU [23:47:50]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 28 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [23:47:50]Write to MH i2c: E2 02 01 57 32 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 28 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 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 E5 [23:47:50]Write i2c OK [23:47:50]MH_I2C_Read... [23:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:50]Read from MH i2c: E2 [23:47:50]MH_I2C_Read... [23:47:50]Read from MH i2c: E2 03 00 [23:47:50]MH_I2C_Read... [23:47:50]Read from MH i2c: E2 03 00 57 32 00 90 00 FD [23:47:50]RAPDU: 90 00 [23:47:50]wFMCommunicate OK [23:47:50]wFMCommunicate request_size=41 [23:47:50]MH_SAM_APDU [23:47:50]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 29 22 02 00 35 04 06 00 11 63 08 33 1C 26 [23:47:50]Write to MH i2c: E2 2C 00 58 32 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 29 22 02 00 35 04 06 00 11 63 08 33 1C 26 00 00 19 [23:47:50]Write i2c OK [23:47:50]MH_I2C_Read... [23:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:51]Read from MH i2c: E2 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 03 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 03 00 58 32 00 90 00 FE [23:47:51]RAPDU: 90 00 [23:47:51]wFMCommunicate OK [23:47:51]wFMCommunicate request_size=4 [23:47:51]MH_SAM_APDU [23:47:51]CAPDU: 80 0D 03 02 [23:47:51]Write to MH i2c: E2 08 00 59 32 80 0D 03 02 00 00 00 00 06 [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:51]Read from MH i2c: E2 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 0B 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 0B 00 59 32 00 05 05 E5 D4 8A F9 BB 04 90 00 0C [23:47:51]RAPDU: 05 05 E5 D4 8A F9 BB 04 90 00 [23:47:51]wFMCommunicate OK [23:47:51]SAM_PROTO_SignData done [23:47:51]FM_MakeSignedData done [23:47:51]CreateOFDProtocolMessage [23:47:51]wFMCommunicate request_size=4 [23:47:51]MH_SAM_APDU [23:47:51]CAPDU: 80 11 00 00 [23:47:51]Write to MH i2c: E2 08 00 5A 32 80 11 00 00 00 00 00 00 06 [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:51]Read from MH i2c: E2 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 17 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 17 00 5A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 61 [23:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:47:51]wFMCommunicate OK [23:47:51]CreateOFDProtocolMessage done [23:47:51]OFDSenderStorePacket 139817 [23:47:51]StoreOFDPacket docnum=139817 [23:47: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 2E 01 00 00 E6 28 26 01 DE EB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 28 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 29 22 02 00 35 04 06 00 11 63 08 33 1C 26 05 05 E5 D4 8A F9 BB 04 [23:47:51]CheckFolder [23:47:51]dirname=/storage/ofd_packets [23:47:51]CheckFolder done [23:47:51]ProducePacketName [23:47:51]name=ofd_packets/00139817 [23:47:51]NVStorageSaveData ofd_packets/00139817 [23:47:51]File name is /storage/ofd_packets/00139817 [23:47:51]Write 332 bytes [23:47:51]NVStorageSaveData done [23:47:51]OFDSenderStorePacket done [23:47:51]KKMCreateOFDPacket done [23:47:51]NVStorageSaveData kkm_last_timestamp [23:47:51]File name is /storage/kkm_last_timestamp [23:47:51]Write 4 bytes [23:47:51]NVStorageSaveData done [23:47:51]ExternCall_PrintAddStr [23:47:51]wPrintStart [23:47:51]Write to MH i2c: 01 00 00 5B 32 8D [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: 01 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: 01 07 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: 01 07 00 5B 32 00 00 00 00 00 FF 0F A2 [23:47:51]RasterBufferAndPrint [23:47:51]line Счет N : (3)335646 [23:47:51]line ИНН: 02508201610067 [23:47:51]line Контрольно-Кассовый Чек [23:47:51]line ПРОДАЖА [23:47:51]line Товар: 2000036220012 [23:47:51]line Кофе Капучино XL(GABB TRADE) [23:47:51]line 2.000 * 130.00 [23:47:51]line = 260.00 [23:47:51]line НДС 12% НСП 1% [23:47:51]line > о реализуемом товаре [23:47:51]line ИТОГО: 260.00 [23:47:51]line НСП 1% : 2.30 [23:47:51]line НДС 12% : 27.61 [23:47:51]line Наличными: 260.00 [23:47:51]line Безнал.: 0.00 [23:47:51]line Место: АЗС № 101 "Партнер Нефть" [23:47:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:47:51]line СНО: Общий режим [23:47:51]line Чек 294 31.10.2024 23:47 [23:47:51]line Смена: 557 ФФД: 1.0 [23:47:51]line ЗНМ: 0300000081 [23:47:51]line РНМ: 0000000000091631 [23:47:51]line Версия ККМ: 001 [23:47:51]line ФМ: 0000000000874669 [23:47:51]line ФД: 139817 [23:47:51]line ФПД: 19117037001766 [23:47:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T234752&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139817&fm=19117037001766&tin=02508201610067®Number=0000000000091631&sum=26000 [23:47:51]OFD Sender: Processing packet 139817 [packets to send 34, broken 33] [23:47:51]ProducePacketName [23:47:51]name=ofd_packets/00139817 [23:47:51]OFD Sender: To server: pG, [23:47:51]CommunicateWithHost lk.salyk.kg:30040 [23:47:51]ConnectInit lk.salyk.kg [23:47:51]line 0 [23:47:51]written 0, free lines is 4095 [23:47:51]Connected sock=10 [23:47: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 2E 01 00 00 E6 28 26 01 DE EB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 28 17 24 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 29 22 02 00 35 04 06 00 11 63 08 33 1C 26 05 05 E5 D4 8A F9 BB 04 [23:47: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 82 5D 47 00 F3 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 29 22 02 00 F4 03 04 00 D4 C2 23 67 B6 04 01 00 00 A6 12 09 28 3B D7 E9 40 [23:47:51]CommunicateWithHost err = 0 [23:47:51]CheckOFDResponse [23:47:51]1017 (14) - 77093643461234 [23:47:51]1041 (16) - 0000000000874669 [23:47:51]1040 (4) - 139817 [23:47:51]1012 (4) - 31.10.2024 17:48 [23:47:51]1206 (1) - 0 [23:47:51]OFD Sender: Remove packet 139817 [23:47:51]ProducePacketName [23:47:51]name=ofd_packets/00139817 [23:47:51]NVStorageDeleteData [23:47:51]Write to MH i2c: 01 00 00 84 32 B6 [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: 01 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: 01 07 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: 01 07 00 84 32 00 00 00 00 00 01 0D CB [23:47:51]RasterBufferAndPrint [23:47:51]line [23:47:51]line [23:47:51]line [23:47:51]line [23:47:51]line [23:47:51]written 0, free lines is 3335 [23:47:51]MH_Cut [23:47:51]Write to MH i2c: D1 01 00 8B 32 01 8F [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: D1 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: D1 01 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: D1 01 00 8B 32 00 8E [23:47:51]Write to MH i2c: 01 00 00 8C 32 BE [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:52]OFD Sender: No OFD packet to send [23:47:52]*** Cut start [23:47:52]*** Partial cut [23:47:52]*** CUTSNS_PIN = 1 [23:47:52]*** CUTSNS_PIN = 0 [23:47:52]*** Brake cut motor [23:47:53]Read from MH i2c: 01 [23:47:53]MH_I2C_Read... [23:47:53]*** Stop cut motor [23:47:53]*** Cut end [23:47:53]Read from MH i2c: 01 07 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 FF 0F D3 [23:47:53]process_action close_receipt done [23:47:53]requested_data is exist [23:47:53]produce_requested_data [23:47:53]requested_item fm.sn is exist - process it [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 11 00 00 [23:47:53]Write to MH i2c: E2 08 00 8D 32 80 11 00 00 00 00 00 00 39 [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:53]Read from MH i2c: E2 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 17 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 17 00 8D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [23:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:47:53]wFMCommunicate OK [23:47:53]requested_item fd.num is exist - process it [23:47:53]SAM_PROTO_GetFieldsCounters [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 13 00 00 [23:47:53]Write to MH i2c: E2 08 00 8E 32 80 13 00 00 00 00 00 00 3C [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:53]Read from MH i2c: E2 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 62 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 62 00 8E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [23:47: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 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:53]wFMCommunicate OK [23:47:53]SAM_PROTO_GetFieldsCounters done [23:47:53]requested_item shift.num is exist - process it [23:47:53]requested_item shift.opened is exist - process it [23:47:53]req_shift_opened [23:47:53]FM_GetShiftState [23:47:53]SAM_PROTO_GetShiftState [23:47:53]wFMCommunicate request_size=4 [23:47:53]MH_SAM_APDU [23:47:53]CAPDU: 80 13 01 00 [23:47:53]Write to MH i2c: E2 08 00 8F 32 80 13 01 00 00 00 00 00 3E [23:47:53]Write i2c OK [23:47:53]MH_I2C_Read... [23:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:53]Read from MH i2c: E2 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 0E 00 [23:47:53]MH_I2C_Read... [23:47:53]Read from MH i2c: E2 0E 00 8F 32 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 67 [23:47:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:47:53]wFMCommunicate OK [23:47:53]SAM_PROTO_GetShiftState done [23:47:53]FM_GetShiftState done [23:47:53]req_shift_opened done [23:47:53]requested_item shift.open_date is exist - process it [23:47:53]req_shift_open_date [23:47:53]req_shift_open_date done [23:47:53]produce_requested_data done [23:47:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:47:53]process_action_free close_receipt [23:47:53]json_value_free [23:47:53]json_value_free done [23:47:53]process_json_proto returns [23:47:53]Send response to host [23:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:47:53]free response buf [23:47:53]execute_script done [23:47:53]execute_script returns [23:47:53]free content buf [23:47:53]Sock 9.Close socket [23:47:53]Sock 9.Thread stoped [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:01]accept exits with 7 [23:53:01]New connection [23:53:01]New thread 3066654052 created [23:53:01]Thread 3066510692 joined [23:53:01]Waiting for new connection... [23:53:01] Sock 7.Parse request [23:53:01]Sock 7.Check first char [23:53:01]Sock 7.First char is OK [23:53:01]request: POST /json_proto HTTP/1.0 [23:53:01]Method: POST [23:53:01]URL: /json_proto [23:53:01]Method is POST - this is cgi request [23:53:01]url: /json_proto [23:53:01]query_string will be loaded in cgi processing [23:53:01]execute_cgi json_proto POST (null) [23:53:01]execute_cgi path=json_proto method=POST [23:53:01]POST find Content-Length [23:53:01]Host: 172.17.50.196:8080 [23:53:01]Content-Length: 215 [23:53:01]Content-Type: application/json [23:53:01] [23:53:01]POST finish read [23:53:01]Found Content-Length = 215 [23:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:01]execute_script... [23:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:01]POST & json_proto [23:53:01]process_json_proto [23:53:01]json parsed OK: [23:53:01]protocol is kg_v1.0 [23:53:01]action value=get_value [23:53:01]process_action get_value [23:53:01]cmd_get_value [23:53:01]process_action get_value done [23:53:01]requested_data is exist [23:53:01]produce_requested_data [23:53:01]requested_item kkm.sn is exist - process it [23:53:01]requested_item kkm.ver is exist - process it [23:53:01]requested_item fm.sn is exist - process it [23:53:01]wFMCommunicate request_size=4 [23:53:01]MH_SAM_APDU [23:53:01]CAPDU: 80 11 00 00 [23:53:01]Write to MH i2c: E2 08 00 90 32 80 11 00 00 00 00 00 00 3C [23:53:01]Write i2c OK [23:53:01]MH_I2C_Read... [23:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:01]Read from MH i2c: E2 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 17 00 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 17 00 90 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 97 [23:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:53:01]wFMCommunicate OK [23:53:01]requested_item fd.num is exist - process it [23:53:01]SAM_PROTO_GetFieldsCounters [23:53:01]wFMCommunicate request_size=4 [23:53:01]MH_SAM_APDU [23:53:01]CAPDU: 80 13 00 00 [23:53:01]Write to MH i2c: E2 08 00 91 32 80 13 00 00 00 00 00 00 3F [23:53:01]Write i2c OK [23:53:01]MH_I2C_Read... [23:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:01]Read from MH i2c: E2 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 62 00 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 62 00 91 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [23:53: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 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:01]wFMCommunicate OK [23:53:01]SAM_PROTO_GetFieldsCounters done [23:53:01]requested_item shift.num is exist - process it [23:53:01]requested_item shift.opened is exist - process it [23:53:01]req_shift_opened [23:53:01]FM_GetShiftState [23:53:01]SAM_PROTO_GetShiftState [23:53:01]wFMCommunicate request_size=4 [23:53:01]MH_SAM_APDU [23:53:01]CAPDU: 80 13 01 00 [23:53:01]Write to MH i2c: E2 08 00 92 32 80 13 01 00 00 00 00 00 41 [23:53:01]Write i2c OK [23:53:01]MH_I2C_Read... [23:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:01]Read from MH i2c: E2 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 0E 00 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 0E 00 92 32 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6A [23:53:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:53:01]wFMCommunicate OK [23:53:01]SAM_PROTO_GetShiftState done [23:53:01]FM_GetShiftState done [23:53:01]req_shift_opened done [23:53:01]requested_item shift.open_date is exist - process it [23:53:01]req_shift_open_date [23:53:01]req_shift_open_date done [23:53:01]produce_requested_data done [23:53:01]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:53:01]process_action_free get_value [23:53:01]json_value_free [23:53:01]json_value_free done [23:53:01]process_json_proto returns [23:53:01]Send response to host [23:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:53:01]free response buf [23:53:01]execute_script done [23:53:01]execute_script returns [23:53:01]free content buf [23:53:01]Sock 7.Close socket [23:53:01]Sock 7.Thread stoped [23:53:01]accept exits with 9 [23:53:01]New connection [23:53:01]New thread 3066510692 created [23:53:01]Thread 3066654052 joined [23:53:01]Waiting for new connection... [23:53:01] Sock 9.Parse request [23:53:01]Sock 9.Check first char [23:53:01]Sock 9.First char is OK [23:53:01]request: POST /json_proto HTTP/1.0 [23:53:01]Method: POST [23:53:01]URL: /json_proto [23:53:01]Method is POST - this is cgi request [23:53:01]url: /json_proto [23:53:01]query_string will be loaded in cgi processing [23:53:01]execute_cgi json_proto POST (null) [23:53:01]execute_cgi path=json_proto method=POST [23:53:01]POST find Content-Length [23:53:01]Host: 172.17.50.196:8080 [23:53:01]Content-Length: 331 [23:53:01]Content-Type: application/json [23:53:01] [23:53:01]POST finish read [23:53:01]Found Content-Length = 331 [23:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:01]execute_script... [23:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:01]POST & json_proto [23:53:01]process_json_proto [23:53:01]json parsed OK: [23:53:01]protocol is kg_v1.0 [23:53:01]action value=get_value [23:53:01]process_action get_value [23:53:01]cmd_get_value [23:53:01]process_action get_value done [23:53:01]requested_data is exist [23:53:01]produce_requested_data [23:53:01]requested_item fm.sale.total is exist - process it [23:53:01]SAM_PROTO_GetFMData [23:53:01]wFMCommunicate request_size=4 [23:53:01]MH_SAM_APDU [23:53:01]CAPDU: 80 13 03 00 [23:53:01]Write to MH i2c: E2 08 00 93 32 80 13 03 00 00 00 00 00 44 [23:53:01]Write i2c OK [23:53:01]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 93 32 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 58 [23:53:02]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:53:02]wFMCommunicate OK [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 17 00 00 [23:53:02]Write to MH i2c: E2 08 00 94 32 80 17 00 00 00 00 00 00 46 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]OFD Sender: No OFD packet to send [23:53:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 94 32 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 1A 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 FE [23:53:02]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 1A 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 [23:53:02]wFMCommunicate OK [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 17 00 00 [23:53:02]Write to MH i2c: E2 08 00 95 32 80 17 00 00 00 00 00 00 47 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 95 32 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 1F [23:53:02]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 [23:53:02]wFMCommunicate OK [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 17 00 00 [23:53:02]Write to MH i2c: E2 08 00 96 32 80 17 00 00 00 00 00 00 48 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 FD 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 FD 00 96 32 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C3 [23:53:03]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 [23:53:03]wFMCommunicate OK [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 17 00 00 [23:53:03]Write to MH i2c: E2 08 00 97 32 80 17 00 00 00 00 00 00 49 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 E4 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 E4 00 97 32 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 29 [23:53:03]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 [23:53:03]wFMCommunicate OK [23:53:03]SAM_PROTO_GetFMData done [23:53:03]requested_item fm.sale_refund.total is exist - process it [23:53:03]requested_item fm.buy.total is exist - process it [23:53:03]requested_item shift.sale.total is exist - process it [23:53:03]SAM_PROTO_GetShiftData [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 13 02 00 [23:53:03]Write to MH i2c: E2 08 00 98 32 80 13 02 00 00 00 00 00 48 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 FD 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 FD 00 98 32 00 B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 08 [23:53:03]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:53:03]wFMCommunicate OK [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 17 00 00 [23:53:03]Write to MH i2c: E2 08 00 99 32 80 17 00 00 00 00 00 00 4B [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 FD 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 FD 00 99 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 AA [23:53:04]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=4 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 17 00 00 [23:53:04]Write to MH i2c: E2 08 00 9A 32 80 17 00 00 00 00 00 00 4C [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 FD 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 FD 00 9A 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 74 [23:53:04]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=4 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 17 00 00 [23:53:04]Write to MH i2c: E2 08 00 9B 32 80 17 00 00 00 00 00 00 4D [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 FD 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 FD 00 9B 32 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 C5 [23:53:04]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=4 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 17 00 00 [23:53:04]Write to MH i2c: E2 08 00 9C 32 80 17 00 00 00 00 00 00 4E [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:53:05]Read from MH i2c: E2 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 D6 00 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 D6 00 9C 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 30 [23:53:05]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:05]wFMCommunicate OK [23:53:05]SAM_PROTO_GetShiftData done [23:53:05]requested_item shift.sale.total_cash is exist - process it [23:53:05]requested_item shift.sale_refund.total is exist - process it [23:53:05]requested_item shift.sale_refund.total_cash is exist - process it [23:53:05]requested_item shift.buy.total is exist - process it [23:53:05]requested_item shift.buy.total_cash is exist - process it [23:53:05]produce_requested_data done [23:53:05]produce_requested_data return {"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:53:05]process_action_free get_value [23:53:05]json_value_free [23:53:05]json_value_free done [23:53:05]process_json_proto returns [23:53:05]Send response to host [23:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:53:05]free response buf [23:53:05]execute_script done [23:53:05]execute_script returns [23:53:05]free content buf [23:53:05]Sock 9.Close socket [23:53:05]Sock 9.Thread stoped [23:53:05]accept exits with 7 [23:53:05]New connection [23:53:05]New thread 3066654052 created [23:53:05]Thread 3066510692 joined [23:53:05]Waiting for new connection... [23:53:05] Sock 7.Parse request [23:53:05]Sock 7.Check first char [23:53:05]Sock 7.First char is OK [23:53:05]request: POST /json_proto HTTP/1.0 [23:53:05]Method: POST [23:53:05]URL: /json_proto [23:53:05]Method is POST - this is cgi request [23:53:05]url: /json_proto [23:53:05]query_string will be loaded in cgi processing [23:53:05]execute_cgi json_proto POST (null) [23:53:05]execute_cgi path=json_proto method=POST [23:53:05]POST find Content-Length [23:53:05]Host: 172.17.50.196:8080 [23:53:05]Content-Length: 331 [23:53:05]Content-Type: application/json [23:53:05] [23:53:05]POST finish read [23:53:05]Found Content-Length = 331 [23:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:05]execute_script... [23:53:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:05]POST & json_proto [23:53:05]process_json_proto [23:53:05]json parsed OK: [23:53:05]protocol is kg_v1.0 [23:53:05]action value=get_value [23:53:05]process_action get_value [23:53:05]cmd_get_value [23:53:05]process_action get_value done [23:53:05]requested_data is exist [23:53:05]produce_requested_data [23:53:05]requested_item fm.sale.total is exist - process it [23:53:05]SAM_PROTO_GetFMData [23:53:05]wFMCommunicate request_size=4 [23:53:05]MH_SAM_APDU [23:53:05]CAPDU: 80 13 03 00 [23:53:05]Write to MH i2c: E2 08 00 9D 32 80 13 03 00 00 00 00 00 4E [23:53:05]Write i2c OK [23:53:05]MH_I2C_Read... [23:53:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:05]Read from MH i2c: E2 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 FD 00 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 FD 00 9D 32 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 62 [23:53:05]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:53:05]wFMCommunicate OK [23:53:05]wFMCommunicate request_size=4 [23:53:05]MH_SAM_APDU [23:53:05]CAPDU: 80 17 00 00 [23:53:05]Write to MH i2c: E2 08 00 9E 32 80 17 00 00 00 00 00 00 50 [23:53:05]Write i2c OK [23:53:05]MH_I2C_Read... [23:53:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:05]Read from MH i2c: E2 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 FD 00 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 FD 00 9E 32 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 1A 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 08 [23:53:06]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 1A 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 [23:53:06]wFMCommunicate OK [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 17 00 00 [23:53:06]Write to MH i2c: E2 08 00 9F 32 80 17 00 00 00 00 00 00 51 [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 9F 32 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 29 [23:53:06]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 [23:53:06]wFMCommunicate OK [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 17 00 00 [23:53:06]Write to MH i2c: E2 08 00 A0 32 80 17 00 00 00 00 00 00 52 [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 A0 32 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [23:53:06]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 [23:53:06]wFMCommunicate OK [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 17 00 00 [23:53:06]Write to MH i2c: E2 08 00 A1 32 80 17 00 00 00 00 00 00 53 [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:53:07]Read from MH i2c: E2 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 E4 00 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 E4 00 A1 32 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 33 [23:53:07]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 [23:53:07]wFMCommunicate OK [23:53:07]SAM_PROTO_GetFMData done [23:53:07]requested_item fm.sale_refund.total is exist - process it [23:53:07]requested_item fm.buy.total is exist - process it [23:53:07]requested_item shift.sale.total is exist - process it [23:53:07]SAM_PROTO_GetShiftData [23:53:07]wFMCommunicate request_size=4 [23:53:07]MH_SAM_APDU [23:53:07]CAPDU: 80 13 02 00 [23:53:07]Write to MH i2c: E2 08 00 A2 32 80 13 02 00 00 00 00 00 52 [23:53:07]Write i2c OK [23:53:07]MH_I2C_Read... [23:53:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:07]Read from MH i2c: E2 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 FD 00 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 FD 00 A2 32 00 B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 12 [23:53:07]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 OFD Sender: No OFD packet to send [23:53:07]00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:53:07]wFMCommunicate OK [23:53:07]wFMCommunicate request_size=4 [23:53:07]MH_SAM_APDU [23:53:07]CAPDU: 80 17 00 00 [23:53:07]Write to MH i2c: E2 08 00 A3 32 80 17 00 00 00 00 00 00 55 [23:53:07]Write i2c OK [23:53:07]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 A3 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 B4 [23:53:08]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:53:08]wFMCommunicate OK [23:53:08]wFMCommunicate request_size=4 [23:53:08]MH_SAM_APDU [23:53:08]CAPDU: 80 17 00 00 [23:53:08]Write to MH i2c: E2 08 00 A4 32 80 17 00 00 00 00 00 00 56 [23:53:08]Write i2c OK [23:53:08]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 A4 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 7E [23:53:08]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:53:08]wFMCommunicate OK [23:53:08]wFMCommunicate request_size=4 [23:53:08]MH_SAM_APDU [23:53:08]CAPDU: 80 17 00 00 [23:53:08]Write to MH i2c: E2 08 00 A5 32 80 17 00 00 00 00 00 00 57 [23:53:08]Write i2c OK [23:53:08]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 A5 32 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 CF [23:53:09]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:53:09]wFMCommunicate OK [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 17 00 00 [23:53:09]Write to MH i2c: E2 08 00 A6 32 80 17 00 00 00 00 00 00 58 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 D6 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 D6 00 A6 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3A [23:53:09]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_GetShiftData done [23:53:09]requested_item shift.sale.total_cash is exist - process it [23:53:09]requested_item shift.sale_refund.total is exist - process it [23:53:09]requested_item shift.sale_refund.total_cash is exist - process it [23:53:09]requested_item shift.buy.total is exist - process it [23:53:09]requested_item shift.buy.total_cash is exist - process it [23:53:09]produce_requested_data done [23:53:09]produce_requested_data return {"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:53:09]process_action_free get_value [23:53:09]json_value_free [23:53:09]json_value_free done [23:53:09]process_json_proto returns [23:53:09]Send response to host [23:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:53:09]free response buf [23:53:09]execute_script done [23:53:09]execute_script returns [23:53:09]free content buf [23:53:09]Sock 7.Close socket [23:53:09]Sock 7.Thread stoped [23:53:09]accept exits with 9 [23:53:09]New connection [23:53:09]New thread 3066510692 created [23:53:09]Thread 3066654052 joined [23:53:09]Waiting for new connection... [23:53:09] Sock 9.Parse request [23:53:09]Sock 9.Check first char [23:53:09]Sock 9.First char is OK [23:53:09]request: POST /json_proto HTTP/1.0 [23:53:09]Method: POST [23:53:09]URL: /json_proto [23:53:09]Method is POST - this is cgi request [23:53:09]url: /json_proto [23:53:09]query_string will be loaded in cgi processing [23:53:09]execute_cgi json_proto POST (null) [23:53:09]execute_cgi path=json_proto method=POST [23:53:09]POST find Content-Length [23:53:09]Host: 172.17.50.196:8080 [23:53:09]Content-Length: 257 [23:53:09]Content-Type: application/json [23:53:09] [23:53:09]POST finish read [23:53:09]Found Content-Length = 257 [23:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043B\u043C\u0443\u0441\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:09]execute_script... [23:53:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043B\u043C\u0443\u0441\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:09]POST & json_proto [23:53:09]process_json_proto [23:53:09]json parsed OK: [23:53:09]protocol is kg_v1.0 [23:53:09]action value=x_report [23:53:09]process_action x_report [23:53:09]cmd_x_report [23:53:09]MH_GetDate [23:53:09]Write to MH i2c: F0 00 00 A7 32 C8 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: F0 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: F0 09 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: F0 09 00 A7 32 00 68 18 24 67 72 0D 1C 67 DE [23:53:09]GetLastDocTimeStamp 1730418472 [23:53:09]current date 1730418792 [23:53:09]FM_GetShiftState [23:53:09]SAM_PROTO_GetShiftState [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 13 01 00 [23:53:09]Write to MH i2c: E2 08 00 A8 32 80 13 01 00 00 00 00 00 57 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 0E 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 0E 00 A8 32 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 80 [23:53:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_GetShiftState done [23:53:09]FM_GetShiftState done [23:53:09]KKMCreateXReportDocument [23:53:09]Load OK [23:53:09]Malloc new data [23:53:09]MH_GetDate [23:53:09]Write to MH i2c: F0 00 00 A9 32 CA [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: F0 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: F0 09 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: F0 09 00 A9 32 00 68 18 24 67 72 0D 1C 67 E0 [23:53:09]Malloc new data [23:53:09]Malloc new data [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 11 00 00 [23:53:09]Write to MH i2c: E2 08 00 AA 32 80 11 00 00 00 00 00 00 56 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 17 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 17 00 AA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [23:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_GetFieldsCounters [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 13 00 00 [23:53:09]Write to MH i2c: E2 08 00 AB 32 80 13 00 00 00 00 00 00 59 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 62 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 62 00 AB 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [23:53: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 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_GetFieldsCounters done [23:53:09]Malloc new data [23:53:09]Malloc new data [23:53:09]Malloc new data [23:53:09]KKMCreateXReportDocument OK [23:53:09]KKMSetXReportData OK [23:53:09]KKMPrepareXReportFMData [23:53:09]SAM_PROTO_GetShiftData [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 13 02 00 [23:53:09]Write to MH i2c: E2 08 00 AC 32 80 13 02 00 00 00 00 00 5C [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:10]Read from MH i2c: E2 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: E2 FD 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: E2 FD 00 AC 32 00 B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 1C [23:53:10]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:53:10]wFMCommunicate OK [23:53:10]wFMCommunicate request_size=4 [23:53:10]MH_SAM_APDU [23:53:10]CAPDU: 80 17 00 00 [23:53:10]Write to MH i2c: E2 08 00 AD 32 80 17 00 00 00 00 00 00 5F [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:10]Read from MH i2c: E2 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: E2 FD 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: E2 FD 00 AD 32 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 BE [23:53:10]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:53:10]wFMCommunicate OK [23:53:10]wFMCommunicate request_size=4 [23:53:10]MH_SAM_APDU [23:53:10]CAPDU: 80 17 00 00 [23:53:10]Write to MH i2c: E2 08 00 AE 32 80 17 00 00 00 00 00 00 60 [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:11]Read from MH i2c: E2 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: E2 FD 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: E2 FD 00 AE 32 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 88 [23:53:11]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:53:11]wFMCommunicate OK [23:53:11]wFMCommunicate request_size=4 [23:53:11]MH_SAM_APDU [23:53:11]CAPDU: 80 17 00 00 [23:53:11]Write to MH i2c: E2 08 00 AF 32 80 17 00 00 00 00 00 00 61 [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:11]Read from MH i2c: E2 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: E2 FD 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: E2 FD 00 AF 32 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 D9 [23:53:11]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:53:11]wFMCommunicate OK [23:53:11]wFMCommunicate request_size=4 [23:53:11]MH_SAM_APDU [23:53:11]CAPDU: 80 17 00 00 [23:53:11]Write to MH i2c: E2 08 00 B0 32 80 17 00 00 00 00 00 00 62 [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:53:12]Read from MH i2c: E2 [23:53:12]MH_I2C_Read... [23:53:12]Read from MH i2c: E2 D6 00 [23:53:12]MH_I2C_Read... [23:53:12]Read from MH i2c: E2 D6 00 B0 32 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 44 [23:53:12]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:12]wFMCommunicate OK [23:53:12]SAM_PROTO_GetShiftData done [23:53:12]1194 (1205) - счетчики итогов смены [23:53:12] 1134 (4) - 294 - количество чеков со всеми признаками расчетов [23:53:12] 1129 (156) - счетчики операций «приход» [23:53:12] 1135 (4) - 290 - количество чеков по признаку расчетов [23:53:12] 1201 (3) - 111945.36 - общая итоговая сумма в чеках [23:53:12] 1136 (3) - 93997.00 - итоговая сумма в чеках наличными [23:53:12] 1138 (3) - 17948.36 - итоговая сумма в чеках безналичными [23:53:12] 1024 (123) - суммы налогов [23:53:12] 1006 (9) - суммы НДС [23:53:12] 1010 (1) - 0% - код ставки НДС [23:53:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:12] 1006 (12) - суммы НДС [23:53:12] 1010 (1) - 12% - код ставки НДС [23:53:12] 1011 (3) - 11888.77 - сумма НДС по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (12) - суммы НСП [23:53:12] 1014 (1) - 1% - код ставки НСП [23:53:12] 1015 (3) - 990.55 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 2% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 3% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 5% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 1,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1130 (151) - счетчики операций «возврат прихода» [23:53:12] 1135 (4) - 4 - количество чеков по признаку расчетов [23:53:12] 1201 (3) - 3927.00 - общая итоговая сумма в чеках [23:53:12] 1136 (3) - 3927.00 - итоговая сумма в чеках наличными [23:53:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:12] 1024 (121) - суммы налогов [23:53:12] 1006 (9) - суммы НДС [23:53:12] 1010 (1) - 0% - код ставки НДС [23:53:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:12] 1006 (11) - суммы НДС [23:53:12] 1010 (1) - 12% - код ставки НДС [23:53:12] 1011 (2) - 417.02 - сумма НДС по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (11) - суммы НСП [23:53:12] 1014 (1) - 1% - код ставки НСП [23:53:12] 1015 (2) - 34.75 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 2% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 3% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 5% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 1,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1131 (141) - счетчики операций «расход» [23:53:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:12] 1024 (117) - суммы налогов [23:53:12] 1006 (9) - суммы НДС [23:53:12] 1010 (1) - 0% - код ставки НДС [23:53:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:12] 1006 (9) - суммы НДС [23:53:12] 1010 (1) - 12% - код ставки НДС [23:53:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 1% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 2% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 3% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 5% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 1,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1132 (141) - счетчики операций «возврат расхода» [23:53:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:12] 1024 (117) - суммы налогов [23:53:12] 1006 (9) - суммы НДС [23:53:12] 1010 (1) - 0% - код ставки НДС [23:53:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:12] 1006 (9) - суммы НДС [23:53:12] 1010 (1) - 12% - код ставки НДС [23:53:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 1% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 2% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 3% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 5% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 0,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1007 (9) - суммы НСП [23:53:12] 1014 (1) - 1,50% - код ставки НСП [23:53:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:12] 1133 (588) - - счетчики коррекции - не используются [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1194 (04AA) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1134 (046E) [23:53:12]Malloc new data [23:53:12]Processing tag 1129 (0469) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1135 (046F) [23:53:12]Malloc new data [23:53:12]Processing tag 1201 (04B1) [23:53:12]Malloc new data [23:53:12]Processing tag 1136 (0470) [23:53:12]Malloc new data [23:53:12]Processing tag 1138 (0472) [23:53:12]Malloc new data [23:53:12]Processing tag 1024 (0400) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1006 (03EE) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1010 (03F2) [23:53:12]Malloc new data [23:53:12]Processing tag 1011 (03F3) [23:53:12]Malloc new data [23:53:12]SetTLVBufToDocument err=0 [23:53:12]Processing tag 1006 (03EE) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1010 (03F2) [23:53:12]Malloc new data [23:53:12]Processing tag 1011 (03F3) [23:53:12]Malloc new data [23:53:12]SetTLVBufToDocument err=0 [23:53:12]Processing tag 1007 (03EF) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1014 (03F6) [23:53:12]Malloc new data [23:53:12]Processing tag 1015 (03F7) [23:53:12]Malloc new data [23:53:12]SetTLVBufToDocument err=0 [23:53:12]Processing tag 1007 (03EF) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1014 (03F6) [23:53:12]Malloc new data [23:53:12]Processing tag 1015 (03F7) [23:53:12]Malloc new data [23:53:12]SetTLVBufToDocument err=0 [23:53:12]Processing tag 1007 (03EF) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1014 (03F6) [23:53:12]Malloc new data [23:53:12]Processing tag 1015 (03F7) [23:53:12]Malloc new data [23:53:12]SetTLVBufToDocument err=0 [23:53:12]Processing tag 1007 (03EF) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1014 (03F6) [23:53:12]Malloc new data [23:53:12]Processing tag 1015 (03F7) [23:53:12]Malloc new data [23:53:12]SetTLVBufToDocument err=0 [23:53:12]Processing tag 1007 (03EF) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1014 (03F6) [23:53:12]Malloc new data [23:53:12]Processing tag 1015 (03F7) [23:53:12]Malloc new data [23:53:12]SetTLVBufToDocument err=0 [23:53:12]Processing tag 1007 (03EF) [23:53:12]Load OK [23:53:12]SetTLVBufToDocument [23:53:12]Processing tag 1014 (03F6) [23:53:12]Malloc new data [23:53:12]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1130 (046A) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1135 (046F) [23:53:13]Malloc new data [23:53:13]Processing tag 1201 (04B1) [23:53:13]Malloc new data [23:53:13]Processing tag 1136 (0470) [23:53:13]Malloc new data [23:53:13]Processing tag 1138 (0472) [23:53:13]Malloc new data [23:53:13]Processing tag 1024 (0400) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1006 (03EE) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1010 (03F2) [23:53:13]Malloc new data [23:53:13]Processing tag 1011 (03F3) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1006 (03EE) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1010 (03F2) [23:53:13]Malloc new data [23:53:13]Processing tag 1011 (03F3) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1131 (046B) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1135 (046F) [23:53:13]Malloc new data [23:53:13]Processing tag 1201 (04B1) [23:53:13]Malloc new data [23:53:13]Processing tag 1136 (0470) [23:53:13]Malloc new data [23:53:13]Processing tag 1138 (0472) [23:53:13]Malloc new data [23:53:13]Processing tag 1024 (0400) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1006 (03EE) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1010 (03F2) [23:53:13]Malloc new data [23:53:13]Processing tag 1011 (03F3) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1006 (03EE) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1010 (03F2) [23:53:13]Malloc new data [23:53:13]Processing tag 1011 (03F3) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1132 (046C) [23:53:13]OFD Sender: No OFD packet to send [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1135 (046F) [23:53:13]Malloc new data [23:53:13]Processing tag 1201 (04B1) [23:53:13]Malloc new data [23:53:13]Processing tag 1136 (0470) [23:53:13]Malloc new data [23:53:13]Processing tag 1138 (0472) [23:53:13]Malloc new data [23:53:13]Processing tag 1024 (0400) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1006 (03EE) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1010 (03F2) [23:53:13]Malloc new data [23:53:13]Processing tag 1011 (03F3) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1006 (03EE) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1010 (03F2) [23:53:13]Malloc new data [23:53:13]Processing tag 1011 (03F3) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1007 (03EF) [23:53:13]Load OK [23:53:13]SetTLVBufToDocument [23:53:13]Processing tag 1014 (03F6) [23:53:13]Malloc new data [23:53:13]Processing tag 1015 (03F7) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Processing tag 1133 (046D) [23:53:13]Malloc new data [23:53:13]SetTLVBufToDocument err=0 [23:53:13]SetTLVBufToDocument err=0 [23:53:13]Malloc new data [23:53:13]SAM_PROTO_GetFMData [23:53:13]wFMCommunicate request_size=4 [23:53:13]MH_SAM_APDU [23:53:13]CAPDU: 80 13 03 00 [23:53:13]Write to MH i2c: E2 08 00 B1 32 80 13 03 00 00 00 00 00 62 [23:53:13]Write i2c OK [23:53:13]MH_I2C_Read... [23:53:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:13]Read from MH i2c: E2 [23:53:13]MH_I2C_Read... [23:53:13]Read from MH i2c: E2 FD 00 [23:53:13]MH_I2C_Read... [23:53:13]Read from MH i2c: E2 FD 00 B1 32 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 76 [23:53:13]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:53:14]wFMCommunicate OK [23:53:14]wFMCommunicate request_size=4 [23:53:14]MH_SAM_APDU [23:53:14]CAPDU: 80 17 00 00 [23:53:14]Write to MH i2c: E2 08 00 B2 32 80 17 00 00 00 00 00 00 64 [23:53:14]Write i2c OK [23:53:14]MH_I2C_Read... [23:53:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:14]Read from MH i2c: E2 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 FD 00 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 FD 00 B2 32 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 1A 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 1C [23:53:14]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 1A 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 [23:53:14]wFMCommunicate OK [23:53:14]wFMCommunicate request_size=4 [23:53:14]MH_SAM_APDU [23:53:14]CAPDU: 80 17 00 00 [23:53:14]Write to MH i2c: E2 08 00 B3 32 80 17 00 00 00 00 00 00 65 [23:53:14]Write i2c OK [23:53:14]MH_I2C_Read... [23:53:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:14]Read from MH i2c: E2 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 FD 00 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 FD 00 B3 32 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 3D [23:53:14]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 [23:53:15]wFMCommunicate OK [23:53:15]wFMCommunicate request_size=4 [23:53:15]MH_SAM_APDU [23:53:15]CAPDU: 80 17 00 00 [23:53:15]Write to MH i2c: E2 08 00 B4 32 80 17 00 00 00 00 00 00 66 [23:53:15]Write i2c OK [23:53:15]MH_I2C_Read... [23:53:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:15]Read from MH i2c: E2 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: E2 FD 00 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: E2 FD 00 B4 32 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E1 [23:53:15]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 [23:53:15]wFMCommunicate OK [23:53:15]wFMCommunicate request_size=4 [23:53:15]MH_SAM_APDU [23:53:15]CAPDU: 80 17 00 00 [23:53:15]Write to MH i2c: E2 08 00 B5 32 80 17 00 00 00 00 00 00 67 [23:53:15]Write i2c OK [23:53:15]MH_I2C_Read... [23:53:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:53:15]Read from MH i2c: E2 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: E2 E4 00 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: E2 E4 00 B5 32 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 47 [23:53:15]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 [23:53:16]wFMCommunicate OK [23:53:16]SAM_PROTO_GetFMData done [23:53:16]FM_GetFMData:85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 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 1A 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 [23:53:16]oper:6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 [23:53:16]total:41 32 39 53 01 [23:53:16]Malloc new data [23:53:16]oper:6F 04 04 00 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 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 1A 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 [23:53:16]total:1C 2F 0B 09 [23:53:16]Malloc new data [23:53:16]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:53:17]total: [23:53:17]Malloc new data [23:53:17]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:53:17]total: [23:53:17]Malloc new data [23:53:17]KKMPrepareXReportFMData err=0 [23:53:17]Х отчет ИНН: 02508201610067 Кассир: Алмусаев Т. 31.10.2024 23:53 Смена: 522 РНМ: 0000000000091631 ЗНМ: 0300000081 СНО: Общий режим Всего чеков: 294 ИТОГИ ПРИХОД Чеков: 290 Общий итог: 111945.36 Итого наличными: 93997.00 Итого безнал.: 17948.36 НДС 0% : 0.00 НДС 12% : 11888.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 990.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 3927.00 Итого наличными: 3927.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 417.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 34.75 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 90070.00 НС Приход: 56912246.41 НС Возвр.Прихода: 1517279.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874669 [23:53:17]StoreToDocumentArchive [23:53:17]MH_GetDate [23:53:17]Write to MH i2c: F0 00 00 B6 32 D7 [23:53:17]Write i2c OK [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 09 00 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: F0 09 00 B6 32 00 70 18 24 67 72 0D 1C 67 F5 [23:53:17]shift 522 fd 1730418800 [23:53:17]Create dir for shift 0522 [23:53:17]save to /storage/0522/doc_1730418800 [23:53:17]save last doc name /storage/0522/doc_1730418800 to /storage/kkm_last_doc_name [23:53:17]save OK [23:53:17]Clear old archive folders... [23:53:17]NVStorageSaveData kkm_last_timestamp [23:53:17]File name is /storage/kkm_last_timestamp [23:53:17]Write 4 bytes [23:53:17]NVStorageSaveData done [23:53:17]ExternCall_PrintAddStr [23:53:17]wPrintStart [23:53:17]Write to MH i2c: 01 00 00 B7 32 E9 [23:53:17]Write i2c OK [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: 01 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: 01 07 00 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: 01 07 00 B7 32 00 00 00 00 00 FF 0F FE [23:53:17]RasterBufferAndPrint [23:53:17]line Х отчет [23:53:17]line ИНН: 02508201610067 [23:53:17]line Кассир: Алмусаев Т. [23:53:17]line 31.10.2024 23:53 [23:53:17]line Смена: 522 [23:53:17]line РНМ: 0000000000091631 [23:53:17]line ЗНМ: 0300000081 [23:53:17]line СНО: Общий режим [23:53:17]line Всего чеков: 294 [23:53:17]line ИТОГИ ПРИХОД [23:53:17]line Чеков: 290 [23:53:17]line Общий итог: 111945.36 [23:53:17]line Итого наличными: 93997.00 [23:53:17]line Итого безнал.: 17948.36 [23:53:17]line НДС 0% : 0.00 [23:53:17]line НДС 12% : 11888.77 [23:53:17]line НСП 0% : 0.00 [23:53:17]line НСП 1,50% : 0.00 [23:53:17]line НСП 0,50% : 0.00 [23:53:17]line НСП 5% : 0.00 [23:53:17]line НСП 3% : 0.00 [23:53:17]line НСП 2% : 0.00 [23:53:17]line НСП 1% : 990.55 [23:53:17]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:53:17]line Чеков: 4 [23:53:17]line Общий итог: 3927.00 [23:53:17]line Итого наличными: 3927.00 [23:53:17]line Итого безнал.: 0.00 [23:53:17]line НДС 0% : 0.00 [23:53:17]line НДС 12% : 417.02 [23:53:17]line НСП 0% : 0.00 [23:53:17]line НСП 1,50% : 0.00 [23:53:17]line НСП 0,50% : 0.00 [23:53:17]line НСП 5% : 0.00 [23:53:17]line НСП 3% : 0.00 [23:53:17]line НСП 2% : 0.00 [23:53:17]line НСП 1% : 34.75 [23:53:17]line ИТОГИ РАСХОД [23:53:17]line Чеков: 0 [23:53:17]line Общий итог: 0.00 [23:53:17]line Итого наличными: 0.00 [23:53:17]line Итого безнал.: 0.00 [23:53:17]line НДС 0% : 0.00 [23:53:17]line НДС 12% : 0.00 [23:53:17]line НСП 0% : 0.00 [23:53:17]line НСП 1,50% : 0.00 [23:53:17]line НСП 0,50% : 0.00 [23:53:17]line НСП 5% : 0.00 [23:53:17]line НСП 3% : 0.00 [23:53:17]line НСП 2% : 0.00 [23:53:17]line НСП 1% : 0.00 [23:53:17]line ИТОГИ ВОЗВРАТ РАСХОДА [23:53:17]line Чеков: 0 [23:53:17]line Общий итог: 0.00 [23:53:17]line Итого наличными: 0.00 [23:53:17]line Итого безнал.: 0.00 [23:53:17]line НДС 0% : 0.00 [23:53:17]line НДС 12% : 0.00 [23:53:17]line НСП 0% : 0.00 [23:53:17]line НСП 1,50% : 0.00 [23:53:17]line НСП 0,50% : 0.00 [23:53:17]line НСП 5% : 0.00 [23:53:17]line НСП 3% : 0.00 [23:53:17]line НСП 2% : 0.00 [23:53:17]line НСП 1% : 0.00 [23:53:17]line Сумма внесений: 0.00 [23:53:17]line Сумма выплат: 0.00 [23:53:17]line Нал. в кассе: 90070.00 [23:53:17]line НС Приход: 56912246.41 [23:53:17]line НС Возвр.Прихода: 1517279.00 [23:53:17]line НС Расход: 0.00 [23:53:17]line НС Возвр.Расхода: 0.00 [23:53:17]line ФМ: 0000000000874669 [23:53:17]written 0, free lines is 4095 [23:53:18]Write to MH i2c: 01 00 00 02 33 35 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: 01 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: 01 07 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: 01 07 00 02 33 00 00 00 00 00 24 0B 6B [23:53:18]RasterBufferAndPrint [23:53:18]line [23:53:18]line [23:53:18]line [23:53:18]line [23:53:18]line [23:53:18]written 0, free lines is 2891 [23:53:18]MH_Cut [23:53:18]Write to MH i2c: D1 01 00 09 33 01 0E [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: D1 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: D1 01 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: D1 01 00 09 33 00 0D [23:53:18]Write to MH i2c: 01 00 00 0A 33 3D [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]OFD Sender: No OFD packet to send [23:53:18]*** Cut start [23:53:18]*** Partial cut [23:53:18]*** CUTSNS_PIN = 1 [23:53:19]*** CUTSNS_PIN = 0 [23:53:19]*** Brake cut motor [23:53:19]Read from MH i2c: 01 [23:53:19]MH_I2C_Read... [23:53:19]*** Stop cut motor [23:53:19]*** Cut end [23:53:19]Read from MH i2c: 01 07 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 0A 33 00 00 00 00 00 FF 0F 52 [23:53:19]process_action x_report done [23:53:19]requested_data is exist [23:53:19]produce_requested_data [23:53:19]requested_item fd.num is exist - process it [23:53:19]SAM_PROTO_GetFieldsCounters [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 13 00 00 [23:53:19]Write to MH i2c: E2 08 00 0B 33 80 13 00 00 00 00 00 00 BA [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 62 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 62 00 0B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [23:53: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 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:19]wFMCommunicate OK [23:53:19]SAM_PROTO_GetFieldsCounters done [23:53:19]requested_item shift.num is exist - process it [23:53:19]requested_item shift.opened is exist - process it [23:53:19]req_shift_opened [23:53:19]FM_GetShiftState [23:53:19]SAM_PROTO_GetShiftState [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 13 01 00 [23:53:19]Write to MH i2c: E2 08 00 0C 33 80 13 01 00 00 00 00 00 BC [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0E 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0E 00 0C 33 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E5 [23:53:19]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:53:19]wFMCommunicate OK [23:53:19]SAM_PROTO_GetShiftState done [23:53:19]FM_GetShiftState done [23:53:19]req_shift_opened done [23:53:19]requested_item shift.open_date is exist - process it [23:53:20]req_shift_open_date [23:53:20]req_shift_open_date done [23:53:20]produce_requested_data done [23:53:20]produce_requested_data return {"fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:53:20]process_action_free x_report [23:53:20]json_value_free [23:53:20]json_value_free done [23:53:20]process_json_proto returns [23:53:20]Send response to host [23:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:53:20]free response buf [23:53:20]execute_script done [23:53:20]execute_script returns [23:53:20]free content buf [23:53:20]Sock 9.Close socket [23:53:20]Sock 9.Thread stoped [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:53:58]accept exits with 7 [23:53:58]New connection [23:53:58]New thread 3066654052 created [23:53:58]Thread 3066510692 joined [23:53:58]Waiting for new connection... [23:53:58] Sock 7.Parse request [23:53:58]Sock 7.Check first char [23:53:58]Sock 7.First char is OK [23:53:58]request: POST /json_proto HTTP/1.0 [23:53:58]Method: POST [23:53:58]URL: /json_proto [23:53:58]Method is POST - this is cgi request [23:53:58]url: /json_proto [23:53:58]query_string will be loaded in cgi processing [23:53:58]execute_cgi json_proto POST (null) [23:53:58]execute_cgi path=json_proto method=POST [23:53:58]POST find Content-Length [23:53:58]Host: 172.17.50.196:8080 [23:53:58]Content-Length: 215 [23:53:58]Content-Type: application/json [23:53:58] [23:53:58]POST finish read [23:53:58]Found Content-Length = 215 [23:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:58]execute_script... [23:53:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:58]POST & json_proto [23:53:58]process_json_proto [23:53:58]json parsed OK: [23:53:58]protocol is kg_v1.0 [23:53:58]action value=get_value [23:53:58]process_action get_value [23:53:58]cmd_get_value [23:53:58]process_action get_value done [23:53:58]requested_data is exist [23:53:58]produce_requested_data [23:53:58]requested_item kkm.sn is exist - process it [23:53:58]requested_item kkm.ver is exist - process it [23:53:58]requested_item fm.sn is exist - process it [23:53:58]wFMCommunicate request_size=4 [23:53:58]MH_SAM_APDU [23:53:58]CAPDU: 80 11 00 00 [23:53:58]Write to MH i2c: E2 08 00 0D 33 80 11 00 00 00 00 00 00 BA [23:53:58]Write i2c OK [23:53:58]MH_I2C_Read... [23:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:59]Read from MH i2c: E2 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 17 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 17 00 0D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 15 [23:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:53:59]wFMCommunicate OK [23:53:59]requested_item fd.num is exist - process it [23:53:59]SAM_PROTO_GetFieldsCounters [23:53:59]wFMCommunicate request_size=4 [23:53:59]MH_SAM_APDU [23:53:59]CAPDU: 80 13 00 00 [23:53:59]Write to MH i2c: E2 08 00 0E 33 80 13 00 00 00 00 00 00 BD [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:53:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:59]Read from MH i2c: E2 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 62 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 62 00 0E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [23:53: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 29 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:59]wFMCommunicate OK [23:53:59]SAM_PROTO_GetFieldsCounters done [23:53:59]requested_item shift.num is exist - process it [23:53:59]requested_item shift.opened is exist - process it [23:53:59]req_shift_opened [23:53:59]FM_GetShiftState [23:53:59]SAM_PROTO_GetShiftState [23:53:59]wFMCommunicate request_size=4 [23:53:59]MH_SAM_APDU [23:53:59]CAPDU: 80 13 01 00 [23:53:59]Write to MH i2c: E2 08 00 0F 33 80 13 01 00 00 00 00 00 BF [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:59]Read from MH i2c: E2 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 0E 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 0E 00 0F 33 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E8 [23:53:59]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:53:59]wFMCommunicate OK [23:53:59]SAM_PROTO_GetShiftState done [23:53:59]FM_GetShiftState done [23:53:59]req_shift_opened done [23:53:59]requested_item shift.open_date is exist - process it [23:53:59]req_shift_open_date [23:53:59]req_shift_open_date done [23:53:59]produce_requested_data done [23:53:59]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:53:59]process_action_free get_value [23:53:59]json_value_free [23:53:59]json_value_free done [23:53:59]process_json_proto returns [23:53:59]Send response to host [23:53:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139817,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:53:59]free response buf [23:53:59]execute_script done [23:53:59]execute_script returns [23:53:59]free content buf [23:53:59]Sock 7.Close socket [23:53:59]Sock 7.Thread stoped [23:53:59]accept exits with 9 [23:53:59]New connection [23:53:59]New thread 3066510692 created [23:53:59]Thread 3066654052 joined [23:53:59]Waiting for new connection... [23:53:59] Sock 9.Parse request [23:53:59]Sock 9.Check first char [23:53:59]Sock 9.First char is OK [23:53:59]request: POST /json_proto HTTP/1.0 [23:53:59]Method: POST [23:53:59]URL: /json_proto [23:53:59]Method is POST - this is cgi request [23:53:59]url: /json_proto [23:53:59]query_string will be loaded in cgi processing [23:53:59]execute_cgi json_proto POST (null) [23:53:59]execute_cgi path=json_proto method=POST [23:53:59]POST find Content-Length [23:53:59]Host: 172.17.50.196:8080 [23:53:59]Content-Length: 331 [23:53:59]Content-Type: application/json [23:53:59] [23:53:59]POST finish read [23:53:59]Found Content-Length = 331 [23:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:59]execute_script... [23:53:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:59]POST & json_proto [23:53:59]process_json_proto [23:53:59]json parsed OK: [23:53:59]protocol is kg_v1.0 [23:53:59]action value=get_value [23:53:59]process_action get_value [23:53:59]cmd_get_value [23:53:59]process_action get_value done [23:53:59]requested_data is exist [23:53:59]produce_requested_data [23:53:59]requested_item fm.sale.total is exist - process it [23:53:59]SAM_PROTO_GetFMData [23:53:59]wFMCommunicate request_size=4 [23:53:59]MH_SAM_APDU [23:53:59]CAPDU: 80 13 03 00 [23:53:59]Write to MH i2c: E2 08 00 10 33 80 13 03 00 00 00 00 00 C2 [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:53:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:59]Read from MH i2c: E2 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 FD 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 FD 00 10 33 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 D6 [23:53:59]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:53:59]wFMCommunicate OK [23:53:59]wFMCommunicate request_size=4 [23:53:59]MH_SAM_APDU [23:53:59]CAPDU: 80 17 00 00 [23:53:59]Write to MH i2c: E2 08 00 11 33 80 17 00 00 00 00 00 00 C4 [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 11 33 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 1A 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 [23:54:00]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 1A 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 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 17 00 00 [23:54:00]Write to MH i2c: E2 08 00 12 33 80 17 00 00 00 00 00 00 C5 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 12 33 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 [23:54:00]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 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 17 00 00 [23:54:00]Write to MH i2c: E2 08 00 13 33 80 17 00 00 00 00 00 00 C6 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 13 33 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:54:00]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 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 17 00 00 [23:54:00]Write to MH i2c: E2 08 00 14 33 80 17 00 00 00 00 00 00 C7 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 E4 00 [23:54:00]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 E4 00 14 33 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 [23:54:01]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 [23:54:01]wFMCommunicate OK [23:54:01]SAM_PROTO_GetFMData done [23:54:01]requested_item fm.sale_refund.total is exist - process it [23:54:01]requested_item fm.buy.total is exist - process it [23:54:01]requested_item shift.sale.total is exist - process it [23:54:01]SAM_PROTO_GetShiftData [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 13 02 00 [23:54:01]Write to MH i2c: E2 08 00 15 33 80 13 02 00 00 00 00 00 C6 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:01]Read from MH i2c: E2 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 15 33 00 B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 86 [23:54:01]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:54:01]wFMCommunicate OK [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 17 00 00 [23:54:01]Write to MH i2c: E2 08 00 16 33 80 17 00 00 00 00 00 00 C9 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:01]Read from MH i2c: E2 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 FD 00 16 33 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 28 [23:54:01]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:54:01]wFMCommunicate OK [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 17 00 00 [23:54:01]Write to MH i2c: E2 08 00 17 33 80 17 00 00 00 00 00 00 CA [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 17 33 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 F2 [23:54:02]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:54:02]wFMCommunicate OK [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 17 00 00 [23:54:02]Write to MH i2c: E2 08 00 18 33 80 17 00 00 00 00 00 00 CB [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 18 33 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 43 [23:54:02]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:54:02]wFMCommunicate OK [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 17 00 00 [23:54:02]Write to MH i2c: E2 08 00 19 33 80 17 00 00 00 00 00 00 CC [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 D6 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 D6 00 19 33 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AE [23:54:02]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:02]wFMCommunicate OK [23:54:02]SAM_PROTO_GetShiftData done [23:54:02]requested_item shift.sale.total_cash is exist - process it [23:54:02]requested_item shift.sale_refund.total is exist - process it [23:54:02]requested_item shift.sale_refund.total_cash is exist - process it [23:54:02]requested_item shift.buy.total is exist - process it [23:54:02]requested_item shift.buy.total_cash is exist - process it [23:54:02]produce_requested_data done [23:54:02]produce_requested_data return {"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:54:02]process_action_free get_value [23:54:02]json_value_free [23:54:02]json_value_free done [23:54:02]process_json_proto returns [23:54:02]Send response to host [23:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:54:02]free response buf [23:54:02]execute_script done [23:54:02]execute_script returns [23:54:02]free content buf [23:54:02]Sock 9.Close socket [23:54:02]Sock 9.Thread stoped [23:54:02]accept exits with 7 [23:54:02]New connection [23:54:02]New thread 3066654052 created [23:54:02]Thread 3066510692 joined [23:54:02]Waiting for new connection... [23:54:02] Sock 7.Parse request [23:54:02]Sock 7.Check first char [23:54:02]Sock 7.First char is OK [23:54:02]request: POST /json_proto HTTP/1.0 [23:54:02]Method: POST [23:54:02]URL: /json_proto [23:54:02]Method is POST - this is cgi request [23:54:02]url: /json_proto [23:54:02]query_string will be loaded in cgi processing [23:54:02]execute_cgi json_proto POST (null) [23:54:02]execute_cgi path=json_proto method=POST [23:54:02]POST find Content-Length [23:54:02]Host: 172.17.50.196:8080 [23:54:02]Content-Length: 331 [23:54:02]Content-Type: application/json [23:54:02] [23:54:02]POST finish read [23:54:02]Found Content-Length = 331 [23:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:02]execute_script... [23:54:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:02]POST & json_proto [23:54:02]process_json_proto [23:54:02]json parsed OK: [23:54:02]protocol is kg_v1.0 [23:54:02]action value=get_value [23:54:02]process_action get_value [23:54:02]cmd_get_value [23:54:02]process_action get_value done [23:54:02]requested_data is exist [23:54:02]produce_requested_data [23:54:02]requested_item fm.sale.total is exist - process it [23:54:02]SAM_PROTO_GetFMData [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 13 03 00 [23:54:02]Write to MH i2c: E2 08 00 1A 33 80 13 03 00 00 00 00 00 CC [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 1A 33 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 E0 [23:54:03]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:54:03]wFMCommunicate OK [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 17 00 00 [23:54:03]Write to MH i2c: E2 08 00 1B 33 80 17 00 00 00 00 00 00 CE [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]OFD Sender: No OFD packet to send [23:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 1B 33 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 1A 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 86 [23:54:03]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 1A 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 [23:54:03]wFMCommunicate OK [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 17 00 00 [23:54:03]Write to MH i2c: E2 08 00 1C 33 80 17 00 00 00 00 00 00 CF [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 1C 33 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 A7 [23:54:03]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 [23:54:04]wFMCommunicate OK [23:54:04]wFMCommunicate request_size=4 [23:54:04]MH_SAM_APDU [23:54:04]CAPDU: 80 17 00 00 [23:54:04]Write to MH i2c: E2 08 00 1D 33 80 17 00 00 00 00 00 00 D0 [23:54:04]Write i2c OK [23:54:04]MH_I2C_Read... [23:54:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:04]Read from MH i2c: E2 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 FD 00 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 FD 00 1D 33 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [23:54:04]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 [23:54:04]wFMCommunicate OK [23:54:04]wFMCommunicate request_size=4 [23:54:04]MH_SAM_APDU [23:54:04]CAPDU: 80 17 00 00 [23:54:04]Write to MH i2c: E2 08 00 1E 33 80 17 00 00 00 00 00 00 D1 [23:54:04]Write i2c OK [23:54:04]MH_I2C_Read... [23:54:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:54:04]Read from MH i2c: E2 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 E4 00 [23:54:04]MH_I2C_Read... [23:54:04]Read from MH i2c: E2 E4 00 1E 33 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 B1 [23:54:04]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 [23:54:04]wFMCommunicate OK [23:54:04]SAM_PROTO_GetFMData done [23:54:04]requested_item fm.sale_refund.total is exist - process it [23:54:04]requested_item fm.buy.total is exist - process it [23:54:04]requested_item shift.sale.total is exist - process it [23:54:04]SAM_PROTO_GetShiftData [23:54:04]wFMCommunicate request_size=4 [23:54:04]MH_SAM_APDU [23:54:04]CAPDU: 80 13 02 00 [23:54:04]Write to MH i2c: E2 08 00 1F 33 80 13 02 00 00 00 00 00 D0 [23:54:04]Write i2c OK [23:54:04]MH_I2C_Read... [23:54:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:05]Read from MH i2c: E2 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 1F 33 00 B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 90 [23:54:05]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:54:05]wFMCommunicate OK [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 17 00 00 [23:54:05]Write to MH i2c: E2 08 00 20 33 80 17 00 00 00 00 00 00 D3 [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:05]Read from MH i2c: E2 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 20 33 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 32 [23:54:05]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:54:05]wFMCommunicate OK [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 17 00 00 [23:54:05]Write to MH i2c: E2 08 00 21 33 80 17 00 00 00 00 00 00 D4 [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 21 33 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 FC [23:54:06]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:54:06]wFMCommunicate OK [23:54:06]wFMCommunicate request_size=4 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 17 00 00 [23:54:06]Write to MH i2c: E2 08 00 22 33 80 17 00 00 00 00 00 00 D5 [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 22 33 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 4D [23:54:06]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:54:06]wFMCommunicate OK [23:54:06]wFMCommunicate request_size=4 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 17 00 00 [23:54:06]Write to MH i2c: E2 08 00 23 33 80 17 00 00 00 00 00 00 D6 [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 D6 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 D6 00 23 33 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B8 [23:54:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:07]wFMCommunicate OK [23:54:07]SAM_PROTO_GetShiftData done [23:54:07]requested_item shift.sale.total_cash is exist - process it [23:54:07]requested_item shift.sale_refund.total is exist - process it [23:54:07]requested_item shift.sale_refund.total_cash is exist - process it [23:54:07]requested_item shift.buy.total is exist - process it [23:54:07]requested_item shift.buy.total_cash is exist - process it [23:54:07]produce_requested_data done [23:54:07]produce_requested_data return {"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:54:07]process_action_free get_value [23:54:07]json_value_free [23:54:07]json_value_free done [23:54:07]process_json_proto returns [23:54:07]Send response to host [23:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:54:07]free response buf [23:54:07]execute_script done [23:54:07]execute_script returns [23:54:07]free content buf [23:54:07]Sock 7.Close socket [23:54:07]Sock 7.Thread stoped [23:54:07]accept exits with 9 [23:54:07]New connection [23:54:07]New thread 3066510692 created [23:54:07]Thread 3066654052 joined [23:54:07]Waiting for new connection... [23:54:07] Sock 9.Parse request [23:54:07]Sock 9.Check first char [23:54:07]Sock 9.First char is OK [23:54:07]request: POST /json_proto HTTP/1.0 [23:54:07]Method: POST [23:54:07]URL: /json_proto [23:54:07]Method is POST - this is cgi request [23:54:07]url: /json_proto [23:54:07]query_string will be loaded in cgi processing [23:54:07]execute_cgi json_proto POST (null) [23:54:07]execute_cgi path=json_proto method=POST [23:54:07]POST find Content-Length [23:54:07]Host: 172.17.50.196:8080 [23:54:07]Content-Length: 260 [23:54:07]Content-Type: application/json [23:54:07] [23:54:07]POST finish read [23:54:07]Found Content-Length = 260 [23:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043B\u043C\u0443\u0441\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:07]execute_script... [23:54:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043B\u043C\u0443\u0441\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:07]POST & json_proto [23:54:07]process_json_proto [23:54:07]json parsed OK: [23:54:07]protocol is kg_v1.0 [23:54:07]action value=close_shift [23:54:07]process_action close_shift [23:54:07]cmd_close_shift [23:54:07]MH_GetDate [23:54:07]Write to MH i2c: F0 00 00 24 33 46 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 09 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 09 00 24 33 00 A2 18 24 67 72 0D 1C 67 96 [23:54:07]GetLastDocTimeStamp 1730418792 [23:54:07]current date 1730418850 [23:54:07]FM_GetShiftState [23:54:07]SAM_PROTO_GetShiftState [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 13 01 00 [23:54:07]Write to MH i2c: E2 08 00 25 33 80 13 01 00 00 00 00 00 D5 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 0E 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 0E 00 25 33 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FE [23:54:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:54:07]wFMCommunicate OK [23:54:07]SAM_PROTO_GetShiftState done [23:54:07]FM_GetShiftState done [23:54:07]KKMCreateCloseShiftDocument [23:54:07]Load OK [23:54:07]Malloc new data [23:54:07]MH_GetDate [23:54:07]Write to MH i2c: F0 00 00 26 33 48 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 09 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 09 00 26 33 00 A2 18 24 67 72 0D 1C 67 98 [23:54:07]Malloc new data [23:54:07]Malloc new data [23:54:07]Malloc new data [23:54:07]Malloc new data [23:54:07]KKMCreateCloseShiftDocument OK [23:54:07]KKMSetCloseShiftData OK [23:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=71 [23:54:07]tlvbuf is 00B4D6F0 [23:54:07]KKMLoadAndSignCloseShiftData [23:54:07]SAM_PROTO_ProcessDocument [23:54:07]wFMCommunicate request_size=9 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 15 01 00 04 05 00 47 00 [23:54:07]Write to MH i2c: E2 0C 00 27 33 80 15 01 00 04 00 05 00 47 00 00 00 2D [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 27 33 00 90 00 CE [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=23 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:54:07]Write to MH i2c: E2 1A 00 28 33 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 D0 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 28 33 00 90 00 CF [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=30 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 [23:54:07]Write to MH i2c: E2 21 00 29 33 80 15 02 00 19 00 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 00 00 A7 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 29 33 00 90 00 D0 [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=13 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 15 02 00 08 F4 03 04 00 A2 18 24 67 [23:54:07]Write to MH i2c: E2 10 00 2A 33 80 15 02 00 08 00 F4 03 04 00 A2 18 24 67 00 00 2D [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 2A 33 00 90 00 D1 [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=25 [23:54:07]MH_SAM_APDU [23:54:07]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 [23:54:07]Write to MH i2c: E2 1C 00 2B 33 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 3B [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 2B 33 00 90 00 D2 [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 15 03 00 [23:54:07]Write to MH i2c: E2 08 00 2C 33 80 15 03 00 00 00 00 00 E0 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 FD 00 [23:54:08]MH_I2C_Read... [23:54:08]OFD Sender: No OFD packet to send [23:54:08]Read from MH i2c: E2 FD 00 2C 33 00 FC 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 2A 22 02 00 0E 04 04 00 2D 02 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 28 01 00 00 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 90 00 0D [23:54:08]RAPDU: FC 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 2A 22 02 00 0E 04 04 00 2D 02 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 28 01 00 00 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 90 00 [23:54:08]wFMCommunicate OK [23:54:08]SAM_PROTO_ProcessDocument answer len = 1276 [23:54:08]SAM_PROTO_ProcessDocument remain to read = 1028 [23:54:08]wFMCommunicate request_size=4 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 17 00 00 [23:54:08]Write to MH i2c: E2 08 00 2D 33 80 17 00 00 00 00 00 00 E0 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 FD 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 FD 00 2D 33 00 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 E0 [23:54:09]RAPDU: 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:54:09]wFMCommunicate OK [23:54:09]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:09]SAM_PROTO_ProcessDocument remain to read = 778 [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 17 00 00 [23:54:09]Write to MH i2c: E2 08 00 2E 33 80 17 00 00 00 00 00 00 E1 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 2E 33 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 47 [23:54:09]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:54:09]wFMCommunicate OK [23:54:09]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:09]SAM_PROTO_ProcessDocument remain to read = 528 [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 17 00 00 [23:54:09]Write to MH i2c: E2 08 00 2F 33 80 17 00 00 00 00 00 00 E2 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 FD 00 2F 33 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 F5 [23:54:09]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:10]SAM_PROTO_ProcessDocument remain to read = 278 [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 17 00 00 [23:54:10]Write to MH i2c: E2 08 00 30 33 80 17 00 00 00 00 00 00 E3 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 FD 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 FD 00 30 33 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 1D [23:54:10]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:10]SAM_PROTO_ProcessDocument remain to read = 28 [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 17 00 00 [23:54:10]Write to MH i2c: E2 08 00 31 33 80 17 00 00 00 00 00 00 E4 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 1F 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 1F 00 31 33 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 6B 10 1E 81 9F A1 90 00 81 [23:54:10]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 6B 10 1E 81 9F A1 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [23:54:10]SAM_PROTO_ProcessDocument done [23:54:10]1209 (1) - 1.0 - номер версии ФФД [23:54:10]1041 (16) - 0000000000874669 - номер ФМ [23:54:10]1040 (4) - 139818 - номер ФД [23:54:10]1038 (4) - 557 - номер смены [23:54:10]1118 (4) - 294 - количество кассовых чеков за смену [23:54:10]1111 (4) - 296 - общее количество ФД за смену [23:54:10]1194 (1205) - счетчики итогов смены [23:54:10] 1134 (4) - 294 - количество чеков со всеми признаками расчетов [23:54:10] 1129 (156) - счетчики операций «приход» [23:54:10] 1135 (4) - 290 - количество чеков по признаку расчетов [23:54:10] 1201 (3) - 111945.36 - общая итоговая сумма в чеках [23:54:10] 1136 (3) - 93997.00 - итоговая сумма в чеках наличными [23:54:10] 1138 (3) - 17948.36 - итоговая сумма в чеках безналичными [23:54:10] 1024 (123) - суммы налогов [23:54:10] 1006 (9) - суммы НДС [23:54:10] 1010 (1) - 0% - код ставки НДС [23:54:10] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:10] 1006 (12) - суммы НДС [23:54:10] 1010 (1) - 12% - код ставки НДС [23:54:10] 1011 (3) - 11888.77 - сумма НДС по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 0% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (12) - суммы НСП [23:54:10] 1014 (1) - 1% - код ставки НСП [23:54:10] 1015 (3) - 990.55 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 2% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 3% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 5% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 0,50% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 1,50% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1130 (151) - счетчики операций «возврат прихода» [23:54:10] 1135 (4) - 4 - количество чеков по признаку расчетов [23:54:10] 1201 (3) - 3927.00 - общая итоговая сумма в чеках [23:54:10] 1136 (3) - 3927.00 - итоговая сумма в чеках наличными [23:54:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:10] 1024 (121) - суммы налогов [23:54:10] 1006 (9) - суммы НДС [23:54:10] 1010 (1) - 0% - код ставки НДС [23:54:10] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:10] 1006 (11) - суммы НДС [23:54:10] 1010 (1) - 12% - код ставки НДС [23:54:10] 1011 (2) - 417.02 - сумма НДС по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 0% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (11) - суммы НСП [23:54:10] 1014 (1) - 1% - код ставки НСП [23:54:10] 1015 (2) - 34.75 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 2% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 3% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 5% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 0,50% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 1,50% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1131 (141) - счетчики операций «расход» [23:54:10] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:10] 1024 (117) - суммы налогов [23:54:10] 1006 (9) - суммы НДС [23:54:10] 1010 (1) - 0% - код ставки НДС [23:54:10] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:10] 1006 (9) - суммы НДС [23:54:10] 1010 (1) - 12% - код ставки НДС [23:54:10] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 0% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 1% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 2% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 3% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 5% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 0,50% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 1,50% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1132 (141) - счетчики операций «возврат расхода» [23:54:10] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:10] 1024 (117) - суммы налогов [23:54:10] 1006 (9) - суммы НДС [23:54:10] 1010 (1) - 0% - код ставки НДС [23:54:10] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:10] 1006 (9) - суммы НДС [23:54:10] 1010 (1) - 12% - код ставки НДС [23:54:10] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:10] 1014 (1) - 0% - код ставки НСП [23:54:10] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:10] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 2% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 3% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 5% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 0,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1007 (9) - суммы НСП [23:54:11] 1014 (1) - 1,50% - код ставки НСП [23:54:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:11] 1133 (588) - - счетчики коррекции - не используются [23:54:11]1077 (6) - 117716975460257 - ФПД [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1209 (04B9) [23:54:11]Malloc new data [23:54:11]Processing tag 1041 (0411) [23:54:11]Processing tag 1040 (0410) [23:54:11]Malloc new data [23:54:11]Processing tag 1038 (040E) [23:54:11]Malloc new data [23:54:11]Processing tag 1118 (045E) [23:54:11]Malloc new data [23:54:11]Processing tag 1111 (0457) [23:54:11]Malloc new data [23:54:11]Processing tag 1194 (04AA) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1134 (046E) [23:54:11]Malloc new data [23:54:11]Processing tag 1129 (0469) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1135 (046F) [23:54:11]Malloc new data [23:54:11]Processing tag 1201 (04B1) [23:54:11]Malloc new data [23:54:11]Processing tag 1136 (0470) [23:54:11]Malloc new data [23:54:11]Processing tag 1138 (0472) [23:54:11]Malloc new data [23:54:11]Processing tag 1024 (0400) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1130 (046A) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1135 (046F) [23:54:11]Malloc new data [23:54:11]Processing tag 1201 (04B1) [23:54:11]Malloc new data [23:54:11]Processing tag 1136 (0470) [23:54:11]Malloc new data [23:54:11]Processing tag 1138 (0472) [23:54:11]Malloc new data [23:54:11]Processing tag 1024 (0400) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1131 (046B) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1135 (046F) [23:54:11]Malloc new data [23:54:11]Processing tag 1201 (04B1) [23:54:11]Malloc new data [23:54:11]Processing tag 1136 (0470) [23:54:11]Malloc new data [23:54:11]Processing tag 1138 (0472) [23:54:11]Malloc new data [23:54:11]Processing tag 1024 (0400) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1132 (046C) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1135 (046F) [23:54:11]Malloc new data [23:54:11]Processing tag 1201 (04B1) [23:54:11]Malloc new data [23:54:11]Processing tag 1136 (0470) [23:54:11]Malloc new data [23:54:11]Processing tag 1138 (0472) [23:54:11]Malloc new data [23:54:11]Processing tag 1024 (0400) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1006 (03EE) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1010 (03F2) [23:54:11]Malloc new data [23:54:11]Processing tag 1011 (03F3) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1007 (03EF) [23:54:11]Load OK [23:54:11]SetTLVBufToDocument [23:54:11]Processing tag 1014 (03F6) [23:54:11]Malloc new data [23:54:11]Processing tag 1015 (03F7) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1133 (046D) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Processing tag 1077 (0435) [23:54:11]Malloc new data [23:54:11]SetTLVBufToDocument err=0 [23:54:11]Malloc new data [23:54:11]SAM_PROTO_GetFMData [23:54:11]wFMCommunicate request_size=4 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 13 03 00 [23:54:11]Write to MH i2c: E2 08 00 32 33 80 13 03 00 00 00 00 00 E4 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 FD 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 FD 00 32 33 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 F8 [23:54:12]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:54:12]wFMCommunicate OK [23:54:12]wFMCommunicate request_size=4 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 17 00 00 [23:54:12]Write to MH i2c: E2 08 00 33 33 80 17 00 00 00 00 00 00 E6 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 FD 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 FD 00 33 33 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 1A 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 9E [23:54:13]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 1A 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 [23:54:13]wFMCommunicate OK [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 17 00 00 [23:54:13]Write to MH i2c: E2 08 00 34 33 80 17 00 00 00 00 00 00 E7 [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 FD 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 FD 00 34 33 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 BF [23:54:13]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 [23:54:13]wFMCommunicate OK [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 17 00 00 [23:54:13]Write to MH i2c: E2 08 00 35 33 80 17 00 00 00 00 00 00 E8 [23:54:13]OFD Sender: No OFD packet to send [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:14]Read from MH i2c: E2 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 FD 00 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 FD 00 35 33 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 63 [23:54:14]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 [23:54:14]wFMCommunicate OK [23:54:14]wFMCommunicate request_size=4 [23:54:14]MH_SAM_APDU [23:54:14]CAPDU: 80 17 00 00 [23:54:14]Write to MH i2c: E2 08 00 36 33 80 17 00 00 00 00 00 00 E9 [23:54:14]Write i2c OK [23:54:14]MH_I2C_Read... [23:54:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:54:14]Read from MH i2c: E2 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 E4 00 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 E4 00 36 33 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 C9 [23:54:14]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 [23:54:14]wFMCommunicate OK [23:54:14]SAM_PROTO_GetFMData done [23:54:14]Malloc new data [23:54:14]Malloc new data [23:54:14]Malloc new data [23:54:14]Malloc new data [23:54:14]KKMLoadAndSignCloseShiftData err=0 [23:54:14]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Алмусаев Т. 31.10.2024 23:54 Смена: 557 РНМ: 0000000000091631 ЗНМ: 0300000081 СНО: Общий режим Чеков за смену: 294 ФД за смену: 296 Всего чеков: 294 ИТОГИ ПРИХОД Чеков: 290 Общий итог: 111945.36 Итого наличными: 93997.00 Итого безнал.: 17948.36 НДС 0% : 0.00 НДС 12% : 11888.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 990.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 3927.00 Итого наличными: 3927.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 417.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 34.75 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 90070.00 НС Приход: 56912246.41 НС Возвр.Прихода: 1517279.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 139818 ФМ: 0000000000874669 ФПД: 117716975460257 [23:54:14]StoreToDocumentArchive [23:54:14]shift 557 fd 139818 [23:54:14]save to /storage/0557/doc_00139818 [23:54:14]save last doc name /storage/0557/doc_00139818 to /storage/kkm_last_doc_name [23:54:14]save OK [23:54:14]Clear old archive folders... [23:54:14]Remove dir /storage/0522 [23:54:14]opendir ok [23:54:14]file . [23:54:14]file .. [23:54:14]file doc_1730418800 [23:54:14]remove file /storage/0522/doc_1730418800 [23:54:14]remove dir /storage/0522 [23:54:14]NVStorageSaveData kkm_registers [23:54:14]File name is /storage/kkm_registers [23:54:14]Write 24 bytes [23:54:14]NVStorageSaveData done [23:54:14]NVStorageSaveData kkm_registers [23:54:14]File name is /storage/kkm_registers [23:54:14]Write 24 bytes [23:54:14]NVStorageSaveData done [23:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [23:54:14]tlvbuf is 00BFFBA0 [23:54:14]SAM_PROTO_ClearQueue [23:54:14]wFMCommunicate request_size=4 [23:54:14]MH_SAM_APDU [23:54:14]CAPDU: 80 09 00 00 [23:54:14]Write to MH i2c: E2 08 00 37 33 80 09 00 00 00 00 00 00 DC [23:54:14]Write i2c OK [23:54:14]MH_I2C_Read... [23:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:14]Read from MH i2c: E2 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 03 00 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 03 00 37 33 00 90 00 DE [23:54:14]RAPDU: 90 00 [23:54:14]wFMCommunicate OK [23:54:14]SAM_PROTO_ClearQueue done [23:54:14]KKMCreateOFDPacket [23:54:14]OFDProtocolAddRootSTLVToBuf [23:54:14]FM_MakeSignedData [23:54:14]FM_MakeSignedData [23:54:14]SAM_PROTO_SignData [23:54:14]wFMCommunicate request_size=4 [23:54:14]MH_SAM_APDU [23:54:14]CAPDU: 80 0D 01 02 [23:54:14]Write to MH i2c: E2 08 00 38 33 80 0D 01 02 00 00 00 00 E4 [23:54:14]Write i2c OK [23:54:14]MH_I2C_Read... [23:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:15]Read from MH i2c: E2 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 03 00 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 03 00 38 33 00 90 00 DF [23:54:15]RAPDU: 90 00 [23:54:15]wFMCommunicate OK [23:54:15]wFMCommunicate request_size=255 [23:54:15]MH_SAM_APDU [23:54:15]CAPDU: 80 0D 02 02 FA 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 A2 18 24 67 0E 04 04 00 2D 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 26 01 00 00 57 04 04 00 28 01 00 00 AA 04 DC 04 6E 04 04 00 26 01 00 00 69 04 A3 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 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 0D 24 12 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [23:54:15]Write to MH i2c: E2 02 01 39 33 80 0D 02 02 FA 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 A2 18 24 67 0E 04 04 00 2D 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 26 01 00 00 57 04 04 00 28 01 00 00 AA 04 DC 04 6E 04 04 00 26 01 00 00 69 04 A3 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 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 0D 24 12 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 6C [23:54:15]Write i2c OK [23:54:15]MH_I2C_Read... [23:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:15]Read from MH i2c: E2 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 03 00 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 03 00 39 33 00 90 00 E0 [23:54:15]RAPDU: 90 00 [23:54:15]wFMCommunicate OK [23:54:15]wFMCommunicate request_size=255 [23:54:15]MH_SAM_APDU [23:54:15]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EF 82 01 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D 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 [23:54:15]Write to MH i2c: E2 02 01 3A 33 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EF 82 01 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D 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 00 00 0C [23:54:15]Write i2c OK [23:54:15]MH_I2C_Read... [23:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:16]Read from MH i2c: E2 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: E2 03 00 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: E2 03 00 3A 33 00 90 00 E1 [23:54:16]RAPDU: 90 00 [23:54:16]wFMCommunicate OK [23:54:16]wFMCommunicate request_size=255 [23:54:16]MH_SAM_APDU [23:54:16]CAPDU: 80 0D 02 02 FA 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 [23:54:16]Write to MH i2c: E2 02 01 3B 33 80 0D 02 02 FA 00 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 00 00 AB [23:54:16]Write i2c OK [23:54:16]MH_I2C_Read... [23:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:16]Read from MH i2c: E2 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: E2 03 00 [23:54:16]MH_I2C_Read... [23:54:16]Read from MH i2c: E2 03 00 3B 33 00 90 00 E2 [23:54:16]RAPDU: 90 00 [23:54:16]wFMCommunicate OK [23:54:16]wFMCommunicate request_size=255 [23:54:16]MH_SAM_APDU [23:54:16]CAPDU: 80 0D 02 02 FA 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 [23:54:16]Write to MH i2c: E2 02 01 3C 33 80 0D 02 02 FA 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 00 AE [23:54:17]Write i2c OK [23:54:17]MH_I2C_Read... [23:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:17]Read from MH i2c: E2 [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: E2 03 00 [23:54:17]MH_I2C_Read... [23:54:17]Read from MH i2c: E2 03 00 3C 33 00 90 00 E3 [23:54:17]RAPDU: 90 00 [23:54:17]wFMCommunicate OK [23:54:17]wFMCommunicate request_size=255 [23:54:17]MH_SAM_APDU [23:54:17]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 [23:54:17]Write to MH i2c: E2 02 01 3D 33 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 00 00 70 [23:54:17]Write i2c OK [23:54:17]MH_I2C_Read... [23:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:18]Read from MH i2c: E2 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 03 00 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 03 00 3D 33 00 90 00 E4 [23:54:18]RAPDU: 90 00 [23:54:18]wFMCommunicate OK [23:54:18]wFMCommunicate request_size=145 [23:54:18]MH_SAM_APDU [23:54:18]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2A 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 6B 10 1E 81 9F A1 [23:54:18]Write to MH i2c: E2 94 00 3E 33 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2A 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 6B 10 1E 81 9F A1 00 00 E3 [23:54:18]Write i2c OK [23:54:18]MH_I2C_Read... [23:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:18]Read from MH i2c: E2 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 03 00 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 03 00 3E 33 00 90 00 E5 [23:54:18]RAPDU: 90 00 [23:54:18]wFMCommunicate OK [23:54:18]wFMCommunicate request_size=4 [23:54:18]MH_SAM_APDU [23:54:18]CAPDU: 80 0D 03 02 [23:54:18]Write to MH i2c: E2 08 00 3F 33 80 0D 03 02 00 00 00 00 ED [23:54:18]Write i2c OK [23:54:18]MH_I2C_Read... [23:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:18]Read from MH i2c: E2 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 0B 00 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 0B 00 3F 33 00 93 EC A5 CE 0F 40 58 03 90 00 8A [23:54:18]RAPDU: 93 EC A5 CE 0F 40 58 03 90 00 [23:54:18]wFMCommunicate OK [23:54:18]SAM_PROTO_SignData done [23:54:18]FM_MakeSignedData done [23:54:18]CreateOFDProtocolMessage [23:54:18]wFMCommunicate request_size=4 [23:54:18]MH_SAM_APDU [23:54:18]CAPDU: 80 11 00 00 [23:54:18]Write to MH i2c: E2 08 00 40 33 80 11 00 00 00 00 00 00 ED [23:54:18]Write i2c OK [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 [23:54:18]MH_I2C_Read... [23:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:18]Read from MH i2c: E2 17 00 [23:54:18]MH_I2C_Read... [23:54:18]Read from MH i2c: E2 17 00 40 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 48 [23:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:54:18]wFMCommunicate OK [23:54:18]CreateOFDProtocolMessage done [23:54:18]OFDSenderStorePacket 139818 [23:54:18]StoreOFDPacket docnum=139818 [23:54:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 7E 05 00 00 94 07 76 05 B6 0D 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 A2 18 24 67 0E 04 04 00 2D 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 26 01 00 00 57 04 04 00 28 01 00 00 AA 04 DC 04 6E 04 04 00 26 01 00 00 69 04 A3 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 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 0D 24 12 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 EF 82 01 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D 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 2A 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 6B 10 1E 81 9F A1 93 EC A5 CE 0F 40 58 03 [23:54:19]CheckFolder [23:54:19]dirname=/storage/ofd_packets [23:54:19]CheckFolder done [23:54:19]ProducePacketName [23:54:19]name=ofd_packets/00139818 [23:54:19]NVStorageSaveData ofd_packets/00139818 [23:54:19]File name is /storage/ofd_packets/00139818 [23:54:19]OFD Sender: No OFD packet to send [23:54:19]Write 1436 bytes [23:54:19]NVStorageSaveData done [23:54:19]OFDSenderStorePacket done [23:54:19]KKMCreateOFDPacket done [23:54:19]NVStorageSaveData kkm_last_timestamp [23:54:19]File name is /storage/kkm_last_timestamp [23:54:19]Write 4 bytes [23:54:19]NVStorageSaveData done [23:54:19]ExternCall_PrintAddStr [23:54:19]wPrintStart [23:54:19]Write to MH i2c: 01 00 00 41 33 74 [23:54:19]Write i2c OK [23:54:19]MH_I2C_Read... [23:54:19]Read from MH i2c: 01 [23:54:19]MH_I2C_Read... [23:54:19]Read from MH i2c: 01 07 00 [23:54:19]MH_I2C_Read... [23:54:19]Read from MH i2c: 01 07 00 41 33 00 00 00 00 00 FF 0F 89 [23:54:19]RasterBufferAndPrint [23:54:19]line Отчет о закрытии смены [23:54:19]line ФФД: 1.0 [23:54:19]line ИНН: 02508201610067 [23:54:19]line Кассир: Алмусаев Т. [23:54:19]line 31.10.2024 23:54 [23:54:19]line Смена: 557 [23:54:19]line РНМ: 0000000000091631 [23:54:19]line ЗНМ: 0300000081 [23:54:19]line СНО: Общий режим [23:54:19]line Чеков за смену: 294 [23:54:19]line ФД за смену: 296 [23:54:19]line Всего чеков: 294 [23:54:19]line ИТОГИ ПРИХОД [23:54:19]line Чеков: 290 [23:54:19]line Общий итог: 111945.36 [23:54:19]line Итого наличными: 93997.00 [23:54:19]line Итого безнал.: 17948.36 [23:54:19]line НДС 0% : 0.00 [23:54:19]line НДС 12% : 11888.77 [23:54:19]line НСП 0% : 0.00 [23:54:19]line НСП 1,50% : 0.00 [23:54:19]line НСП 0,50% : 0.00 [23:54:19]line НСП 5% : 0.00 [23:54:19]line НСП 3% : 0.00 [23:54:19]line НСП 2% : 0.00 [23:54:19]line НСП 1% : 990.55 [23:54:19]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:54:19]line Чеков: 4 [23:54:19]line Общий итог: 3927.00 [23:54:19]line Итого наличными: 3927.00 [23:54:19]line Итого безнал.: 0.00 [23:54:19]line НДС 0% : 0.00 [23:54:19]line НДС 12% : 417.02 [23:54:19]line НСП 0% : 0.00 [23:54:19]line НСП 1,50% : 0.00 [23:54:19]line НСП 0,50% : 0.00 [23:54:19]line НСП 5% : 0.00 [23:54:19]line НСП 3% : 0.00 [23:54:19]line НСП 2% : 0.00 [23:54:19]line НСП 1% : 34.75 [23:54:19]line ИТОГИ РАСХОД [23:54:19]line Чеков: 0 [23:54:19]line Общий итог: 0.00 [23:54:19]line Итого наличными: 0.00 [23:54:19]line Итого безнал.: 0.00 [23:54:19]line НДС 0% : 0.00 [23:54:19]line НДС 12% : 0.00 [23:54:19]line НСП 0% : 0.00 [23:54:19]line НСП 1,50% : 0.00 [23:54:19]line НСП 0,50% : 0.00 [23:54:19]line НСП 5% : 0.00 [23:54:19]line НСП 3% : 0.00 [23:54:19]line НСП 2% : 0.00 [23:54:19]line НСП 1% : 0.00 [23:54:19]line ИТОГИ ВОЗВРАТ РАСХОДА [23:54:19]line Чеков: 0 [23:54:19]line Общий итог: 0.00 [23:54:19]line Итого наличными: 0.00 [23:54:19]line Итого безнал.: 0.00 [23:54:19]line НДС 0% : 0.00 [23:54:19]line НДС 12% : 0.00 [23:54:19]line НСП 0% : 0.00 [23:54:19]line НСП 1,50% : 0.00 [23:54:19]line НСП 0,50% : 0.00 [23:54:19]line НСП 5% : 0.00 [23:54:19]line НСП 3% : 0.00 [23:54:19]line НСП 2% : 0.00 [23:54:19]line НСП 1% : 0.00 [23:54:19]line Сумма внесений: 0.00 [23:54:19]line Сумма выплат: 0.00 [23:54:19]line Нал. в кассе: 90070.00 [23:54:19]line НС Приход: 56912246.41 [23:54:19]line НС Возвр.Прихода: 1517279.00 [23:54:19]line НС Расход: 0.00 [23:54:19]line НС Возвр.Расхода: 0.00 [23:54:19]line ФД: 139818 [23:54:19]line ФМ: 0000000000874669 [23:54:19]line ФПД: 117716975460257 [23:54:19]written 0, free lines is 4095 [23:54:19]OFD Sender: Processing packet 139818 [packets to send 34, broken 33] [23:54:19]ProducePacketName [23:54:19]name=ofd_packets/00139818 [23:54:19]OFD Sender: To server: pG, [23:54:19]CommunicateWithHost lk.salyk.kg:30040 [23:54:19]ConnectInit lk.salyk.kg [23:54:19]Connected sock=10 [23:54: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 7E 05 00 00 94 07 76 05 B6 0D 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F4 03 04 00 A2 18 24 67 0E 04 04 00 2D 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 26 01 00 00 57 04 04 00 28 01 00 00 AA 04 DC 04 6E 04 04 00 26 01 00 00 69 04 A3 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 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 0D 24 12 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 EF 82 01 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D 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 Write to MH i2c: 04 01 00 00 00 00 70 91 04 33 00 C4 00 [23:54:19]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 Write i2c OK [23:54:19]00 MH_I2C_Read... [23:54:19]EE Read from MH i2c: 03 01 [23:54:19]09 MH_I2C_Read... [23:54:19]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 00 01 F7 07 03 00 00 [23:54:20]MH_I2C_Read... [23:54:20]00 Read from MH i2c: EF 01 03 07 09 00 00 91 F6 33 03 00 01 00 00 00 01 00 00 F3 0A C8 [23:54:20]RasterBufferAndPrint [23:54:20]line [23:54:20]line [23:54:20]line [23:54:20]line [23:54:20]line [23:54:20]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF written 0, free lines is 2911 [23:54:20]03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 MH_Cut [23:54:20]00 Write to MH i2c: 2A D1 22 01 02 00 00 11 04 10 98 00 33 30 01 30 9D 30 [23:54:20]30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 6B Write i2c OK [23:54:20]10 MH_I2C_Read... [23:54:20]1E Read from MH i2c: 81 D1 9F [23:54:20]A1 MH_I2C_Read... [23:54:20]93 EC A5 CE 0F 40 58 Read from MH i2c: 03 D1 [23:54:20]01 00 [23:54:20]MH_I2C_Read... [23:54:20]Read from MH i2c: D1 01 00 98 33 00 9C [23:54:20]Write to MH i2c: 01 00 00 99 33 CC [23:54:20]Write i2c OK [23:54:20]MH_I2C_Read... [23:54:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AA 6B 47 00 E3 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 2A 22 02 00 F4 03 04 00 59 C4 23 67 B6 04 01 00 00 9A 08 2F E4 9A A4 B6 3D [23:54:20]CommunicateWithHost err = 0 [23:54:20]CheckOFDResponse [23:54:20]1017 (14) - 77093643461234 [23:54:20]1041 (16) - 0000000000874669 [23:54:20]1040 (4) - 139818 [23:54:20]1012 (4) - 31.10.2024 17:54 [23:54:20]1206 (1) - 0 [23:54:20]OFD Sender: Remove packet 139818 [23:54:20]ProducePacketName [23:54:20]name=ofd_packets/00139818 [23:54:20]NVStorageDeleteData [23:54:20]*** Cut start [23:54:20]*** Partial cut [23:54:20]*** CUTSNS_PIN = 1 [23:54:21]*** CUTSNS_PIN = 0 [23:54:21]OFD Sender: No OFD packet to send [23:54:21]*** Brake cut motor [23:54:21]Read from MH i2c: 01 [23:54:21]MH_I2C_Read... [23:54:21]*** Stop cut motor [23:54:21]*** Cut end [23:54:21]Read from MH i2c: 01 07 00 [23:54:21]MH_I2C_Read... [23:54:21]Read from MH i2c: 01 07 00 99 33 00 00 00 00 00 FF 0F E1 [23:54:21]process_action close_shift done [23:54:21]requested_data is exist [23:54:21]produce_requested_data [23:54:21]requested_item fd.num is exist - process it [23:54:21]SAM_PROTO_GetFieldsCounters [23:54:21]wFMCommunicate request_size=4 [23:54:21]MH_SAM_APDU [23:54:21]CAPDU: 80 13 00 00 [23:54:21]Write to MH i2c: E2 08 00 9A 33 80 13 00 00 00 00 00 00 49 [23:54:21]Write i2c OK [23:54:21]MH_I2C_Read... [23:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:21]Read from MH i2c: E2 [23:54:21]MH_I2C_Read... [23:54:21]Read from MH i2c: E2 62 00 [23:54:21]MH_I2C_Read... [23:54:21]Read from MH i2c: E2 62 00 9A 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [23:54: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 2A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:21]wFMCommunicate OK [23:54:21]SAM_PROTO_GetFieldsCounters done [23:54:21]requested_item shift.num is exist - process it [23:54:21]requested_item shift.opened is exist - process it [23:54:21]req_shift_opened [23:54:21]FM_GetShiftState [23:54:21]SAM_PROTO_GetShiftState [23:54:21]wFMCommunicate request_size=4 [23:54:21]MH_SAM_APDU [23:54:21]CAPDU: 80 13 01 00 [23:54:21]Write to MH i2c: E2 08 00 9B 33 80 13 01 00 00 00 00 00 4B [23:54:21]Write i2c OK [23:54:21]MH_I2C_Read... [23:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:21]Read from MH i2c: E2 [23:54:21]MH_I2C_Read... [23:54:21]Read from MH i2c: E2 0E 00 [23:54:21]MH_I2C_Read... [23:54:21]Read from MH i2c: E2 0E 00 9B 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 56 [23:54:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:54:22]wFMCommunicate OK [23:54:22]SAM_PROTO_GetShiftState done [23:54:22]FM_GetShiftState done [23:54:22]req_shift_opened done [23:54:22]requested_item shift.open_date is exist - process it [23:54:22]req_shift_open_date [23:54:22]FM_GetShiftState [23:54:22]SAM_PROTO_GetShiftState [23:54:22]wFMCommunicate request_size=4 [23:54:22]MH_SAM_APDU [23:54:22]CAPDU: 80 13 01 00 [23:54:22]Write to MH i2c: E2 08 00 9C 33 80 13 01 00 00 00 00 00 4C [23:54:22]Write i2c OK [23:54:22]MH_I2C_Read... [23:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:22]Read from MH i2c: E2 [23:54:22]MH_I2C_Read... [23:54:22]Read from MH i2c: E2 0E 00 [23:54:22]MH_I2C_Read... [23:54:22]Read from MH i2c: E2 0E 00 9C 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 57 [23:54:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:54:22]wFMCommunicate OK [23:54:22]SAM_PROTO_GetShiftState done [23:54:22]FM_GetShiftState done [23:54:22]req_shift_open_date done [23:54:22]produce_requested_data done [23:54:22]produce_requested_data return {"fd.num":139818,"shift.num":557,"shift.opened":0,"shift.open_date":0} [23:54:22]process_action_free close_shift [23:54:22]json_value_free [23:54:22]json_value_free done [23:54:22]process_json_proto returns [23:54:22]Send response to host [23:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139818,"shift.num":557,"shift.opened":0,"shift.open_date":0}}} [23:54:22]free response buf [23:54:22]execute_script done [23:54:22]execute_script returns [23:54:22]free content buf [23:54:22]Sock 9.Close socket [23:54:22]Sock 9.Thread stoped [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:54]accept exits with 7 [23:57:54]New connection [23:57:54]New thread 3066654052 created [23:57:54]Thread 3066510692 joined [23:57:54]Waiting for new connection... [23:57:54] Sock 7.Parse request [23:57:54]Sock 7.Check first char [23:57:54]Sock 7.First char is OK [23:57:54]request: POST /json_proto HTTP/1.0 [23:57:54]Method: POST [23:57:54]URL: /json_proto [23:57:54]Method is POST - this is cgi request [23:57:54]url: /json_proto [23:57:54]query_string will be loaded in cgi processing [23:57:54]execute_cgi json_proto POST (null) [23:57:54]execute_cgi path=json_proto method=POST [23:57:54]POST find Content-Length [23:57:54]Host: 172.17.50.196:8080 [23:57:54]Content-Length: 215 [23:57:54]Content-Type: application/json [23:57:54] [23:57:54]POST finish read [23:57:54]Found Content-Length = 215 [23:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:54]execute_script... [23:57:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:54]POST & json_proto [23:57:54]process_json_proto [23:57:54]json parsed OK: [23:57:54]protocol is kg_v1.0 [23:57:54]action value=get_value [23:57:54]process_action get_value [23:57:54]cmd_get_value [23:57:54]process_action get_value done [23:57:54]requested_data is exist [23:57:54]produce_requested_data [23:57:54]requested_item kkm.sn is exist - process it [23:57:54]requested_item kkm.ver is exist - process it [23:57:54]requested_item fm.sn is exist - process it [23:57:54]wFMCommunicate request_size=4 [23:57:54]MH_SAM_APDU [23:57:54]CAPDU: 80 11 00 00 [23:57:54]Write to MH i2c: E2 08 00 9D 33 80 11 00 00 00 00 00 00 4A [23:57:54]Write i2c OK [23:57:54]MH_I2C_Read... [23:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:54]Read from MH i2c: E2 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 17 00 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 17 00 9D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A5 [23:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:57:54]wFMCommunicate OK [23:57:54]requested_item fd.num is exist - process it [23:57:54]SAM_PROTO_GetFieldsCounters [23:57:54]wFMCommunicate request_size=4 [23:57:54]MH_SAM_APDU [23:57:54]CAPDU: 80 13 00 00 [23:57:54]Write to MH i2c: E2 08 00 9E 33 80 13 00 00 00 00 00 00 4D [23:57:54]Write i2c OK [23:57:54]MH_I2C_Read... [23:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:54]Read from MH i2c: E2 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 62 00 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 62 00 9E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [23:57: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 2A 22 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:54]wFMCommunicate OK [23:57:54]SAM_PROTO_GetFieldsCounters done [23:57:54]requested_item shift.num is exist - process it [23:57:54]requested_item shift.opened is exist - process it [23:57:54]req_shift_opened [23:57:54]FM_GetShiftState [23:57:54]SAM_PROTO_GetShiftState [23:57:54]wFMCommunicate request_size=4 [23:57:54]MH_SAM_APDU [23:57:54]CAPDU: 80 13 01 00 [23:57:54]Write to MH i2c: E2 08 00 9F 33 80 13 01 00 00 00 00 00 4F [23:57:54]Write i2c OK [23:57:54]MH_I2C_Read... [23:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:54]Read from MH i2c: E2 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 0E 00 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 0E 00 9F 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5A [23:57:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:57:54]wFMCommunicate OK [23:57:54]SAM_PROTO_GetShiftState done [23:57:54]FM_GetShiftState done [23:57:54]req_shift_opened done [23:57:54]requested_item shift.open_date is exist - process it [23:57:54]req_shift_open_date [23:57:54]FM_GetShiftState [23:57:54]SAM_PROTO_GetShiftState [23:57:54]wFMCommunicate request_size=4 [23:57:54]MH_SAM_APDU [23:57:54]CAPDU: 80 13 01 00 [23:57:54]Write to MH i2c: E2 08 00 A0 33 80 13 01 00 00 00 00 00 50 [23:57:54]Write i2c OK [23:57:54]MH_I2C_Read... [23:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:54]Read from MH i2c: E2 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 0E 00 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 0E 00 A0 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5B [23:57:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:57:54]wFMCommunicate OK [23:57:54]SAM_PROTO_GetShiftState done [23:57:54]FM_GetShiftState done [23:57:54]req_shift_open_date done [23:57:54]produce_requested_data done [23:57:54]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139818,"shift.num":557,"shift.opened":0,"shift.open_date":0} [23:57:54]process_action_free get_value [23:57:54]json_value_free [23:57:54]json_value_free done [23:57:54]process_json_proto returns [23:57:54]Send response to host [23:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139818,"shift.num":557,"shift.opened":0,"shift.open_date":0}}} [23:57:54]free response buf [23:57:54]execute_script done [23:57:54]execute_script returns [23:57:54]free content buf [23:57:54]Sock 7.Close socket [23:57:54]Sock 7.Thread stoped [23:57:54]accept exits with 9 [23:57:54]New connection [23:57:54]New thread 3066510692 created [23:57:54]Thread 3066654052 joined [23:57:54]Waiting for new connection... [23:57:54] Sock 9.Parse request [23:57:54]Sock 9.Check first char [23:57:54]Sock 9.First char is OK [23:57:54]request: POST /json_proto HTTP/1.0 [23:57:54]Method: POST [23:57:54]URL: /json_proto [23:57:54]Method is POST - this is cgi request [23:57:54]url: /json_proto [23:57:54]query_string will be loaded in cgi processing [23:57:54]execute_cgi json_proto POST (null) [23:57:54]execute_cgi path=json_proto method=POST [23:57:54]POST find Content-Length [23:57:54]Host: 172.17.50.196:8080 [23:57:54]Content-Length: 331 [23:57:54]Content-Type: application/json [23:57:54] [23:57:54]POST finish read [23:57:54]Found Content-Length = 331 [23:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:57:54]execute_script... [23:57:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:57:55]POST & json_proto [23:57:55]process_json_proto [23:57:55]json parsed OK: [23:57:55]protocol is kg_v1.0 [23:57:55]action value=get_value [23:57:55]process_action get_value [23:57:55]cmd_get_value [23:57:55]process_action get_value done [23:57:55]requested_data is exist [23:57:55]produce_requested_data [23:57:55]requested_item fm.sale.total is exist - process it [23:57:55]SAM_PROTO_GetFMData [23:57:55]wFMCommunicate request_size=4 [23:57:55]MH_SAM_APDU [23:57:55]CAPDU: 80 13 03 00 [23:57:55]Write to MH i2c: E2 08 00 A1 33 80 13 03 00 00 00 00 00 53 [23:57:55]Write i2c OK [23:57:55]MH_I2C_Read... [23:57:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:55]Read from MH i2c: E2 [23:57:55]MH_I2C_Read... [23:57:55]Read from MH i2c: E2 FD 00 [23:57:55]MH_I2C_Read... [23:57:55]Read from MH i2c: E2 FD 00 A1 33 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 67 [23:57:55]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:57:55]wFMCommunicate OK [23:57:55]wFMCommunicate request_size=4 [23:57:55]MH_SAM_APDU [23:57:55]CAPDU: 80 17 00 00 [23:57:55]Write to MH i2c: E2 08 00 A2 33 80 17 00 00 00 00 00 00 55 [23:57:55]Write i2c OK [23:57:55]MH_I2C_Read... [23:57:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:56]Read from MH i2c: E2 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 FD 00 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 FD 00 A2 33 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 1A 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 0D [23:57:56]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 1A 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 [23:57:56]wFMCommunicate OK [23:57:56]wFMCommunicate request_size=4 [23:57:56]MH_SAM_APDU [23:57:56]CAPDU: 80 17 00 00 [23:57:56]Write to MH i2c: E2 08 00 A3 33 80 17 00 00 00 00 00 00 56 [23:57:56]Write i2c OK [23:57:56]MH_I2C_Read... [23:57:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:56]Read from MH i2c: E2 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 FD 00 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 FD 00 A3 33 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 2E [23:57:56]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 [23:57:56]wFMCommunicate OK [23:57:56]wFMCommunicate request_size=4 [23:57:56]MH_SAM_APDU [23:57:56]CAPDU: 80 17 00 00 [23:57:56]Write to MH i2c: E2 08 00 A4 33 80 17 00 00 00 00 00 00 57 [23:57:56]Write i2c OK [23:57:56]MH_I2C_Read... [23:57:56]OFD Sender: No OFD packet to send [23:57:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:56]Read from MH i2c: E2 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 FD 00 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 FD 00 A4 33 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D2 [23:57:56]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 [23:57:56]wFMCommunicate OK [23:57:56]wFMCommunicate request_size=4 [23:57:56]MH_SAM_APDU [23:57:56]CAPDU: 80 17 00 00 [23:57:56]Write to MH i2c: E2 08 00 A5 33 80 17 00 00 00 00 00 00 58 [23:57:56]Write i2c OK [23:57:56]MH_I2C_Read... [23:57:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:57:56]Read from MH i2c: E2 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 E4 00 [23:57:56]MH_I2C_Read... [23:57:56]Read from MH i2c: E2 E4 00 A5 33 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 38 [23:57:56]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 [23:57:56]wFMCommunicate OK [23:57:56]SAM_PROTO_GetFMData done [23:57:56]requested_item fm.sale_refund.total is exist - process it [23:57:56]requested_item fm.buy.total is exist - process it [23:57:56]requested_item shift.sale.total is exist - process it [23:57:56]SAM_PROTO_GetShiftData [23:57:56]wFMCommunicate request_size=4 [23:57:56]MH_SAM_APDU [23:57:56]CAPDU: 80 13 02 00 [23:57:56]Write to MH i2c: E2 08 00 A6 33 80 13 02 00 00 00 00 00 57 [23:57:56]Write i2c OK [23:57:56]MH_I2C_Read... [23:57:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:57]Read from MH i2c: E2 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 FD 00 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 FD 00 A6 33 00 B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 17 [23:57:57]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 26 01 00 00 69 04 9C 00 6F 04 04 00 22 01 00 00 B1 04 03 00 A8 D0 AA 70 04 03 00 94 6D 8F 72 04 03 00 14 63 1B 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 24 12 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 EF 82 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 FC FD 05 70 04 03 00 FC FD 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E6 A2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:57:57]wFMCommunicate OK [23:57:57]wFMCommunicate request_size=4 [23:57:57]MH_SAM_APDU [23:57:57]CAPDU: 80 17 00 00 [23:57:57]Write to MH i2c: E2 08 00 A7 33 80 17 00 00 00 00 00 00 5A [23:57:57]Write i2c OK [23:57:57]MH_I2C_Read... [23:57:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:57]Read from MH i2c: E2 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 FD 00 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 FD 00 A7 33 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 B9 [23:57:57]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 93 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:57:57]wFMCommunicate OK [23:57:57]wFMCommunicate request_size=4 [23:57:57]MH_SAM_APDU [23:57:57]CAPDU: 80 17 00 00 [23:57:57]Write to MH i2c: E2 08 00 A8 33 80 17 00 00 00 00 00 00 5B [23:57:57]Write i2c OK [23:57:57]MH_I2C_Read... [23:57:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:57]Read from MH i2c: E2 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 FD 00 [23:57:57]MH_I2C_Read... [23:57:57]Read from MH i2c: E2 FD 00 A8 33 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 83 [23:57:57]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:57:57]wFMCommunicate OK [23:57:57]wFMCommunicate request_size=4 [23:57:57]MH_SAM_APDU [23:57:57]CAPDU: 80 17 00 00 [23:57:57]Write to MH i2c: E2 08 00 A9 33 80 17 00 00 00 00 00 00 5C [23:57:57]Write i2c OK [23:57:57]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 FD 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 FD 00 A9 33 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 D4 [23:57:58]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:57:58]wFMCommunicate OK [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 17 00 00 [23:57:58]Write to MH i2c: E2 08 00 AA 33 80 17 00 00 00 00 00 00 5D [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 D6 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 D6 00 AA 33 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [23:57:58]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:58]wFMCommunicate OK [23:57:58]SAM_PROTO_GetShiftData done [23:57:58]requested_item shift.sale.total_cash is exist - process it [23:57:58]requested_item shift.sale_refund.total is exist - process it [23:57:58]requested_item shift.sale_refund.total_cash is exist - process it [23:57:58]requested_item shift.buy.total is exist - process it [23:57:58]requested_item shift.buy.total_cash is exist - process it [23:57:58]produce_requested_data done [23:57:58]produce_requested_data return {"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:57:58]process_action_free get_value [23:57:58]json_value_free [23:57:58]json_value_free done [23:57:58]process_json_proto returns [23:57:58]Send response to host [23:57:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":111945.36,"shift.sale.total_cash":93997.00,"shift.sale_refund.total":3927.00,"shift.sale_refund.total_cash":3927.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:57:58]free response buf [23:57:58]execute_script done [23:57:58]execute_script returns [23:57:58]free content buf [23:57:58]Sock 9.Close socket [23:57:58]Sock 9.Thread stoped [23:57:58]accept exits with 7 [23:57:58]New connection [23:57:58]New thread 3066654052 created [23:57:58]Thread 3066510692 joined [23:57:58]Waiting for new connection... [23:57:58] Sock 7.Parse request [23:57:58]Sock 7.Check first char [23:57:58]Sock 7.First char is OK [23:57:58]request: POST /json_proto HTTP/1.0 [23:57:58]Method: POST [23:57:58]URL: /json_proto [23:57:58]Method is POST - this is cgi request [23:57:58]url: /json_proto [23:57:58]query_string will be loaded in cgi processing [23:57:58]execute_cgi json_proto POST (null) [23:57:58]execute_cgi path=json_proto method=POST [23:57:58]POST find Content-Length [23:57:58]Host: 172.17.50.196:8080 [23:57:58]Content-Length: 253 [23:57:58]Content-Type: application/json [23:57:58] [23:57:58]POST finish read [23:57:58]Found Content-Length = 253 [23:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0440\u0430\u043F\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:58]execute_script... [23:57:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0440\u0430\u043F\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:58]POST & json_proto [23:57:58]process_json_proto [23:57:58]json parsed OK: [23:57:58]protocol is kg_v1.0 [23:57:58]action value=open_shift [23:57:58]process_action open_shift [23:57:58]cmd_open_shift [23:57:58]MH_GetDate [23:57:58]Write to MH i2c: F0 00 00 AB 33 CD [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 AB 33 00 89 19 24 67 72 0D 1C 67 05 [23:57:58]GetLastDocTimeStamp 1730418850 [23:57:58]current date 1730419081 [23:57:58]FM_GetShiftState [23:57:58]SAM_PROTO_GetShiftState [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 13 01 00 [23:57:58]Write to MH i2c: E2 08 00 AC 33 80 13 01 00 00 00 00 00 5C [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0E 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0E 00 AC 33 00 09 00 00 00 00 00 00 00 00 00 00 90 00 67 [23:57:58]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:57:58]wFMCommunicate OK [23:57:58]SAM_PROTO_GetShiftState done [23:57:58]FM_GetShiftState done [23:57:58]KKMCreateOpenShiftDocument [23:57:58]Load OK [23:57:58]Malloc new data [23:57:58]MH_GetDate [23:57:58]Write to MH i2c: F0 00 00 AD 33 CF [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 AD 33 00 89 19 24 67 72 0D 1C 67 07 [23:57:58]Malloc new data [23:57:58]KKMCreateOpenShiftDocument OK [23:57:58]KKMSetOpenShiftData OK [23:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=194 [23:57:58]tlvbuf is 00B830D0 [23:57:58]KKMLoadAndSignOpenShiftData [23:57:58]SAM_PROTO_ProcessDocument [23:57:58]wFMCommunicate request_size=9 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 15 01 00 04 02 00 C2 00 [23:57:58]Write to MH i2c: E2 0C 00 AE 33 80 15 01 00 04 00 02 00 C2 00 00 00 2C [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 AE 33 00 90 00 55 [23:57:58]RAPDU: 90 00 [23:57:58]wFMCommunicate OK [23:57:58]wFMCommunicate request_size=23 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:57:58]Write to MH i2c: E2 1A 00 AF 33 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 57 [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 03 00 AF 33 00 90 00 56 [23:57:58]RAPDU: 90 00 [23:57:58]wFMCommunicate OK [23:57:58]wFMCommunicate request_size=28 [23:57:58]MH_SAM_APDU [23:57:58]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 [23:57:58]Write to MH i2c: E2 1F 00 B0 33 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 AE [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 B0 33 00 90 00 57 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=84 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 15 02 00 4F F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 [23:57:59]Write to MH i2c: E2 57 00 B1 33 80 15 02 00 4F 00 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 00 00 05 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 B1 33 00 90 00 58 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=51 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [23:57:59]Write to MH i2c: E2 36 00 B2 33 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 09 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=13 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 15 02 00 08 F4 03 04 00 89 19 24 67 [23:57:59]Write to MH i2c: E2 10 00 B3 33 80 15 02 00 08 00 F4 03 04 00 89 19 24 67 00 00 9E [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 B3 33 00 90 00 5A [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=25 [23:57:59]MH_SAM_APDU [23:57:59]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 [23:57:59]Write to MH i2c: E2 1C 00 B4 33 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 C4 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 B4 33 00 90 00 5B [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 15 03 00 [23:57:59]Write to MH i2c: E2 08 00 B5 33 80 15 03 00 00 00 00 00 69 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 38 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 38 00 B5 33 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 22 02 00 0E 04 04 00 2E 02 00 00 35 04 06 00 4F C9 41 3A 9B 2D 90 00 17 [23:57:59]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 22 02 00 0E 04 04 00 2E 02 00 00 35 04 06 00 4F C9 41 3A 9B 2D 90 00 [23:57:59]wFMCommunicate OK [23:57:59]SAM_PROTO_ProcessDocument answer len = 51 [23:57:59]SAM_PROTO_ProcessDocument done [23:57:59]SetTLVBufToDocument [23:57:59]Processing tag 1209 (04B9) [23:57:59]Malloc new data [23:57:59]Processing tag 1041 (0411) [23:57:59]Processing tag 1040 (0410) [23:57:59]Malloc new data [23:57:59]Processing tag 1038 (040E) [23:57:59]Malloc new data [23:57:59]Processing tag 1077 (0435) [23:57:59]Malloc new data [23:57:59]SetTLVBufToDocument err=0 [23:57:59]KKMLoadAndSignOpenShiftData store KKM data [23:57:59]KKMLoadAndSignOpenShiftData err=0 [23:57:59]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сурапов З. Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 Место: АЗС № 101 "Партнер Нефть" 31.10.2024 23:58 Смена: 558 РНМ: 0000000000091631 ЗНМ: 0300000081 ФД: 139819 ФМ: 0000000000874669 ФПД: 87725801380653 [23:57:59]StoreToDocumentArchive [23:57:59]shift 558 fd 139819 [23:57:59]Create dir for shift 0558 [23:57:59]save to /storage/0558/doc_00139819 [23:57:59]save last doc name /storage/0558/doc_00139819 to /storage/kkm_last_doc_name [23:57:59]save OK [23:57:59]Clear old archive folders... [23:57:59]Remove dir /storage/0557 [23:57:59]opendir ok [23:57:59]file . [23:57:59]file .. [23:57:59]file doc_00139523 [23:57:59]remove file /storage/0557/doc_00139523 [23:57:59]file doc_00139524 [23:57:59]remove file /storage/0557/doc_00139524 [23:57:59]file doc_00139525 [23:57:59]remove file /storage/0557/doc_00139525 [23:57:59]file doc_00139526 [23:57:59]remove file /storage/0557/doc_00139526 [23:57:59]file doc_00139527 [23:57:59]remove file /storage/0557/doc_00139527 [23:57:59]file doc_00139528 [23:57:59]remove file /storage/0557/doc_00139528 [23:57:59]file doc_00139529 [23:57:59]remove file /storage/0557/doc_00139529 [23:57:59]file doc_00139530 [23:57:59]remove file /storage/0557/doc_00139530 [23:57:59]file doc_00139531 [23:57:59]remove file /storage/0557/doc_00139531 [23:57:59]file doc_00139532 [23:57:59]remove file /storage/0557/doc_00139532 [23:57:59]file doc_00139533 [23:57:59]remove file /storage/0557/doc_00139533 [23:57:59]file doc_00139534 [23:57:59]remove file /storage/0557/doc_00139534 [23:57:59]file doc_00139535 [23:57:59]remove file /storage/0557/doc_00139535 [23:57:59]file doc_00139536 [23:57:59]remove file /storage/0557/doc_00139536 [23:57:59]file doc_00139537 [23:57:59]remove file /storage/0557/doc_00139537 [23:57:59]file doc_00139538 [23:57:59]remove file /storage/0557/doc_00139538 [23:57:59]file doc_00139539 [23:57:59]remove file /storage/0557/doc_00139539 [23:57:59]file doc_00139540 [23:57:59]remove file /storage/0557/doc_00139540 [23:57:59]file doc_00139541 [23:57:59]remove file /storage/0557/doc_00139541 [23:57:59]file doc_00139542 [23:57:59]remove file /storage/0557/doc_00139542 [23:57:59]file doc_00139543 [23:57:59]remove file /storage/0557/doc_00139543 [23:57:59]file doc_00139544 [23:57:59]remove file /storage/0557/doc_00139544 [23:57:59]file doc_00139545 [23:57:59]remove file /storage/0557/doc_00139545 [23:57:59]file doc_00139546 [23:57:59]remove file /storage/0557/doc_00139546 [23:57:59]file doc_00139547 [23:57:59]remove file /storage/0557/doc_00139547 [23:57:59]file doc_00139548 [23:57:59]remove file /storage/0557/doc_00139548 [23:57:59]file doc_00139549 [23:57:59]remove file /storage/0557/doc_00139549 [23:57:59]file doc_00139550 [23:57:59]remove file /storage/0557/doc_00139550 [23:57:59]file doc_00139551 [23:57:59]remove file /storage/0557/doc_00139551 [23:57:59]file doc_00139552 [23:57:59]remove file /storage/0557/doc_00139552 [23:57:59]file doc_00139553 [23:57:59]remove file /storage/0557/doc_00139553 [23:57:59]file doc_00139554 [23:57:59]remove file /storage/0557/doc_00139554 [23:57:59]file doc_00139555 [23:57:59]remove file /storage/0557/doc_00139555 [23:57:59]file doc_00139556 [23:57:59]remove file /storage/0557/doc_00139556 [23:57:59]file doc_00139557 [23:57:59]remove file /storage/0557/doc_00139557 [23:57:59]file doc_00139558 [23:57:59]remove file /storage/0557/doc_00139558 [23:57:59]file doc_00139559 [23:57:59]remove file /storage/0557/doc_00139559 [23:57:59]file doc_00139560 [23:57:59]remove file /storage/0557/doc_00139560 [23:57:59]file doc_00139561 [23:57:59]remove file /storage/0557/doc_00139561 [23:57:59]file doc_00139562 [23:57:59]remove file /storage/0557/doc_00139562 [23:57:59]file doc_00139563 [23:57:59]remove file /storage/0557/doc_00139563 [23:57:59]file doc_00139564 [23:57:59]remove file /storage/0557/doc_00139564 [23:57:59]file doc_00139565 [23:57:59]remove file /storage/0557/doc_00139565 [23:57:59]file doc_00139566 [23:57:59]remove file /storage/0557/doc_00139566 [23:57:59]file doc_00139567 [23:57:59]remove file /storage/0557/doc_00139567 [23:57:59]file doc_00139568 [23:57:59]remove file /storage/0557/doc_00139568 [23:57:59]file doc_00139569 [23:57:59]remove file /storage/0557/doc_00139569 [23:57:59]file doc_00139570 [23:57:59]remove file /storage/0557/doc_00139570 [23:57:59]file doc_00139571 [23:57:59]remove file /storage/0557/doc_00139571 [23:57:59]file doc_00139572 [23:57:59]remove file /storage/0557/doc_00139572 [23:57:59]file doc_00139573 [23:57:59]remove file /storage/0557/doc_00139573 [23:57:59]file doc_00139574 [23:57:59]remove file /storage/0557/doc_00139574 [23:57:59]file doc_00139575 [23:57:59]remove file /storage/0557/doc_00139575 [23:57:59]file doc_00139576 [23:57:59]remove file /storage/0557/doc_00139576 [23:57:59]file doc_00139577 [23:57:59]remove file /storage/0557/doc_00139577 [23:57:59]file doc_00139578 [23:57:59]remove file /storage/0557/doc_00139578 [23:57:59]file doc_00139579 [23:57:59]remove file /storage/0557/doc_00139579 [23:57:59]file doc_00139580 [23:57:59]remove file /storage/0557/doc_00139580 [23:57:59]file doc_00139581 [23:57:59]remove file /storage/0557/doc_00139581 [23:57:59]file doc_00139582 [23:57:59]remove file /storage/0557/doc_00139582 [23:57:59]file doc_00139583 [23:57:59]remove file /storage/0557/doc_00139583 [23:57:59]file doc_00139584 [23:57:59]remove file /storage/0557/doc_00139584 [23:57:59]file doc_00139585 [23:57:59]remove file /storage/0557/doc_00139585 [23:57:59]file doc_00139586 [23:57:59]remove file /storage/0557/doc_00139586 [23:57:59]file doc_00139587 [23:57:59]remove file /storage/0557/doc_00139587 [23:57:59]file doc_00139588 [23:57:59]remove file /storage/0557/doc_00139588 [23:57:59]file doc_00139589 [23:57:59]remove file /storage/0557/doc_00139589 [23:57:59]file doc_00139590 [23:57:59]remove file /storage/0557/doc_00139590 [23:57:59]file doc_00139591 [23:57:59]remove file /storage/0557/doc_00139591 [23:57:59]file doc_00139592 [23:57:59]remove file /storage/0557/doc_00139592 [23:57:59]file doc_00139593 [23:57:59]remove file /storage/0557/doc_00139593 [23:57:59]file doc_00139594 [23:57:59]remove file /storage/0557/doc_00139594 [23:57:59]file doc_00139595 [23:57:59]remove file /storage/0557/doc_00139595 [23:57:59]file doc_00139596 [23:57:59]remove file /storage/0557/doc_00139596 [23:57:59]file doc_00139597 [23:57:59]remove file /storage/0557/doc_00139597 [23:57:59]file doc_00139598 [23:57:59]remove file /storage/0557/doc_00139598 [23:57:59]file doc_00139599 [23:57:59]remove file /storage/0557/doc_00139599 [23:57:59]file doc_00139600 [23:57:59]remove file /storage/0557/doc_00139600 [23:57:59]file doc_00139601 [23:57:59]remove file /storage/0557/doc_00139601 [23:57:59]file doc_00139602 [23:57:59]remove file /storage/0557/doc_00139602 [23:57:59]file doc_00139603 [23:57:59]remove file /storage/0557/doc_00139603 [23:57:59]file doc_00139604 [23:57:59]remove file /storage/0557/doc_00139604 [23:57:59]file doc_00139605 [23:57:59]remove file /storage/0557/doc_00139605 [23:57:59]file doc_00139606 [23:57:59]remove file /storage/0557/doc_00139606 [23:57:59]file doc_00139607 [23:57:59]remove file /storage/0557/doc_00139607 [23:57:59]file doc_00139608 [23:57:59]remove file /storage/0557/doc_00139608 [23:57:59]file doc_00139609 [23:57:59]remove file /storage/0557/doc_00139609 [23:57:59]file doc_00139610 [23:57:59]remove file /storage/0557/doc_00139610 [23:57:59]file doc_00139611 [23:57:59]remove file /storage/0557/doc_00139611 [23:57:59]file doc_00139612 [23:57:59]remove file /storage/0557/doc_00139612 [23:57:59]file doc_00139613 [23:57:59]remove file /storage/0557/doc_00139613 [23:57:59]file doc_00139614 [23:57:59]remove file /storage/0557/doc_00139614 [23:57:59]file doc_00139615 [23:57:59]remove file /storage/0557/doc_00139615 [23:57:59]file doc_00139616 [23:57:59]remove file /storage/0557/doc_00139616 [23:57:59]file doc_00139617 [23:57:59]remove file /storage/0557/doc_00139617 [23:57:59]file doc_00139618 [23:57:59]remove file /storage/0557/doc_00139618 [23:57:59]file doc_00139619 [23:57:59]remove file /storage/0557/doc_00139619 [23:57:59]file doc_00139620 [23:57:59]remove file /storage/0557/doc_00139620 [23:58:00]file doc_00139621 [23:58:00]remove file /storage/0557/doc_00139621 [23:58:00]file doc_00139622 [23:58:00]remove file /storage/0557/doc_00139622 [23:58:00]file doc_00139623 [23:58:00]remove file /storage/0557/doc_00139623 [23:58:00]file doc_00139624 [23:58:00]remove file /storage/0557/doc_00139624 [23:58:00]file doc_00139625 [23:58:00]remove file /storage/0557/doc_00139625 [23:58:00]file doc_00139626 [23:58:00]remove file /storage/0557/doc_00139626 [23:58:00]file doc_00139627 [23:58:00]remove file /storage/0557/doc_00139627 [23:58:00]file doc_00139628 [23:58:00]remove file /storage/0557/doc_00139628 [23:58:00]file doc_00139629 [23:58:00]remove file /storage/0557/doc_00139629 [23:58:00]file doc_00139630 [23:58:00]remove file /storage/0557/doc_00139630 [23:58:00]file doc_00139631 [23:58:00]remove file /storage/0557/doc_00139631 [23:58:00]file doc_00139632 [23:58:00]remove file /storage/0557/doc_00139632 [23:58:00]file doc_00139633 [23:58:00]remove file /storage/0557/doc_00139633 [23:58:00]file doc_00139634 [23:58:00]remove file /storage/0557/doc_00139634 [23:58:00]file doc_00139635 [23:58:00]remove file /storage/0557/doc_00139635 [23:58:00]file doc_00139636 [23:58:00]remove file /storage/0557/doc_00139636 [23:58:00]file doc_00139637 [23:58:00]remove file /storage/0557/doc_00139637 [23:58:00]file doc_00139638 [23:58:00]remove file /storage/0557/doc_00139638 [23:58:00]file doc_00139639 [23:58:00]remove file /storage/0557/doc_00139639 [23:58:00]file doc_00139640 [23:58:00]remove file /storage/0557/doc_00139640 [23:58:00]file doc_00139641 [23:58:00]remove file /storage/0557/doc_00139641 [23:58:00]file doc_00139642 [23:58:00]remove file /storage/0557/doc_00139642 [23:58:00]file doc_00139643 [23:58:00]remove file /storage/0557/doc_00139643 [23:58:00]file doc_00139644 [23:58:00]remove file /storage/0557/doc_00139644 [23:58:00]file doc_00139645 [23:58:00]remove file /storage/0557/doc_00139645 [23:58:00]file doc_00139646 [23:58:00]remove file /storage/0557/doc_00139646 [23:58:00]file doc_00139647 [23:58:00]remove file /storage/0557/doc_00139647 [23:58:00]file doc_00139648 [23:58:00]remove file /storage/0557/doc_00139648 [23:58:00]file doc_00139649 [23:58:00]remove file /storage/0557/doc_00139649 [23:58:00]file doc_00139650 [23:58:00]remove file /storage/0557/doc_00139650 [23:58:00]file doc_00139651 [23:58:00]remove file /storage/0557/doc_00139651 [23:58:00]file doc_00139652 [23:58:00]remove file /storage/0557/doc_00139652 [23:58:00]file doc_00139653 [23:58:00]remove file /storage/0557/doc_00139653 [23:58:00]file doc_00139654 [23:58:00]remove file /storage/0557/doc_00139654 [23:58:00]file doc_00139655 [23:58:00]remove file /storage/0557/doc_00139655 [23:58:00]file doc_00139656 [23:58:00]remove file /storage/0557/doc_00139656 [23:58:00]file doc_00139657 [23:58:00]remove file /storage/0557/doc_00139657 [23:58:00]file doc_00139658 [23:58:00]remove file /storage/0557/doc_00139658 [23:58:00]file doc_00139659 [23:58:00]remove file /storage/0557/doc_00139659 [23:58:00]file doc_00139660 [23:58:00]remove file /storage/0557/doc_00139660 [23:58:00]file doc_00139661 [23:58:00]remove file /storage/0557/doc_00139661 [23:58:00]file doc_00139662 [23:58:00]remove file /storage/0557/doc_00139662 [23:58:00]file doc_00139663 [23:58:00]remove file /storage/0557/doc_00139663 [23:58:00]file doc_00139664 [23:58:00]remove file /storage/0557/doc_00139664 [23:58:00]file doc_00139665 [23:58:00]remove file /storage/0557/doc_00139665 [23:58:00]file doc_00139666 [23:58:00]remove file /storage/0557/doc_00139666 [23:58:00]file doc_00139667 [23:58:00]remove file /storage/0557/doc_00139667 [23:58:00]file doc_00139668 [23:58:00]remove file /storage/0557/doc_00139668 [23:58:00]file doc_00139669 [23:58:00]remove file /storage/0557/doc_00139669 [23:58:00]file doc_00139670 [23:58:00]remove file /storage/0557/doc_00139670 [23:58:00]file doc_00139671 [23:58:00]remove file /storage/0557/doc_00139671 [23:58:00]file doc_00139672 [23:58:00]remove file /storage/0557/doc_00139672 [23:58:00]file doc_00139673 [23:58:00]remove file /storage/0557/doc_00139673 [23:58:00]file doc_00139674 [23:58:00]remove file /storage/0557/doc_00139674 [23:58:00]file doc_00139675 [23:58:00]remove file /storage/0557/doc_00139675 [23:58:00]file doc_00139676 [23:58:00]remove file /storage/0557/doc_00139676 [23:58:00]file doc_00139677 [23:58:00]remove file /storage/0557/doc_00139677 [23:58:00]file doc_00139678 [23:58:00]remove file /storage/0557/doc_00139678 [23:58:00]file doc_00139679 [23:58:00]remove file /storage/0557/doc_00139679 [23:58:00]file doc_00139680 [23:58:00]remove file /storage/0557/doc_00139680 [23:58:00]file doc_00139681 [23:58:00]remove file /storage/0557/doc_00139681 [23:58:00]file doc_00139682 [23:58:00]remove file /storage/0557/doc_00139682 [23:58:00]file doc_00139683 [23:58:00]remove file /storage/0557/doc_00139683 [23:58:00]file doc_00139684 [23:58:00]remove file /storage/0557/doc_00139684 [23:58:00]file doc_00139685 [23:58:00]remove file /storage/0557/doc_00139685 [23:58:00]file doc_00139686 [23:58:00]remove file /storage/0557/doc_00139686 [23:58:00]file doc_00139687 [23:58:00]remove file /storage/0557/doc_00139687 [23:58:00]file doc_00139688 [23:58:00]remove file /storage/0557/doc_00139688 [23:58:00]file doc_00139689 [23:58:00]remove file /storage/0557/doc_00139689 [23:58:00]file doc_00139690 [23:58:00]remove file /storage/0557/doc_00139690 [23:58:00]file doc_00139691 [23:58:00]remove file /storage/0557/doc_00139691 [23:58:00]file doc_00139692 [23:58:00]remove file /storage/0557/doc_00139692 [23:58:00]file doc_00139693 [23:58:00]remove file /storage/0557/doc_00139693 [23:58:00]file doc_00139694 [23:58:00]remove file /storage/0557/doc_00139694 [23:58:00]file doc_00139695 [23:58:00]remove file /storage/0557/doc_00139695 [23:58:00]file doc_00139696 [23:58:00]remove file /storage/0557/doc_00139696 [23:58:00]file doc_00139697 [23:58:00]remove file /storage/0557/doc_00139697 [23:58:00]file doc_00139698 [23:58:00]remove file /storage/0557/doc_00139698 [23:58:00]file doc_00139699 [23:58:00]remove file /storage/0557/doc_00139699 [23:58:00]file doc_00139700 [23:58:00]remove file /storage/0557/doc_00139700 [23:58:00]file doc_00139701 [23:58:00]remove file /storage/0557/doc_00139701 [23:58:00]file doc_00139702 [23:58:00]remove file /storage/0557/doc_00139702 [23:58:00]file doc_00139703 [23:58:00]remove file /storage/0557/doc_00139703 [23:58:00]file doc_00139704 [23:58:00]remove file /storage/0557/doc_00139704 [23:58:00]file doc_00139705 [23:58:00]remove file /storage/0557/doc_00139705 [23:58:00]file doc_00139706 [23:58:00]remove file /storage/0557/doc_00139706 [23:58:00]file doc_00139707 [23:58:00]remove file /storage/0557/doc_00139707 [23:58:00]file doc_00139708 [23:58:00]remove file /storage/0557/doc_00139708 [23:58:00]file doc_00139709 [23:58:00]remove file /storage/0557/doc_00139709 [23:58:00]file doc_00139710 [23:58:00]remove file /storage/0557/doc_00139710 [23:58:00]file doc_00139711 [23:58:00]remove file /storage/0557/doc_00139711 [23:58:00]file doc_00139712 [23:58:00]remove file /storage/0557/doc_00139712 [23:58:00]file doc_00139713 [23:58:00]remove file /storage/0557/doc_00139713 [23:58:00]file doc_00139714 [23:58:00]remove file /storage/0557/doc_00139714 [23:58:00]file doc_00139715 [23:58:00]remove file /storage/0557/doc_00139715 [23:58:00]file doc_00139716 [23:58:00]remove file /storage/0557/doc_00139716 [23:58:00]file doc_00139717 [23:58:00]remove file /storage/0557/doc_00139717 [23:58:00]file doc_00139718 [23:58:00]remove file /storage/0557/doc_00139718 [23:58:00]file doc_00139719 [23:58:00]remove file /storage/0557/doc_00139719 [23:58:00]file doc_00139720 [23:58:00]remove file /storage/0557/doc_00139720 [23:58:00]file doc_00139721 [23:58:00]remove file /storage/0557/doc_00139721 [23:58:00]file doc_00139722 [23:58:00]remove file /storage/0557/doc_00139722 [23:58:00]file doc_00139723 [23:58:00]remove file /storage/0557/doc_00139723 [23:58:00]file doc_00139724 [23:58:00]remove file /storage/0557/doc_00139724 [23:58:00]file doc_00139725 [23:58:00]remove file /storage/0557/doc_00139725 [23:58:00]file doc_00139726 [23:58:00]remove file /storage/0557/doc_00139726 [23:58:00]file doc_00139727 [23:58:00]remove file /storage/0557/doc_00139727 [23:58:00]file doc_00139728 [23:58:00]remove file /storage/0557/doc_00139728 [23:58:00]file doc_00139729 [23:58:00]remove file /storage/0557/doc_00139729 [23:58:00]file doc_00139730 [23:58:00]remove file /storage/0557/doc_00139730 [23:58:00]file doc_00139731 [23:58:00]remove file /storage/0557/doc_00139731 [23:58:00]file doc_00139732 [23:58:00]remove file /storage/0557/doc_00139732 [23:58:00]file doc_00139733 [23:58:00]remove file /storage/0557/doc_00139733 [23:58:00]file doc_00139734 [23:58:00]remove file /storage/0557/doc_00139734 [23:58:00]file doc_00139735 [23:58:00]remove file /storage/0557/doc_00139735 [23:58:00]file doc_00139736 [23:58:00]remove file /storage/0557/doc_00139736 [23:58:00]file doc_00139737 [23:58:00]remove file /storage/0557/doc_00139737 [23:58:00]file doc_00139738 [23:58:00]remove file /storage/0557/doc_00139738 [23:58:00]file doc_00139739 [23:58:00]remove file /storage/0557/doc_00139739 [23:58:00]file doc_00139740 [23:58:00]remove file /storage/0557/doc_00139740 [23:58:00]file doc_00139741 [23:58:00]remove file /storage/0557/doc_00139741 [23:58:00]file doc_00139742 [23:58:00]remove file /storage/0557/doc_00139742 [23:58:00]file doc_00139743 [23:58:00]remove file /storage/0557/doc_00139743 [23:58:00]file doc_00139744 [23:58:00]remove file /storage/0557/doc_00139744 [23:58:00]file doc_00139745 [23:58:00]remove file /storage/0557/doc_00139745 [23:58:00]file doc_00139746 [23:58:00]remove file /storage/0557/doc_00139746 [23:58:00]file doc_00139747 [23:58:00]remove file /storage/0557/doc_00139747 [23:58:00]file doc_00139748 [23:58:00]remove file /storage/0557/doc_00139748 [23:58:00]file doc_00139749 [23:58:00]remove file /storage/0557/doc_00139749 [23:58:00]file doc_00139750 [23:58:00]remove file /storage/0557/doc_00139750 [23:58:00]file doc_00139751 [23:58:00]remove file /storage/0557/doc_00139751 [23:58:00]file doc_00139752 [23:58:00]remove file /storage/0557/doc_00139752 [23:58:00]file doc_00139753 [23:58:00]remove file /storage/0557/doc_00139753 [23:58:00]file doc_00139754 [23:58:00]remove file /storage/0557/doc_00139754 [23:58:00]file doc_00139755 [23:58:00]remove file /storage/0557/doc_00139755 [23:58:00]file doc_00139756 [23:58:00]remove file /storage/0557/doc_00139756 [23:58:00]file doc_00139757 [23:58:00]remove file /storage/0557/doc_00139757 [23:58:00]file doc_00139758 [23:58:00]remove file /storage/0557/doc_00139758 [23:58:00]file doc_00139759 [23:58:00]remove file /storage/0557/doc_00139759 [23:58:00]file doc_00139760 [23:58:01]remove file /storage/0557/doc_00139760 [23:58:01]file doc_00139761 [23:58:01]remove file /storage/0557/doc_00139761 [23:58:01]file doc_00139762 [23:58:01]remove file /storage/0557/doc_00139762 [23:58:01]file doc_00139763 [23:58:01]remove file /storage/0557/doc_00139763 [23:58:01]file doc_00139764 [23:58:01]remove file /storage/0557/doc_00139764 [23:58:01]file doc_00139765 [23:58:01]remove file /storage/0557/doc_00139765 [23:58:01]file doc_00139766 [23:58:01]remove file /storage/0557/doc_00139766 [23:58:01]file doc_00139767 [23:58:01]remove file /storage/0557/doc_00139767 [23:58:01]file doc_00139768 [23:58:01]remove file /storage/0557/doc_00139768 [23:58:01]file doc_00139769 [23:58:01]remove file /storage/0557/doc_00139769 [23:58:01]file doc_00139770 [23:58:01]remove file /storage/0557/doc_00139770 [23:58:01]file doc_00139771 [23:58:01]remove file /storage/0557/doc_00139771 [23:58:01]file doc_00139772 [23:58:01]remove file /storage/0557/doc_00139772 [23:58:01]file doc_00139773 [23:58:01]remove file /storage/0557/doc_00139773 [23:58:01]file doc_00139774 [23:58:01]remove file /storage/0557/doc_00139774 [23:58:01]file doc_00139775 [23:58:01]remove file /storage/0557/doc_00139775 [23:58:01]file doc_00139776 [23:58:01]remove file /storage/0557/doc_00139776 [23:58:01]file doc_00139777 [23:58:01]remove file /storage/0557/doc_00139777 [23:58:01]file doc_00139778 [23:58:01]remove file /storage/0557/doc_00139778 [23:58:01]file doc_00139779 [23:58:01]remove file /storage/0557/doc_00139779 [23:58:01]file doc_00139780 [23:58:01]remove file /storage/0557/doc_00139780 [23:58:01]file doc_00139781 [23:58:01]remove file /storage/0557/doc_00139781 [23:58:01]file doc_00139782 [23:58:01]remove file /storage/0557/doc_00139782 [23:58:01]file doc_00139783 [23:58:01]remove file /storage/0557/doc_00139783 [23:58:01]file doc_00139784 [23:58:01]remove file /storage/0557/doc_00139784 [23:58:01]file doc_00139785 [23:58:01]remove file /storage/0557/doc_00139785 [23:58:01]file doc_00139786 [23:58:01]remove file /storage/0557/doc_00139786 [23:58:01]file doc_00139787 [23:58:01]remove file /storage/0557/doc_00139787 [23:58:01]file doc_00139788 [23:58:01]remove file /storage/0557/doc_00139788 [23:58:01]file doc_00139789 [23:58:01]remove file /storage/0557/doc_00139789 [23:58:01]file doc_00139790 [23:58:01]remove file /storage/0557/doc_00139790 [23:58:01]file doc_00139791 [23:58:01]remove file /storage/0557/doc_00139791 [23:58:01]file doc_00139792 [23:58:01]remove file /storage/0557/doc_00139792 [23:58:01]file doc_00139793 [23:58:01]remove file /storage/0557/doc_00139793 [23:58:01]file doc_00139794 [23:58:01]remove file /storage/0557/doc_00139794 [23:58:01]file doc_00139795 [23:58:01]remove file /storage/0557/doc_00139795 [23:58:01]file doc_00139796 [23:58:01]remove file /storage/0557/doc_00139796 [23:58:01]file doc_00139797 [23:58:01]remove file /storage/0557/doc_00139797 [23:58:01]file doc_00139798 [23:58:01]remove file /storage/0557/doc_00139798 [23:58:01]file doc_00139799 [23:58:01]remove file /storage/0557/doc_00139799 [23:58:01]file doc_00139800 [23:58:01]remove file /storage/0557/doc_00139800 [23:58:01]file doc_00139801 [23:58:01]remove file /storage/0557/doc_00139801 [23:58:01]file doc_00139802 [23:58:01]remove file /storage/0557/doc_00139802 [23:58:01]file doc_00139803 [23:58:01]remove file /storage/0557/doc_00139803 [23:58:01]file doc_00139804 [23:58:01]remove file /storage/0557/doc_00139804 [23:58:01]file doc_00139805 [23:58:01]remove file /storage/0557/doc_00139805 [23:58:01]file doc_00139806 [23:58:01]remove file /storage/0557/doc_00139806 [23:58:01]file doc_00139807 [23:58:01]remove file /storage/0557/doc_00139807 [23:58:01]file doc_00139808 [23:58:01]remove file /storage/0557/doc_00139808 [23:58:01]file doc_00139809 [23:58:01]remove file /storage/0557/doc_00139809 [23:58:01]file doc_00139810 [23:58:01]remove file /storage/0557/doc_00139810 [23:58:01]file doc_00139811 [23:58:01]remove file /storage/0557/doc_00139811 [23:58:01]file doc_00139812 [23:58:01]remove file /storage/0557/doc_00139812 [23:58:01]file doc_00139813 [23:58:01]remove file /storage/0557/doc_00139813 [23:58:01]file doc_00139814 [23:58:01]remove file /storage/0557/doc_00139814 [23:58:01]file doc_00139815 [23:58:01]remove file /storage/0557/doc_00139815 [23:58:01]file doc_00139816 [23:58:01]remove file /storage/0557/doc_00139816 [23:58:01]file doc_00139817 [23:58:01]remove file /storage/0557/doc_00139817 [23:58:01]file doc_00139818 [23:58:01]remove file /storage/0557/doc_00139818 [23:58:01]remove dir /storage/0557 [23:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=245 [23:58:01]tlvbuf is 00A17E10 [23:58:01]SAM_PROTO_ClearQueue [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 09 00 00 [23:58:01]Write to MH i2c: E2 08 00 B6 33 80 09 00 00 00 00 00 00 5B [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 03 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 03 00 B6 33 00 90 00 5D [23:58:01]RAPDU: 90 00 [23:58:01]wFMCommunicate OK [23:58:01]SAM_PROTO_ClearQueue done [23:58:01]KKMCreateOFDPacket [23:58:01]OFDProtocolAddRootSTLVToBuf [23:58:01]FM_MakeSignedData [23:58:01]FM_MakeSignedData [23:58:01]SAM_PROTO_SignData [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 0D 01 02 [23:58:01]Write to MH i2c: E2 08 00 B7 33 80 0D 01 02 00 00 00 00 63 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 03 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 03 00 B7 33 00 90 00 5E [23:58:01]RAPDU: 90 00 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=254 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 0D 02 02 F9 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 89 19 24 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 10 04 04 00 2B 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 4F C9 41 3A 9B 2D [23:58:01]Write to MH i2c: E2 01 01 B8 33 80 0D 02 02 F9 00 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 89 19 24 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 10 04 04 00 2B 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 4F C9 41 3A 9B 2D 00 00 38 [23:58:01]OFD Sender: No OFD packet to send [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 03 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 03 00 B8 33 00 90 00 5F [23:58:01]RAPDU: 90 00 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 0D 03 02 [23:58:01]Write to MH i2c: E2 08 00 B9 33 80 0D 03 02 00 00 00 00 67 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 0B 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 0B 00 B9 33 00 05 C9 12 F3 1A 60 BC 1A 90 00 8B [23:58:01]RAPDU: 05 C9 12 F3 1A 60 BC 1A 90 00 [23:58:01]wFMCommunicate OK [23:58:01]SAM_PROTO_SignData done [23:58:01]FM_MakeSignedData done [23:58:01]CreateOFDProtocolMessage [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 11 00 00 [23:58:01]Write to MH i2c: E2 08 00 BA 33 80 11 00 00 00 00 00 00 67 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 17 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 17 00 BA 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C2 [23:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:58:02]wFMCommunicate OK [23:58:02]CreateOFDProtocolMessage done [23:58:02]OFDSenderStorePacket 139819 [23:58:02]StoreOFDPacket docnum=139819 [23:58: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 09 01 00 00 FC 4C 01 01 AB 04 5A 02 01 00 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 89 19 24 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 10 04 04 00 2B 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 4F C9 41 3A 9B 2D 05 C9 12 F3 1A 60 BC 1A [23:58:02]CheckFolder [23:58:02]dirname=/storage/ofd_packets [23:58:02]CheckFolder done [23:58:02]ProducePacketName [23:58:02]name=ofd_packets/00139819 [23:58:02]NVStorageSaveData ofd_packets/00139819 [23:58:02]File name is /storage/ofd_packets/00139819 [23:58:02]Write 295 bytes [23:58:02]NVStorageSaveData done [23:58:02]OFDSenderStorePacket done [23:58:02]KKMCreateOFDPacket done [23:58:02]NVStorageSaveData kkm_last_timestamp [23:58:02]File name is /storage/kkm_last_timestamp [23:58:02]Write 4 bytes [23:58:02]NVStorageSaveData done [23:58:02]ExternCall_PrintAddStr [23:58:02]wPrintStart [23:58:02]Write to MH i2c: 01 00 00 BB 33 EE [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 07 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 07 00 BB 33 00 00 00 00 00 FF 0F 03 [23:58:02]RasterBufferAndPrint [23:58:02]line Отчет об открытии смены [23:58:02]line ФФД: 1.0 [23:58:02]line ИНН: 02508201610067 [23:58:02]line Кассир: Сурапов З. [23:58:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:58:02]line Место: АЗС № 101 "Партнер Нефть" [23:58:02]line 31.10.2024 23:58 [23:58:02]line Смена: 558 [23:58:02]line РНМ: 0000000000091631 [23:58:02]line ЗНМ: 0300000081 [23:58:02]line ФД: 139819 [23:58:02]line ФМ: 0000000000874669 [23:58:02]line ФПД: 87725801380653 [23:58:02]written 0, free lines is 4095 [23:58:02]OFD Sender: Processing packet 139819 [packets to send 34, broken 33] [23:58:02]ProducePacketName [23:58:02]name=ofd_packets/00139819 [23:58:02]OFD Sender: To server: pG, [23:58:02]CommunicateWithHost lk.salyk.kg:30040 [23:58:02]ConnectInit lk.salyk.kg [23:58:02]Connected sock=10 [23:58:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 09 01 00 00 FC 4C 01 01 AB 04 5A 02 01 00 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 89 19 24 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 10 04 04 00 2B 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 4F C9 41 3A 9B 2D 05 C9 12 F3 1A 60 BC 1A [23:58:02]Write to MH i2c: 01 00 00 CD 33 00 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 07 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 07 00 CD 33 00 00 00 00 00 AF 0E C4 [23:58:02]RasterBufferAndPrint [23:58:02]line [23:58:02]line [23:58:02]line [23:58:02]line [23:58:02]line [23:58:02]written 0, free lines is 3780 [23:58:02]MH_Cut [23:58:02]Write to MH i2c: D1 01 00 D4 33 01 D9 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: D1 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: D1 01 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: D1 01 00 D4 33 00 D8 [23:58:02]Write to MH i2c: 01 00 00 D5 33 08 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58: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 F0 2F 47 00 63 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2B 22 02 00 F4 03 04 00 37 C5 23 67 B6 04 01 00 00 22 D5 44 C6 3F 78 0E B3 [23:58:02]CommunicateWithHost err = 0 [23:58:02]CheckOFDResponse [23:58:02]1017 (14) - 77093643461234 [23:58:02]1041 (16) - 0000000000874669 [23:58:02]1040 (4) - 139819 [23:58:02]1012 (4) - 31.10.2024 17:58 [23:58:02]1206 (1) - 0 [23:58:02]OFD Sender: Remove packet 139819 [23:58:02]ProducePacketName [23:58:02]name=ofd_packets/00139819 [23:58:02]NVStorageDeleteData [23:58:02]*** Cut start [23:58:02]*** Partial cut [23:58:02]*** CUTSNS_PIN = 1 [23:58:02]*** CUTSNS_PIN = 0 [23:58:03]*** Brake cut motor [23:58:03]OFD Sender: No OFD packet to send [23:58:03]Read from MH i2c: 01 [23:58:03]MH_I2C_Read... [23:58:03]*** Stop cut motor [23:58:03]*** Cut end [23:58:03]Read from MH i2c: 01 07 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: 01 07 00 D5 33 00 00 00 00 00 FF 0F 1D [23:58:03]process_action open_shift done [23:58:03]requested_data is exist [23:58:03]produce_requested_data [23:58:03]requested_item fd.num is exist - process it [23:58:03]SAM_PROTO_GetFieldsCounters [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 13 00 00 [23:58:03]Write to MH i2c: E2 08 00 D6 33 80 13 00 00 00 00 00 00 85 [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 62 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 62 00 D6 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [23:58:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:03]wFMCommunicate OK [23:58:03]SAM_PROTO_GetFieldsCounters done [23:58:03]requested_item shift.num is exist - process it [23:58:03]requested_item shift.opened is exist - process it [23:58:03]req_shift_opened [23:58:03]FM_GetShiftState [23:58:03]SAM_PROTO_GetShiftState [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 13 01 00 [23:58:03]Write to MH i2c: E2 08 00 D7 33 80 13 01 00 00 00 00 00 87 [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 0E 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 0E 00 D7 33 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C0 [23:58:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [23:58:03]wFMCommunicate OK [23:58:03]SAM_PROTO_GetShiftState done [23:58:03]FM_GetShiftState done [23:58:03]req_shift_opened done [23:58:03]requested_item shift.open_date is exist - process it [23:58:03]req_shift_open_date [23:58:03]req_shift_open_date done [23:58:03]produce_requested_data done [23:58:03]produce_requested_data return {"fd.num":139819,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [23:58:03]process_action_free open_shift [23:58:03]json_value_free [23:58:03]json_value_free done [23:58:03]process_json_proto returns [23:58:03]Send response to host [23:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139819,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [23:58:03]free response buf [23:58:03]execute_script done [23:58:03]execute_script returns [23:58:03]free content buf [23:58:03]Sock 7.Close socket [23:58:03]Sock 7.Thread stoped [23:58:03]accept exits with 9 [23:58:03]New connection [23:58:03]New thread 3066510692 created [23:58:03]Thread 3066654052 joined [23:58:03]Waiting for new connection... [23:58:03] Sock 9.Parse request [23:58:03]Sock 9.Check first char [23:58:03]Sock 9.First char is OK [23:58:03]request: POST /json_proto HTTP/1.0 [23:58:03]Method: POST [23:58:03]URL: /json_proto [23:58:03]Method is POST - this is cgi request [23:58:03]url: /json_proto [23:58:03]query_string will be loaded in cgi processing [23:58:03]execute_cgi json_proto POST (null) [23:58:03]execute_cgi path=json_proto method=POST [23:58:03]POST find Content-Length [23:58:03]Host: 172.17.50.196:8080 [23:58:03]Content-Length: 331 [23:58:03]Content-Type: application/json [23:58:03] [23:58:03]POST finish read [23:58:03]Found Content-Length = 331 [23:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:03]execute_script... [23:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:03]POST & json_proto [23:58:03]process_json_proto [23:58:03]json parsed OK: [23:58:03]protocol is kg_v1.0 [23:58:03]action value=get_value [23:58:03]process_action get_value [23:58:03]cmd_get_value [23:58:03]process_action get_value done [23:58:03]requested_data is exist [23:58:03]produce_requested_data [23:58:03]requested_item fm.sale.total is exist - process it [23:58:03]SAM_PROTO_GetFMData [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 13 03 00 [23:58:03]Write to MH i2c: E2 08 00 D8 33 80 13 03 00 00 00 00 00 8A [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 D8 33 00 C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 9E [23:58:04]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 CF 1D 02 00 69 04 A3 00 6F 04 04 00 80 1B 02 00 B1 04 05 00 41 32 39 53 01 70 04 05 00 94 84 BF 03 01 72 04 04 00 AD AD 79 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 D0 CC 06 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 4C 4E 00 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 4F 02 00 00 B1 04 04 00 1C 2F 0B 09 70 04 04 00 58 03 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 29 E0 F5 EF 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 D9 33 80 17 00 00 00 00 00 00 8C [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 D9 33 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 1A 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 44 [23:58:04]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 1A 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 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 DA 33 80 17 00 00 00 00 00 00 8D [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 DA 33 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 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 65 [23:58:05]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 [23:58:05]wFMCommunicate OK [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 17 00 00 [23:58:05]Write to MH i2c: E2 08 00 DB 33 80 17 00 00 00 00 00 00 8E [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 DB 33 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 09 [23:58:05]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 [23:58:05]wFMCommunicate OK [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 17 00 00 [23:58:05]Write to MH i2c: E2 08 00 DC 33 80 17 00 00 00 00 00 00 8F [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 E4 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 E4 00 DC 33 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 6F [23:58:05]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 [23:58:06]wFMCommunicate OK [23:58:06]SAM_PROTO_GetFMData done [23:58:06]requested_item fm.sale_refund.total is exist - process it [23:58:06]requested_item fm.buy.total is exist - process it [23:58:06]requested_item shift.sale.total is exist - process it [23:58:06]SAM_PROTO_GetShiftData [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 13 02 00 [23:58:06]Write to MH i2c: E2 08 00 DD 33 80 13 02 00 00 00 00 00 8E [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 DD 33 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 01 [23:58:06]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [23:58:06]wFMCommunicate OK [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 17 00 00 [23:58:06]Write to MH i2c: E2 08 00 DE 33 80 17 00 00 00 00 00 00 91 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 DE 33 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 99 [23:58:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [23:58:07]wFMCommunicate OK [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 17 00 00 [23:58:07]Write to MH i2c: E2 08 00 DF 33 80 17 00 00 00 00 00 00 92 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 DF 33 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 64 [23:58:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [23:58:07]wFMCommunicate OK [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 17 00 00 [23:58:07]Write to MH i2c: E2 08 00 E0 33 80 17 00 00 00 00 00 00 93 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 E0 33 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 05 [23:58:08]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:58:08]wFMCommunicate OK [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 17 00 00 [23:58:08]Write to MH i2c: E2 08 00 E1 OFD Sender: No OFD packet to send [23:58:08]33 80 17 00 00 00 00 00 00 94 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 BD 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 BD 00 E1 33 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7A [23:58:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:08]wFMCommunicate OK [23:58:08]SAM_PROTO_GetShiftData done [23:58:08]requested_item shift.sale.total_cash is exist - process it [23:58:08]requested_item shift.sale_refund.total is exist - process it [23:58:08]requested_item shift.sale_refund.total_cash is exist - process it [23:58:08]requested_item shift.buy.total is exist - process it [23:58:08]requested_item shift.buy.total_cash is exist - process it [23:58:08]produce_requested_data done [23:58:08]produce_requested_data return {"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:58:08]process_action_free get_value [23:58:08]json_value_free [23:58:08]json_value_free done [23:58:08]process_json_proto returns [23:58:08]Send response to host [23:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56912246.41,"fm.sale_refund.total":1517279.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:58:08]free response buf [23:58:08]execute_script done [23:58:08]execute_script returns [23:58:08]free content buf [23:58:08]Sock 9.Close socket [23:58:08]Sock 9.Thread stoped [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:02]accept exits with 7 [00:00:02]New connection [00:00:02]New thread 3066654052 created [00:00:02]Thread 3066510692 joined [00:00:02]Waiting for new connection... [00:00:02] Sock 7.Parse request [00:00:02]Sock 7.Check first char [00:00:02]Sock 7.First char is OK [00:00:02]request: POST /json_proto HTTP/1.0 [00:00:02]Method: POST [00:00:02]URL: /json_proto [00:00:02]Method is POST - this is cgi request [00:00:02]url: /json_proto [00:00:02]query_string will be loaded in cgi processing [00:00:02]execute_cgi json_proto POST (null) [00:00:02]execute_cgi path=json_proto method=POST [00:00:02]POST find Content-Length [00:00:02]Host: 172.17.50.196:8080 [00:00:02]Content-Length: 683 [00:00:02]Content-Type: application/json [00:00:02] [00:00:02]POST finish read [00:00:02]Found Content-Length = 683 [00:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095558", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:02]execute_script... [00:00:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095558", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:02]POST & json_proto [00:00:02]process_json_proto [00:00:02]json parsed OK: [00:00:02]protocol is kg_v1.0 [00:00:02]action value=close_receipt [00:00:02]process_action close_receipt [00:00:02]cmd_close_receipt [00:00:02]MH_GetDate [00:00:02]Write to MH i2c: F0 00 00 E2 33 04 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 09 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 09 00 E2 33 00 05 1A 24 67 72 0D 1C 67 B9 [00:00:02]GetLastDocTimeStamp 1730419081 [00:00:02]current date 1730419205 [00:00:02]FM_GetShiftState [00:00:02]SAM_PROTO_GetShiftState [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 13 01 00 [00:00:02]Write to MH i2c: E2 08 00 E3 33 80 13 01 00 00 00 00 00 93 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 13 01 00... Exchange failed -2850! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 05 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 05 00 E3 33 10 DE F4 FF FF DC [00:00:02]Error from MH - 10 [00:00:02]res=8208 [00:00:02]FM_DeInit [00:00:02]wFMDisconnect [00:00:02]MH_SAM_Off [00:00:02]Write to MH i2c: E1 00 00 E4 33 F7 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** Shut down ICC! [00:00:02]Read from MH i2c: E1 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E1 01 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E1 01 00 E4 33 00 F8 [00:00:02]FM_Init [00:00:02]wFMConnect [00:00:02]MH_SAM_On [00:00:02]Write to MH i2c: E0 00 00 E5 33 F7 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_init finished! [00:00:02]*** atr: [00:00:02]*** 0F 3B D5 18 FF 81 91 FE [00:00:02]*** 1F C3 80 73 C8 21 10 0A [00:00:02]*** 00 00 00 00 00 00 00 00 [00:00:02]*** 00 00 00 00 00 00 00 00 [00:00:02]*** 00 00 00 00 00 00 00 00 [00:00:02]*** 00 00 00 00 00 00 00 00 [00:00:02]*** 00 00 00 00 00 00 00 00 [00:00:02]*** 00 00 00 00 00 00 00 00 [00:00:02]Read from MH i2c: E0 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E0 10 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E0 10 00 E5 33 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 16 [00:00:02]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:02]wFMCommunicate request_size=10 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:02]Write to MH i2c: E2 0D 00 E6 33 00 A4 04 00 05 00 01 02 03 04 05 00 00 C3 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 E6 33 00 90 00 8D [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 11 00 00 [00:00:02]Write to MH i2c: E2 08 00 E7 33 80 11 00 00 00 00 00 00 94 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 17 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 17 00 E7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [00:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:00:02]wFMCommunicate OK [00:00:02]Detected FM SN is 0000000000874669 [00:00:02]Stored FM SN is 0000000000874669 [00:00:02]wFMCommunicate request_size=9 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 16 00 00 04 DF FF 00 00 [00:00:02]Write to MH i2c: E2 0C 00 E8 33 80 16 00 00 04 00 DF FF 00 00 00 00 80 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 E8 33 00 90 00 8F [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]FM PIN OK [00:00:02]wFMCommunicate request_size=8 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 14 04 00 03 02 00 01 [00:00:02]Write to MH i2c: E2 0B 00 E9 33 80 14 04 00 03 00 02 00 01 00 00 A6 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 E9 33 00 90 00 90 [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=13 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:02]Write to MH i2c: E2 10 00 EA 33 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 CB [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 EA 33 00 90 00 91 [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 11 00 00 [00:00:02]Write to MH i2c: E2 08 00 EB 33 80 11 00 00 00 00 00 00 98 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 17 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 17 00 EB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F3 [00:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:00:03]wFMCommunicate OK [00:00:03]FM_GetShiftState [00:00:03]SAM_PROTO_GetShiftState [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 13 01 00 [00:00:03]Write to MH i2c: E2 08 00 EC 33 80 13 01 00 00 00 00 00 9C [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 0E 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 0E 00 EC 33 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D5 [00:00:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:00:03]wFMCommunicate OK [00:00:03]SAM_PROTO_GetShiftState done [00:00:03]FM_GetShiftState done [00:00:03]opened in 1730419081 [00:00:03]opened+sec_in_day 1730505481 [00:00:03]quantity*price = 100015 [00:00:03]sum+1 = 100017 [00:00:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 1 01.11.2024 00:00 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139820 ФПД: 100861094085433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T000006&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139820&fm=100861094085433&tin=02508201610067®Number=0000000000091631&sum=100000 [00:00:04]StoreToDocumentArchive [00:00:04]shift 558 fd 139820 [00:00:04]save to /storage/0558/doc_00139820 [00:00:04]save last doc name /storage/0558/doc_00139820 to /storage/kkm_last_doc_name [00:00:04]save OK [00:00:04]Clear old archive folders... [00:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:00:04]tlvbuf is 00A845B0 [00:00:04]SAM_PROTO_ClearQueue [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 09 00 00 [00:00:04]Write to MH i2c: E2 08 00 F9 33 80 09 00 00 00 00 00 00 9E [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 F9 33 00 90 00 A0 [00:00:04]RAPDU: 90 00 [00:00:04]wFMCommunicate OK [00:00:04]SAM_PROTO_ClearQueue done [00:00:04]KKMCreateOFDPacket [00:00:04]OFDProtocolAddRootSTLVToBuf [00:00:04]FM_MakeSignedData [00:00:04]FM_MakeSignedData [00:00:04]SAM_PROTO_SignData [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 0D 01 02 [00:00:04]Write to MH i2c: E2 08 00 FA 33 80 0D 01 02 00 00 00 00 A6 [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 FA 33 00 90 00 A1 [00:00:04]RAPDU: 90 00 [00:00:04]wFMCommunicate OK [00:00:04]wFMCommunicate request_size=255 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 06 1A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2C 22 02 00 35 04 06 00 5B [00:00:04]Write to MH i2c: E2 02 01 FB 33 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 06 1A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2C 22 02 00 35 04 06 00 5B 00 00 B6 [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 FB 33 00 90 00 A2 [00:00:04]RAPDU: 90 00 [00:00:04]wFMCommunicate OK [00:00:04]wFMCommunicate request_size=10 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 0D 02 02 05 BB 8D AF 43 39 [00:00:04]Write to MH i2c: E2 0D 00 FC 33 80 0D 02 02 05 00 BB 8D AF 43 39 00 00 26 [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 FC 33 00 90 00 A3 [00:00:04]RAPDU: 90 00 [00:00:04]wFMCommunicate OK [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 0D 03 02 [00:00:04]Write to MH i2c: E2 08 00 FD 33 80 0D 03 02 00 00 00 00 AB [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 0B 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 0B 00 FD 33 00 38 F8 4C 9E 24 19 29 3A 90 00 66 [00:00:04]RAPDU: 38 F8 4C 9E 24 19 29 3A 90 00 [00:00:04]wFMCommunicate OK [00:00:04]SAM_PROTO_SignData done [00:00:04]FM_MakeSignedData done [00:00:04]CreateOFDProtocolMessage [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 11 00 00 [00:00:04]Write to MH i2c: E2 08 00 FE 33 80 11 00 00 00 00 00 00 AB [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 17 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 17 00 FE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [00:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:00:04]wFMCommunicate OK [00:00:04]CreateOFDProtocolMessage done [00:00:04]OFDSenderStorePacket 139820 [00:00:04]StoreOFDPacket docnum=139820 [00:00:04]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 7C 63 07 01 C1 38 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 06 1A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2C 22 02 00 35 04 06 00 5B BB 8D AF 43 39 38 F8 4C 9E 24 19 29 3A [00:00:04]CheckFolder [00:00:04]dirname=/storage/ofd_packets [00:00:04]CheckFolder done [00:00:04]ProducePacketName [00:00:04]name=ofd_packets/00139820 [00:00:04]NVStorageSaveData ofd_packets/00139820 [00:00:04]File name is /storage/ofd_packets/00139820 [00:00:04]Write 301 bytes [00:00:04]NVStorageSaveData done [00:00:04]OFDSenderStorePacket done [00:00:04]KKMCreateOFDPacket done [00:00:04]NVStorageSaveData kkm_last_timestamp [00:00:04]File name is /storage/kkm_last_timestamp [00:00:04]Write 4 bytes [00:00:04]NVStorageSaveData done [00:00:04]ExternCall_PrintAddStr [00:00:04]wPrintStart [00:00:04]Write to MH i2c: 01 00 00 FF 33 32 [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: 01 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: 01 07 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: 01 07 00 FF 33 00 00 00 00 00 FF 0F 47 [00:00:04]RasterBufferAndPrint [00:00:04]line Счет N : (1)1095558 [00:00:04]line ИНН: 02508201610067 [00:00:04]line Контрольно-Кассовый Чек [00:00:04]line ПРОДАЖА [00:00:04]line ТРК (МРК, ГНК) : 53 [00:00:04]line Товар: 2710124130 [00:00:04]line Аи-92-К-2 [00:00:04]line 14.950 * 66.90 [00:00:04]line = 1000.16 [00:00:04]line НДС 12% НСП 1% [00:00:04]line > о реализуемом товаре [00:00:04]line ОКРУГЛЕНИЕ: -0.16 [00:00:04]line ИТОГО: 1000.00 [00:00:04]line Внесено: 1000.00 [00:00:04]line СДАЧА: 0.00 [00:00:04]line НСП 1% : 8.85 [00:00:04]line НДС 12% : 106.21 [00:00:04]line Наличными: 1000.00 [00:00:04]line Безнал.: 0.00 [00:00:04]line Место: АЗС № 101 "Партнер Нефть" [00:00:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:00:04]line СНО: Общий режим [00:00:04]line Чек 1 01.11.2024 00:00 [00:00:04]line Смена: 558 ФФД: 1.0 [00:00:04]line ЗНМ: 0300000081 [00:00:04]line РНМ: 0000000000091631 [00:00:04]line Версия ККМ: 001 [00:00:04]line ФМ: 0000000000874669 [00:00:04]line ФД: 139820 [00:00:04]line ФПД: 100861094085433 [00:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T000006&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139820&fm=100861094085433&tin=02508201610067®Number=0000000000091631&sum=100000 [00:00:05]OFD Sender: Processing packet 139820 [packets to send 34, broken 33] [00:00:05]ProducePacketName [00:00:05]name=ofd_packets/00139820 [00:00:05]OFD Sender: To server: pG, [00:00:05]CommunicateWithHost lk.salyk.kg:30040 [00:00:05]ConnectInit lk.salyk.kg [00:00:05]written 0, free lines is 4095 [00:00:05]Connected sock=11 [00:00: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 0F 01 00 00 7C 63 07 01 C1 38 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 06 1A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2C 22 02 00 35 04 06 00 5B BB 8D AF 43 39 38 F8 4C 9E 24 19 29 3A [00:00: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 76 CA 47 00 83 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2C 22 02 00 F4 03 04 00 B2 C5 23 67 B6 04 01 00 00 5F F2 83 4E 54 5F 09 E3 [00:00:05]CommunicateWithHost err = 0 [00:00:05]CheckOFDResponse [00:00:05]1017 (14) - 77093643461234 [00:00:05]1041 (16) - 0000000000874669 [00:00:05]1040 (4) - 139820 [00:00:05]1012 (4) - 31.10.2024 18:00 [00:00:05]1206 (1) - 0 [00:00:05]OFD Sender: Remove packet 139820 [00:00:05]ProducePacketName [00:00:05]name=ofd_packets/00139820 [00:00:05]NVStorageDeleteData [00:00:05]Write to MH i2c: 01 00 00 2A 34 5E [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: 01 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: 01 07 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: 01 07 00 2A 34 00 00 00 00 00 EF 0C 60 [00:00:05]RasterBufferAndPrint [00:00:05]line [00:00:05]line [00:00:05]line [00:00:05]line [00:00:05]line [00:00:05]written 0, free lines is 3320 [00:00:05]MH_Cut [00:00:05]Write to MH i2c: D1 01 00 31 34 01 37 [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: D1 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: D1 01 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: D1 01 00 31 34 00 36 [00:00:05]Write to MH i2c: 01 00 00 32 34 66 [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]OFD Sender: No OFD packet to send [00:00:06]*** Cut start [00:00:06]*** Partial cut [00:00:06]*** CUTSNS_PIN = 1 [00:00:06]*** CUTSNS_PIN = 0 [00:00:06]*** Brake cut motor [00:00:06]Read from MH i2c: 01 [00:00:06]MH_I2C_Read... [00:00:06]*** Stop cut motor [00:00:06]*** Cut end [00:00:06]Read from MH i2c: 01 07 00 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: 01 07 00 32 34 00 00 00 00 00 FF 0F 7B [00:00:06]process_action close_receipt done [00:00:06]requested_data is exist [00:00:06]produce_requested_data [00:00:06]requested_item fm.sn is exist - process it [00:00:06]wFMCommunicate request_size=4 [00:00:06]MH_SAM_APDU [00:00:06]CAPDU: 80 11 00 00 [00:00:06]Write to MH i2c: E2 08 00 33 34 80 11 00 00 00 00 00 00 E1 [00:00:06]Write i2c OK [00:00:06]MH_I2C_Read... [00:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:06]Read from MH i2c: E2 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 17 00 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 17 00 33 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3C [00:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:00:06]wFMCommunicate OK [00:00:06]requested_item fd.num is exist - process it [00:00:06]SAM_PROTO_GetFieldsCounters [00:00:06]wFMCommunicate request_size=4 [00:00:06]MH_SAM_APDU [00:00:06]CAPDU: 80 13 00 00 [00:00:06]Write to MH i2c: E2 08 00 34 34 80 13 00 00 00 00 00 00 E4 [00:00:06]Write i2c OK [00:00:06]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 62 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 62 00 34 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [00:00: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 2C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetFieldsCounters done [00:00:07]requested_item shift.num is exist - process it [00:00:07]requested_item shift.opened is exist - process it [00:00:07]req_shift_opened [00:00:07]FM_GetShiftState [00:00:07]SAM_PROTO_GetShiftState [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 01 00 [00:00:07]Write to MH i2c: E2 08 00 35 34 80 13 01 00 00 00 00 00 E6 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 35 34 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1F [00:00:07]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetShiftState done [00:00:07]FM_GetShiftState done [00:00:07]req_shift_opened done [00:00:07]requested_item shift.open_date is exist - process it [00:00:07]req_shift_open_date [00:00:07]req_shift_open_date done [00:00:07]produce_requested_data done [00:00:07]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139820,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:00:07]process_action_free close_receipt [00:00:07]json_value_free [00:00:07]json_value_free done [00:00:07]process_json_proto returns [00:00:07]Send response to host [00:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139820,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:00:07]free response buf [00:00:07]execute_script done [00:00:07]execute_script returns [00:00:07]free content buf [00:00:07]Sock 7.Close socket [00:00:07]Sock 7.Thread stoped [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:44]accept exits with 10 [00:08:44]New connection [00:08:44]New thread 3066510692 created [00:08:44]Thread 3066654052 joined [00:08:44]Waiting for new connection... [00:08:44] Sock 10.Parse request [00:08:44]Sock 10.Check first char [00:08:44]Sock 10.First char is OK [00:08:44]request: POST /json_proto HTTP/1.0 [00:08:44]Method: POST [00:08:44]URL: /json_proto [00:08:44]Method is POST - this is cgi request [00:08:44]url: /json_proto [00:08:44]query_string will be loaded in cgi processing [00:08:44]execute_cgi json_proto POST (null) [00:08:44]execute_cgi path=json_proto method=POST [00:08:44]POST find Content-Length [00:08:44]Host: 172.17.50.196:8080 [00:08:44]Content-Length: 956 [00:08:44]Content-Type: application/json [00:08:44] [00:08:44]POST finish read [00:08:44]Found Content-Length = 956 [00:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335649", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:44]execute_script... [00:08: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)335649", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:44]POST & json_proto [00:08:44]process_json_proto [00:08:44]json parsed OK: [00:08:44]protocol is kg_v1.0 [00:08:44]action value=close_receipt [00:08:44]process_action close_receipt [00:08:44]cmd_close_receipt [00:08:44]MH_GetDate [00:08:44]Write to MH i2c: F0 00 00 36 34 59 [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: F0 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: F0 09 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: F0 09 00 36 34 00 0F 1C 24 67 72 0D 1C 67 1A [00:08:44]GetLastDocTimeStamp 1730419206 [00:08:44]current date 1730419727 [00:08:44]FM_GetShiftState [00:08:44]SAM_PROTO_GetShiftState [00:08:44]wFMCommunicate request_size=4 [00:08:44]MH_SAM_APDU [00:08:44]CAPDU: 80 13 01 00 [00:08:44]Write to MH i2c: E2 08 00 37 34 80 13 01 00 00 00 00 00 E8 [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 0E 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 0E 00 37 34 00 09 00 01 89 19 24 67 00 00 00 00 90 00 21 [00:08:44]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:08:44]wFMCommunicate OK [00:08:44]SAM_PROTO_GetShiftState done [00:08:44]FM_GetShiftState done [00:08:44]opened in 1730419081 [00:08:44]opened+sec_in_day 1730505481 [00:08:44]quantity*price = 10400 [00:08:44]sum+1 = 10401 [00:08:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.00 НСП 1% : 2.28 НДС 12% : 27.39 Наличными: 258.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 2 01.11.2024 00:08 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139821 ФПД: 217627379452245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T000847&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139821&fm=217627379452245&tin=02508201610067®Number=0000000000091631&sum=25800 0 [00:08:45]StoreToDocumentArchive [00:08:45]shift 558 fd 139821 [00:08:45]save to /storage/0558/doc_00139821 [00:08:45]save last doc name /storage/0558/doc_00139821 to /storage/kkm_last_doc_name [00:08:45]save OK [00:08:45]Clear old archive folders... [00:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=410 [00:08:45]tlvbuf is B6E78760 [00:08:45]SAM_PROTO_ClearQueue [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 09 00 00 [00:08:45]Write to MH i2c: E2 08 00 44 34 80 09 00 00 00 00 00 00 EA [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 44 34 00 90 00 EC [00:08:45]RAPDU: 90 00 [00:08:45]wFMCommunicate OK [00:08:45]SAM_PROTO_ClearQueue done [00:08:45]KKMCreateOFDPacket [00:08:45]OFDProtocolAddRootSTLVToBuf [00:08:45]FM_MakeSignedData [00:08:45]FM_MakeSignedData [00:08:45]SAM_PROTO_SignData [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 0D 01 02 [00:08:45]Write to MH i2c: E2 08 00 45 34 80 0D 01 02 00 00 00 00 F2 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 45 34 00 90 00 ED [00:08:45]RAPDU: 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=255 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 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 FC [00:08:45]Write to MH i2c: E2 02 01 46 34 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 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 FC 00 00 52 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 46 34 00 90 00 EE [00:08:45]RAPDU: 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=169 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 0D 02 02 A4 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 02 00 00 00 F4 03 04 00 0F 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2D 22 02 00 35 04 06 00 C5 EE 52 A5 49 55 [00:08:45]Write to MH i2c: E2 AC 00 47 34 80 0D 02 02 A4 00 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 02 00 00 00 F4 03 04 00 0F 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2D 22 02 00 35 04 06 00 C5 EE 52 A5 49 55 00 00 00 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 03 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 03 00 47 34 00 90 00 EF [00:08:46]RAPDU: 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 0D 03 02 [00:08:46]Write to MH i2c: E2 08 00 48 34 80 0D 03 02 00 00 00 00 F7 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 0B 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 0B 00 48 34 00 E5 D5 05 33 1B 22 B2 6C 90 00 45 [00:08:46]RAPDU: E5 D5 05 33 1B 22 B2 6C 90 00 [00:08:46]wFMCommunicate OK [00:08:46]SAM_PROTO_SignData done [00:08:46]FM_MakeSignedData done [00:08:46]CreateOFDProtocolMessage [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 11 00 00 [00:08:46]Write to MH i2c: E2 08 00 49 34 80 11 00 00 00 00 00 00 F7 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 17 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 17 00 49 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 52 [00:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:08:46]wFMCommunicate OK [00:08:46]CreateOFDProtocolMessage done [00:08:46]OFDSenderStorePacket 139821 [00:08:46]StoreOFDPacket docnum=139821 [00:08: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 AE 01 00 00 75 9E A6 01 19 CF 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 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 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 02 00 00 00 F4 03 04 00 0F 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2D 22 02 00 35 04 06 00 C5 EE 52 A5 49 55 E5 D5 05 33 1B 22 B2 6C [00:08:46]CheckFolder [00:08:46]dirname=/storage/ofd_packets [00:08:46]CheckFolder done [00:08:46]ProducePacketName [00:08:46]name=ofd_packets/00139821 [00:08:46]NVStorageSaveData ofd_packets/00139821 [00:08:46]File name is /storage/ofd_packets/00139821 [00:08:46]Write 460 bytes [00:08:46]NVStorageSaveData done [00:08:46]OFDSenderStorePacket done [00:08:46]KKMCreateOFDPacket done [00:08:46]NVStorageSaveData kkm_last_timestamp [00:08:46]File name is /storage/kkm_last_timestamp [00:08:46]Write 4 bytes [00:08:46]NVStorageSaveData done [00:08:46]ExternCall_PrintAddStr [00:08:46]wPrintStart [00:08:46]Write to MH i2c: 01 00 00 4A 34 7E [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: 01 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: 01 07 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 FF 0F 93 [00:08:46]RasterBufferAndPrint [00:08:46]line Счет N : (3)335649 [00:08:46]line ИНН: 02508201610067 [00:08:46]line Контрольно-Кассовый Чек [00:08:46]line ПРОДАЖА [00:08:46]line Товар: 4870202522671 [00:08:46]line Garden напиток со вкусом граната 1,20 ПЭ [00:08:46]line 1.000 * 104.00 [00:08:46]line = 104.00 [00:08:46]line НДС 12% НСП 1% [00:08:46]line > о реализуемом товаре [00:08:46]line Товар: 46230614 [00:08:46]line Сигареты Richmond Red Edition [00:08:46]line 1.000 * 154.00 [00:08:46]line = 154.00 [00:08:46]line НДС 12% НСП 1% [00:08:46]line > о реализуемом товаре [00:08:46]line ИТОГО: 258.00 [00:08:46]line НСП 1% : 2.28 [00:08:46]line НДС 12% : 27.39 [00:08:46]line Наличными: 258.00 [00:08:46]line Безнал.: 0.00 [00:08:46]line Место: АЗС № 101 "Партнер Нефть" [00:08:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:08:46]line СНО: Общий режим [00:08:46]line Чек 2 01.11.2024 00:08 [00:08:46]line Смена: 558 ФФД: 1.0 [00:08:46]line ЗНМ: 0300000081 [00:08:46]line РНМ: 0000000000091631 [00:08:46]line Версия ККМ: 001 [00:08:46]line ФМ: 0000000000874669 [00:08:46]line ФД: 139821 [00:08:46]line ФПД: 217627379452245 [00:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T000847&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139821&fm=217627379452245&tin=02508201610067®Number=0000000000091631&sum=25800 [00:08:46]OFD Sender: Processing packet 139821 [packets to send 34, broken 33] [00:08:46]line 0 [00:08:46]ProducePacketName [00:08:46]name=ofd_packets/00139821 [00:08:46]OFD Sender: To server: pG, [00:08:46]CommunicateWithHost lk.salyk.kg:30040 [00:08:46]ConnectInit lk.salyk.kg [00:08:46]written 0, free lines is 4095 [00:08:46]Connected sock=9 [00:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AE 01 00 00 75 9E A6 01 19 CF 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD 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 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 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 02 00 00 00 F4 03 04 00 0F 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2D 22 02 00 35 04 06 00 C5 EE 52 A5 49 55 E5 D5 05 33 1B 22 B2 6C [00:08: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 15 88 47 00 EB 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 2D 22 02 00 F4 03 04 00 BC C7 23 67 B6 04 01 00 00 5F 47 13 45 B1 4C BF 7C [00:08:46]CommunicateWithHost err = 0 [00:08:46]CheckOFDResponse [00:08:46]1017 (14) - 77093643461234 [00:08:46]1041 (16) - 0000000000874669 [00:08:46]1040 (4) - 139821 [00:08:46]1012 (4) - 31.10.2024 18:09 [00:08:46]1206 (1) - 0 [00:08:46]OFD Sender: Remove packet 139821 [00:08:46]ProducePacketName [00:08:46]name=ofd_packets/00139821 [00:08:46]NVStorageDeleteData [00:08:47]Write to MH i2c: 01 00 00 7A 34 AE [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: 01 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: 01 07 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: 01 07 00 7A 34 00 00 00 00 00 86 0C 47 [00:08:47]RasterBufferAndPrint [00:08:47]line [00:08:47]line [00:08:47]line [00:08:47]line [00:08:47]line [00:08:47]written 0, free lines is 3215 [00:08:47]MH_Cut [00:08:47]Write to MH i2c: D1 01 00 81 34 01 87 [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: D1 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: D1 01 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: D1 01 00 81 34 00 86 [00:08:47]Write to MH i2c: 01 00 00 82 34 B6 [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]OFD Sender: No OFD packet to send [00:08:47]*** Cut start [00:08:47]*** Partial cut [00:08:47]*** CUTSNS_PIN = 1 [00:08:47]*** CUTSNS_PIN = 0 [00:08:48]*** Brake cut motor [00:08:48]Read from MH i2c: 01 [00:08:48]MH_I2C_Read... [00:08:48]*** Stop cut motor [00:08:48]*** Cut end [00:08:48]Read from MH i2c: 01 07 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: 01 07 00 82 34 00 00 00 00 00 FF 0F CB [00:08:48]process_action close_receipt done [00:08:48]requested_data is exist [00:08:48]produce_requested_data [00:08:48]requested_item fm.sn is exist - process it [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 11 00 00 [00:08:48]Write to MH i2c: E2 08 00 83 34 80 11 00 00 00 00 00 00 31 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 17 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 17 00 83 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8C [00:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:08:48]wFMCommunicate OK [00:08:48]requested_item fd.num is exist - process it [00:08:48]SAM_PROTO_GetFieldsCounters [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 13 00 00 [00:08:48]Write to MH i2c: E2 08 00 84 34 80 13 00 00 00 00 00 00 34 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 62 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 62 00 84 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [00:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:48]wFMCommunicate OK [00:08:48]SAM_PROTO_GetFieldsCounters done [00:08:48]requested_item shift.num is exist - process it [00:08:48]requested_item shift.opened is exist - process it [00:08:48]req_shift_opened [00:08:48]FM_GetShiftState [00:08:48]SAM_PROTO_GetShiftState [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 13 01 00 [00:08:48]Write to MH i2c: E2 08 00 85 34 80 13 01 00 00 00 00 00 36 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 0E 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 0E 00 85 34 00 09 00 01 89 19 24 67 00 00 00 00 90 00 6F [00:08:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:08:48]wFMCommunicate OK [00:08:48]SAM_PROTO_GetShiftState done [00:08:48]FM_GetShiftState done [00:08:48]req_shift_opened done [00:08:48]requested_item shift.open_date is exist - process it [00:08:48]req_shift_open_date [00:08:48]req_shift_open_date done [00:08:48]produce_requested_data done [00:08:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139821,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:08:48]process_action_free close_receipt [00:08:48]json_value_free [00:08:48]json_value_free done [00:08:48]process_json_proto returns [00:08:48]Send response to host [00:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139821,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:08:48]free response buf [00:08:48]execute_script done [00:08:48]execute_script returns [00:08:48]free content buf [00:08:48]Sock 10.Close socket [00:08:48]Sock 10.Thread stoped [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:44]accept exits with 7 [00:09:44]New connection [00:09:44]New thread 3066654052 created [00:09:44]Thread 3066510692 joined [00:09:44]Waiting for new connection... [00:09:44] Sock 7.Parse request [00:09:44]Sock 7.Check first char [00:09:44]Sock 7.First char is OK [00:09:44]request: POST /json_proto HTTP/1.0 [00:09:44]Method: POST [00:09:44]URL: /json_proto [00:09:44]Method is POST - this is cgi request [00:09:44]url: /json_proto [00:09:44]query_string will be loaded in cgi processing [00:09:44]execute_cgi json_proto POST (null) [00:09:44]execute_cgi path=json_proto method=POST [00:09:44]POST find Content-Length [00:09:44]Host: 172.17.50.196:8080 [00:09:44]Content-Length: 676 [00:09:44]Content-Type: application/json [00:09:44] [00:09:44]POST finish read [00:09:44]Found Content-Length = 676 [00:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335650", "tax_sys" : 0, "items" : [ { "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:44]execute_script... [00:09: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)335650", "tax_sys" : 0, "items" : [ { "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:44]POST & json_proto [00:09:44]process_json_proto [00:09:44]json parsed OK: [00:09:44]protocol is kg_v1.0 [00:09:44]action value=close_receipt [00:09:44]process_action close_receipt [00:09:44]cmd_close_receipt [00:09:44]MH_GetDate [00:09:44]Write to MH i2c: F0 00 00 86 34 A9 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: F0 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: F0 09 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: F0 09 00 86 34 00 4B 1C 24 67 72 0D 1C 67 A6 [00:09:44]GetLastDocTimeStamp 1730419727 [00:09:44]current date 1730419787 [00:09:44]FM_GetShiftState [00:09:44]SAM_PROTO_GetShiftState [00:09:44]wFMCommunicate request_size=4 [00:09:44]MH_SAM_APDU [00:09:44]CAPDU: 80 13 01 00 [00:09:44]Write to MH i2c: E2 08 00 87 34 80 13 01 00 00 00 00 00 38 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:44]Read from MH i2c: E2 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 0E 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 0E 00 87 34 00 09 00 01 89 19 24 67 00 00 00 00 90 00 71 [00:09:44]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:09:44]wFMCommunicate OK [00:09:44]SAM_PROTO_GetShiftState done [00:09:44]FM_GetShiftState done [00:09:44]opened in 1730419081 [00:09:44]opened+sec_in_day 1730505481 [00:09:44]quantity*price = 20500 [00:09:44]sum+1 = 20501 [00:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 3 01.11.2024 00:09 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139822 ФПД: 187253710829982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T000947&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139822&fm=187253710829982&tin=02508201610067®Number=0000000000091631&sum=20500 0 [00:09:45]StoreToDocumentArchive [00:09:45]shift 558 fd 139822 [00:09:45]save to /storage/0558/doc_00139822 [00:09:45]save last doc name /storage/0558/doc_00139822 to /storage/kkm_last_doc_name [00:09:45]save OK [00:09:45]Clear old archive folders... [00:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=284 [00:09:45]tlvbuf is 00AFCDA0 [00:09:45]SAM_PROTO_ClearQueue [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 09 00 00 [00:09:45]Write to MH i2c: E2 08 00 94 34 80 09 00 00 00 00 00 00 3A [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 94 34 00 90 00 3C [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]SAM_PROTO_ClearQueue done [00:09:45]KKMCreateOFDPacket [00:09:45]OFDProtocolAddRootSTLVToBuf [00:09:45]FM_MakeSignedData [00:09:45]FM_MakeSignedData [00:09:45]SAM_PROTO_SignData [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 01 02 [00:09:45]Write to MH i2c: E2 08 00 95 34 80 0D 01 02 00 00 00 00 42 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 95 34 00 90 00 3D [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=255 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 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 03 00 00 00 F4 03 04 00 4B 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [00:09:45]Write to MH i2c: E2 02 01 96 34 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 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 03 00 00 00 F4 03 04 00 4B 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 51 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 96 34 00 90 00 3E [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=43 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2E 22 02 00 35 04 06 00 AA 4E 66 EA B9 9E [00:09:45]Write to MH i2c: E2 2E 00 97 34 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2E 22 02 00 35 04 06 00 AA 4E 66 EA B9 9E 00 00 26 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 97 34 00 90 00 3F [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 03 02 [00:09:45]Write to MH i2c: E2 08 00 98 34 80 0D 03 02 00 00 00 00 47 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 98 34 00 11 DD 5E B3 41 87 7C 37 90 00 C2 [00:09:45]RAPDU: 11 DD 5E B3 41 87 7C 37 90 00 [00:09:45]wFMCommunicate OK [00:09:45]SAM_PROTO_SignData done [00:09:45]FM_MakeSignedData done [00:09:45]CreateOFDProtocolMessage [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 11 00 00 [00:09:45]Write to MH i2c: E2 08 00 99 34 80 11 00 00 00 00 00 00 47 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 17 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 17 00 99 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A2 [00:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:09:45]wFMCommunicate OK [00:09:45]CreateOFDProtocolMessage done [00:09:45]OFDSenderStorePacket 139822 [00:09:45]StoreOFDPacket docnum=139822 [00:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 42 13 28 01 3C 29 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 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 03 00 00 00 F4 03 04 00 4B 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2E 22 02 00 35 04 06 00 AA 4E 66 EA B9 9E 11 DD 5E B3 41 87 7C 37 [00:09:45]CheckFolder [00:09:45]dirname=/storage/ofd_packets [00:09:45]CheckFolder done [00:09:45]ProducePacketName [00:09:45]name=ofd_packets/00139822 [00:09:45]NVStorageSaveData ofd_packets/00139822 [00:09:45]File name is /storage/ofd_packets/00139822 [00:09:45]Write 334 bytes [00:09:45]NVStorageSaveData done [00:09:45]OFDSenderStorePacket done [00:09:45]KKMCreateOFDPacket done [00:09:45]NVStorageSaveData kkm_last_timestamp [00:09:45]File name is /storage/kkm_last_timestamp [00:09:45]Write 4 bytes [00:09:45]NVStorageSaveData done [00:09:45]ExternCall_PrintAddStr [00:09:45]wPrintStart [00:09:45]Write to MH i2c: 01 00 00 9A 34 CE [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 07 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 07 00 9A 34 00 00 00 00 00 FF 0F E3 [00:09:45]RasterBufferAndPrint [00:09:45]line Счет N : (3)335650 [00:09:45]line ИНН: 02508201610067 [00:09:45]line Контрольно-Кассовый Чек [00:09:45]line ПРОДАЖА [00:09:45]line Товар: 4602441000081 [00:09:45]line Напитк Тархун 1л стекло [00:09:45]line 1.000 * 205.00 [00:09:45]line = 205.00 [00:09:45]line НДС 12% НСП 1% [00:09:45]line > о реализуемом товаре [00:09:45]line ИТОГО: 205.00 [00:09:45]line НСП 1% : 1.81 [00:09:45]line НДС 12% : 21.77 [00:09:45]line Наличными: 205.00 [00:09:45]line Безнал.: 0.00 [00:09:45]line Место: АЗС № 101 "Партнер Нефть" [00:09:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:09:45]line СНО: Общий режим [00:09:45]line Чек 3 01.11.2024 00:09 [00:09:45]line Смена: 558 ФФД: 1.0 [00:09:45]line ЗНМ: 0300000081 [00:09:45]line РНМ: 0000000000091631 [00:09:45]line Версия ККМ: 001 [00:09:45]line ФМ: 0000000000874669 [00:09:45]line ФД: 139822 [00:09:45]line ФПД: 187253710829982 [00:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T000947&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139822&fm=187253710829982&tin=02508201610067®Number=0000000000091631&sum=20500 [00:09:46]line 0 [00:09:46]OFD Sender: Processing packet 139822 [packets to send 34, broken 33] [00:09:46]ProducePacketName [00:09:46]name=ofd_packets/00139822 [00:09:46]OFD Sender: To server: pG, [00:09:46]CommunicateWithHost lk.salyk.kg:30040 [00:09:46]ConnectInit lk.salyk.kg [00:09:46]written 0, free lines is 4095 [00:09:46]Connected sock=10 [00:09: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 30 01 00 00 42 13 28 01 3C 29 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 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 03 00 00 00 F4 03 04 00 4B 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2E 22 02 00 35 04 06 00 AA 4E 66 EA B9 9E 11 DD 5E B3 41 87 7C 37 [00:09: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 4A 30 47 00 63 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 2E 22 02 00 F4 03 04 00 F7 C7 23 67 B6 04 01 00 00 02 5A 14 8F 2C 99 A2 2B [00:09:46]CommunicateWithHost err = 0 [00:09:46]CheckOFDResponse [00:09:46]1017 (14) - 77093643461234 [00:09:46]1041 (16) - 0000000000874669 [00:09:46]1040 (4) - 139822 [00:09:46]1012 (4) - 31.10.2024 18:09 [00:09:46]1206 (1) - 0 [00:09:46]OFD Sender: Remove packet 139822 [00:09:46]ProducePacketName [00:09:46]name=ofd_packets/00139822 [00:09:46]NVStorageDeleteData [00:09:46]Write to MH i2c: 01 00 00 C2 34 F6 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 C2 34 00 00 00 00 00 0A 0D 14 [00:09:46]RasterBufferAndPrint [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]written 0, free lines is 3344 [00:09:46]MH_Cut [00:09:46]Write to MH i2c: D1 01 00 C9 34 01 CF [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 01 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 01 00 C9 34 00 CE [00:09:46]Write to MH i2c: 01 00 00 CA 34 FE [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]OFD Sender: No OFD packet to send [00:09:47]*** Cut start [00:09:47]*** Partial cut [00:09:47]*** CUTSNS_PIN = 1 [00:09:47]*** CUTSNS_PIN = 0 [00:09:47]*** Brake cut motor [00:09:47]Read from MH i2c: 01 [00:09:47]MH_I2C_Read... [00:09:47]*** Stop cut motor [00:09:47]*** Cut end [00:09:47]Read from MH i2c: 01 07 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: 01 07 00 CA 34 00 00 00 00 00 FF 0F 13 [00:09:47]process_action close_receipt done [00:09:47]requested_data is exist [00:09:47]produce_requested_data [00:09:47]requested_item fm.sn is exist - process it [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 11 00 00 [00:09:47]Write to MH i2c: E2 08 00 CB 34 80 11 00 00 00 00 00 00 79 [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 17 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 17 00 CB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D4 [00:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:09:47]wFMCommunicate OK [00:09:47]requested_item fd.num is exist - process it [00:09:47]SAM_PROTO_GetFieldsCounters [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 13 00 00 [00:09:47]Write to MH i2c: E2 08 00 CC 34 80 13 00 00 00 00 00 00 7C [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 62 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 62 00 CC 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [00:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:47]wFMCommunicate OK [00:09:47]SAM_PROTO_GetFieldsCounters done [00:09:47]requested_item shift.num is exist - process it [00:09:47]requested_item shift.opened is exist - process it [00:09:47]req_shift_opened [00:09:47]FM_GetShiftState [00:09:47]SAM_PROTO_GetShiftState [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 13 01 00 [00:09:47]Write to MH i2c: E2 08 00 CD 34 80 13 01 00 00 00 00 00 7E [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:48]Read from MH i2c: E2 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 0E 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 0E 00 CD 34 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B7 [00:09:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:09:48]wFMCommunicate OK [00:09:48]SAM_PROTO_GetShiftState done [00:09:48]FM_GetShiftState done [00:09:48]req_shift_opened done [00:09:48]requested_item shift.open_date is exist - process it [00:09:48]req_shift_open_date [00:09:48]req_shift_open_date done [00:09:48]produce_requested_data done [00:09:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139822,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:09:48]process_action_free close_receipt [00:09:48]json_value_free [00:09:48]json_value_free done [00:09:48]process_json_proto returns [00:09:48]Send response to host [00:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139822,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:09:48]free response buf [00:09:48]execute_script done [00:09:48]execute_script returns [00:09:48]free content buf [00:09:48]Sock 7.Close socket [00:09:48]Sock 7.Thread stoped [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:53]accept exits with 9 [00:11:53]New connection [00:11:53]New thread 3066510692 created [00:11:53]Thread 3066654052 joined [00:11:53]Waiting for new connection... [00:11:53] Sock 9.Parse request [00:11:53]Sock 9.Check first char [00:11:53]Sock 9.First char is OK [00:11:53]request: POST /json_proto HTTP/1.0 [00:11:53]Method: POST [00:11:53]URL: /json_proto [00:11:53]Method is POST - this is cgi request [00:11:53]url: /json_proto [00:11:53]query_string will be loaded in cgi processing [00:11:53]execute_cgi json_proto POST (null) [00:11:53]execute_cgi path=json_proto method=POST [00:11:53]POST find Content-Length [00:11:53]Host: 172.17.50.196:8080 [00:11:53]Content-Length: 885 [00:11:53]Content-Type: application/json [00:11:53] [00:11:53]POST finish read [00:11:53]Found Content-Length = 885 [00:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335651", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 2.000, "sum" : 158.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 476.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:53]execute_script... [00:11: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)335651", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 2.000, "sum" : 158.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 476.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:53]POST & json_proto [00:11:53]process_json_proto [00:11:53]json parsed OK: [00:11:53]protocol is kg_v1.0 [00:11:53]action value=close_receipt [00:11:53]process_action close_receipt [00:11:53]cmd_close_receipt [00:11:53]MH_GetDate [00:11:53]Write to MH i2c: F0 00 00 CE 34 F1 [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: F0 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: F0 09 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: F0 09 00 CE 34 00 CC 1C 24 67 72 0D 1C 67 6F [00:11:53]GetLastDocTimeStamp 1730419787 [00:11:53]current date 1730419916 [00:11:53]FM_GetShiftState [00:11:53]SAM_PROTO_GetShiftState [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 13 01 00 [00:11:53]Write to MH i2c: E2 08 00 CF 34 80 13 01 00 00 00 00 00 80 [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 0E 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 0E 00 CF 34 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B9 [00:11:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:11:53]wFMCommunicate OK [00:11:53]SAM_PROTO_GetShiftState done [00:11:53]FM_GetShiftState done [00:11:53]opened in 1730419081 [00:11:53]opened+sec_in_day 1730505481 [00:11:53]quantity*price = 15800 [00:11:53]sum+1 = 15801 [00:11:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 2.000 * 159.00 = 318.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 476.00 НСП 1% : 4.21 НДС 12% : 50.55 Наличными: 476.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 4 01.11.2024 00:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139823 ФПД: 205099760437856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001156&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139823&fm=205099760437856&tin=02508201610067®Number=0000000000091631&sum=47600 0 [00:11:54]StoreToDocumentArchive [00:11:54]shift 558 fd 139823 [00:11:54]save to /storage/0558/doc_00139823 [00:11:54]save last doc name /storage/0558/doc_00139823 to /storage/kkm_last_doc_name [00:11:54]save OK [00:11:54]Clear old archive folders... [00:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=380 [00:11:54]tlvbuf is B6E91B90 [00:11:54]SAM_PROTO_ClearQueue [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 09 00 00 [00:11:54]Write to MH i2c: E2 08 00 DC 34 80 09 00 00 00 00 00 00 82 [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 DC 34 00 90 00 84 [00:11:54]RAPDU: 90 00 [00:11:54]wFMCommunicate OK [00:11:54]SAM_PROTO_ClearQueue done [00:11:54]KKMCreateOFDPacket [00:11:54]OFDProtocolAddRootSTLVToBuf [00:11:54]FM_MakeSignedData [00:11:54]FM_MakeSignedData [00:11:54]SAM_PROTO_SignData [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 0D 01 02 [00:11:54]Write to MH i2c: E2 08 00 DD 34 80 0D 01 02 00 00 00 00 8A [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 DD 34 00 90 00 85 [00:11:54]RAPDU: 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=255 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 [00:11:54]Write to MH i2c: E2 02 01 DE 34 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 80 [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 03 00 DE 34 00 90 00 86 [00:11:54]RAPDU: 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=139 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 CC 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2F 22 02 00 35 04 06 00 BA 89 82 5D 4A 60 [00:11:54]Write to MH i2c: E2 8E 00 DF 34 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 CC 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2F 22 02 00 35 04 06 00 BA 89 82 5D 4A 60 00 00 0A [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:55]Read from MH i2c: E2 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 03 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 03 00 DF 34 00 90 00 87 [00:11:55]RAPDU: 90 00 [00:11:55]wFMCommunicate OK [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 0D 03 02 [00:11:55]Write to MH i2c: E2 08 00 E0 34 80 0D 03 02 00 00 00 00 8F [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:55]Read from MH i2c: E2 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 0B 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 0B 00 E0 34 00 4A 9A D7 7D 58 D8 D4 2B 90 00 F7 [00:11:55]RAPDU: 4A 9A D7 7D 58 D8 D4 2B 90 00 [00:11:55]wFMCommunicate OK [00:11:55]SAM_PROTO_SignData done [00:11:55]FM_MakeSignedData done [00:11:55]CreateOFDProtocolMessage [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 11 00 00 [00:11:55]Write to MH i2c: E2 08 00 E1 34 80 11 00 00 00 00 00 00 8F [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:55]Read from MH i2c: E2 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 17 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 17 00 E1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EA [00:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:11:55]wFMCommunicate OK [00:11:55]CreateOFDProtocolMessage done [00:11:55]OFDSenderStorePacket 139823 [00:11:55]StoreOFDPacket docnum=139823 [00:11: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 90 01 00 00 04 00 88 01 7E 98 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 CC 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2F 22 02 00 35 04 06 00 BA 89 82 5D 4A 60 4A 9A D7 7D 58 D8 D4 2B [00:11:55]CheckFolder [00:11:55]dirname=/storage/ofd_packets [00:11:55]CheckFolder done [00:11:55]ProducePacketName [00:11:55]name=ofd_packets/00139823 [00:11:55]NVStorageSaveData ofd_packets/00139823 [00:11:55]File name is /storage/ofd_packets/00139823 [00:11:55]Write 430 bytes [00:11:55]NVStorageSaveData done [00:11:55]OFDSenderStorePacket done [00:11:55]KKMCreateOFDPacket done [00:11:55]NVStorageSaveData kkm_last_timestamp [00:11:55]File name is /storage/kkm_last_timestamp [00:11:55]Write 4 bytes [00:11:55]NVStorageSaveData done [00:11:55]ExternCall_PrintAddStr [00:11:55]wPrintStart [00:11:55]Write to MH i2c: 01 00 00 E2 34 16 [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: 01 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: 01 07 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: 01 07 00 E2 34 00 00 00 00 00 FF 0F 2B [00:11:55]RasterBufferAndPrint [00:11:55]line Счет N : (3)335651 [00:11:55]line ИНН: 02508201610067 [00:11:55]line Контрольно-Кассовый Чек [00:11:55]line ПРОДАЖА [00:11:55]line Товар: 4700000310043 [00:11:55]line Вода Жалалабат 27 1л [00:11:55]line 2.000 * 79.00 [00:11:55]line = 158.00 [00:11:55]line НДС 12% НСП 1% [00:11:55]line > о реализуемом товаре [00:11:55]line Товар: 4640030091645 [00:11:55]line Сигареты ESSE Exchange M [00:11:55]line 2.000 * 159.00 [00:11:55]line = 318.00 [00:11:55]line НДС 12% НСП 1% [00:11:55]line > о реализуемом товаре [00:11:55]line ИТОГО: 476.00 [00:11:55]line НСП 1% : 4.21 [00:11:55]line НДС 12% : 50.55 [00:11:55]line Наличными: 476.00 [00:11:55]line Безнал.: 0.00 [00:11:55]line Место: АЗС № 101 "Партнер Нефть" [00:11:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:11:55]line СНО: Общий режим [00:11:55]line Чек 4 01.11.2024 00:11 [00:11:55]line Смена: 558 ФФД: 1.0 [00:11:55]line ЗНМ: 0300000081 [00:11:55]line РНМ: 0000000000091631 [00:11:55]line Версия ККМ: 001 [00:11:55]line ФМ: 0000000000874669 [00:11:55]line ФД: 139823 [00:11:55]line ФПД: 205099760437856 [00:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001156&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139823&fm=205099760437856&tin=02508201610067®Number=0000000000091631&sum=47600 [00:11:55]line 0 [00:11:55]OFD Sender: Processing packet 139823 [packets to send 34, broken 33] [00:11:55]ProducePacketName [00:11:55]name=ofd_packets/00139823 [00:11:55]OFD Sender: To server: pG, [00:11:55]CommunicateWithHost lk.salyk.kg:30040 [00:11:55]ConnectInit lk.salyk.kg [00:11:55]written 0, free lines is 4095 [00:11:55]Connected sock=10 [00: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 90 01 00 00 04 00 88 01 7E 98 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 13 00 00 00 00 07 04 06 00 F0 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 CC 1C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2F 22 02 00 35 04 06 00 BA 89 82 5D 4A 60 4A 9A D7 7D 58 D8 D4 2B [00: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 47 D5 47 00 56 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 2F 22 02 00 F4 03 04 00 79 C8 23 67 B6 04 01 00 00 CD C1 C3 D6 A8 B1 0D 0D [00:11:55]CommunicateWithHost err = 0 [00:11:55]CheckOFDResponse [00:11:55]1017 (14) - 77093643461234 [00:11:55]1041 (16) - 0000000000874669 [00:11:55]1040 (4) - 139823 [00:11:55]1012 (4) - 31.10.2024 18:12 [00:11:55]1206 (1) - 0 [00:11:55]OFD Sender: Remove packet 139823 [00:11:55]ProducePacketName [00:11:55]name=ofd_packets/00139823 [00:11:55]NVStorageDeleteData [00:11:56]Write to MH i2c: 01 00 00 10 35 45 [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: 01 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: 01 07 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: 01 07 00 10 35 00 00 00 00 00 C0 0C 18 [00:11:56]RasterBufferAndPrint [00:11:56]line [00:11:56]line [00:11:56]line [00:11:56]line [00:11:56]line [00:11:56]written 0, free lines is 3270 [00:11:56]MH_Cut [00:11:56]Write to MH i2c: D1 01 00 17 35 01 1E [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: D1 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: D1 01 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: D1 01 00 17 35 00 1D [00:11:56]Write to MH i2c: 01 00 00 18 35 4D [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]OFD Sender: No OFD packet to send [00:11:56]*** Cut start [00:11:56]*** Partial cut [00:11:56]*** CUTSNS_PIN = 1 [00:11:56]*** CUTSNS_PIN = 0 [00:11:57]*** Brake cut motor [00:11:57]Read from MH i2c: 01 [00:11:57]MH_I2C_Read... [00:11:57]*** Stop cut motor [00:11:57]*** Cut end [00:11:57]Read from MH i2c: 01 07 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: 01 07 00 18 35 00 00 00 00 00 FF 0F 62 [00:11:57]process_action close_receipt done [00:11:57]requested_data is exist [00:11:57]produce_requested_data [00:11:57]requested_item fm.sn is exist - process it [00:11:57]wFMCommunicate request_size=4 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 11 00 00 [00:11:57]Write to MH i2c: E2 08 00 19 35 80 11 00 00 00 00 00 00 C8 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 17 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 17 00 19 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 23 [00:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:11:57]wFMCommunicate OK [00:11:57]requested_item fd.num is exist - process it [00:11:57]SAM_PROTO_GetFieldsCounters [00:11:57]wFMCommunicate request_size=4 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 13 00 00 [00:11:57]Write to MH i2c: E2 08 00 1A 35 80 13 00 00 00 00 00 00 CB [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 62 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 62 00 1A 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [00:11: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 2F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:57]wFMCommunicate OK [00:11:57]SAM_PROTO_GetFieldsCounters done [00:11:57]requested_item shift.num is exist - process it [00:11:57]requested_item shift.opened is exist - process it [00:11:57]req_shift_opened [00:11:57]FM_GetShiftState [00:11:57]SAM_PROTO_GetShiftState [00:11:57]wFMCommunicate request_size=4 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 13 01 00 [00:11:57]Write to MH i2c: E2 08 00 1B 35 80 13 01 00 00 00 00 00 CD [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:57]Read from MH i2c: E2 0E 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 0E 00 1B 35 00 09 00 01 89 19 24 67 00 00 00 00 90 00 06 [00:11:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:11:57]wFMCommunicate OK [00:11:57]SAM_PROTO_GetShiftState done [00:11:57]FM_GetShiftState done [00:11:57]req_shift_opened done [00:11:57]requested_item shift.open_date is exist - process it [00:11:57]req_shift_open_date [00:11:57]req_shift_open_date done [00:11:57]produce_requested_data done [00:11:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139823,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:11:57]process_action_free close_receipt [00:11:57]json_value_free [00:11:57]json_value_free done [00:11:57]process_json_proto returns [00:11:57]Send response to host [00:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139823,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:11:57]free response buf [00:11:57]execute_script done [00:11:57]execute_script returns [00:11:57]free content buf [00:11:57]Sock 9.Close socket [00:11:57]Sock 9.Thread stoped [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:12:58]accept exits with 7 [00:12:58]New connection [00:12:58]New thread 3066654052 created [00:12:58]Thread 3066510692 joined [00:12:58]Waiting for new connection... [00:12:58] Sock 7.Parse request [00:12:58]Sock 7.Check first char [00:12:58]Sock 7.First char is OK [00:12:58]request: POST /json_proto HTTP/1.0 [00:12:58]Method: POST [00:12:58]URL: /json_proto [00:12:58]Method is POST - this is cgi request [00:12:58]url: /json_proto [00:12:58]query_string will be loaded in cgi processing [00:12:58]execute_cgi json_proto POST (null) [00:12:58]execute_cgi path=json_proto method=POST [00:12:58]POST find Content-Length [00:12:58]Host: 172.17.50.196:8080 [00:12:58]Content-Length: 1218 [00:12:58]Content-Type: application/json [00:12:58] [00:12:58]POST finish read [00:12:58]Found Content-Length = 1218 [00:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335652", "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": "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 197.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:58]execute_script... [00:12: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)335652", "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": "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 197.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:58]POST & json_proto [00:12:58]process_json_proto [00:12:58]json parsed OK: [00:12:58]protocol is kg_v1.0 [00:12:58]action value=close_receipt [00:12:58]process_action close_receipt [00:12:58]cmd_close_receipt [00:12:58]MH_GetDate [00:12:58]Write to MH i2c: F0 00 00 1C 35 40 [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: F0 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: F0 09 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: F0 09 00 1C 35 00 0D 1D 24 67 72 0D 1C 67 00 [00:12:58]GetLastDocTimeStamp 1730419916 [00:12:58]current date 1730419981 [00:12:58]FM_GetShiftState [00:12:58]SAM_PROTO_GetShiftState [00:12:58]wFMCommunicate request_size=4 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 13 01 00 [00:12:58]Write to MH i2c: E2 08 00 1D 35 80 13 01 00 00 00 00 00 CF [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 0E 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 0E 00 1D 35 00 09 00 01 89 19 24 67 00 00 00 00 90 00 08 [00:12:58]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:12:58]wFMCommunicate OK [00:12:58]SAM_PROTO_GetShiftState done [00:12:58]FM_GetShiftState done [00:12:58]opened in 1730419081 [00:12:58]opened+sec_in_day 1730505481 [00:12:58]quantity*price = 4900 [00:12:58]sum+1 = 4901 [00:12:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159381178 Шок Батончик Баунти Трио 82,5г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 197.00 НСП 1% : 1.74 НДС 12% : 20.91 Наличными: 197.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 5 01.11.2024 00:13 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139824 ФПД: 207869908986987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001301&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139824&fm=207869908986987&tin=02508201610067®Number=0000000000091631&sum=19700 0 [00:12:59]StoreToDocumentArchive [00:12:59]shift 558 fd 139824 [00:12:59]save to /storage/0558/doc_00139824 [00:12:59]save last doc name /storage/0558/doc_00139824 to /storage/kkm_last_doc_name [00:12:59]save OK [00:12:59]Clear old archive folders... [00:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=516 [00:12:59]tlvbuf is 00AE5F40 [00:12:59]SAM_PROTO_ClearQueue [00:12:59]wFMCommunicate request_size=4 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 09 00 00 [00:12:59]Write to MH i2c: E2 08 00 2A 35 80 09 00 00 00 00 00 00 D1 [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [00:12:59]RAPDU: 90 00 [00:12:59]wFMCommunicate OK [00:12:59]SAM_PROTO_ClearQueue done [00:12:59]KKMCreateOFDPacket [00:12:59]OFDProtocolAddRootSTLVToBuf [00:12:59]FM_MakeSignedData [00:12:59]FM_MakeSignedData [00:12:59]SAM_PROTO_SignData [00:12:59]wFMCommunicate request_size=4 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 0D 01 02 [00:12:59]Write to MH i2c: E2 08 00 2B 35 80 0D 01 02 00 00 00 00 D9 [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 2B 35 00 90 00 D4 [00:12:59]RAPDU: 90 00 [00:12:59]wFMCommunicate OK [00:12:59]wFMCommunicate request_size=255 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 0D 02 02 FA 03 00 04 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 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 6D 00 8A 04 0D 00 [00:13:00]Write to MH i2c: E2 02 01 2C 35 80 0D 02 02 FA 00 03 00 04 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 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 6D 00 8A 04 0D 00 00 00 1B [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 03 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 03 00 2C 35 00 90 00 D5 [00:13:00]RAPDU: 90 00 [00:13:00]wFMCommunicate OK [00:13:00]wFMCommunicate request_size=255 [00:13:00]MH_SAM_APDU [00:13:00]CAPDU: 80 0D 02 02 FA 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 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0D 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 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:13:00]Write to MH i2c: E2 02 01 2D 35 80 0D 02 02 FA 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 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0D 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 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 EB [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 03 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 03 00 2D 35 00 90 00 D6 [00:13:00]RAPDU: 90 00 [00:13:00]wFMCommunicate OK [00:13:00]wFMCommunicate request_size=25 [00:13:00]MH_SAM_APDU [00:13:00]CAPDU: 80 0D 02 02 14 36 39 10 04 04 00 30 22 02 00 35 04 06 00 BD 0E 7C 15 AC 6B [00:13:00]Write to MH i2c: E2 1C 00 2E 35 80 0D 02 02 14 00 36 39 10 04 04 00 30 22 02 00 35 04 06 00 BD 0E 7C 15 AC 6B 00 00 92 [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 03 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 03 00 2E 35 00 90 00 D7 [00:13:00]RAPDU: 90 00 [00:13:00]wFMCommunicate OK [00:13:00]wFMCommunicate request_size=4 [00:13:00]MH_SAM_APDU [00:13:00]CAPDU: 80 0D 03 02 [00:13:00]Write to MH i2c: E2 08 00 2F 35 80 0D 03 02 00 00 00 00 DF [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 0B 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 0B 00 2F 35 00 E3 AE EF FB 5A 26 65 31 90 00 71 [00:13:00]RAPDU: E3 AE EF FB 5A 26 65 31 90 00 [00:13:00]wFMCommunicate OK [00:13:00]SAM_PROTO_SignData done [00:13:00]FM_MakeSignedData done [00:13:00]CreateOFDProtocolMessage [00:13:00]wFMCommunicate request_size=4 [00:13:00]MH_SAM_APDU [00:13:00]CAPDU: 80 11 00 00 [00:13:00]Write to MH i2c: E2 08 00 30 35 80 11 00 00 00 00 00 00 DF [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 17 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 17 00 30 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3A [00:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:13:00]wFMCommunicate OK [00:13:00]CreateOFDProtocolMessage done [00:13:00]OFDSenderStorePacket 139824 [00:13:00]StoreOFDPacket docnum=139824 [00:13: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 18 02 00 00 E5 56 10 02 FB BC 5A 03 01 00 03 00 04 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 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 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 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0D 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 22 02 00 35 04 06 00 BD 0E 7C 15 AC 6B E3 AE EF FB 5A 26 65 31 [00:13:00]CheckFolder [00:13:00]dirname=/storage/ofd_packets [00:13:00]CheckFolder done [00:13:00]ProducePacketName [00:13:00]name=ofd_packets/00139824 [00:13:00]NVStorageSaveData ofd_packets/00139824 [00:13:00]File name is /storage/ofd_packets/00139824 [00:13:00]Write 566 bytes [00:13:00]NVStorageSaveData done [00:13:00]OFDSenderStorePacket done [00:13:00]KKMCreateOFDPacket done [00:13:00]NVStorageSaveData kkm_last_timestamp [00:13:00]File name is /storage/kkm_last_timestamp [00:13:00]Write 4 bytes [00:13:00]NVStorageSaveData done [00:13:00]ExternCall_PrintAddStr [00:13:00]wPrintStart [00:13:00]Write to MH i2c: 01 00 00 31 35 66 [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: 01 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: 01 07 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: 01 07 00 31 35 00 00 00 00 00 FF 0F 7B [00:13:00]RasterBufferAndPrint [00:13:00]line Счет N : (3)335652 [00:13:00]line ИНН: 02508201610067 [00:13:00]line Контрольно-Кассовый Чек [00:13:00]line ПРОДАЖА [00:13:00]line Товар: 46214645 [00:13:00]line Р/ж mentos pure white клуб 16/15,5г [00:13:00]line 1.000 * 49.00 [00:13:00]line = 49.00 [00:13:00]line НДС 12% НСП 1% [00:13:00]line > о реализуемом товаре [00:13:00]line Товар: 5000159381178 [00:13:00]line Шок Батончик Баунти Трио 82,5г [00:13:00]line 1.000 * 89.00 [00:13:00]line = 89.00 [00:13:00]line НДС 12% НСП 1% [00:13:00]line > о реализуемом товаре [00:13:00]line Товар: 4011100977624 [00:13:00]line Шок Батончик Баунти 55г [00:13:00]line 1.000 * 59.00 [00:13:00]line = 59.00 [00:13:00]line НДС 12% НСП 1% [00:13:00]line > о реализуемом товаре [00:13:00]line ИТОГО: 197.00 [00:13:00]line НСП 1% : 1.74 [00:13:00]line НДС 12% : 20.91 [00:13:00]line Наличными: 197.00 [00:13:00]line Безнал.: 0.00 [00:13:00]line Место: АЗС № 101 "Партнер Нефть" [00:13:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:13:00]line СНО: Общий режим [00:13:00]line Чек 5 01.11.2024 00:13 [00:13:00]line Смена: 558 ФФД: 1.0 [00:13:00]line ЗНМ: 0300000081 [00:13:00]line РНМ: 0000000000091631 [00:13:00]line Версия ККМ: 001 [00:13:00]line ФМ: 0000000000874669 [00:13:00]line ФД: 139824 [00:13:00]line ФПД: 207869908986987 [00:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001301&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139824&fm=207869908986987&tin=02508201610067®Number=0000000000091631&sum=19700 [00:13:01]line 0 [00:13:01]OFD Sender: Processing packet 139824 [packets to send 34, broken 33] [00:13:01]ProducePacketName [00:13:01]name=ofd_packets/00139824 [00:13:01]OFD Sender: To server: pG, [00:13:01]CommunicateWithHost lk.salyk.kg:30040 [00:13:01]ConnectInit lk.salyk.kg [00:13:01]written 0, free lines is 4095 [00:13:01]Connected sock=10 [00: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 18 02 00 00 E5 56 10 02 FB BC 5A 03 01 00 03 00 04 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 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 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 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 0D 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 22 02 00 35 04 06 00 BD 0E 7C 15 AC 6B E3 AE EF FB 5A 26 65 31 [00: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 FF 1A 47 00 05 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 30 22 02 00 F4 03 04 00 BA C8 23 67 B6 04 01 00 00 AA 7B 29 F7 6B AF 13 7B [00:13:01]CommunicateWithHost err = 0 [00:13:01]CheckOFDResponse [00:13:01]1017 (14) - 77093643461234 [00:13:01]1041 (16) - 0000000000874669 [00:13:01]1040 (4) - 139824 [00:13:01]1012 (4) - 31.10.2024 18:13 [00:13:01]1206 (1) - 0 [00:13:01]OFD Sender: Remove packet 139824 [00:13:01]ProducePacketName [00:13:01]name=ofd_packets/00139824 [00:13:01]NVStorageDeleteData [00:13:01]Write to MH i2c: 01 00 00 67 35 9C [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: 01 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: 01 07 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: 01 07 00 67 35 00 00 00 00 00 47 0C F6 [00:13:01]RasterBufferAndPrint [00:13:01]line [00:13:01]line [00:13:01]line [00:13:01]line [00:13:01]line [00:13:01]written 0, free lines is 3150 [00:13:01]MH_Cut [00:13:01]Write to MH i2c: D1 01 00 6E 35 01 75 [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: D1 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: D1 01 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: D1 01 00 6E 35 00 74 [00:13:01]Write to MH i2c: 01 00 00 6F 35 A4 [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]OFD Sender: No OFD packet to send [00:13:02]*** Cut start [00:13:02]*** Partial cut [00:13:02]*** CUTSNS_PIN = 1 [00:13:02]*** CUTSNS_PIN = 0 [00:13:02]*** Brake cut motor [00:13:03]Read from MH i2c: 01 [00:13:03]MH_I2C_Read... [00:13:03]*** Stop cut motor [00:13:03]*** Cut end [00:13:03]Read from MH i2c: 01 07 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: 01 07 00 6F 35 00 00 00 00 00 FF 0F B9 [00:13:03]process_action close_receipt done [00:13:03]requested_data is exist [00:13:03]produce_requested_data [00:13:03]requested_item fm.sn is exist - process it [00:13:03]wFMCommunicate request_size=4 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 11 00 00 [00:13:03]Write to MH i2c: E2 08 00 70 35 80 11 00 00 00 00 00 00 1F [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 17 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 17 00 70 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7A [00:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:13:03]wFMCommunicate OK [00:13:03]requested_item fd.num is exist - process it [00:13:03]SAM_PROTO_GetFieldsCounters [00:13:03]wFMCommunicate request_size=4 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 13 00 00 [00:13:03]Write to MH i2c: E2 08 00 71 35 80 13 00 00 00 00 00 00 22 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 62 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 62 00 71 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 30 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00: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 30 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:03]wFMCommunicate OK [00:13:03]SAM_PROTO_GetFieldsCounters done [00:13:03]requested_item shift.num is exist - process it [00:13:03]requested_item shift.opened is exist - process it [00:13:03]req_shift_opened [00:13:03]FM_GetShiftState [00:13:03]SAM_PROTO_GetShiftState [00:13:03]wFMCommunicate request_size=4 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 13 01 00 [00:13:03]Write to MH i2c: E2 08 00 72 35 80 13 01 00 00 00 00 00 24 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 0E 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 0E 00 72 35 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5D [00:13:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:13:03]wFMCommunicate OK [00:13:03]SAM_PROTO_GetShiftState done [00:13:03]FM_GetShiftState done [00:13:03]req_shift_opened done [00:13:03]requested_item shift.open_date is exist - process it [00:13:03]req_shift_open_date [00:13:03]req_shift_open_date done [00:13:03]produce_requested_data done [00:13:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139824,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:13:03]process_action_free close_receipt [00:13:03]json_value_free [00:13:03]json_value_free done [00:13:03]process_json_proto returns [00:13:03]Send response to host [00:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139824,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:13:03]free response buf [00:13:03]execute_script done [00:13:03]execute_script returns [00:13:03]free content buf [00:13:03]Sock 7.Close socket [00:13:03]Sock 7.Thread stoped [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:54]accept exits with 9 [00:14:54]New connection [00:14:54]New thread 3066510692 created [00:14:54]Thread 3066654052 joined [00:14:54]Waiting for new connection... [00:14:54] Sock 9.Parse request [00:14:54]Sock 9.Check first char [00:14:54]Sock 9.First char is OK [00:14:54]request: POST /json_proto HTTP/1.0 [00:14:54]Method: POST [00:14:54]URL: /json_proto [00:14:54]Method is POST - this is cgi request [00:14:54]url: /json_proto [00:14:54]query_string will be loaded in cgi processing [00:14:54]execute_cgi json_proto POST (null) [00:14:54]execute_cgi path=json_proto method=POST [00:14:54]POST find Content-Length [00:14:54]Host: 172.17.50.196:8080 [00:14:54]Content-Length: 737 [00:14:54]Content-Type: application/json [00:14:54] [00:14:54]POST finish read [00:14:54]Found Content-Length = 737 [00:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335653", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "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" ] } } [00:14:54]execute_script... [00:14:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335653", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "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" ] } } [00:14:54]POST & json_proto [00:14:54]process_json_proto [00:14:54]json parsed OK: [00:14:54]protocol is kg_v1.0 [00:14:54]action value=close_receipt [00:14:54]process_action close_receipt [00:14:54]cmd_close_receipt [00:14:54]MH_GetDate [00:14:54]Write to MH i2c: F0 00 00 73 35 97 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: F0 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: F0 09 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: F0 09 00 73 35 00 81 1D 24 67 72 0D 1C 67 CB [00:14:54]GetLastDocTimeStamp 1730419981 [00:14:54]current date 1730420097 [00:14:54]FM_GetShiftState [00:14:54]SAM_PROTO_GetShiftState [00:14:54]wFMCommunicate request_size=4 [00:14:54]MH_SAM_APDU [00:14:54]CAPDU: 80 13 01 00 [00:14:54]Write to MH i2c: E2 08 00 74 35 80 13 01 00 00 00 00 00 26 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 0E 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 0E 00 74 35 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5F [00:14:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:14:54]wFMCommunicate OK [00:14:54]SAM_PROTO_GetShiftState done [00:14:54]FM_GetShiftState done [00:14:54]opened in 1730419081 [00:14:54]opened+sec_in_day 1730505481 [00:14:54]quantity*price = 9500 [00:14:54]sum+1 = 9501 [00:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 6 01.11.2024 00:14 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139825 ФПД: 278363948751528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001457&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139825&fm=278363948751528&tin=02508201610067®Number=0000000000091631&sum=9500 0 [00:14:55]StoreToDocumentArchive [00:14:55]shift 558 fd 139825 [00:14:55]save to /storage/0558/doc_00139825 [00:14:55]save last doc name /storage/0558/doc_00139825 to /storage/kkm_last_doc_name [00:14:55]save OK [00:14:55]Clear old archive folders... [00:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=308 [00:14:55]tlvbuf is 00AFCD40 [00:14:55]SAM_PROTO_ClearQueue [00:14:55]wFMCommunicate request_size=4 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 09 00 00 [00:14:55]Write to MH i2c: E2 08 00 81 35 80 09 00 00 00 00 00 00 28 [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 03 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 03 00 81 35 00 90 00 2A [00:14:55]RAPDU: 90 00 [00:14:55]wFMCommunicate OK [00:14:55]SAM_PROTO_ClearQueue done [00:14:55]KKMCreateOFDPacket [00:14:55]OFDProtocolAddRootSTLVToBuf [00:14:55]FM_MakeSignedData [00:14:55]FM_MakeSignedData [00:14:55]SAM_PROTO_SignData [00:14:55]wFMCommunicate request_size=4 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 0D 01 02 [00:14:55]Write to MH i2c: E2 08 00 82 35 80 0D 01 02 00 00 00 00 30 [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 03 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 03 00 82 35 00 90 00 2B [00:14:55]RAPDU: 90 00 [00:14:55]wFMCommunicate OK [00:14:55]wFMCommunicate request_size=255 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 06 00 00 00 F4 03 04 00 81 1D 24 67 0E 04 04 00 2E 02 00 00 B9 [00:14:55]Write to MH i2c: E2 02 01 83 35 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 06 00 00 00 F4 03 04 00 81 1D 24 67 0E 04 04 00 2E 02 00 00 B9 00 00 D8 [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 03 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 03 00 83 35 00 90 00 2C [00:14:55]RAPDU: 90 00 [00:14:55]wFMCommunicate OK [00:14:55]wFMCommunicate request_size=67 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 31 22 02 00 35 04 06 00 FD 2B A8 48 9A A8 [00:14:55]Write to MH i2c: E2 46 00 84 35 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 31 22 02 00 35 04 06 00 FD 2B A8 48 9A A8 00 00 3D [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:55]Read from MH i2c: E2 03 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 03 00 84 35 00 90 00 2D [00:14:55]RAPDU: 90 00 [00:14:55]wFMCommunicate OK [00:14:55]wFMCommunicate request_size=4 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 0D 03 02 [00:14:55]Write to MH i2c: E2 08 00 85 35 80 0D 03 02 00 00 00 00 35 [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 0B 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 0B 00 85 35 00 F3 FE CD A8 86 F8 A7 8F 90 00 50 [00:14:55]RAPDU: F3 FE CD A8 86 F8 A7 8F 90 00 [00:14:55]wFMCommunicate OK [00:14:55]SAM_PROTO_SignData done [00:14:55]FM_MakeSignedData done [00:14:55]CreateOFDProtocolMessage [00:14:55]wFMCommunicate request_size=4 [00:14:55]MH_SAM_APDU [00:14:55]CAPDU: 80 11 00 00 [00:14:55]Write to MH i2c: E2 08 00 86 35 80 11 00 00 00 00 00 00 35 [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:55]Read from MH i2c: E2 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 17 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: E2 17 00 86 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 90 [00:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:14:55]wFMCommunicate OK [00:14:55]CreateOFDProtocolMessage done [00:14:55]OFDSenderStorePacket 139825 [00:14:55]StoreOFDPacket docnum=139825 [00:14: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 48 01 00 00 9B 1E 40 01 AF 1C 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 06 00 00 00 F4 03 04 00 81 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 31 22 02 00 35 04 06 00 FD 2B A8 48 9A A8 F3 FE CD A8 86 F8 A7 8F [00:14:55]CheckFolder [00:14:55]dirname=/storage/ofd_packets [00:14:55]CheckFolder done [00:14:55]ProducePacketName [00:14:55]name=ofd_packets/00139825 [00:14:55]NVStorageSaveData ofd_packets/00139825 [00:14:55]File name is /storage/ofd_packets/00139825 [00:14:55]Write 358 bytes [00:14:55]NVStorageSaveData done [00:14:55]OFDSenderStorePacket done [00:14:55]KKMCreateOFDPacket done [00:14:55]NVStorageSaveData kkm_last_timestamp [00:14:55]File name is /storage/kkm_last_timestamp [00:14:55]Write 4 bytes [00:14:55]NVStorageSaveData done [00:14:55]ExternCall_PrintAddStr [00:14:55]wPrintStart [00:14:55]Write to MH i2c: 01 00 00 87 35 BC [00:14:55]Write i2c OK [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: 01 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: 01 07 00 [00:14:55]MH_I2C_Read... [00:14:55]Read from MH i2c: 01 07 00 87 35 00 00 00 00 00 FF 0F D1 [00:14:55]RasterBufferAndPrint [00:14:55]line Счет N : (3)335653 [00:14:55]line ИНН: 02508201610067 [00:14:55]line Контрольно-Кассовый Чек [00:14:55]line ПРОДАЖА [00:14:55]line Товар: 4607015232592 [00:14:55]line Вафли Яшкино с вареной сгущенкой 200г [00:14:55]line 1.000 * 95.00 [00:14:55]line = 95.00 [00:14:55]line НДС 12% НСП 1% [00:14:55]line > о реализуемом товаре [00:14:55]line ИТОГО: 95.00 [00:14:55]line НСП 1% : 0.84 [00:14:55]line НДС 12% : 10.09 [00:14:55]line Наличными: 95.00 [00:14:55]line Безнал.: 0.00 [00:14:55]line Место: АЗС № 101 "Партнер Нефть" [00:14:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:14:55]line СНО: Общий режим [00:14:55]line Чек 6 01.11.2024 00:14 [00:14:55]line Смена: 558 ФФД: 1.0 [00:14:55]line ЗНМ: 0300000081 [00:14:55]line РНМ: 0000000000091631 [00:14:55]line Версия ККМ: 001 [00:14:55]line ФМ: 0000000000874669 [00:14:55]line ФД: 139825 [00:14:55]line ФПД: 278363948751528 [00:14:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001457&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139825&fm=278363948751528&tin=02508201610067®Number=0000000000091631&sum=9500 [00:14:55]line 0 [00:14:55]written 0, free lines is 4095 [00:14:55]OFD Sender: Processing packet 139825 [packets to send 34, broken 33] [00:14:55]ProducePacketName [00:14:55]name=ofd_packets/00139825 [00:14:55]OFD Sender: To server: pG, [00:14:55]CommunicateWithHost lk.salyk.kg:30040 [00:14:55]ConnectInit lk.salyk.kg [00:14:56]Connected sock=10 [00:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 48 01 00 00 9B 1E 40 01 AF 1C 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 06 00 00 00 F4 03 04 00 81 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 31 22 02 00 35 04 06 00 FD 2B A8 48 9A A8 F3 FE CD A8 86 F8 A7 8F [00:14: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 91 78 47 00 B2 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 31 22 02 00 F4 03 04 00 2D C9 23 67 B6 04 01 00 00 52 0A 05 F3 CB 5B 35 20 [00:14:56]CommunicateWithHost err = 0 [00:14:56]CheckOFDResponse [00:14:56]1017 (14) - 77093643461234 [00:14:56]1041 (16) - 0000000000874669 [00:14:56]1040 (4) - 139825 [00:14:56]1012 (4) - 31.10.2024 18:15 [00:14:56]1206 (1) - 0 [00:14:56]OFD Sender: Remove packet 139825 [00:14:56]ProducePacketName [00:14:56]name=ofd_packets/00139825 [00:14:56]NVStorageDeleteData [00:14:56]Write to MH i2c: 01 00 00 B0 35 E5 [00:14:56]Write i2c OK [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: 01 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: 01 07 00 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: 01 07 00 B0 35 00 00 00 00 00 F4 0C EC [00:14:56]RasterBufferAndPrint [00:14:56]line [00:14:56]line [00:14:56]line [00:14:56]line [00:14:56]line [00:14:56]written 0, free lines is 3323 [00:14:56]MH_Cut [00:14:56]Write to MH i2c: D1 01 00 B7 35 01 BE [00:14:56]Write i2c OK [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: D1 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: D1 01 00 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: D1 01 00 B7 35 00 BD [00:14:56]Write to MH i2c: 01 00 00 B8 35 ED [00:14:56]Write i2c OK [00:14:56]MH_I2C_Read... [00:14:56]OFD Sender: No OFD packet to send [00:14:57]*** Cut start [00:14:57]*** Partial cut [00:14:57]*** CUTSNS_PIN = 1 [00:14:57]*** CUTSNS_PIN = 0 [00:14:57]*** Brake cut motor [00:14:57]Read from MH i2c: 01 [00:14:57]MH_I2C_Read... [00:14:57]*** Stop cut motor [00:14:57]*** Cut end [00:14:57]Read from MH i2c: 01 07 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: 01 07 00 B8 35 00 00 00 00 00 FF 0F 02 [00:14:57]process_action close_receipt done [00:14:57]requested_data is exist [00:14:57]produce_requested_data [00:14:57]requested_item fm.sn is exist - process it [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 11 00 00 [00:14:57]Write to MH i2c: E2 08 00 B9 35 80 11 00 00 00 00 00 00 68 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 17 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 17 00 B9 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C3 [00:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:14:57]wFMCommunicate OK [00:14:57]requested_item fd.num is exist - process it [00:14:57]SAM_PROTO_GetFieldsCounters [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 13 00 00 [00:14:57]Write to MH i2c: E2 08 00 BA 35 80 13 00 00 00 00 00 00 6B [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 62 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 62 00 BA 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 31 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [00:14: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 31 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_GetFieldsCounters done [00:14:57]requested_item shift.num is exist - process it [00:14:57]requested_item shift.opened is exist - process it [00:14:57]req_shift_opened [00:14:57]FM_GetShiftState [00:14:57]SAM_PROTO_GetShiftState [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 13 01 00 [00:14:57]Write to MH i2c: E2 08 00 BB 35 80 13 01 00 00 00 00 00 6D [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 0E 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 0E 00 BB 35 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A6 [00:14:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_GetShiftState done [00:14:57]FM_GetShiftState done [00:14:57]req_shift_opened done [00:14:57]requested_item shift.open_date is exist - process it [00:14:57]req_shift_open_date [00:14:57]req_shift_open_date done [00:14:57]produce_requested_data done [00:14:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139825,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:14:57]process_action_free close_receipt [00:14:57]json_value_free [00:14:57]json_value_free done [00:14:57]process_json_proto returns [00:14:57]Send response to host [00:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139825,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:14:57]free response buf [00:14:57]execute_script done [00:14:57]execute_script returns [00:14:57]free content buf [00:14:57]Sock 9.Close socket [00:14:57]Sock 9.Thread stoped [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:45]accept exits with 7 [00:15:45]New connection [00:15:45]New thread 3066654052 created [00:15:45]Thread 3066510692 joined [00:15:45]Waiting for new connection... [00:15:45] Sock 7.Parse request [00:15:45]Sock 7.Check first char [00:15:45]Sock 7.First char is OK [00:15:45]request: POST /json_proto HTTP/1.0 [00:15:45]Method: POST [00:15:45]URL: /json_proto [00:15:45]Method is POST - this is cgi request [00:15:45]url: /json_proto [00:15:45]query_string will be loaded in cgi processing [00:15:45]execute_cgi json_proto POST (null) [00:15:45]execute_cgi path=json_proto method=POST [00:15:45]POST find Content-Length [00:15:45]Host: 172.17.50.196:8080 [00:15:45]Content-Length: 647 [00:15:45]Content-Type: application/json [00:15:45] [00:15:45]POST finish read [00:15:45]Found Content-Length = 647 [00:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335654", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:45]execute_script... [00:15:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335654", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:45]POST & json_proto [00:15:45]process_json_proto [00:15:45]json parsed OK: [00:15:45]protocol is kg_v1.0 [00:15:45]action value=close_receipt [00:15:45]process_action close_receipt [00:15:45]cmd_close_receipt [00:15:45]MH_GetDate [00:15:45]Write to MH i2c: F0 00 00 BC 35 E0 [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: F0 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: F0 09 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: F0 09 00 BC 35 00 B4 1D 24 67 72 0D 1C 67 47 [00:15:45]GetLastDocTimeStamp 1730420097 [00:15:45]current date 1730420148 [00:15:45]FM_GetShiftState [00:15:45]SAM_PROTO_GetShiftState [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 13 01 00 [00:15:45]Write to MH i2c: E2 08 00 BD 35 80 13 01 00 00 00 00 00 6F [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 0E 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 0E 00 BD 35 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A8 [00:15:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:15:45]wFMCommunicate OK [00:15:45]SAM_PROTO_GetShiftState done [00:15:45]FM_GetShiftState done [00:15:45]opened in 1730419081 [00:15:45]opened+sec_in_day 1730505481 [00:15:45]quantity*price = 26500 [00:15:45]sum+1 = 26501 [00:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 7 01.11.2024 00:15 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139826 ФПД: 48454615106125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001548&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139826&fm=48454615106125&tin=02508201610067®Number=0000000000091631&sum=26500 0 [00:15:46]StoreToDocumentArchive [00:15:46]shift 558 fd 139826 [00:15:46]save to /storage/0558/doc_00139826 [00:15:46]save last doc name /storage/0558/doc_00139826 to /storage/kkm_last_doc_name [00:15:46]save OK [00:15:46]Clear old archive folders... [00:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=279 [00:15:46]tlvbuf is B6D5F830 [00:15:46]SAM_PROTO_ClearQueue [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 09 00 00 [00:15:46]Write to MH i2c: E2 08 00 CA 35 80 09 00 00 00 00 00 00 71 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 CA 35 00 90 00 73 [00:15:46]RAPDU: 90 00 [00:15:46]wFMCommunicate OK [00:15:46]SAM_PROTO_ClearQueue done [00:15:46]KKMCreateOFDPacket [00:15:46]OFDProtocolAddRootSTLVToBuf [00:15:46]FM_MakeSignedData [00:15:46]FM_MakeSignedData [00:15:46]SAM_PROTO_SignData [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 0D 01 02 [00:15:46]Write to MH i2c: E2 08 00 CB 35 80 0D 01 02 00 00 00 00 79 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 CB 35 00 90 00 74 [00:15:46]RAPDU: 90 00 [00:15:46]wFMCommunicate OK [00:15:46]wFMCommunicate request_size=255 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B4 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 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:15:46]Write to MH i2c: E2 02 01 CC 35 80 0D 02 02 FA 00 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B4 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 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 76 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 CC 35 00 90 00 75 [00:15:46]RAPDU: 90 00 [00:15:46]wFMCommunicate OK [00:15:46]wFMCommunicate request_size=38 [00:15:46]MH_SAM_APDU [00:15:46]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 32 22 02 00 35 04 06 00 2C 11 B8 1F 02 4D [00:15:46]Write to MH i2c: E2 29 00 CD 35 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 32 22 02 00 35 04 06 00 2C 11 B8 1F 02 4D 00 00 C6 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 CD 35 00 90 00 76 [00:15:46]RAPDU: 90 00 [00:15:46]wFMCommunicate OK [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 0D 03 02 [00:15:46]Write to MH i2c: E2 08 00 CE 35 80 0D 03 02 00 00 00 00 7E [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]OFD Sender: No OFD packet to send [00:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 0B 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 0B 00 CE 35 00 34 AA 93 E0 36 E3 B6 18 90 00 B7 [00:15:46]RAPDU: 34 AA 93 E0 36 E3 B6 18 90 00 [00:15:46]wFMCommunicate OK [00:15:46]SAM_PROTO_SignData done [00:15:46]FM_MakeSignedData done [00:15:46]CreateOFDProtocolMessage [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 11 00 00 [00:15:46]Write to MH i2c: E2 08 00 CF 35 80 11 00 00 00 00 00 00 7E [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 17 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 17 00 CF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D9 [00:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:15:46]wFMCommunicate OK [00:15:46]CreateOFDProtocolMessage done [00:15:46]OFDSenderStorePacket 139826 [00:15:46]StoreOFDPacket docnum=139826 [00:15: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 2B 01 00 00 27 68 23 01 5B A9 5A 03 01 00 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B4 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 32 22 02 00 35 04 06 00 2C 11 B8 1F 02 4D 34 AA 93 E0 36 E3 B6 18 [00:15:46]CheckFolder [00:15:46]dirname=/storage/ofd_packets [00:15:46]CheckFolder done [00:15:46]ProducePacketName [00:15:46]name=ofd_packets/00139826 [00:15:46]NVStorageSaveData ofd_packets/00139826 [00:15:46]File name is /storage/ofd_packets/00139826 [00:15:46]Write 329 bytes [00:15:46]NVStorageSaveData done [00:15:46]OFDSenderStorePacket done [00:15:46]KKMCreateOFDPacket done [00:15:46]NVStorageSaveData kkm_last_timestamp [00:15:46]File name is /storage/kkm_last_timestamp [00:15:46]Write 4 bytes [00:15:46]NVStorageSaveData done [00:15:46]ExternCall_PrintAddStr [00:15:46]wPrintStart [00:15:46]Write to MH i2c: 01 00 00 D0 35 05 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 07 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 07 00 D0 35 00 00 00 00 00 FF 0F 1A [00:15:46]RasterBufferAndPrint [00:15:46]line Счет N : (3)335654 [00:15:46]line ИНН: 02508201610067 [00:15:46]line Контрольно-Кассовый Чек [00:15:46]line ПРОДАЖА [00:15:46]line Товар: 90448300 [00:15:46]line Энерг напиток Red Bull 0,355л [00:15:46]line 1.000 * 265.00 [00:15:46]line = 265.00 [00:15:46]line НДС 12% НСП 1% [00:15:46]line > о реализуемом товаре [00:15:46]line ИТОГО: 265.00 [00:15:46]line НСП 1% : 2.34 [00:15:46]line НДС 12% : 28.14 [00:15:46]line Наличными: 265.00 [00:15:46]line Безнал.: 0.00 [00:15:46]line Место: АЗС № 101 "Партнер Нефть" [00:15:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:15:46]line СНО: Общий режим [00:15:46]line Чек 7 01.11.2024 00:15 [00:15:46]line Смена: 558 ФФД: 1.0 [00:15:46]line ЗНМ: 0300000081 [00:15:46]line РНМ: 0000000000091631 [00:15:46]line Версия ККМ: 001 [00:15:46]line ФМ: 0000000000874669 [00:15:46]line ФД: 139826 [00:15:46]line ФПД: 48454615106125 [00:15:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001548&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139826&fm=48454615106125&tin=02508201610067®Number=0000000000091631&sum=26500 [00:15:47]OFD Sender: Processing packet 139826 [packets to send 34, broken 33] [00:15:47]ProducePacketName [00:15:47]name=ofd_packets/00139826 [00:15:47]OFD Sender: To server: pG, [00:15:47]CommunicateWithHost lk.salyk.kg:30040 [00:15:47]ConnectInit lk.salyk.kg [00:15:47]line 0 [00:15:47]written 0, free lines is 4095 [00:15:47]Connected sock=10 [00:15: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 2B 01 00 00 27 68 23 01 5B A9 5A 03 01 00 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B4 1D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 32 22 02 00 35 04 06 00 2C 11 B8 1F 02 4D 34 AA 93 E0 36 E3 B6 18 [00:15: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 88 02 47 00 71 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 32 22 02 00 F4 03 04 00 60 C9 23 67 B6 04 01 00 00 4D CB 29 ED B6 E0 D2 CC [00:15:47]CommunicateWithHost err = 0 [00:15:47]CheckOFDResponse [00:15:47]1017 (14) - 77093643461234 [00:15:47]1041 (16) - 0000000000874669 [00:15:47]1040 (4) - 139826 [00:15:47]1012 (4) - 31.10.2024 18:16 [00:15:47]1206 (1) - 0 [00:15:47]OFD Sender: Remove packet 139826 [00:15:47]ProducePacketName [00:15:47]name=ofd_packets/00139826 [00:15:47]NVStorageDeleteData [00:15:47]Write to MH i2c: 01 00 00 F8 35 2D [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: 01 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: 01 07 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: 01 07 00 F8 35 00 00 00 00 00 13 0D 54 [00:15:47]RasterBufferAndPrint [00:15:47]line [00:15:47]line [00:15:47]line [00:15:47]line [00:15:47]line [00:15:47]written 0, free lines is 3354 [00:15:47]MH_Cut [00:15:47]Write to MH i2c: D1 01 00 FF 35 01 06 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: D1 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: D1 01 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: D1 01 00 FF 35 00 05 [00:15:47]Write to MH i2c: 01 00 00 00 36 36 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:48]OFD Sender: No OFD packet to send [00:15:48]*** Cut start [00:15:48]*** Partial cut [00:15:48]*** CUTSNS_PIN = 1 [00:15:48]*** CUTSNS_PIN = 0 [00:15:48]*** Brake cut motor [00:15:48]Read from MH i2c: 01 [00:15:48]MH_I2C_Read... [00:15:48]*** Stop cut motor [00:15:49]*** Cut end [00:15:49]Read from MH i2c: 01 07 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: 01 07 00 00 36 00 00 00 00 00 FF 0F 4B [00:15:49]process_action close_receipt done [00:15:49]requested_data is exist [00:15:49]produce_requested_data [00:15:49]requested_item fm.sn is exist - process it [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 11 00 00 [00:15:49]Write to MH i2c: E2 08 00 01 36 80 11 00 00 00 00 00 00 B1 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 17 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 17 00 01 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0C [00: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 [00:15:49]wFMCommunicate OK [00:15:49]requested_item fd.num is exist - process it [00:15:49]SAM_PROTO_GetFieldsCounters [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 13 00 00 [00:15:49]Write to MH i2c: E2 08 00 02 36 80 13 00 00 00 00 00 00 B4 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 62 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 62 00 02 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 32 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [00:15: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 32 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_GetFieldsCounters done [00:15:49]requested_item shift.num is exist - process it [00:15:49]requested_item shift.opened is exist - process it [00:15:49]req_shift_opened [00:15:49]FM_GetShiftState [00:15:49]SAM_PROTO_GetShiftState [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 13 01 00 [00:15:49]Write to MH i2c: E2 08 00 03 36 80 13 01 00 00 00 00 00 B6 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0E 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0E 00 03 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EF [00:15:49]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_GetShiftState done [00:15:49]FM_GetShiftState done [00:15:49]req_shift_opened done [00:15:49]requested_item shift.open_date is exist - process it [00:15:49]req_shift_open_date [00:15:49]req_shift_open_date done [00:15:49]produce_requested_data done [00:15:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139826,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:15:49]process_action_free close_receipt [00:15:49]json_value_free [00:15:49]json_value_free done [00:15:49]process_json_proto returns [00:15:49]Send response to host [00:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139826,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:15:49]free response buf [00:15:49]execute_script done [00:15:49]execute_script returns [00:15:49]free content buf [00:15:49]Sock 7.Close socket [00:15:49]Sock 7.Thread stoped [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:56]accept exits with 9 [00:17:56]New connection [00:17:56]New thread 3066510692 created [00:17:56]Thread 3066654052 joined [00:17:56]Waiting for new connection... [00:17:56] Sock 9.Parse request [00:17:56]Sock 9.Check first char [00:17:56]Sock 9.First char is OK [00:17:56]request: POST /json_proto HTTP/1.0 [00:17:56]Method: POST [00:17:56]URL: /json_proto [00:17:56]Method is POST - this is cgi request [00:17:56]url: /json_proto [00:17:56]query_string will be loaded in cgi processing [00:17:56]execute_cgi json_proto POST (null) [00:17:56]execute_cgi path=json_proto method=POST [00:17:56]POST find Content-Length [00:17:56]Host: 172.17.50.196:8080 [00:17:56]Content-Length: 645 [00:17:56]Content-Type: application/json [00:17:56] [00:17:56]POST finish read [00:17:56]Found Content-Length = 645 [00:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335655", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:56]execute_script... [00:17: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)335655", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:56]POST & json_proto [00:17:56]process_json_proto [00:17:56]json parsed OK: [00:17:56]protocol is kg_v1.0 [00:17:56]action value=close_receipt [00:17:56]process_action close_receipt [00:17:56]cmd_close_receipt [00:17:56]MH_GetDate [00:17:56]Write to MH i2c: F0 00 00 04 36 29 [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: F0 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: F0 09 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: F0 09 00 04 36 00 37 1E 24 67 72 0D 1C 67 14 [00:17:56]GetLastDocTimeStamp 1730420148 [00:17:56]current date 1730420279 [00:17:56]FM_GetShiftState [00:17:56]SAM_PROTO_GetShiftState [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 13 01 00 [00:17:56]Write to MH i2c: E2 08 00 05 36 80 13 01 00 00 00 00 00 B8 [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 0E 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 0E 00 05 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F1 [00:17:56]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:17:56]wFMCommunicate OK [00:17:56]SAM_PROTO_GetShiftState done [00:17:56]FM_GetShiftState done [00:17:56]opened in 1730419081 [00:17:56]opened+sec_in_day 1730505481 [00:17:56]quantity*price = 7900 [00:17:56]sum+1 = 7901 [00:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 8 01.11.2024 00:17 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139827 ФПД: 128639752331529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001759&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139827&fm=128639752331529&tin=02508201610067®Number=0000000000091631&sum=7900 0 [00:17:57]StoreToDocumentArchive [00:17:57]shift 558 fd 139827 [00:17:57]save to /storage/0558/doc_00139827 [00:17:57]save last doc name /storage/0558/doc_00139827 to /storage/kkm_last_doc_name [00:17:57]save OK [00:17:57]Clear old archive folders... [00:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:17:57]tlvbuf is 00B285F0 [00:17:57]SAM_PROTO_ClearQueue [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 09 00 00 [00:17:57]Write to MH i2c: E2 08 00 12 36 80 09 00 00 00 00 00 00 BA [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 12 36 00 90 00 BC [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_ClearQueue done [00:17:57]KKMCreateOFDPacket [00:17:57]OFDProtocolAddRootSTLVToBuf [00:17:57]FM_MakeSignedData [00:17:57]FM_MakeSignedData [00:17:57]SAM_PROTO_SignData [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 0D 01 02 [00:17:57]Write to MH i2c: E2 08 00 13 36 80 0D 01 02 00 00 00 00 C2 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 13 36 00 90 00 BD [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=255 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 37 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 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:17:57]Write to MH i2c: E2 02 01 14 36 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 37 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 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 B8 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 14 36 00 90 00 BE [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=35 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 33 22 02 00 35 04 06 00 74 FF 46 BD E1 09 [00:17:57]Write to MH i2c: E2 26 00 15 36 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 33 22 02 00 35 04 06 00 74 FF 46 BD E1 09 00 00 77 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 15 36 00 90 00 BF [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 0D 03 02 [00:17:57]Write to MH i2c: E2 08 00 16 36 80 0D 03 02 00 00 00 00 C7 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0B 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0B 00 16 36 00 95 70 9D AD 73 B1 65 19 90 00 B9 [00:17:57]RAPDU: 95 70 9D AD 73 B1 65 19 90 00 [00:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_SignData done [00:17:57]FM_MakeSignedData done [00:17:57]CreateOFDProtocolMessage [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 11 00 00 [00:17:57]Write to MH i2c: E2 08 00 17 36 80 11 00 00 00 00 00 00 C7 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 17 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 17 00 17 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 22 [00:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:17:57]wFMCommunicate OK [00:17:57]CreateOFDProtocolMessage done [00:17:57]OFDSenderStorePacket 139827 [00:17:57]StoreOFDPacket docnum=139827 [00:17: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 28 01 00 00 C3 26 20 01 57 FB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 37 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 33 22 02 00 35 04 06 00 74 FF 46 BD E1 09 95 70 9D AD 73 B1 65 19 [00:17:57]CheckFolder [00:17:57]dirname=/storage/ofd_packets [00:17:57]CheckFolder done [00:17:57]ProducePacketName [00:17:57]name=ofd_packets/00139827 [00:17:57]NVStorageSaveData ofd_packets/00139827 [00:17:57]File name is /storage/ofd_packets/00139827 [00:17:57]Write 326 bytes [00:17:57]NVStorageSaveData done [00:17:57]OFDSenderStorePacket done [00:17:57]KKMCreateOFDPacket done [00:17:57]NVStorageSaveData kkm_last_timestamp [00:17:57]File name is /storage/kkm_last_timestamp [00:17:57]Write 4 bytes [00:17:57]NVStorageSaveData done [00:17:57]ExternCall_PrintAddStr [00:17:57]wPrintStart [00:17:57]Write to MH i2c: 01 00 00 18 36 4E [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: 01 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: 01 07 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: 01 07 00 18 36 00 00 00 00 00 FF 0F 63 [00:17:57]RasterBufferAndPrint [00:17:57]line Счет N : (3)335655 [00:17:57]line ИНН: 02508201610067 [00:17:57]line Контрольно-Кассовый Чек [00:17:57]line ПРОДАЖА [00:17:57]line Товар: 4700000310043 [00:17:57]line Вода Жалалабат 27 1л [00:17:57]line 1.000 * 79.00 [00:17:57]line = 79.00 [00:17:57]line НДС 12% НСП 1% [00:17:57]line > о реализуемом товаре [00:17:57]line ИТОГО: 79.00 [00:17:57]line НСП 1% : 0.70 [00:17:57]line НДС 12% : 8.39 [00:17:57]line Наличными: 79.00 [00:17:57]line Безнал.: 0.00 [00:17:57]line Место: АЗС № 101 "Партнер Нефть" [00:17:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:17:57]line СНО: Общий режим [00:17:57]line Чек 8 01.11.2024 00:17 [00:17:57]line Смена: 558 ФФД: 1.0 [00:17:57]line ЗНМ: 0300000081 [00:17:57]line РНМ: 0000000000091631 [00:17:57]line Версия ККМ: 001 [00:17:57]line ФМ: 0000000000874669 [00:17:57]line ФД: 139827 [00:17:57]line ФПД: 128639752331529 [00:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001759&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139827&fm=128639752331529&tin=02508201610067®Number=0000000000091631&sum=7900 [00:17:58]OFD Sender: Processing packet 139827 [packets to send 34, broken 33] [00:17:58]ProducePacketName [00:17:58]name=ofd_packets/00139827 [00:17:58]OFD Sender: To server: pG, [00:17:58]CommunicateWithHost lk.salyk.kg:30040 [00:17:58]ConnectInit lk.salyk.kg [00:17:58]line 0 [00:17:58]written 0, free lines is 4095 [00:17:58]Connected sock=10 [00:17: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 28 01 00 00 C3 26 20 01 57 FB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 37 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 33 22 02 00 35 04 06 00 74 FF 46 BD E1 09 95 70 9D AD 73 B1 65 19 [00:17: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 43 D1 47 00 D0 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 33 22 02 00 F4 03 04 00 E3 C9 23 67 B6 04 01 00 00 C1 81 8B 79 1B 09 D6 F0 [00:17:58]CommunicateWithHost err = 0 [00:17:58]CheckOFDResponse [00:17:58]1017 (14) - 77093643461234 [00:17:58]1041 (16) - 0000000000874669 [00:17:58]1040 (4) - 139827 [00:17:58]1012 (4) - 31.10.2024 18:18 [00:17:58]1206 (1) - 0 [00:17:58]OFD Sender: Remove packet 139827 [00:17:58]ProducePacketName [00:17:58]name=ofd_packets/00139827 [00:17:58]NVStorageDeleteData [00:17:58]Write to MH i2c: 01 00 00 40 36 76 [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: 01 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: 01 07 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: 01 07 00 40 36 00 00 00 00 00 13 0D 9D [00:17:58]RasterBufferAndPrint [00:17:58]line [00:17:58]line [00:17:58]line [00:17:58]line [00:17:58]line [00:17:58]written 0, free lines is 3357 [00:17:58]MH_Cut [00:17:58]Write to MH i2c: D1 01 00 47 36 01 4F [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: D1 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: D1 01 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: D1 01 00 47 36 00 4E [00:17:58]Write to MH i2c: 01 00 00 48 36 7E [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]OFD Sender: No OFD packet to send [00:17:59]*** Cut start [00:17:59]*** Partial cut [00:17:59]*** CUTSNS_PIN = 1 [00:17:59]*** CUTSNS_PIN = 0 [00:17:59]*** Brake cut motor [00:17:59]Read from MH i2c: 01 [00:17:59]MH_I2C_Read... [00:17:59]*** Stop cut motor [00:17:59]*** Cut end [00:17:59]Read from MH i2c: 01 07 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: 01 07 00 48 36 00 00 00 00 00 FF 0F 93 [00:17:59]process_action close_receipt done [00:17:59]requested_data is exist [00:17:59]produce_requested_data [00:17:59]requested_item fm.sn is exist - process it [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 11 00 00 [00:17:59]Write to MH i2c: E2 08 00 49 36 80 11 00 00 00 00 00 00 F9 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 17 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 17 00 49 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [00:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:17:59]wFMCommunicate OK [00:17:59]requested_item fd.num is exist - process it [00:17:59]SAM_PROTO_GetFieldsCounters [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 13 00 00 [00:17:59]Write to MH i2c: E2 08 00 4A 36 80 13 00 00 00 00 00 00 FC [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:18:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:00]Read from MH i2c: E2 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 62 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 62 00 4A 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 33 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [00:18: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 33 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:00]wFMCommunicate OK [00:18:00]SAM_PROTO_GetFieldsCounters done [00:18:00]requested_item shift.num is exist - process it [00:18:00]requested_item shift.opened is exist - process it [00:18:00]req_shift_opened [00:18:00]FM_GetShiftState [00:18:00]SAM_PROTO_GetShiftState [00:18:00]wFMCommunicate request_size=4 [00:18:00]MH_SAM_APDU [00:18:00]CAPDU: 80 13 01 00 [00:18:00]Write to MH i2c: E2 08 00 4B 36 80 13 01 00 00 00 00 00 FE [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:00]Read from MH i2c: E2 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 0E 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 0E 00 4B 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 37 [00:18:00]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:18:00]wFMCommunicate OK [00:18:00]SAM_PROTO_GetShiftState done [00:18:00]FM_GetShiftState done [00:18:00]req_shift_opened done [00:18:00]requested_item shift.open_date is exist - process it [00:18:00]req_shift_open_date [00:18:00]req_shift_open_date done [00:18:00]produce_requested_data done [00:18:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139827,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:18:00]process_action_free close_receipt [00:18:00]json_value_free [00:18:00]json_value_free done [00:18:00]process_json_proto returns [00:18:00]Send response to host [00:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139827,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:18:00]free response buf [00:18:00]execute_script done [00:18:00]execute_script returns [00:18:00]free content buf [00:18:00]Sock 9.Close socket [00:18:00]Sock 9.Thread stoped [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:39]accept exits with 7 [00:19:39]New connection [00:19:39]New thread 3066654052 created [00:19:39]Thread 3066510692 joined [00:19:39]Waiting for new connection... [00:19:39] Sock 7.Parse request [00:19:39]Sock 7.Check first char [00:19:39]Sock 7.First char is OK [00:19:39]request: POST /json_proto HTTP/1.0 [00:19:39]Method: POST [00:19:39]URL: /json_proto [00:19:39]Method is POST - this is cgi request [00:19:39]url: /json_proto [00:19:39]query_string will be loaded in cgi processing [00:19:39]execute_cgi json_proto POST (null) [00:19:39]execute_cgi path=json_proto method=POST [00:19:39]POST find Content-Length [00:19:39]Host: 172.17.50.196:8080 [00:19:39]Content-Length: 656 [00:19:39]Content-Type: application/json [00:19:39] [00:19:39]POST finish read [00:19:39]Found Content-Length = 656 [00:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335656", "tax_sys" : 0, "items" : [ { "code": "5900950769017", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 Dr.MARCUS Fresh Bag black", "price" : 250.00, "quantity" : 2.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:39]execute_script... [00:19: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)335656", "tax_sys" : 0, "items" : [ { "code": "5900950769017", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 Dr.MARCUS Fresh Bag black", "price" : 250.00, "quantity" : 2.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:39]POST & json_proto [00:19:39]process_json_proto [00:19:39]json parsed OK: [00:19:39]protocol is kg_v1.0 [00:19:39]action value=close_receipt [00:19:39]process_action close_receipt [00:19:39]cmd_close_receipt [00:19:39]MH_GetDate [00:19:39]Write to MH i2c: F0 00 00 4C 36 71 [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: F0 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: F0 09 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: F0 09 00 4C 36 00 9E 1E 24 67 72 0D 1C 67 C3 [00:19:39]GetLastDocTimeStamp 1730420279 [00:19:39]current date 1730420382 [00:19:39]FM_GetShiftState [00:19:39]SAM_PROTO_GetShiftState [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 13 01 00 [00:19:39]Write to MH i2c: E2 08 00 4D 36 80 13 01 00 00 00 00 00 00 [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 0E 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 0E 00 4D 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 39 [00:19:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:19:39]wFMCommunicate OK [00:19:39]SAM_PROTO_GetShiftState done [00:19:39]FM_GetShiftState done [00:19:39]opened in 1730419081 [00:19:39]opened+sec_in_day 1730505481 [00:19:39]quantity*price = 50000 [00:19:39]sum+1 = 50001 [00:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 9 01.11.2024 00:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139828 ФПД: 212075723515663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001942&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139828&fm=212075723515663&tin=02508201610067®Number=0000000000091631&sum=50000 0 [00:19:40]StoreToDocumentArchive [00:19:40]shift 558 fd 139828 [00:19:40]save to /storage/0558/doc_00139828 [00:19:40]save last doc name /storage/0558/doc_00139828 to /storage/kkm_last_doc_name [00:19:40]save OK [00:19:40]Clear old archive folders... [00:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=292 [00:19:40]tlvbuf is B6F0C430 [00:19:40]SAM_PROTO_ClearQueue [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 09 00 00 [00:19:40]Write to MH i2c: E2 08 00 5A 36 80 09 00 00 00 00 00 00 02 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 5A 36 00 90 00 04 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]SAM_PROTO_ClearQueue done [00:19:40]KKMCreateOFDPacket [00:19:40]OFDProtocolAddRootSTLVToBuf [00:19:40]FM_MakeSignedData [00:19:40]FM_MakeSignedData [00:19:40]SAM_PROTO_SignData [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 0D 01 02 [00:19:40]Write to MH i2c: E2 08 00 5B 36 80 0D 01 02 00 00 00 00 0A [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 5B 36 00 90 00 05 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=255 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 31 37 06 04 32 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 62 6C 61 63 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 9E 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [00:19:40]Write to MH i2c: E2 02 01 5C 36 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 31 37 06 04 32 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 62 6C 61 63 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 9E 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 4A [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 5C 36 00 90 00 06 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=51 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 0D 02 02 2E 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 22 02 00 35 04 06 00 C0 E1 BA 2A 67 0F [00:19:40]Write to MH i2c: E2 36 00 5D 36 80 0D 02 02 2E 00 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 22 02 00 35 04 06 00 C0 E1 BA 2A 67 0F 00 00 F4 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 5D 36 00 90 00 07 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 0D 03 02 [00:19:40]Write to MH i2c: E2 08 00 5E 36 80 0D 03 02 00 00 00 00 0F [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 0B 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 0B 00 5E 36 00 40 43 5F 72 92 6A 47 B5 90 00 5C [00:19:40]RAPDU: 40 43 5F 72 92 6A 47 B5 90 00 [00:19:40]wFMCommunicate OK [00:19:40]SAM_PROTO_SignData done [00:19:40]FM_MakeSignedData done [00:19:40]CreateOFDProtocolMessage [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 11 00 00 [00:19:40]Write to MH i2c: E2 08 00 5F 36 80 11 00 00 00 00 00 00 0F [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 17 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 17 00 5F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6A [00: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 [00:19:40]wFMCommunicate OK [00:19:40]CreateOFDProtocolMessage done [00:19:40]OFDSenderStorePacket 139828 [00:19:40]StoreOFDPacket docnum=139828 [00: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 38 01 00 00 18 03 30 01 B8 BD 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 31 37 06 04 32 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 62 6C 61 63 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 9E 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 22 02 00 35 04 06 00 C0 E1 BA 2A 67 0F 40 43 5F 72 92 6A 47 B5 [00:19:40]CheckFolder [00:19:40]dirname=/storage/ofd_packets [00:19:40]CheckFolder done [00:19:40]ProducePacketName [00:19:40]name=ofd_packets/00139828 [00:19:40]NVStorageSaveData ofd_packets/00139828 [00:19:40]File name is /storage/ofd_packets/00139828 [00:19:40]Write 342 bytes [00:19:40]NVStorageSaveData done [00:19:40]OFDSenderStorePacket done [00:19:40]KKMCreateOFDPacket done [00:19:40]NVStorageSaveData kkm_last_timestamp [00:19:40]File name is /storage/kkm_last_timestamp [00:19:40]Write 4 bytes [00:19:40]NVStorageSaveData done [00:19:40]ExternCall_PrintAddStr [00:19:40]wPrintStart [00:19:40]Write to MH i2c: 01 00 00 60 36 96 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 07 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: 01 07 00 60 36 00 00 00 00 00 FF 0F AB [00:19:40]RasterBufferAndPrint [00:19:40]line Счет N : (3)335656 [00:19:40]line ИНН: 02508201610067 [00:19:40]line Контрольно-Кассовый Чек [00:19:40]line ПРОДАЖА [00:19:40]line Товар: 5900950769017 [00:19:40]line Ароматизатор Dr.MARCUS Fresh Bag black [00:19:40]line 2.000 * 250.00 [00:19:40]line = 500.00 [00:19:40]line НДС 12% НСП 1% [00:19:40]line > о реализуемом товаре [00:19:40]line ИТОГО: 500.00 [00:19:40]line НСП 1% : 4.42 [00:19:40]line НДС 12% : 53.10 [00:19:40]line Наличными: 500.00 [00:19:40]line Безнал.: 0.00 [00:19:40]line Место: АЗС № 101 "Партнер Нефть" [00:19:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:19:40]line СНО: Общий режим [00:19:40]line Чек 9 01.11.2024 00:19 [00:19:40]line Смена: 558 ФФД: 1.0 [00:19:40]line ЗНМ: 0300000081 [00:19:40]line РНМ: 0000000000091631 [00:19:40]line Версия ККМ: 001 [00:19:40]line ФМ: 0000000000874669 [00:19:40]line ФД: 139828 [00:19:40]line ФПД: 212075723515663 [00:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T001942&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139828&fm=212075723515663&tin=02508201610067®Number=0000000000091631&sum=50000 [00:19:41]line 0 [00:19:41]OFD Sender: Processing packet 139828 [packets to send 34, broken 33] [00:19:41]ProducePacketName [00:19:41]name=ofd_packets/00139828 [00:19:41]OFD Sender: To server: pG, [00:19:41]CommunicateWithHost lk.salyk.kg:30040 [00:19:41]ConnectInit lk.salyk.kg [00:19:41]written 0, free lines is 4095 [00:19:41]Connected sock=10 [00: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 38 01 00 00 18 03 30 01 B8 BD 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 31 37 06 04 32 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 62 6C 61 63 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 9E 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 34 22 02 00 35 04 06 00 C0 E1 BA 2A 67 0F 40 43 5F 72 92 6A 47 B5 [00: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 97 87 47 00 AC 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 34 22 02 00 F4 03 04 00 4A CA 23 67 B6 04 01 00 00 08 38 5D 0E 43 16 C3 33 [00:19:41]CommunicateWithHost err = 0 [00:19:41]CheckOFDResponse [00:19:41]1017 (14) - 77093643461234 [00:19:41]1041 (16) - 0000000000874669 [00:19:41]1040 (4) - 139828 [00:19:41]1012 (4) - 31.10.2024 18:19 [00:19:41]1206 (1) - 0 [00:19:41]OFD Sender: Remove packet 139828 [00:19:41]ProducePacketName [00:19:41]name=ofd_packets/00139828 [00:19:41]NVStorageDeleteData [00:19:41]Write to MH i2c: 01 00 00 89 36 BF [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: 01 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: 01 07 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: 01 07 00 89 36 00 00 00 00 00 F5 0C C7 [00:19:41]RasterBufferAndPrint [00:19:41]line [00:19:41]line [00:19:41]line [00:19:41]line [00:19:41]line [00:19:41]written 0, free lines is 3324 [00:19:41]MH_Cut [00:19:41]Write to MH i2c: D1 01 00 90 36 01 98 [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: D1 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: D1 01 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: D1 01 00 90 36 00 97 [00:19:41]Write to MH i2c: 01 00 00 91 36 C7 [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:42]OFD Sender: No OFD packet to send [00:19:42]*** Cut start [00:19:42]*** Partial cut [00:19:42]*** CUTSNS_PIN = 1 [00:19:42]*** CUTSNS_PIN = 0 [00:19:42]*** Brake cut motor [00:19:42]Read from MH i2c: 01 [00:19:42]MH_I2C_Read... [00:19:42]*** Stop cut motor [00:19:42]*** Cut end [00:19:42]Read from MH i2c: 01 07 00 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: 01 07 00 91 36 00 00 00 00 00 FF 0F DC [00:19:42]process_action close_receipt done [00:19:42]requested_data is exist [00:19:42]produce_requested_data [00:19:42]requested_item fm.sn is exist - process it [00:19:42]wFMCommunicate request_size=4 [00:19:42]MH_SAM_APDU [00:19:42]CAPDU: 80 11 00 00 [00:19:42]Write to MH i2c: E2 08 00 92 36 80 11 00 00 00 00 00 00 42 [00:19:42]Write i2c OK [00:19:42]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 17 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 17 00 92 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [00:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:19:43]wFMCommunicate OK [00:19:43]requested_item fd.num is exist - process it [00:19:43]SAM_PROTO_GetFieldsCounters [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 00 00 [00:19:43]Write to MH i2c: E2 08 00 93 36 80 13 00 00 00 00 00 00 45 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 62 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 62 00 93 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 34 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [00:19: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 34 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_GetFieldsCounters done [00:19:43]requested_item shift.num is exist - process it [00:19:43]requested_item shift.opened is exist - process it [00:19:43]req_shift_opened [00:19:43]FM_GetShiftState [00:19:43]SAM_PROTO_GetShiftState [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 01 00 [00:19:43]Write to MH i2c: E2 08 00 94 36 80 13 01 00 00 00 00 00 47 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 94 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 80 [00:19:43]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_GetShiftState done [00:19:43]FM_GetShiftState done [00:19:43]req_shift_opened done [00:19:43]requested_item shift.open_date is exist - process it [00:19:43]req_shift_open_date [00:19:43]req_shift_open_date done [00:19:43]produce_requested_data done [00:19:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139828,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:19:43]process_action_free close_receipt [00:19:43]json_value_free [00:19:43]json_value_free done [00:19:43]process_json_proto returns [00:19:43]Send response to host [00:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139828,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:19:43]free response buf [00:19:43]execute_script done [00:19:43]execute_script returns [00:19:43]free content buf [00:19:43]Sock 7.Close socket [00:19:43]Sock 7.Thread stoped [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:48]accept exits with 9 [00:20:48]New connection [00:20:48]New thread 3066510692 created [00:20:48]Thread 3066654052 joined [00:20:48]Waiting for new connection... [00:20:48] Sock 9.Parse request [00:20:48]Sock 9.Check first char [00:20:48]Sock 9.First char is OK [00:20:48]request: POST /json_proto HTTP/1.0 [00:20:48]Method: POST [00:20:48]URL: /json_proto [00:20:48]Method is POST - this is cgi request [00:20:48]url: /json_proto [00:20:48]query_string will be loaded in cgi processing [00:20:48]execute_cgi json_proto POST (null) [00:20:48]execute_cgi path=json_proto method=POST [00:20:48]POST find Content-Length [00:20:48]Host: 172.17.50.196:8080 [00:20:48]Content-Length: 668 [00:20:48]Content-Type: application/json [00:20:48] [00:20:48]POST finish read [00:20:48]Found Content-Length = 668 [00:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335659", "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" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:48]execute_script... [00:20: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)335659", "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" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:48]POST & json_proto [00:20:48]process_json_proto [00:20:48]json parsed OK: [00:20:48]protocol is kg_v1.0 [00:20:48]action value=close_receipt [00:20:48]process_action close_receipt [00:20:48]cmd_close_receipt [00:20:48]MH_GetDate [00:20:48]Write to MH i2c: F0 00 00 95 36 BA [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: F0 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: F0 09 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: F0 09 00 95 36 00 E3 1E 24 67 72 0D 1C 67 51 [00:20:48]GetLastDocTimeStamp 1730420382 [00:20:48]current date 1730420451 [00:20:48]FM_GetShiftState [00:20:48]SAM_PROTO_GetShiftState [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 13 01 00 [00:20:48]Write to MH i2c: E2 08 00 96 36 80 13 01 00 00 00 00 00 49 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 0E 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 0E 00 96 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 82 [00:20:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:20:48]wFMCommunicate OK [00:20:48]SAM_PROTO_GetShiftState done [00:20:48]FM_GetShiftState done [00:20:48]opened in 1730419081 [00:20:48]opened+sec_in_day 1730505481 [00:20:48]quantity*price = 45000 [00:20:48]sum+1 = 45001 [00:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 10 01.11.2024 00:20 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139829 ФПД: 175957386552840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139829&fm=175957386552840&tin=02508201610067®Number=0000000000091631&sum=45000 0 [00:20:49]StoreToDocumentArchive [00:20:49]shift 558 fd 139829 [00:20:49]save to /storage/0558/doc_00139829 [00:20:49]save last doc name /storage/0558/doc_00139829 to /storage/kkm_last_doc_name [00:20:49]save OK [00:20:49]Clear old archive folders... [00:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=296 [00:20:49]tlvbuf is 00AF5CB0 [00:20:49]SAM_PROTO_ClearQueue [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 09 00 00 [00:20:49]Write to MH i2c: E2 08 00 A3 36 80 09 00 00 00 00 00 00 4B [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 A3 36 00 90 00 4D [00:20:49]RAPDU: 90 00 [00:20:49]wFMCommunicate OK [00:20:49]SAM_PROTO_ClearQueue done [00:20:49]KKMCreateOFDPacket [00:20:49]OFDProtocolAddRootSTLVToBuf [00:20:49]FM_MakeSignedData [00:20:49]FM_MakeSignedData [00:20:49]SAM_PROTO_SignData [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 0D 01 02 [00:20:49]Write to MH i2c: E2 08 00 A4 36 80 0D 01 02 00 00 00 00 53 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 A4 36 00 90 00 4E [00:20:49]RAPDU: 90 00 [00:20:49]wFMCommunicate OK [00:20:49]wFMCommunicate request_size=255 [00:20:49]MH_SAM_APDU [00:20:49]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 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E3 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [00:20:49]Write to MH i2c: E2 02 01 A5 36 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 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E3 1E 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 61 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 A5 36 00 90 00 4F [00:20:49]RAPDU: 90 00 [00:20:49]wFMCommunicate OK [00:20:49]wFMCommunicate request_size=55 [00:20:49]MH_SAM_APDU [00:20:49]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 35 22 02 00 35 04 06 00 A0 08 45 85 66 08 [00:20:49]Write to MH i2c: E2 3A 00 A6 36 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 35 22 02 00 35 04 06 00 A0 08 45 85 66 08 00 00 EB [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 03 00 A6 36 00 90 00 50 [00:20:49]RAPDU: 90 00 [00:20:49]wFMCommunicate OK [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 0D 03 02 [00:20:49]Write to MH i2c: E2 08 00 A7 36 80 0D 03 02 00 00 00 00 58 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 0B 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 0B 00 A7 36 00 78 0D DE 2B 93 AE 32 D3 90 00 2D [00:20:49]RAPDU: 78 0D DE 2B 93 AE 32 D3 90 00 [00:20:49]wFMCommunicate OK [00:20:49]SAM_PROTO_SignData done [00:20:49]FM_MakeSignedData done [00:20:49]CreateOFDProtocolMessage [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 11 00 00 [00:20:49]Write to MH i2c: E2 08 00 A8 36 80 11 00 00 00 00 00 00 58 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 17 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 17 00 A8 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B3 [00:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:20:49]wFMCommunicate OK [00:20:49]CreateOFDProtocolMessage done [00:20:49]OFDSenderStorePacket 139829 [00:20:49]StoreOFDPacket docnum=139829 [00:20: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 3C 01 00 00 61 74 34 01 F3 4A 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 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E3 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 35 22 02 00 35 04 06 00 A0 08 45 85 66 08 78 0D DE 2B 93 AE 32 D3 [00:20:49]CheckFolder [00:20:49]dirname=/storage/ofd_packets [00:20:49]CheckFolder done [00:20:49]ProducePacketName [00:20:49]name=ofd_packets/00139829 [00:20:49]NVStorageSaveData ofd_packets/00139829 [00:20:49]File name is /storage/ofd_packets/00139829 [00:20:49]Write 346 bytes [00:20:49]NVStorageSaveData done [00:20:49]OFDSenderStorePacket done [00:20:49]KKMCreateOFDPacket done [00:20:49]NVStorageSaveData kkm_last_timestamp [00:20:49]File name is /storage/kkm_last_timestamp [00:20:49]Write 4 bytes [00:20:49]NVStorageSaveData done [00:20:49]ExternCall_PrintAddStr [00:20:49]wPrintStart [00:20:49]Write to MH i2c: 01 00 00 A9 36 DF [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: 01 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: 01 07 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: 01 07 00 A9 36 00 00 00 00 00 FF 0F F4 [00:20:49]RasterBufferAndPrint [00:20:49]line Счет N : (3)335659 [00:20:49]line ИНН: 02508201610067 [00:20:49]line Контрольно-Кассовый Чек [00:20:49]line ПРОДАЖА [00:20:49]line Товар: 4670003190013 [00:20:49]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [00:20:49]line 2.000 * 225.00 [00:20:49]line = 450.00 [00:20:49]line НДС 12% НСП 1% [00:20:49]line > о реализуемом товаре [00:20:49]line ИТОГО: 450.00 [00:20:49]line НСП 1% : 3.98 [00:20:49]line НДС 12% : 47.79 [00:20:49]line Наличными: 450.00 [00:20:49]line Безнал.: 0.00 [00:20:49]line Место: АЗС № 101 "Партнер Нефть" [00:20:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:20:49]line СНО: Общий режим [00:20:49]line Чек 10 01.11.2024 00:20 [00:20:49]line Смена: 558 ФФД: 1.0 [00:20:49]line ЗНМ: 0300000081 [00:20:49]line РНМ: 0000000000091631 [00:20:49]line Версия ККМ: 001 [00:20:49]line ФМ: 0000000000874669 [00:20:49]line ФД: 139829 [00:20:49]line ФПД: 175957386552840 [00:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139829&fm=175957386552840&tin=02508201610067®Number=0000000000091631&sum=45000 [00:20:50]line 0 [00:20:50]OFD Sender: Processing packet 139829 [packets to send 34, broken 33] [00:20:50]ProducePacketName [00:20:50]name=ofd_packets/00139829 [00:20:50]OFD Sender: To server: pG, [00:20:50]CommunicateWithHost lk.salyk.kg:30040 [00:20:50]ConnectInit lk.salyk.kg [00:20:50]written 0, free lines is 4095 [00:20:50]Connected sock=10 [00:20: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 3C 01 00 00 61 74 34 01 F3 4A 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 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E3 1E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 35 22 02 00 35 04 06 00 A0 08 45 85 66 08 78 0D DE 2B 93 AE 32 D3 [00:20: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 07 71 47 00 23 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 35 22 02 00 F4 03 04 00 8F CA 23 67 B6 04 01 00 00 98 CE 2A 26 61 20 3D C0 [00:20:50]CommunicateWithHost err = 0 [00:20:50]CheckOFDResponse [00:20:50]1017 (14) - 77093643461234 [00:20:50]1041 (16) - 0000000000874669 [00:20:50]1040 (4) - 139829 [00:20:50]1012 (4) - 31.10.2024 18:21 [00:20:50]1206 (1) - 0 [00:20:50]OFD Sender: Remove packet 139829 [00:20:50]ProducePacketName [00:20:50]name=ofd_packets/00139829 [00:20:50]NVStorageDeleteData [00:20:50]Write to MH i2c: 01 00 00 D2 36 08 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: 01 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: 01 07 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: 01 07 00 D2 36 00 00 00 00 00 FF 0C 1A [00:20:50]RasterBufferAndPrint [00:20:50]line [00:20:50]line [00:20:50]line [00:20:50]line [00:20:50]line [00:20:50]written 0, free lines is 3333 [00:20:50]MH_Cut [00:20:50]Write to MH i2c: D1 01 00 D9 36 01 E1 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: D1 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: D1 01 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: D1 01 00 D9 36 00 E0 [00:20:50]Write to MH i2c: 01 00 00 DA 36 10 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]OFD Sender: No OFD packet to send [00:20:51]*** Cut start [00:20:51]*** Partial cut [00:20:51]*** CUTSNS_PIN = 1 [00:20:51]*** CUTSNS_PIN = 0 [00:20:51]*** Brake cut motor [00:20:51]Read from MH i2c: 01 [00:20:51]MH_I2C_Read... [00:20:51]*** Stop cut motor [00:20:51]*** Cut end [00:20:51]Read from MH i2c: 01 07 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: 01 07 00 DA 36 00 00 00 00 00 FF 0F 25 [00:20:51]process_action close_receipt done [00:20:51]requested_data is exist [00:20:51]produce_requested_data [00:20:51]requested_item fm.sn is exist - process it [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 11 00 00 [00:20:51]Write to MH i2c: E2 08 00 DB 36 80 11 00 00 00 00 00 00 8B [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 17 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 17 00 DB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E6 [00:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:20:51]wFMCommunicate OK [00:20:51]requested_item fd.num is exist - process it [00:20:51]SAM_PROTO_GetFieldsCounters [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 13 00 00 [00:20:51]Write to MH i2c: E2 08 00 DC 36 80 13 00 00 00 00 00 00 8E [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 62 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 62 00 DC 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 35 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [00:20: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 35 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:52]wFMCommunicate OK [00:20:52]SAM_PROTO_GetFieldsCounters done [00:20:52]requested_item shift.num is exist - process it [00:20:52]requested_item shift.opened is exist - process it [00:20:52]req_shift_opened [00:20:52]FM_GetShiftState [00:20:52]SAM_PROTO_GetShiftState [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 13 01 00 [00:20:52]Write to MH i2c: E2 08 00 DD 36 80 13 01 00 00 00 00 00 90 [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 0E 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 0E 00 DD 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C9 [00:20:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:20:52]wFMCommunicate OK [00:20:52]SAM_PROTO_GetShiftState done [00:20:52]FM_GetShiftState done [00:20:52]req_shift_opened done [00:20:52]requested_item shift.open_date is exist - process it [00:20:52]req_shift_open_date [00:20:52]req_shift_open_date done [00:20:52]produce_requested_data done [00:20:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139829,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:20:52]process_action_free close_receipt [00:20:52]json_value_free [00:20:52]json_value_free done [00:20:52]process_json_proto returns [00:20:52]Send response to host [00:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139829,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:20:52]free response buf [00:20:52]execute_script done [00:20:52]execute_script returns [00:20:52]free content buf [00:20:52]Sock 9.Close socket [00:20:52]Sock 9.Thread stoped [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:14]accept exits with 7 [00:23:14]New connection [00:23:14]New thread 3066654052 created [00:23:14]Thread 3066510692 joined [00:23:14]Waiting for new connection... [00:23:14] Sock 7.Parse request [00:23:14]Sock 7.Check first char [00:23:14]Sock 7.First char is OK [00:23:14]request: POST /json_proto HTTP/1.0 [00:23:14]Method: POST [00:23:14]URL: /json_proto [00:23:14]Method is POST - this is cgi request [00:23:14]url: /json_proto [00:23:14]query_string will be loaded in cgi processing [00:23:14]execute_cgi json_proto POST (null) [00:23:14]execute_cgi path=json_proto method=POST [00:23:14]POST find Content-Length [00:23:14]Host: 172.17.50.196:8080 [00:23:14]Content-Length: 620 [00:23:14]Content-Type: application/json [00:23:14] [00:23:14]POST finish read [00:23:14]Found Content-Length = 620 [00:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335660", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 2.000, "sum" : 98.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 98.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:14]execute_script... [00:23: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)335660", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 2.000, "sum" : 98.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 98.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:14]POST & json_proto [00:23:14]process_json_proto [00:23:14]json parsed OK: [00:23:14]protocol is kg_v1.0 [00:23:14]action value=close_receipt [00:23:14]process_action close_receipt [00:23:14]cmd_close_receipt [00:23:14]MH_GetDate [00:23:14]Write to MH i2c: F0 00 00 DE 36 03 [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: F0 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: F0 09 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: F0 09 00 DE 36 00 75 1F 24 67 72 0D 1C 67 2D [00:23:14]GetLastDocTimeStamp 1730420451 [00:23:14]current date 1730420597 [00:23:14]FM_GetShiftState [00:23:14]SAM_PROTO_GetShiftState [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 13 01 00 [00:23:14]Write to MH i2c: E2 08 00 DF 36 80 13 01 00 00 00 00 00 92 [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:14]Read from MH i2c: E2 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 0E 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 0E 00 DF 36 00 09 00 01 89 19 24 67 00 00 00 00 90 00 CB [00:23:14]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:23:14]wFMCommunicate OK [00:23:14]SAM_PROTO_GetShiftState done [00:23:14]FM_GetShiftState done [00:23:14]opened in 1730419081 [00:23:14]opened+sec_in_day 1730505481 [00:23:14]quantity*price = 9800 [00:23:14]sum+1 = 9801 [00:23:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 98.00 НСП 1% : 0.87 НДС 12% : 10.41 Наличными: 98.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 11 01.11.2024 00:23 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139830 ФПД: 182780737504194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002317&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139830&fm=182780737504194&tin=02508201610067®Number=0000000000091631&sum=9800 0 [00:23:15]StoreToDocumentArchive [00:23:15]shift 558 fd 139830 [00:23:15]save to /storage/0558/doc_00139830 [00:23:15]save last doc name /storage/0558/doc_00139830 to /storage/kkm_last_doc_name [00:23:15]save OK [00:23:15]Clear old archive folders... [00:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=279 [00:23:15]tlvbuf is B6F0CAF0 [00:23:15]SAM_PROTO_ClearQueue [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 09 00 00 [00:23:15]Write to MH i2c: E2 08 00 EC 36 80 09 00 00 00 00 00 00 94 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 EC 36 00 90 00 96 [00:23:15]RAPDU: 90 00 [00:23:15]wFMCommunicate OK [00:23:15]SAM_PROTO_ClearQueue done [00:23:15]KKMCreateOFDPacket [00:23:15]OFDProtocolAddRootSTLVToBuf [00:23:15]FM_MakeSignedData [00:23:15]FM_MakeSignedData [00:23:15]SAM_PROTO_SignData [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 0D 01 02 [00:23:15]Write to MH i2c: E2 08 00 ED 36 80 0D 01 02 00 00 00 00 9C [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 ED 36 00 90 00 97 [00:23:15]RAPDU: 90 00 [00:23:15]wFMCommunicate OK [00:23:15]wFMCommunicate request_size=255 [00:23:15]MH_SAM_APDU [00:23:15]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 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 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 0B 00 00 00 F4 03 04 00 75 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 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:23:15]Write to MH i2c: E2 02 01 EE 36 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 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 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 0B 00 00 00 F4 03 04 00 75 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 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 01 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 EE 36 00 90 00 98 [00:23:15]RAPDU: 90 00 [00:23:15]wFMCommunicate OK [00:23:15]wFMCommunicate request_size=38 [00:23:15]MH_SAM_APDU [00:23:15]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 36 22 02 00 35 04 06 00 A6 3C F4 EE 43 C2 [00:23:15]Write to MH i2c: E2 29 00 EF 36 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 36 22 02 00 35 04 06 00 A6 3C F4 EE 43 C2 00 00 53 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 03 00 EF 36 00 90 00 99 [00:23:15]RAPDU: 90 00 [00:23:15]wFMCommunicate OK [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 0D 03 02 [00:23:15]Write to MH i2c: E2 08 00 F0 36 80 0D 03 02 00 00 00 00 A1 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 0B 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 0B 00 F0 36 00 46 CB 4A 44 3F 2F AC 38 90 00 93 [00:23:15]RAPDU: 46 CB 4A 44 3F 2F AC 38 90 00 [00:23:15]wFMCommunicate OK [00:23:15]SAM_PROTO_SignData done [00:23:15]FM_MakeSignedData done [00:23:15]CreateOFDProtocolMessage [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 11 00 00 [00:23:15]Write to MH i2c: E2 08 00 F1 36 80 11 00 00 00 00 00 00 A1 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 17 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 17 00 F1 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FC [00:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:23:15]wFMCommunicate OK [00:23:15]CreateOFDProtocolMessage done [00:23:15]OFDSenderStorePacket 139830 [00:23:15]StoreOFDPacket docnum=139830 [00:23: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 2B 01 00 00 B7 10 23 01 56 E5 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 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 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 0B 00 00 00 F4 03 04 00 75 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 36 22 02 00 35 04 06 00 A6 3C F4 EE 43 C2 46 CB 4A 44 3F 2F AC 38 [00:23:15]CheckFolder [00:23:15]dirname=/storage/ofd_packets [00:23:15]CheckFolder done [00:23:15]ProducePacketName [00:23:15]name=ofd_packets/00139830 [00:23:15]NVStorageSaveData ofd_packets/00139830 [00:23:15]File name is /storage/ofd_packets/00139830 [00:23:15]Write 329 bytes [00:23:15]NVStorageSaveData done [00:23:15]OFDSenderStorePacket done [00:23:15]KKMCreateOFDPacket done [00:23:15]NVStorageSaveData kkm_last_timestamp [00:23:15]File name is /storage/kkm_last_timestamp [00:23:15]Write 4 bytes [00:23:15]NVStorageSaveData done [00:23:15]ExternCall_PrintAddStr [00:23:15]wPrintStart [00:23:15]Write to MH i2c: 01 00 00 F2 36 28 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: 01 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: 01 07 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: 01 07 00 F2 36 00 00 00 00 00 FF 0F 3D [00:23:15]RasterBufferAndPrint [00:23:15]line Счет N : (3)335660 [00:23:15]line ИНН: 02508201610067 [00:23:15]line Контрольно-Кассовый Чек [00:23:15]line ПРОДАЖА [00:23:15]line Товар: 46214645 [00:23:15]line Р/ж mentos pure white клуб 16/15,5г [00:23:15]line 2.000 * 49.00 [00:23:15]line = 98.00 [00:23:15]line НДС 12% НСП 1% [00:23:15]line > о реализуемом товаре [00:23:15]line ИТОГО: 98.00 [00:23:15]line НСП 1% : 0.87 [00:23:15]line НДС 12% : 10.41 [00:23:15]line Наличными: 98.00 [00:23:15]line Безнал.: 0.00 [00:23:15]line Место: АЗС № 101 "Партнер Нефть" [00:23:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:23:15]line СНО: Общий режим [00:23:15]line Чек 11 01.11.2024 00:23 [00:23:15]line Смена: 558 ФФД: 1.0 [00:23:15]line ЗНМ: 0300000081 [00:23:15]line РНМ: 0000000000091631 [00:23:15]line Версия ККМ: 001 [00:23:15]line ФМ: 0000000000874669 [00:23:15]line ФД: 139830 [00:23:15]line ФПД: 182780737504194 [00:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002317&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139830&fm=182780737504194&tin=02508201610067®Number=0000000000091631&sum=9800 [00:23:16]OFD Sender: Processing packet 139830 [packets to send 34, broken 33] [00:23:16]ProducePacketName [00:23:16]name=ofd_packets/00139830 [00:23:16]OFD Sender: To server: pG, [00:23:16]CommunicateWithHost lk.salyk.kg:30040 [00:23:16]ConnectInit lk.salyk.kg [00:23:16]line 0 [00:23:16]written 0, free lines is 4095 [00:23:16]Connected sock=11 [00:23: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 2B 01 00 00 B7 10 23 01 56 E5 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 D0 07 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 48 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 04 00 00 00 00 07 04 06 00 48 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 0B 00 00 00 F4 03 04 00 75 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 36 22 02 00 35 04 06 00 A6 3C F4 EE 43 C2 46 CB 4A 44 3F 2F AC 38 [00:23: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 EE CB 47 00 33 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 36 22 02 00 F4 03 04 00 21 CB 23 67 B6 04 01 00 00 68 C4 93 D3 64 6B 23 7C [00:23:16]CommunicateWithHost err = 0 [00:23:16]CheckOFDResponse [00:23:16]1017 (14) - 77093643461234 [00:23:16]1041 (16) - 0000000000874669 [00:23:16]1040 (4) - 139830 [00:23:16]1012 (4) - 31.10.2024 18:23 [00:23:16]1206 (1) - 0 [00:23:16]OFD Sender: Remove packet 139830 [00:23:16]ProducePacketName [00:23:16]name=ofd_packets/00139830 [00:23:16]NVStorageDeleteData [00:23:16]Write to MH i2c: 01 00 00 1B 37 52 [00:23:16]Write i2c OK [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: 01 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: 01 07 00 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: 01 07 00 1B 37 00 00 00 00 00 ED 0C 52 [00:23:16]RasterBufferAndPrint [00:23:16]line [00:23:16]line [00:23:16]line [00:23:16]line [00:23:16]line [00:23:16]written 0, free lines is 3315 [00:23:16]MH_Cut [00:23:16]Write to MH i2c: D1 01 00 22 37 01 2B [00:23:16]Write i2c OK [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: D1 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: D1 01 00 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: D1 01 00 22 37 00 2A [00:23:16]Write to MH i2c: 01 00 00 23 37 5A [00:23:16]Write i2c OK [00:23:16]MH_I2C_Read... [00:23:17]OFD Sender: No OFD packet to send [00:23:17]*** Cut start [00:23:17]*** Partial cut [00:23:17]*** CUTSNS_PIN = 1 [00:23:17]*** CUTSNS_PIN = 0 [00:23:17]*** Brake cut motor [00:23:17]Read from MH i2c: 01 [00:23:17]MH_I2C_Read... [00:23:17]*** Stop cut motor [00:23:17]*** Cut end [00:23:17]Read from MH i2c: 01 07 00 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: 01 07 00 23 37 00 00 00 00 00 FF 0F 6F [00:23:17]process_action close_receipt done [00:23:17]requested_data is exist [00:23:17]produce_requested_data [00:23:17]requested_item fm.sn is exist - process it [00:23:17]wFMCommunicate request_size=4 [00:23:17]MH_SAM_APDU [00:23:17]CAPDU: 80 11 00 00 [00:23:17]Write to MH i2c: E2 08 00 24 37 80 11 00 00 00 00 00 00 D5 [00:23:17]Write i2c OK [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 [00:23:17]MH_I2C_Read... [00:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:17]Read from MH i2c: E2 17 00 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 17 00 24 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 30 [00:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:23:17]wFMCommunicate OK [00:23:17]requested_item fd.num is exist - process it [00:23:17]SAM_PROTO_GetFieldsCounters [00:23:17]wFMCommunicate request_size=4 [00:23:17]MH_SAM_APDU [00:23:17]CAPDU: 80 13 00 00 [00:23:17]Write to MH i2c: E2 08 00 25 37 80 13 00 00 00 00 00 00 D8 [00:23:17]Write i2c OK [00:23:17]MH_I2C_Read... [00:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:18]Read from MH i2c: E2 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 62 00 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 62 00 25 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 36 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [00:23: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 36 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:18]wFMCommunicate OK [00:23:18]SAM_PROTO_GetFieldsCounters done [00:23:18]requested_item shift.num is exist - process it [00:23:18]requested_item shift.opened is exist - process it [00:23:18]req_shift_opened [00:23:18]FM_GetShiftState [00:23:18]SAM_PROTO_GetShiftState [00:23:18]wFMCommunicate request_size=4 [00:23:18]MH_SAM_APDU [00:23:18]CAPDU: 80 13 01 00 [00:23:18]Write to MH i2c: E2 08 00 26 37 80 13 01 00 00 00 00 00 DA [00:23:18]Write i2c OK [00:23:18]MH_I2C_Read... [00:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:18]Read from MH i2c: E2 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 0E 00 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 0E 00 26 37 00 09 00 01 89 19 24 67 00 00 00 00 90 00 13 [00:23:18]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:23:18]wFMCommunicate OK [00:23:18]SAM_PROTO_GetShiftState done [00:23:18]FM_GetShiftState done [00:23:18]req_shift_opened done [00:23:18]requested_item shift.open_date is exist - process it [00:23:18]req_shift_open_date [00:23:18]req_shift_open_date done [00:23:18]produce_requested_data done [00:23:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139830,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:23:18]process_action_free close_receipt [00:23:18]json_value_free [00:23:18]json_value_free done [00:23:18]process_json_proto returns [00:23:18]Send response to host [00:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139830,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:23:18]free response buf [00:23:18]execute_script done [00:23:18]execute_script returns [00:23:18]free content buf [00:23:18]Sock 7.Close socket [00:23:18]Sock 7.Thread stoped [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:45]accept exits with 9 [00:24:45]New connection [00:24:45]New thread 3066510692 created [00:24:45]Thread 3066654052 joined [00:24:45]Waiting for new connection... [00:24:45] Sock 9.Parse request [00:24:45]Sock 9.Check first char [00:24:45]Sock 9.First char is OK [00:24:45]request: POST /json_proto HTTP/1.0 [00:24:45]Method: POST [00:24:45]URL: /json_proto [00:24:45]Method is POST - this is cgi request [00:24:45]url: /json_proto [00:24:45]query_string will be loaded in cgi processing [00:24:45]execute_cgi json_proto POST (null) [00:24:45]execute_cgi path=json_proto method=POST [00:24:45]POST find Content-Length [00:24:45]Host: 172.17.50.196:8080 [00:24:45]Content-Length: 630 [00:24:45]Content-Type: application/json [00:24:45] [00:24:45]POST finish read [00:24:45]Found Content-Length = 630 [00:24:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335661", "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" ] } } [00:24:45]execute_script... [00:24: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)335661", "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" ] } } [00:24:45]POST & json_proto [00:24:45]process_json_proto [00:24:45]json parsed OK: [00:24:45]protocol is kg_v1.0 [00:24:45]action value=close_receipt [00:24:45]process_action close_receipt [00:24:45]cmd_close_receipt [00:24:45]MH_GetDate [00:24:45]Write to MH i2c: F0 00 00 27 37 4D [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: F0 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: F0 09 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: F0 09 00 27 37 00 D0 1F 24 67 72 0D 1C 67 D2 [00:24:45]GetLastDocTimeStamp 1730420597 [00:24:45]current date 1730420688 [00:24:45]FM_GetShiftState [00:24:45]SAM_PROTO_GetShiftState [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 13 01 00 [00:24:45]Write to MH i2c: E2 08 00 28 37 80 13 01 00 00 00 00 00 DC [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 0E 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 0E 00 28 37 00 09 00 01 89 19 24 67 00 00 00 00 90 00 15 [00:24:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:24:45]wFMCommunicate OK [00:24:45]SAM_PROTO_GetShiftState done [00:24:45]FM_GetShiftState done [00:24:45]opened in 1730419081 [00:24:45]opened+sec_in_day 1730505481 [00:24:45]quantity*price = 5000 [00:24:45]sum+1 = 5001 [00:24:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 12 01.11.2024 00:24 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139831 ФПД: 173498535994864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139831&fm=173498535994864&tin=02508201610067®Number=0000000000091631&sum=5000 0 [00:24:46]StoreToDocumentArchive [00:24:46]shift 558 fd 139831 [00:24:46]save to /storage/0558/doc_00139831 [00:24:46]save last doc name /storage/0558/doc_00139831 to /storage/kkm_last_doc_name [00:24:46]save OK [00:24:46]Clear old archive folders... [00:24:46]ProcessDocumentItem done err = 0, tmpTLVsize=269 [00:24:46]tlvbuf is B6D5F630 [00:24:46]SAM_PROTO_ClearQueue [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 09 00 00 [00:24:46]Write to MH i2c: E2 08 00 35 37 80 09 00 00 00 00 00 00 DE [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 35 37 00 90 00 E0 [00:24:46]RAPDU: 90 00 [00:24:46]wFMCommunicate OK [00:24:46]SAM_PROTO_ClearQueue done [00:24:46]KKMCreateOFDPacket [00:24:46]OFDProtocolAddRootSTLVToBuf [00:24:46]FM_MakeSignedData [00:24:46]FM_MakeSignedData [00:24:46]SAM_PROTO_SignData [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 0D 01 02 [00:24:46]Write to MH i2c: E2 08 00 36 37 80 0D 01 02 00 00 00 00 E6 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 36 37 00 90 00 E1 [00:24:46]RAPDU: 90 00 [00:24:46]wFMCommunicate OK [00:24:46]wFMCommunicate request_size=255 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D0 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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:24:46]Write to MH i2c: E2 02 01 37 37 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 0C 00 00 00 F4 03 04 00 D0 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 AE [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 37 37 00 90 00 E2 [00:24:46]RAPDU: 90 00 [00:24:46]wFMCommunicate OK [00:24:46]wFMCommunicate request_size=28 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 37 22 02 00 35 04 06 00 9D CB C6 9B 65 F0 [00:24:46]Write to MH i2c: E2 1F 00 38 37 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 37 22 02 00 35 04 06 00 9D CB C6 9B 65 F0 00 00 F7 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 03 00 38 37 00 90 00 E3 [00:24:46]RAPDU: 90 00 [00:24:46]wFMCommunicate OK [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 0D 03 02 [00:24:46]Write to MH i2c: E2 08 00 39 37 80 0D 03 02 00 00 00 00 EB [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 0B 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 0B 00 39 37 00 2B 9E D3 72 52 37 5D 72 90 00 52 [00:24:46]RAPDU: 2B 9E D3 72 52 37 5D 72 90 00 [00:24:46]wFMCommunicate OK [00:24:46]SAM_PROTO_SignData done [00:24:46]FM_MakeSignedData done [00:24:46]CreateOFDProtocolMessage [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 11 00 00 [00:24:46]Write to MH i2c: E2 08 00 3A 37 80 11 00 00 00 00 00 00 EB [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:46]Read from MH i2c: E2 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 17 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: E2 17 00 3A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 46 [00:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:24:46]wFMCommunicate OK [00:24:46]CreateOFDProtocolMessage done [00:24:46]OFDSenderStorePacket 139831 [00:24:46]StoreOFDPacket docnum=139831 [00:24: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 21 01 00 00 5A 37 19 01 DD 40 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 0C 00 00 00 F4 03 04 00 D0 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 37 22 02 00 35 04 06 00 9D CB C6 9B 65 F0 2B 9E D3 72 52 37 5D 72 [00:24:46]CheckFolder [00:24:46]dirname=/storage/ofd_packets [00:24:46]CheckFolder done [00:24:46]ProducePacketName [00:24:46]name=ofd_packets/00139831 [00:24:46]NVStorageSaveData ofd_packets/00139831 [00:24:46]File name is /storage/ofd_packets/00139831 [00:24:46]Write 319 bytes [00:24:46]NVStorageSaveData done [00:24:46]OFDSenderStorePacket done [00:24:46]KKMCreateOFDPacket done [00:24:46]NVStorageSaveData kkm_last_timestamp [00:24:46]File name is /storage/kkm_last_timestamp [00:24:46]Write 4 bytes [00:24:46]NVStorageSaveData done [00:24:46]ExternCall_PrintAddStr [00:24:46]wPrintStart [00:24:46]Write to MH i2c: 01 00 00 3B 37 72 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 07 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 07 00 3B 37 00 00 00 00 00 FF 0F 87 [00:24:46]RasterBufferAndPrint [00:24:46]line Счет N : (3)335661 [00:24:46]line ИНН: 02508201610067 [00:24:46]line Контрольно-Кассовый Чек [00:24:46]line ПРОДАЖА [00:24:46]line Товар: 4700000160358 [00:24:46]line Вода Легенда 1л [00:24:46]line 1.000 * 50.00 [00:24:46]line = 50.00 [00:24:46]line НДС 12% НСП 1% [00:24:46]line > о реализуемом товаре [00:24:46]line ИТОГО: 50.00 [00:24:46]line НСП 1% : 0.44 [00:24:46]line НДС 12% : 5.31 [00:24:46]line Наличными: 50.00 [00:24:46]line Безнал.: 0.00 [00:24:46]line Место: АЗС № 101 "Партнер Нефть" [00:24:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:24:46]line СНО: Общий режим [00:24:46]line Чек 12 01.11.2024 00:24 [00:24:46]line Смена: 558 ФФД: 1.0 [00:24:46]line ЗНМ: 0300000081 [00:24:46]line РНМ: 0000000000091631 [00:24:46]line Версия ККМ: 001 [00:24:46]line ФМ: 0000000000874669 [00:24:46]line ФД: 139831 [00:24:46]line ФПД: 173498535994864 [00:24:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139831&fm=173498535994864&tin=02508201610067®Number=0000000000091631&sum=5000 [00:24:47]OFD Sender: Processing packet 139831 [packets to send 34, broken 33] [00:24:47]ProducePacketName [00:24:47]name=ofd_packets/00139831 [00:24:47]OFD Sender: To server: pG, [00:24:47]CommunicateWithHost lk.salyk.kg:30040 [00:24:47]ConnectInit lk.salyk.kg [00:24:47]line 0 [00:24:47]written 0, free lines is 4095 [00:24:47]Connected sock=10 [00:24: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 21 01 00 00 5A 37 19 01 DD 40 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 0C 00 00 00 F4 03 04 00 D0 1F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 37 22 02 00 35 04 06 00 9D CB C6 9B 65 F0 2B 9E D3 72 52 37 5D 72 [00:24: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 B9 CF 47 00 F2 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 37 22 02 00 F4 03 04 00 7C CB 23 67 B6 04 01 00 00 62 44 CC 15 DD C5 E9 D7 [00:24:47]CommunicateWithHost err = 0 [00:24:47]CheckOFDResponse [00:24:47]1017 (14) - 77093643461234 [00:24:47]1041 (16) - 0000000000874669 [00:24:47]1040 (4) - 139831 [00:24:47]1012 (4) - 31.10.2024 18:25 [00:24:47]1206 (1) - 0 [00:24:47]OFD Sender: Remove packet 139831 [00:24:47]ProducePacketName [00:24:47]name=ofd_packets/00139831 [00:24:47]NVStorageDeleteData [00:24:47]Write to MH i2c: 01 00 00 63 37 9A [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: 01 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: 01 07 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: 01 07 00 63 37 00 00 00 00 00 02 0D B0 [00:24:47]RasterBufferAndPrint [00:24:47]line [00:24:47]line [00:24:47]line [00:24:47]line [00:24:47]line [00:24:47]written 0, free lines is 3336 [00:24:47]MH_Cut [00:24:47]Write to MH i2c: D1 01 00 6A 37 01 73 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: D1 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: D1 01 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: D1 01 00 6A 37 00 72 [00:24:47]Write to MH i2c: 01 00 00 6B 37 A2 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]OFD Sender: No OFD packet to send [00:24:48]*** Cut start [00:24:48]*** Partial cut [00:24:48]*** CUTSNS_PIN = 1 [00:24:48]*** CUTSNS_PIN = 0 [00:24:48]*** Brake cut motor [00:24:48]Read from MH i2c: 01 [00:24:48]MH_I2C_Read... [00:24:48]*** Stop cut motor [00:24:48]*** Cut end [00:24:48]Read from MH i2c: 01 07 00 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: 01 07 00 6B 37 00 00 00 00 00 FF 0F B7 [00:24:48]process_action close_receipt done [00:24:48]requested_data is exist [00:24:48]produce_requested_data [00:24:48]requested_item fm.sn is exist - process it [00:24:48]wFMCommunicate request_size=4 [00:24:48]MH_SAM_APDU [00:24:48]CAPDU: 80 11 00 00 [00:24:48]Write to MH i2c: E2 08 00 6C 37 80 11 00 00 00 00 00 00 1D [00:24:48]Write i2c OK [00:24:48]MH_I2C_Read... [00:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:48]Read from MH i2c: E2 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 17 00 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 17 00 6C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 78 [00:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:24:48]wFMCommunicate OK [00:24:48]requested_item fd.num is exist - process it [00:24:48]SAM_PROTO_GetFieldsCounters [00:24:48]wFMCommunicate request_size=4 [00:24:48]MH_SAM_APDU [00:24:48]CAPDU: 80 13 00 00 [00:24:48]Write to MH i2c: E2 08 00 6D 37 80 13 00 00 00 00 00 00 20 [00:24:48]Write i2c OK [00:24:48]MH_I2C_Read... [00:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:48]Read from MH i2c: E2 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 62 00 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 62 00 6D 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 37 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:24: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 37 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:48]wFMCommunicate OK [00:24:48]SAM_PROTO_GetFieldsCounters done [00:24:48]requested_item shift.num is exist - process it [00:24:48]requested_item shift.opened is exist - process it [00:24:48]req_shift_opened [00:24:48]FM_GetShiftState [00:24:48]SAM_PROTO_GetShiftState [00:24:48]wFMCommunicate request_size=4 [00:24:48]MH_SAM_APDU [00:24:48]CAPDU: 80 13 01 00 [00:24:48]Write to MH i2c: E2 08 00 6E 37 80 13 01 00 00 00 00 00 22 [00:24:48]Write i2c OK [00:24:48]MH_I2C_Read... [00:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:49]Read from MH i2c: E2 [00:24:49]MH_I2C_Read... [00:24:49]Read from MH i2c: E2 0E 00 [00:24:49]MH_I2C_Read... [00:24:49]Read from MH i2c: E2 0E 00 6E 37 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5B [00:24:49]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:24:49]wFMCommunicate OK [00:24:49]SAM_PROTO_GetShiftState done [00:24:49]FM_GetShiftState done [00:24:49]req_shift_opened done [00:24:49]requested_item shift.open_date is exist - process it [00:24:49]req_shift_open_date [00:24:49]req_shift_open_date done [00:24:49]produce_requested_data done [00:24:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139831,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:24:49]process_action_free close_receipt [00:24:49]json_value_free [00:24:49]json_value_free done [00:24:49]process_json_proto returns [00:24:49]Send response to host [00:24:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139831,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:24:49]free response buf [00:24:49]execute_script done [00:24:49]execute_script returns [00:24:49]free content buf [00:24:49]Sock 9.Close socket [00:24:49]Sock 9.Thread stoped [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:54]accept exits with 7 [00:29:54]New connection [00:29:54]New thread 3066654052 created [00:29:54]Thread 3066510692 joined [00:29:54]Waiting for new connection... [00:29:54] Sock 7.Parse request [00:29:54]Sock 7.Check first char [00:29:54]Sock 7.First char is OK [00:29:54]request: POST /json_proto HTTP/1.0 [00:29:54]Method: POST [00:29:54]URL: /json_proto [00:29:54]Method is POST - this is cgi request [00:29:54]url: /json_proto [00:29:54]query_string will be loaded in cgi processing [00:29:54]execute_cgi json_proto POST (null) [00:29:54]execute_cgi path=json_proto method=POST [00:29:54]POST find Content-Length [00:29:54]Host: 172.17.50.196:8080 [00:29:54]Content-Length: 655 [00:29:54]Content-Type: application/json [00:29:54] [00:29:54]POST finish read [00:29:54]Found Content-Length = 655 [00:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335662", "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" ] } } [00:29:54]execute_script... [00:29: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)335662", "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" ] } } [00:29:54]POST & json_proto [00:29:54]process_json_proto [00:29:54]json parsed OK: [00:29:54]protocol is kg_v1.0 [00:29:54]action value=close_receipt [00:29:54]process_action close_receipt [00:29:54]cmd_close_receipt [00:29:54]MH_GetDate [00:29:54]Write to MH i2c: F0 00 00 6F 37 95 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 6F 37 00 05 21 24 67 72 0D 1C 67 51 [00:29:54]GetLastDocTimeStamp 1730420688 [00:29:54]current date 1730420997 [00:29:54]FM_GetShiftState [00:29:54]SAM_PROTO_GetShiftState [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 13 01 00 [00:29:54]Write to MH i2c: E2 08 00 70 37 80 13 01 00 00 00 00 00 24 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 0E 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 0E 00 70 37 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5D [00:29:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:29:54]wFMCommunicate OK [00:29:54]SAM_PROTO_GetShiftState done [00:29:54]FM_GetShiftState done [00:29:54]opened in 1730419081 [00:29:54]opened+sec_in_day 1730505481 [00:29:54]quantity*price = 6900 [00:29:54]sum+1 = 6901 [00:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 13 01.11.2024 00:29 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139832 ФПД: 187103661093220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002957&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139832&fm=187103661093220&tin=02508201610067®Number=0000000000091631&sum=6900 0 [00:29:55]StoreToDocumentArchive [00:29:55]shift 558 fd 139832 [00:29:55]save to /storage/0558/doc_00139832 [00:29:55]save last doc name /storage/0558/doc_00139832 to /storage/kkm_last_doc_name [00:29:55]save OK [00:29:55]Clear old archive folders... [00:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=294 [00:29:55]tlvbuf is 00A86D60 [00:29:55]SAM_PROTO_ClearQueue [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 09 00 00 [00:29:55]Write to MH i2c: E2 08 00 7D 37 80 09 00 00 00 00 00 00 26 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 7D 37 00 90 00 28 [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]SAM_PROTO_ClearQueue done [00:29:55]KKMCreateOFDPacket [00:29:55]OFDProtocolAddRootSTLVToBuf [00:29:55]FM_MakeSignedData [00:29:55]FM_MakeSignedData [00:29:55]SAM_PROTO_SignData [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 0D 01 02 [00:29:55]Write to MH i2c: E2 08 00 7E 37 80 0D 01 02 00 00 00 00 2E [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 7E 37 00 90 00 29 [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=255 [00:29:55]MH_SAM_APDU [00:29:55]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 0D 00 00 00 F4 03 04 00 05 21 24 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:29:55]Write to MH i2c: E2 02 01 7F 37 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 0D 00 00 00 F4 03 04 00 05 21 24 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 2B [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 7F 37 00 90 00 2A [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=53 [00:29:55]MH_SAM_APDU [00:29:55]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 38 22 02 00 35 04 06 00 AA 2B 77 41 71 64 [00:29:55]Write to MH i2c: E2 38 00 80 37 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 38 22 02 00 35 04 06 00 AA 2B 77 41 71 64 00 00 E7 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 80 37 00 90 00 2B [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 0D 03 02 [00:29:55]Write to MH i2c: E2 08 00 81 37 80 0D 03 02 00 00 00 00 33 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 0B 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 0B 00 81 37 00 89 E8 92 C8 60 2E D8 0B 90 00 70 [00:29:55]RAPDU: 89 E8 92 C8 60 2E D8 0B 90 00 [00:29:55]wFMCommunicate OK [00:29:55]SAM_PROTO_SignData done [00:29:55]FM_MakeSignedData done [00:29:55]CreateOFDProtocolMessage [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 11 00 00 [00:29:55]Write to MH i2c: E2 08 00 82 37 80 11 00 00 00 00 00 00 33 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 17 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 17 00 82 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [00:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:29:55]wFMCommunicate OK [00:29:55]CreateOFDProtocolMessage done [00:29:55]OFDSenderStorePacket 139832 [00:29:55]StoreOFDPacket docnum=139832 [00:29: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 3A 01 00 00 1B 64 32 01 41 3C 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 0D 00 00 00 F4 03 04 00 05 21 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 38 22 02 00 35 04 06 00 AA 2B 77 41 71 64 89 E8 92 C8 60 2E D8 0B [00:29:55]CheckFolder [00:29:55]dirname=/storage/ofd_packets [00:29:55]CheckFolder done [00:29:55]ProducePacketName [00:29:55]name=ofd_packets/00139832 [00:29:55]NVStorageSaveData ofd_packets/00139832 [00:29:55]File name is /storage/ofd_packets/00139832 [00:29:55]Write 344 bytes [00:29:55]NVStorageSaveData done [00:29:55]OFDSenderStorePacket done [00:29:55]KKMCreateOFDPacket done [00:29:55]NVStorageSaveData kkm_last_timestamp [00:29:55]File name is /storage/kkm_last_timestamp [00:29:55]Write 4 bytes [00:29:55]NVStorageSaveData done [00:29:55]ExternCall_PrintAddStr [00:29:55]wPrintStart [00:29:55]Write to MH i2c: 01 00 00 83 37 BA [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: 01 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: 01 07 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: 01 07 00 83 37 00 00 00 00 00 FF 0F CF [00:29:55]RasterBufferAndPrint [00:29:55]line Счет N : (3)335662 [00:29:55]line ИНН: 02508201610067 [00:29:55]line Контрольно-Кассовый Чек [00:29:55]line ПРОДАЖА [00:29:55]line Товар: 4600682557456 [00:29:55]line Напиток FLash up energy эн ж/б 0,5/0,45л [00:29:55]line 1.000 * 69.00 [00:29:55]line = 69.00 [00:29:55]line НДС 12% НСП 1% [00:29:55]line > о реализуемом товаре [00:29:55]line ИТОГО: 69.00 [00:29:55]line НСП 1% : 0.61 [00:29:55]line НДС 12% : 7.33 [00:29:55]line Наличными: 69.00 [00:29:55]line Безнал.: 0.00 [00:29:55]line Место: АЗС № 101 "Партнер Нефть" [00:29:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:29:55]line СНО: Общий режим [00:29:55]line Чек 13 01.11.2024 00:29 [00:29:55]line Смена: 558 ФФД: 1.0 [00:29:55]line ЗНМ: 0300000081 [00:29:55]line РНМ: 0000000000091631 [00:29:55]line Версия ККМ: 001 [00:29:55]line ФМ: 0000000000874669 [00:29:55]line ФД: 139832 [00:29:55]line ФПД: 187103661093220 [00:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T002957&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139832&fm=187103661093220&tin=02508201610067®Number=0000000000091631&sum=6900 [00:29:56]line 0 [00:29:56]OFD Sender: Processing packet 139832 [packets to send 34, broken 33] [00:29:56]ProducePacketName [00:29:56]name=ofd_packets/00139832 [00:29:56]OFD Sender: To server: pG, [00:29:56]CommunicateWithHost lk.salyk.kg:30040 [00:29:56]ConnectInit lk.salyk.kg [00:29:56]written 0, free lines is 4095 [00:29:56]Write to MH i2c: 01 00 00 AC 37 E3 [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: 01 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: 01 07 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: 01 07 00 AC 37 00 00 00 00 00 F5 0C EB [00:29:56]RasterBufferAndPrint [00:29:56]line [00:29:56]line [00:29:56]line [00:29:56]line [00:29:56]line [00:29:56]written 0, free lines is 3324 [00:29:56]MH_Cut [00:29:56]Write to MH i2c: D1 01 00 B3 37 01 BC [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: D1 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: D1 01 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: D1 01 00 B3 37 00 BB [00:29:56]Write to MH i2c: 01 00 00 B4 37 EB [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:57]*** Cut start [00:29:57]*** Partial cut [00:29:57]*** CUTSNS_PIN = 1 [00:29:57]*** CUTSNS_PIN = 0 [00:29:57]*** Brake cut motor [00:29:57]Read from MH i2c: 01 [00:29:57]MH_I2C_Read... [00:29:57]*** Stop cut motor [00:29:57]*** Cut end [00:29:57]Read from MH i2c: 01 07 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: 01 07 00 B4 37 00 00 00 00 00 FF 0F 00 [00:29:57]process_action close_receipt done [00:29:57]requested_data is exist [00:29:57]produce_requested_data [00:29:57]requested_item fm.sn is exist - process it [00:29:57]wFMCommunicate request_size=4 [00:29:57]MH_SAM_APDU [00:29:57]CAPDU: 80 11 00 00 [00:29:57]Write to MH i2c: E2 08 00 B5 37 80 11 00 00 00 00 00 00 66 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 17 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 17 00 B5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [00:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:29:58]wFMCommunicate OK [00:29:58]requested_item fd.num is exist - process it [00:29:58]SAM_PROTO_GetFieldsCounters [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 13 00 00 [00:29:58]Write to MH i2c: E2 08 00 B6 37 80 13 00 00 00 00 00 00 69 [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 62 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 62 00 B6 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 38 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [00:29: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 38 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:58]wFMCommunicate OK [00:29:58]SAM_PROTO_GetFieldsCounters done [00:29:58]requested_item shift.num is exist - process it [00:29:58]requested_item shift.opened is exist - process it [00:29:58]req_shift_opened [00:29:58]FM_GetShiftState [00:29:58]SAM_PROTO_GetShiftState [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 13 01 00 [00:29:58]Write to MH i2c: E2 08 00 B7 37 80 13 01 00 00 00 00 00 6B [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 0E 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 0E 00 B7 37 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A4 [00:29:58]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:29:58]wFMCommunicate OK [00:29:58]SAM_PROTO_GetShiftState done [00:29:58]FM_GetShiftState done [00:29:58]req_shift_opened done [00:29:58]requested_item shift.open_date is exist - process it [00:29:58]req_shift_open_date [00:29:58]req_shift_open_date done [00:29:58]produce_requested_data done [00:29:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139832,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:29:58]process_action_free close_receipt [00:29:58]json_value_free [00:29:58]json_value_free done [00:29:58]process_json_proto returns [00:29:58]Send response to host [00:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139832,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:29:58]free response buf [00:29:58]execute_script done [00:29:58]execute_script returns [00:29:58]free content buf [00:29:58]Sock 7.Close socket [00:29:58]Sock 7.Thread stoped [00:30:07]accept exits with 9 [00:30:07]New connection [00:30:07]New thread 3066510692 created [00:30:07]Thread 3066654052 joined [00:30:07]Waiting for new connection... [00:30:07] Sock 9.Parse request [00:30:07]Sock 9.Check first char [00:30:07]Sock 9.First char is OK [00:30:07]request: POST /json_proto HTTP/1.0 [00:30:07]Method: POST [00:30:07]URL: /json_proto [00:30:07]Method is POST - this is cgi request [00:30:07]url: /json_proto [00:30:07]query_string will be loaded in cgi processing [00:30:07]execute_cgi json_proto POST (null) [00:30:07]execute_cgi path=json_proto method=POST [00:30:07]POST find Content-Length [00:30:07]Host: 172.17.50.196:8080 [00:30:07]Content-Length: 630 [00:30:07]Content-Type: application/json [00:30:07] [00:30:07]POST finish read [00:30:07]Found Content-Length = 630 [00:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335663", "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" ] } } [00:30:07]execute_script... [00:30: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)335663", "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" ] } } [00:30:07]POST & json_proto [00:30:07]process_json_proto [00:30:07]json parsed OK: [00:30:07]protocol is kg_v1.0 [00:30:07]action value=close_receipt [00:30:07]process_action close_receipt [00:30:07]cmd_close_receipt [00:30:07]MH_GetDate [00:30:07]Write to MH i2c: F0 00 00 B8 37 DE [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: F0 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: F0 09 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: F0 09 00 B8 37 00 12 21 24 67 72 0D 1C 67 A7 [00:30:07]GetLastDocTimeStamp 1730420997 [00:30:07]current date 1730421010 [00:30:07]FM_GetShiftState [00:30:07]SAM_PROTO_GetShiftState [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 13 01 00 [00:30:07]Write to MH i2c: E2 08 00 B9 37 80 13 01 00 00 00 00 00 6D [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 0E 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 0E 00 B9 37 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A6 [00:30:07]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:30:07]wFMCommunicate OK [00:30:07]SAM_PROTO_GetShiftState done [00:30:07]FM_GetShiftState done [00:30:07]opened in 1730419081 [00:30:07]opened+sec_in_day 1730505481 [00:30:07]quantity*price = 5000 [00:30:07]sum+1 = 5001 [00:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 14 01.11.2024 00:30 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139833 ФПД: 27885348226217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003010&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139833&fm=27885348226217&tin=02508201610067®Number=0000000000091631&sum=5000 0 [00:30:08]StoreToDocumentArchive [00:30:08]shift 558 fd 139833 [00:30:08]save to /storage/0558/doc_00139833 [00:30:08]save last doc name /storage/0558/doc_00139833 to /storage/kkm_last_doc_name [00:30:08]save OK [00:30:08]Clear old archive folders... [00:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=269 [00:30:08]tlvbuf is 00A3B260 [00:30:08]SAM_PROTO_ClearQueue [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 09 00 00 [00:30:08]Write to MH i2c: E2 08 00 C6 37 80 09 00 00 00 00 00 00 6F [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 C6 37 00 90 00 71 [00:30:08]RAPDU: 90 00 [00:30:08]wFMCommunicate OK [00:30:08]SAM_PROTO_ClearQueue done [00:30:08]KKMCreateOFDPacket [00:30:08]OFDProtocolAddRootSTLVToBuf [00:30:08]FM_MakeSignedData [00:30:08]FM_MakeSignedData [00:30:08]SAM_PROTO_SignData [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 0D 01 02 [00:30:08]Write to MH i2c: E2 08 00 C7 37 80 0D 01 02 00 00 00 00 77 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 C7 37 00 90 00 72 [00:30:08]RAPDU: 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=255 [00:30:08]MH_SAM_APDU [00:30:08]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 0E 00 00 00 F4 03 04 00 12 21 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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:30:08]Write to MH i2c: E2 02 01 C8 37 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 0E 00 00 00 F4 03 04 00 12 21 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 85 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 C8 37 00 90 00 73 [00:30:08]RAPDU: 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=28 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 39 22 02 00 35 04 06 00 19 5C 90 46 84 A9 [00:30:08]Write to MH i2c: E2 1F 00 C9 37 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 39 22 02 00 35 04 06 00 19 5C 90 46 84 A9 00 00 E4 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 03 00 C9 37 00 90 00 74 [00:30:08]RAPDU: 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 0D 03 02 [00:30:08]Write to MH i2c: E2 08 00 CA 37 80 0D 03 02 00 00 00 00 7C [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 0B 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 0B 00 CA 37 00 08 D3 50 4F AD D9 8B DF 90 00 E7 [00:30:08]RAPDU: 08 D3 50 4F AD D9 8B DF 90 00 [00:30:08]wFMCommunicate OK [00:30:08]SAM_PROTO_SignData done [00:30:08]FM_MakeSignedData done [00:30:08]CreateOFDProtocolMessage [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 11 00 00 [00:30:08]Write to MH i2c: E2 08 00 CB 37 80 11 00 00 00 00 00 00 7C [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 17 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 17 00 CB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [00:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:30:08]wFMCommunicate OK [00:30:08]CreateOFDProtocolMessage done [00:30:08]OFDSenderStorePacket 139833 [00:30:08]StoreOFDPacket docnum=139833 [00:30: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 21 01 00 00 55 4F 19 01 AF F2 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 0E 00 00 00 F4 03 04 00 12 21 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 22 02 00 35 04 06 00 19 5C 90 46 84 A9 08 D3 50 4F AD D9 8B DF [00:30:08]CheckFolder [00:30:08]dirname=/storage/ofd_packets [00:30:08]CheckFolder done [00:30:08]ProducePacketName [00:30:08]name=ofd_packets/00139833 [00:30:08]NVStorageSaveData ofd_packets/00139833 [00:30:08]File name is /storage/ofd_packets/00139833 [00:30:08]Write 319 bytes [00:30:08]NVStorageSaveData done [00:30:08]OFDSenderStorePacket done [00:30:08]KKMCreateOFDPacket done [00:30:08]NVStorageSaveData kkm_last_timestamp [00:30:08]File name is /storage/kkm_last_timestamp [00:30:08]Write 4 bytes [00:30:08]NVStorageSaveData done [00:30:08]ExternCall_PrintAddStr [00:30:08]wPrintStart [00:30:08]Write to MH i2c: 01 00 00 CC 37 03 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 07 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 07 00 CC 37 00 00 00 00 00 FF 0F 18 [00:30:08]RasterBufferAndPrint [00:30:08]line Счет N : (3)335663 [00:30:08]line ИНН: 02508201610067 [00:30:08]line Контрольно-Кассовый Чек [00:30:08]line ПРОДАЖА [00:30:08]line Товар: 4700000160358 [00:30:08]line Вода Легенда 1л [00:30:08]line 1.000 * 50.00 [00:30:08]line = 50.00 [00:30:08]line НДС 12% НСП 1% [00:30:08]line > о реализуемом товаре [00:30:08]line ИТОГО: 50.00 [00:30:08]line НСП 1% : 0.44 [00:30:08]line НДС 12% : 5.31 [00:30:08]line Наличными: 50.00 [00:30:08]line Безнал.: 0.00 [00:30:08]line Место: АЗС № 101 "Партнер Нефть" [00:30:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:30:08]line СНО: Общий режим [00:30:08]line Чек 14 01.11.2024 00:30 [00:30:08]line Смена: 558 ФФД: 1.0 [00:30:08]line ЗНМ: 0300000081 [00:30:08]line РНМ: 0000000000091631 [00:30:08]line Версия ККМ: 001 [00:30:08]line ФМ: 0000000000874669 [00:30:08]line ФД: 139833 [00:30:08]line ФПД: 27885348226217 [00:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003010&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139833&fm=27885348226217&tin=02508201610067®Number=0000000000091631&sum=5000 [00:30:09]line 0 [00:30:09]written 0, free lines is 4095 [00:30:09]Write to MH i2c: 01 00 00 F4 37 2B [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: 01 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: 01 07 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: 01 07 00 F4 37 00 00 00 00 00 01 0D 40 [00:30:09]RasterBufferAndPrint [00:30:09]line [00:30:09]line [00:30:09]line [00:30:09]line [00:30:09]line [00:30:09]written 0, free lines is 3335 [00:30:09]MH_Cut [00:30:09]Write to MH i2c: D1 01 00 FB 37 01 04 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: D1 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: D1 01 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: D1 01 00 FB 37 00 03 [00:30:09]Write to MH i2c: 01 00 00 FC 37 33 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:10]*** Cut start [00:30:10]*** Partial cut [00:30:10]*** CUTSNS_PIN = 1 [00:30:10]*** CUTSNS_PIN = 0 [00:30:10]*** Brake cut motor [00:30:10]Read from MH i2c: 01 [00:30:10]MH_I2C_Read... [00:30:10]*** Stop cut motor [00:30:10]*** Cut end [00:30:10]Read from MH i2c: 01 07 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 FF 0F 48 [00:30:10]process_action close_receipt done [00:30:10]requested_data is exist [00:30:10]produce_requested_data [00:30:10]requested_item fm.sn is exist - process it [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 11 00 00 [00:30:10]Write to MH i2c: E2 08 00 FD 37 80 11 00 00 00 00 00 00 AE [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 17 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 17 00 FD 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 09 [00:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:30:10]wFMCommunicate OK [00:30:10]requested_item fd.num is exist - process it [00:30:10]SAM_PROTO_GetFieldsCounters [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 13 00 00 [00:30:10]Write to MH i2c: E2 08 00 FE 37 80 13 00 00 00 00 00 00 B1 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 62 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 62 00 FE 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 39 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [00:30:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 39 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:10]wFMCommunicate OK [00:30:10]SAM_PROTO_GetFieldsCounters done [00:30:10]requested_item shift.num is exist - process it [00:30:10]requested_item shift.opened is exist - process it [00:30:10]req_shift_opened [00:30:10]FM_GetShiftState [00:30:10]SAM_PROTO_GetShiftState [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 13 01 00 [00:30:10]Write to MH i2c: E2 08 00 FF 37 80 13 01 00 00 00 00 00 B3 [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:11]Read from MH i2c: E2 0E 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 0E 00 FF 37 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EC [00:30:11]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:30:11]wFMCommunicate OK [00:30:11]SAM_PROTO_GetShiftState done [00:30:11]FM_GetShiftState done [00:30:11]req_shift_opened done [00:30:11]requested_item shift.open_date is exist - process it [00:30:11]req_shift_open_date [00:30:11]req_shift_open_date done [00:30:11]produce_requested_data done [00:30:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139833,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:30:11]process_action_free close_receipt [00:30:11]json_value_free [00:30:11]json_value_free done [00:30:11]process_json_proto returns [00:30:11]Send response to host [00:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139833,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:30:11]free response buf [00:30:11]execute_script done [00:30:11]execute_script returns [00:30:11]free content buf [00:30:11]Sock 9.Close socket [00:30:11]Sock 9.Thread stoped [00:32:09]ConnectInit Can't connect to host [00:32:09]CommunicateWithHost connect error [00:32:09]CommunicateWithHost err = -1 [00:32:09]OFD Sender: Server communicate error [00:32:09]OFD Sender: Processing packet 139832 [packets to send 35, broken 33] [00:32:09]ProducePacketName [00:32:09]name=ofd_packets/00139832 [00:32:09]OFD Sender: To server: pG, [00:32:09]CommunicateWithHost lk.salyk.kg:30040 [00:32:09]ConnectInit lk.salyk.kg [00:32:09]Connected sock=9 [00:32: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 3A 01 00 00 1B 64 32 01 41 3C 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 0D 00 00 00 F4 03 04 00 05 21 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 38 22 02 00 35 04 06 00 AA 2B 77 41 71 64 89 E8 92 C8 60 2E D8 0B [00:32: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 13 D2 47 00 A2 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 38 22 02 00 F4 03 04 00 36 CD 23 67 B6 04 01 00 00 A5 66 31 E2 61 23 39 5F [00:32:09]CommunicateWithHost err = 0 [00:32:09]CheckOFDResponse [00:32:09]1017 (14) - 77093643461234 [00:32:09]1041 (16) - 0000000000874669 [00:32:09]1040 (4) - 139832 [00:32:09]1012 (4) - 31.10.2024 18:32 [00:32:09]1206 (1) - 0 [00:32:09]OFD Sender: Remove packet 139832 [00:32:09]ProducePacketName [00:32:09]name=ofd_packets/00139832 [00:32:09]NVStorageDeleteData [00:32:10]OFD Sender: Processing packet 139833 [packets to send 34, broken 33] [00:32:10]ProducePacketName [00:32:10]name=ofd_packets/00139833 [00:32:10]OFD Sender: To server: pG, [00:32:10]CommunicateWithHost lk.salyk.kg:30040 [00:32:10]ConnectInit lk.salyk.kg [00:32:10]Connected sock=9 [00:32: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 21 01 00 00 55 4F 19 01 AF F2 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 0E 00 00 00 F4 03 04 00 12 21 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 22 02 00 35 04 06 00 19 5C 90 46 84 A9 08 D3 50 4F AD D9 8B DF [00:32: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 D3 27 47 00 5F E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 39 22 02 00 F4 03 04 00 37 CD 23 67 B6 04 01 00 00 BD E4 F4 A4 20 3A AE 5A [00:32:10]CommunicateWithHost err = 0 [00:32:10]CheckOFDResponse [00:32:10]1017 (14) - 77093643461234 [00:32:10]1041 (16) - 0000000000874669 [00:32:10]1040 (4) - 139833 [00:32:10]1012 (4) - 31.10.2024 18:32 [00:32:10]1206 (1) - 0 [00:32:10]OFD Sender: Remove packet 139833 [00:32:10]ProducePacketName [00:32:10]name=ofd_packets/00139833 [00:32:10]NVStorageDeleteData [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:10]accept exits with 7 [00:37:10]New connection [00:37:10]New thread 3066654052 created [00:37:10]Thread 3066510692 joined [00:37:10]Waiting for new connection... [00:37:10] Sock 7.Parse request [00:37:10]Sock 7.Check first char [00:37:10]Sock 7.First char is OK [00:37:10]request: POST /json_proto HTTP/1.0 [00:37:10]Method: POST [00:37:10]URL: /json_proto [00:37:10]Method is POST - this is cgi request [00:37:10]url: /json_proto [00:37:10]query_string will be loaded in cgi processing [00:37:10]execute_cgi json_proto POST (null) [00:37:10]execute_cgi path=json_proto method=POST [00:37:10]POST find Content-Length [00:37:10]Host: 172.17.50.196:8080 [00:37:10]Content-Length: 685 [00:37:10]Content-Type: application/json [00:37:10] [00:37:10]POST finish read [00:37:10]Found Content-Length = 685 [00:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335664", "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:10]execute_script... [00:37:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335664", "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:10]POST & json_proto [00:37:10]process_json_proto [00:37:10]json parsed OK: [00:37:10]protocol is kg_v1.0 [00:37:10]action value=close_receipt [00:37:10]process_action close_receipt [00:37:10]cmd_close_receipt [00:37:10]MH_GetDate [00:37:10]Write to MH i2c: F0 00 00 00 38 27 [00:37:10]Write i2c OK [00:37:10]MH_I2C_Read... [00:37:10]Read from MH i2c: F0 [00:37:10]MH_I2C_Read... [00:37:10]Read from MH i2c: F0 09 00 [00:37:10]MH_I2C_Read... [00:37:10]Read from MH i2c: F0 09 00 00 38 00 BA 22 24 67 72 0D 1C 67 99 [00:37:10]GetLastDocTimeStamp 1730421010 [00:37:10]current date 1730421434 [00:37:10]FM_GetShiftState [00:37:10]SAM_PROTO_GetShiftState [00:37:10]wFMCommunicate request_size=4 [00:37:10]MH_SAM_APDU [00:37:10]CAPDU: 80 13 01 00 [00:37:10]Write to MH i2c: E2 08 00 01 38 80 13 01 00 00 00 00 00 B6 [00:37:11]Write i2c OK [00:37:11]MH_I2C_Read... [00:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:11]Read from MH i2c: E2 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 0E 00 [00:37:11]MH_I2C_Read... [00:37:11]Read from MH i2c: E2 0E 00 01 38 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EF [00:37:11]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:37:11]wFMCommunicate OK [00:37:11]SAM_PROTO_GetShiftState done [00:37:11]FM_GetShiftState done [00:37:11]opened in 1730419081 [00:37:11]opened+sec_in_day 1730505481 [00:37:11]quantity*price = 8000 [00:37:11]sum+1 = 8001 [00:37:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 15 01.11.2024 00:37 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139834 ФПД: 2628006052194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003714&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139834&fm=2628006052194&tin=02508201610067®Number=0000000000091631&sum=8000 0 [00:37:12]StoreToDocumentArchive [00:37:12]shift 558 fd 139834 [00:37:12]save to /storage/0558/doc_00139834 [00:37:12]save last doc name /storage/0558/doc_00139834 to /storage/kkm_last_doc_name [00:37:12]save OK [00:37:12]Clear old archive folders... [00:37:12]ProcessDocumentItem done err = 0, tmpTLVsize=296 [00:37:12]tlvbuf is 00B88AE0 [00:37:12]SAM_PROTO_ClearQueue [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 09 00 00 [00:37:12]Write to MH i2c: E2 08 00 0E 38 80 09 00 00 00 00 00 00 B8 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 0E 38 00 90 00 BA [00:37:12]RAPDU: 90 00 [00:37:12]wFMCommunicate OK [00:37:12]SAM_PROTO_ClearQueue done [00:37:12]KKMCreateOFDPacket [00:37:12]OFDProtocolAddRootSTLVToBuf [00:37:12]FM_MakeSignedData [00:37:12]FM_MakeSignedData [00:37:12]SAM_PROTO_SignData [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 0D 01 02 [00:37:12]Write to MH i2c: E2 08 00 0F 38 80 0D 01 02 00 00 00 00 C0 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 0F 38 00 90 00 BB [00:37:12]RAPDU: 90 00 [00:37:12]wFMCommunicate OK [00:37:12]wFMCommunicate request_size=255 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 0D 02 02 FA 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BA 22 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [00:37:12]Write to MH i2c: E2 02 01 10 38 80 0D 02 02 FA 00 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BA 22 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 25 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 10 38 00 90 00 BC [00:37:12]RAPDU: 90 00 [00:37:12]wFMCommunicate OK [00:37:12]wFMCommunicate request_size=55 [00:37:12]MH_SAM_APDU [00:37:12]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 3A 22 02 00 35 04 06 00 02 63 E1 5E 01 62 [00:37:12]Write to MH i2c: E2 3A 00 11 38 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 3A 22 02 00 35 04 06 00 02 63 E1 5E 01 62 00 00 84 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 03 00 11 38 00 90 00 BD [00:37:12]RAPDU: 90 00 [00:37:12]wFMCommunicate OK [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 0D 03 02 [00:37:12]Write to MH i2c: E2 08 00 12 38 80 0D 03 02 00 00 00 00 C5 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 0B 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 0B 00 12 38 00 FE 0C EF AF 69 37 02 98 90 00 A8 [00:37:12]RAPDU: FE 0C EF AF 69 37 02 98 90 00 [00:37:12]wFMCommunicate OK [00:37:12]SAM_PROTO_SignData done [00:37:12]FM_MakeSignedData done [00:37:12]CreateOFDProtocolMessage [00:37:12]wFMCommunicate request_size=4 [00:37:12]MH_SAM_APDU [00:37:12]CAPDU: 80 11 00 00 [00:37:12]Write to MH i2c: E2 08 00 13 38 80 11 00 00 00 00 00 00 C5 [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:12]Read from MH i2c: E2 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 17 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: E2 17 00 13 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 20 [00: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 [00:37:12]wFMCommunicate OK [00:37:12]CreateOFDProtocolMessage done [00:37:12]OFDSenderStorePacket 139834 [00:37:12]StoreOFDPacket docnum=139834 [00:37: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 3C 01 00 00 15 1D 34 01 40 76 5A 03 01 00 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BA 22 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3A 22 02 00 35 04 06 00 02 63 E1 5E 01 62 FE 0C EF AF 69 37 02 98 [00:37:12]CheckFolder [00:37:12]dirname=/storage/ofd_packets [00:37:12]CheckFolder done [00:37:12]ProducePacketName [00:37:12]name=ofd_packets/00139834 [00:37:12]NVStorageSaveData ofd_packets/00139834 [00:37:12]File name is /storage/ofd_packets/00139834 [00:37:12]Write 346 bytes [00:37:12]NVStorageSaveData done [00:37:12]OFDSenderStorePacket done [00:37:12]KKMCreateOFDPacket done [00:37:12]NVStorageSaveData kkm_last_timestamp [00:37:12]File name is /storage/kkm_last_timestamp [00:37:12]Write 4 bytes [00:37:12]NVStorageSaveData done [00:37:12]ExternCall_PrintAddStr [00:37:12]wPrintStart [00:37:12]Write to MH i2c: 01 00 00 14 38 4C [00:37:12]Write i2c OK [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: 01 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: 01 07 00 [00:37:12]MH_I2C_Read... [00:37:12]Read from MH i2c: 01 07 00 14 38 00 00 00 00 00 FF 0F 61 [00:37:12]RasterBufferAndPrint [00:37:12]line Счет N : (3)335664 [00:37:12]line ИНН: 02508201610067 [00:37:12]line Контрольно-Кассовый Чек [00:37:12]line ПРОДАЖА [00:37:12]line Товар: 4700003010476 [00:37:12]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [00:37:12]line 1.000 * 80.00 [00:37:12]line = 80.00 [00:37:12]line НДС 12% НСП 1% [00:37:12]line > о реализуемом товаре [00:37:12]line ИТОГО: 80.00 [00:37:12]line НСП 1% : 0.71 [00:37:12]line НДС 12% : 8.50 [00:37:12]line Наличными: 80.00 [00:37:12]line Безнал.: 0.00 [00:37:12]line Место: АЗС № 101 "Партнер Нефть" [00:37:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:37:12]line СНО: Общий режим [00:37:12]line Чек 15 01.11.2024 00:37 [00:37:12]line Смена: 558 ФФД: 1.0 [00:37:12]line ЗНМ: 0300000081 [00:37:12]line РНМ: 0000000000091631 [00:37:12]line Версия ККМ: 001 [00:37:12]line ФМ: 0000000000874669 [00:37:12]line ФД: 139834 [00:37:12]line ФПД: 2628006052194 [00:37:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003714&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139834&fm=2628006052194&tin=02508201610067®Number=0000000000091631&sum=8000 [00:37:13]line 0 [00:37:13]OFD Sender: Processing packet 139834 [packets to send 34, broken 33] [00:37:13]ProducePacketName [00:37:13]name=ofd_packets/00139834 [00:37:13]OFD Sender: To server: pG, [00:37:13]CommunicateWithHost lk.salyk.kg:30040 [00:37:13]ConnectInit lk.salyk.kg [00:37:13]written 0, free lines is 4095 [00:37:13]Connected sock=11 [00:37: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 3C 01 00 00 15 1D 34 01 40 76 5A 03 01 00 03 00 28 01 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BA 22 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3A 22 02 00 35 04 06 00 02 63 E1 5E 01 62 FE 0C EF AF 69 37 02 98 [00:37: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 42 9B 47 00 F3 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3A 22 02 00 F4 03 04 00 66 CE 23 67 B6 04 01 00 00 20 D9 54 18 6B 5F B4 E0 [00:37:13]CommunicateWithHost err = 0 [00:37:13]CheckOFDResponse [00:37:13]1017 (14) - 77093643461234 [00:37:13]1041 (16) - 0000000000874669 [00:37:13]1040 (4) - 139834 [00:37:13]1012 (4) - 31.10.2024 18:37 [00:37:13]1206 (1) - 0 [00:37:13]OFD Sender: Remove packet 139834 [00:37:13]ProducePacketName [00:37:13]name=ofd_packets/00139834 [00:37:13]NVStorageDeleteData [00:37:13]Write to MH i2c: 01 00 00 3D 38 75 [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: 01 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: 01 07 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: 01 07 00 3D 38 00 00 00 00 00 F4 0C 7C [00:37:13]RasterBufferAndPrint [00:37:13]line [00:37:13]line [00:37:13]line [00:37:13]line [00:37:13]line [00:37:13]written 0, free lines is 3322 [00:37:13]MH_Cut [00:37:13]Write to MH i2c: D1 01 00 44 38 01 4E [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: D1 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: D1 01 00 [00:37:13]MH_I2C_Read... [00:37:13]Read from MH i2c: D1 01 00 44 38 00 4D [00:37:13]Write to MH i2c: 01 00 00 45 38 7D [00:37:13]Write i2c OK [00:37:13]MH_I2C_Read... [00:37:13]OFD Sender: No OFD packet to send [00:37:14]*** Cut start [00:37:14]*** Partial cut [00:37:14]*** CUTSNS_PIN = 1 [00:37:14]*** CUTSNS_PIN = 0 [00:37:14]*** Brake cut motor [00:37:14]Read from MH i2c: 01 [00:37:14]MH_I2C_Read... [00:37:14]*** Stop cut motor [00:37:14]*** Cut end [00:37:14]Read from MH i2c: 01 07 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: 01 07 00 45 38 00 00 00 00 00 FF 0F 92 [00:37:14]process_action close_receipt done [00:37:14]requested_data is exist [00:37:14]produce_requested_data [00:37:14]requested_item fm.sn is exist - process it [00:37:14]wFMCommunicate request_size=4 [00:37:14]MH_SAM_APDU [00:37:14]CAPDU: 80 11 00 00 [00:37:14]Write to MH i2c: E2 08 00 46 38 80 11 00 00 00 00 00 00 F8 [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:14]Read from MH i2c: E2 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 17 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 17 00 46 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [00:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:37:14]wFMCommunicate OK [00:37:14]requested_item fd.num is exist - process it [00:37:14]SAM_PROTO_GetFieldsCounters [00:37:14]wFMCommunicate request_size=4 [00:37:14]MH_SAM_APDU [00:37:14]CAPDU: 80 13 00 00 [00:37:14]Write to MH i2c: E2 08 00 47 38 80 13 00 00 00 00 00 00 FB [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:14]Read from MH i2c: E2 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 62 00 [00:37:14]MH_I2C_Read... [00:37:14]Read from MH i2c: E2 62 00 47 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [00:37: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 3A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:14]wFMCommunicate OK [00:37:14]SAM_PROTO_GetFieldsCounters done [00:37:14]requested_item shift.num is exist - process it [00:37:14]requested_item shift.opened is exist - process it [00:37:14]req_shift_opened [00:37:14]FM_GetShiftState [00:37:14]SAM_PROTO_GetShiftState [00:37:14]wFMCommunicate request_size=4 [00:37:14]MH_SAM_APDU [00:37:14]CAPDU: 80 13 01 00 [00:37:14]Write to MH i2c: E2 08 00 48 38 80 13 01 00 00 00 00 00 FD [00:37:14]Write i2c OK [00:37:14]MH_I2C_Read... [00:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:15]Read from MH i2c: E2 [00:37:15]MH_I2C_Read... [00:37:15]Read from MH i2c: E2 0E 00 [00:37:15]MH_I2C_Read... [00:37:15]Read from MH i2c: E2 0E 00 48 38 00 09 00 01 89 19 24 67 00 00 00 00 90 00 36 [00:37:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:37:15]wFMCommunicate OK [00:37:15]SAM_PROTO_GetShiftState done [00:37:15]FM_GetShiftState done [00:37:15]req_shift_opened done [00:37:15]requested_item shift.open_date is exist - process it [00:37:15]req_shift_open_date [00:37:15]req_shift_open_date done [00:37:15]produce_requested_data done [00:37:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139834,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:37:15]process_action_free close_receipt [00:37:15]json_value_free [00:37:15]json_value_free done [00:37:15]process_json_proto returns [00:37:15]Send response to host [00:37:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139834,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:37:15]free response buf [00:37:15]execute_script done [00:37:15]execute_script returns [00:37:15]free content buf [00:37:15]Sock 7.Close socket [00:37:15]Sock 7.Thread stoped [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:56]accept exits with 9 [00:37:56]New connection [00:37:56]New thread 3066510692 created [00:37:56]Thread 3066654052 joined [00:37:56]Waiting for new connection... [00:37:56] Sock 9.Parse request [00:37:56]Sock 9.Check first char [00:37:56]Sock 9.First char is OK [00:37:56]request: POST /json_proto HTTP/1.0 [00:37:56]Method: POST [00:37:56]URL: /json_proto [00:37:56]Method is POST - this is cgi request [00:37:56]url: /json_proto [00:37:56]query_string will be loaded in cgi processing [00:37:56]execute_cgi json_proto POST (null) [00:37:56]execute_cgi path=json_proto method=POST [00:37:56]POST find Content-Length [00:37:56]Host: 172.17.50.196:8080 [00:37:56]Content-Length: 647 [00:37:56]Content-Type: application/json [00:37:56] [00:37:56]POST finish read [00:37:56]Found Content-Length = 647 [00:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335665", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:56]execute_script... [00:37: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)335665", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:56]POST & json_proto [00:37:56]process_json_proto [00:37:56]json parsed OK: [00:37:56]protocol is kg_v1.0 [00:37:56]action value=close_receipt [00:37:56]process_action close_receipt [00:37:56]cmd_close_receipt [00:37:56]MH_GetDate [00:37:56]Write to MH i2c: F0 00 00 49 38 70 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: F0 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: F0 09 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: F0 09 00 49 38 00 E8 22 24 67 72 0D 1C 67 10 [00:37:56]GetLastDocTimeStamp 1730421434 [00:37:56]current date 1730421480 [00:37:56]FM_GetShiftState [00:37:56]SAM_PROTO_GetShiftState [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 13 01 00 [00:37:56]Write to MH i2c: E2 08 00 4A 38 80 13 01 00 00 00 00 00 FF [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:57]Read from MH i2c: E2 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: E2 0E 00 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: E2 0E 00 4A 38 00 09 00 01 89 19 24 67 00 00 00 00 90 00 38 [00:37:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:37:57]wFMCommunicate OK [00:37:57]SAM_PROTO_GetShiftState done [00:37:57]FM_GetShiftState done [00:37:57]opened in 1730419081 [00:37:57]opened+sec_in_day 1730505481 [00:37:57]quantity*price = 26500 [00:37:57]sum+1 = 26501 [00:37:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 16 01.11.2024 00:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139835 ФПД: 243238627641712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003800&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139835&fm=243238627641712&tin=02508201610067®Number=0000000000091631&sum=26500 0 [00:37:58]StoreToDocumentArchive [00:37:58]shift 558 fd 139835 [00:37:58]save to /storage/0558/doc_00139835 [00:37:58]save last doc name /storage/0558/doc_00139835 to /storage/kkm_last_doc_name [00:37:58]save OK [00:37:58]Clear old archive folders... [00:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=279 [00:37:58]tlvbuf is 00A5DE10 [00:37:58]SAM_PROTO_ClearQueue [00:37:58]wFMCommunicate request_size=4 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 09 00 00 [00:37:58]Write to MH i2c: E2 08 00 57 38 80 09 00 00 00 00 00 00 01 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 57 38 00 90 00 03 [00:37:58]RAPDU: 90 00 [00:37:58]wFMCommunicate OK [00:37:58]SAM_PROTO_ClearQueue done [00:37:58]KKMCreateOFDPacket [00:37:58]OFDProtocolAddRootSTLVToBuf [00:37:58]FM_MakeSignedData [00:37:58]FM_MakeSignedData [00:37:58]SAM_PROTO_SignData [00:37:58]wFMCommunicate request_size=4 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 0D 01 02 [00:37:58]Write to MH i2c: E2 08 00 58 38 80 0D 01 02 00 00 00 00 09 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 58 38 00 90 00 04 [00:37:58]RAPDU: 90 00 [00:37:58]wFMCommunicate OK [00:37:58]wFMCommunicate request_size=255 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E8 22 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 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:37:58]Write to MH i2c: E2 02 01 59 38 80 0D 02 02 FA 00 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E8 22 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 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 48 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 59 38 00 90 00 05 [00:37:58]RAPDU: 90 00 [00:37:58]wFMCommunicate OK [00:37:58]wFMCommunicate request_size=38 [00:37:58]MH_SAM_APDU [00:37:58]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 3B 22 02 00 35 04 06 00 DD 39 67 FF 09 70 [00:37:58]Write to MH i2c: E2 29 00 5A 38 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 3B 22 02 00 35 04 06 00 DD 39 67 FF 09 70 00 00 F1 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 5A 38 00 90 00 06 [00:37:58]RAPDU: 90 00 [00:37:58]wFMCommunicate OK [00:37:58]wFMCommunicate request_size=4 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 0D 03 02 [00:37:58]Write to MH i2c: E2 08 00 5B 38 80 0D 03 02 00 00 00 00 0E [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 0B 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 0B 00 5B 38 00 24 DD 98 9F 21 7F DD 09 90 00 CD [00:37:58]RAPDU: 24 DD 98 9F 21 7F DD 09 90 00 [00:37:58]wFMCommunicate OK [00:37:58]SAM_PROTO_SignData done [00:37:58]FM_MakeSignedData done [00:37:58]CreateOFDProtocolMessage [00:37:58]wFMCommunicate request_size=4 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 11 00 00 [00:37:58]Write to MH i2c: E2 08 00 5C 38 80 11 00 00 00 00 00 00 0E [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 17 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 17 00 5C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 69 [00: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 [00:37:58]wFMCommunicate OK [00:37:58]CreateOFDProtocolMessage done [00:37:58]OFDSenderStorePacket 139835 [00:37:58]StoreOFDPacket docnum=139835 [00:37: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 2B 01 00 00 A4 0F 23 01 72 E2 5A 03 01 00 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E8 22 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3B 22 02 00 35 04 06 00 DD 39 67 FF 09 70 24 DD 98 9F 21 7F DD 09 [00:37:58]CheckFolder [00:37:58]dirname=/storage/ofd_packets [00:37:58]CheckFolder done [00:37:58]ProducePacketName [00:37:58]name=ofd_packets/00139835 [00:37:58]NVStorageSaveData ofd_packets/00139835 [00:37:58]File name is /storage/ofd_packets/00139835 [00:37:58]Write 329 bytes [00:37:58]NVStorageSaveData done [00:37:58]OFDSenderStorePacket done [00:37:58]KKMCreateOFDPacket done [00:37:58]NVStorageSaveData kkm_last_timestamp [00:37:58]File name is /storage/kkm_last_timestamp [00:37:58]Write 4 bytes [00:37:58]NVStorageSaveData done [00:37:58]ExternCall_PrintAddStr [00:37:58]wPrintStart [00:37:58]Write to MH i2c: 01 00 00 5D 38 95 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: 01 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: 01 07 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: 01 07 00 5D 38 00 00 00 00 00 FF 0F AA [00:37:58]RasterBufferAndPrint [00:37:58]line Счет N : (3)335665 [00:37:58]line ИНН: 02508201610067 [00:37:58]line Контрольно-Кассовый Чек [00:37:58]line ПРОДАЖА [00:37:58]line Товар: 90448300 [00:37:58]line Энерг напиток Red Bull 0,355л [00:37:58]line 1.000 * 265.00 [00:37:58]line = 265.00 [00:37:58]line НДС 12% НСП 1% [00:37:58]line > о реализуемом товаре [00:37:58]line ИТОГО: 265.00 [00:37:58]line НСП 1% : 2.34 [00:37:58]line НДС 12% : 28.14 [00:37:58]line Наличными: 265.00 [00:37:58]line Безнал.: 0.00 [00:37:58]line Место: АЗС № 101 "Партнер Нефть" [00:37:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:37:58]line СНО: Общий режим [00:37:58]line Чек 16 01.11.2024 00:38 [00:37:58]line Смена: 558 ФФД: 1.0 [00:37:58]line ЗНМ: 0300000081 [00:37:58]line РНМ: 0000000000091631 [00:37:58]line Версия ККМ: 001 [00:37:58]line ФМ: 0000000000874669 [00:37:58]line ФД: 139835 [00:37:58]line ФПД: 243238627641712 [00:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003800&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139835&fm=243238627641712&tin=02508201610067®Number=0000000000091631&sum=26500 [00:37:59]line 0 [00:37:59]OFD Sender: Processing packet 139835 [packets to send 34, broken 33] [00:37:59]ProducePacketName [00:37:59]name=ofd_packets/00139835 [00:37:59]OFD Sender: To server: pG, [00:37:59]CommunicateWithHost lk.salyk.kg:30040 [00:37:59]ConnectInit lk.salyk.kg [00:37:59]written 0, free lines is 4095 [00:37:59]Connected sock=10 [00:37: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 2B 01 00 00 A4 0F 23 01 72 E2 5A 03 01 00 03 00 17 01 1E 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 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E8 22 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3B 22 02 00 35 04 06 00 DD 39 67 FF 09 70 24 DD 98 9F 21 7F DD 09 [00:37: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 30 10 47 00 9B 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 3B 22 02 00 F4 03 04 00 94 CE 23 67 B6 04 01 00 00 6B 72 E4 32 61 D5 9D 5B [00:37:59]CommunicateWithHost err = 0 [00:37:59]CheckOFDResponse [00:37:59]1017 (14) - 77093643461234 [00:37:59]1041 (16) - 0000000000874669 [00:37:59]1040 (4) - 139835 [00:37:59]1012 (4) - 31.10.2024 18:38 [00:37:59]1206 (1) - 0 [00:37:59]OFD Sender: Remove packet 139835 [00:37:59]ProducePacketName [00:37:59]name=ofd_packets/00139835 [00:37:59]NVStorageDeleteData [00:37:59]Write to MH i2c: 01 00 00 85 38 BD [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: 01 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: 01 07 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: 01 07 00 85 38 00 00 00 00 00 10 0D E1 [00:37:59]RasterBufferAndPrint [00:37:59]line [00:37:59]line [00:37:59]line [00:37:59]line [00:37:59]line [00:37:59]written 0, free lines is 3350 [00:37:59]MH_Cut [00:37:59]Write to MH i2c: D1 01 00 8C 38 01 96 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: D1 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: D1 01 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: D1 01 00 8C 38 00 95 [00:37:59]Write to MH i2c: 01 00 00 8D 38 C5 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]OFD Sender: No OFD packet to send [00:38:00]*** Cut start [00:38:00]*** Partial cut [00:38:00]*** CUTSNS_PIN = 1 [00:38:00]*** CUTSNS_PIN = 0 [00:38:00]*** Brake cut motor [00:38:00]Read from MH i2c: 01 [00:38:00]MH_I2C_Read... [00:38:00]*** Stop cut motor [00:38:00]*** Cut end [00:38:00]Read from MH i2c: 01 07 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: 01 07 00 8D 38 00 00 00 00 00 FF 0F DA [00:38:00]process_action close_receipt done [00:38:00]requested_data is exist [00:38:00]produce_requested_data [00:38:00]requested_item fm.sn is exist - process it [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 11 00 00 [00:38:00]Write to MH i2c: E2 08 00 8E 38 80 11 00 00 00 00 00 00 40 [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 17 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 17 00 8E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9B [00:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:38:00]wFMCommunicate OK [00:38:00]requested_item fd.num is exist - process it [00:38:00]SAM_PROTO_GetFieldsCounters [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 13 00 00 [00:38:00]Write to MH i2c: E2 08 00 8F 38 80 13 00 00 00 00 00 00 43 [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 62 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 62 00 8F 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [00:38:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:00]wFMCommunicate OK [00:38:00]SAM_PROTO_GetFieldsCounters done [00:38:00]requested_item shift.num is exist - process it [00:38:00]requested_item shift.opened is exist - process it [00:38:00]req_shift_opened [00:38:00]FM_GetShiftState [00:38:00]SAM_PROTO_GetShiftState [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 13 01 00 [00:38:00]Write to MH i2c: E2 08 00 90 38 80 13 01 00 00 00 00 00 45 [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 0E 00 [00:38:00]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 0E 00 90 38 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7E [00:38:01]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:38:01]wFMCommunicate OK [00:38:01]SAM_PROTO_GetShiftState done [00:38:01]FM_GetShiftState done [00:38:01]req_shift_opened done [00:38:01]requested_item shift.open_date is exist - process it [00:38:01]req_shift_open_date [00:38:01]req_shift_open_date done [00:38:01]produce_requested_data done [00:38:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139835,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:38:01]process_action_free close_receipt [00:38:01]json_value_free [00:38:01]json_value_free done [00:38:01]process_json_proto returns [00:38:01]Send response to host [00:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139835,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:38:01]free response buf [00:38:01]execute_script done [00:38:01]execute_script returns [00:38:01]free content buf [00:38:01]Sock 9.Close socket [00:38:01]Sock 9.Thread stoped [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:27]accept exits with 7 [00:38:27]New connection [00:38:27]New thread 3066654052 created [00:38:27]Thread 3066510692 joined [00:38:27]Waiting for new connection... [00:38:27] Sock 7.Parse request [00:38:27]Sock 7.Check first char [00:38:27]Sock 7.First char is OK [00:38:27]request: POST /json_proto HTTP/1.0 [00:38:27]Method: POST [00:38:27]URL: /json_proto [00:38:27]Method is POST - this is cgi request [00:38:27]url: /json_proto [00:38:27]query_string will be loaded in cgi processing [00:38:27]execute_cgi json_proto POST (null) [00:38:27]execute_cgi path=json_proto method=POST [00:38:27]POST find Content-Length [00:38:27]Host: 172.17.50.196:8080 [00:38:27]Content-Length: 630 [00:38:27]Content-Type: application/json [00:38:27] [00:38:27]POST finish read [00:38:27]Found Content-Length = 630 [00:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335666", "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" ] } } [00:38:27]execute_script... [00:38:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335666", "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" ] } } [00:38:27]POST & json_proto [00:38:27]process_json_proto [00:38:27]json parsed OK: [00:38:27]protocol is kg_v1.0 [00:38:27]action value=close_receipt [00:38:27]process_action close_receipt [00:38:27]cmd_close_receipt [00:38:27]MH_GetDate [00:38:27]Write to MH i2c: F0 00 00 91 38 B8 [00:38:27]Write i2c OK [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: F0 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: F0 09 00 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: F0 09 00 91 38 00 06 23 24 67 72 0D 1C 67 77 [00:38:27]GetLastDocTimeStamp 1730421480 [00:38:27]current date 1730421510 [00:38:27]FM_GetShiftState [00:38:27]SAM_PROTO_GetShiftState [00:38:27]wFMCommunicate request_size=4 [00:38:27]MH_SAM_APDU [00:38:27]CAPDU: 80 13 01 00 [00:38:27]Write to MH i2c: E2 08 00 92 38 80 13 01 00 00 00 00 00 47 [00:38:27]Write i2c OK [00:38:27]MH_I2C_Read... [00:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:27]Read from MH i2c: E2 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: E2 0E 00 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: E2 0E 00 92 38 00 09 00 01 89 19 24 67 00 00 00 00 90 00 80 [00:38:27]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:38:27]wFMCommunicate OK [00:38:27]SAM_PROTO_GetShiftState done [00:38:27]FM_GetShiftState done [00:38:27]opened in 1730419081 [00:38:27]opened+sec_in_day 1730505481 [00:38:27]quantity*price = 5000 [00:38:27]sum+1 = 5001 [00:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 17 01.11.2024 00:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139836 ФПД: 170797534869266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003830&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139836&fm=170797534869266&tin=02508201610067®Number=0000000000091631&sum=5000 0 [00:38:28]StoreToDocumentArchive [00:38:28]shift 558 fd 139836 [00:38:28]save to /storage/0558/doc_00139836 [00:38:28]save last doc name /storage/0558/doc_00139836 to /storage/kkm_last_doc_name [00:38:28]save OK [00:38:28]Clear old archive folders... [00:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=269 [00:38:28]tlvbuf is 00A5DA40 [00:38:28]SAM_PROTO_ClearQueue [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 09 00 00 [00:38:28]Write to MH i2c: E2 08 00 9F 38 80 09 00 00 00 00 00 00 49 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 9F 38 00 90 00 4B [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]SAM_PROTO_ClearQueue done [00:38:28]KKMCreateOFDPacket [00:38:28]OFDProtocolAddRootSTLVToBuf [00:38:28]FM_MakeSignedData [00:38:28]FM_MakeSignedData [00:38:28]SAM_PROTO_SignData [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 0D 01 02 [00:38:28]Write to MH i2c: E2 08 00 A0 38 80 0D 01 02 00 00 00 00 51 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 A0 38 00 90 00 4C [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]wFMCommunicate request_size=255 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 06 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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:38:28]Write to MH i2c: E2 02 01 A1 38 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 11 00 00 00 F4 03 04 00 06 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 58 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 A1 38 00 90 00 4D [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]wFMCommunicate request_size=28 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 3C 22 02 00 35 04 06 00 9B 56 E6 64 F7 12 [00:38:28]Write to MH i2c: E2 1F 00 A2 38 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 3C 22 02 00 35 04 06 00 9B 56 E6 64 F7 12 00 00 8D [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 A2 38 00 90 00 4E [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 0D 03 02 [00:38:28]Write to MH i2c: E2 08 00 A3 38 80 0D 03 02 00 00 00 00 56 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 0B 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 0B 00 A3 38 00 C0 A4 F1 6E C1 F7 3A 58 90 00 64 [00:38:28]RAPDU: C0 A4 F1 6E C1 F7 3A 58 90 00 [00:38:28]wFMCommunicate OK [00:38:28]SAM_PROTO_SignData done [00:38:28]FM_MakeSignedData done [00:38:28]CreateOFDProtocolMessage [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 11 00 00 [00:38:28]Write to MH i2c: E2 08 00 A4 38 80 11 00 00 00 00 00 00 56 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 17 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 17 00 A4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [00:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:38:28]wFMCommunicate OK [00:38:28]CreateOFDProtocolMessage done [00:38:28]OFDSenderStorePacket 139836 [00:38:28]StoreOFDPacket docnum=139836 [00:38:28]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 E6 C3 19 01 75 44 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 11 00 00 00 F4 03 04 00 06 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3C 22 02 00 35 04 06 00 9B 56 E6 64 F7 12 C0 A4 F1 6E C1 F7 3A 58 [00:38:28]CheckFolder [00:38:28]dirname=/storage/ofd_packets [00:38:28]CheckFolder done [00:38:28]ProducePacketName [00:38:28]name=ofd_packets/00139836 [00:38:28]NVStorageSaveData ofd_packets/00139836 [00:38:28]File name is /storage/ofd_packets/00139836 [00:38:28]Write 319 bytes [00:38:28]NVStorageSaveData done [00:38:28]OFDSenderStorePacket done [00:38:28]KKMCreateOFDPacket done [00:38:28]NVStorageSaveData kkm_last_timestamp [00:38:28]File name is /storage/kkm_last_timestamp [00:38:28]Write 4 bytes [00:38:28]NVStorageSaveData done [00:38:28]ExternCall_PrintAddStr [00:38:28]wPrintStart [00:38:28]Write to MH i2c: 01 00 00 A5 38 DD [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: 01 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: 01 07 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: 01 07 00 A5 38 00 00 00 00 00 FF 0F F2 [00:38:28]RasterBufferAndPrint [00:38:28]line Счет N : (3)335666 [00:38:28]line ИНН: 02508201610067 [00:38:28]line Контрольно-Кассовый Чек [00:38:28]line ПРОДАЖА [00:38:28]line Товар: 4700000160358 [00:38:28]line Вода Легенда 1л [00:38:28]line 1.000 * 50.00 [00:38:28]line = 50.00 [00:38:28]line НДС 12% НСП 1% [00:38:28]line > о реализуемом товаре [00:38:28]line ИТОГО: 50.00 [00:38:28]line НСП 1% : 0.44 [00:38:28]line НДС 12% : 5.31 [00:38:28]line Наличными: 50.00 [00:38:28]line Безнал.: 0.00 [00:38:28]line Место: АЗС № 101 "Партнер Нефть" [00:38:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:38:28]line СНО: Общий режим [00:38:28]line Чек 17 01.11.2024 00:38 [00:38:28]line Смена: 558 ФФД: 1.0 [00:38:28]line ЗНМ: 0300000081 [00:38:28]line РНМ: 0000000000091631 [00:38:28]line Версия ККМ: 001 [00:38:28]line ФМ: 0000000000874669 [00:38:28]line ФД: 139836 [00:38:28]line ФПД: 170797534869266 [00:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T003830&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139836&fm=170797534869266&tin=02508201610067®Number=0000000000091631&sum=5000 [00:38:29]OFD Sender: Processing packet 139836 [packets to send 34, broken 33] [00:38:29]ProducePacketName [00:38:29]name=ofd_packets/00139836 [00:38:29]OFD Sender: To server: pG, [00:38:29]CommunicateWithHost lk.salyk.kg:30040 [00:38:29]ConnectInit lk.salyk.kg [00:38:29]line 0 [00:38:29]written 0, free lines is 4095 [00:38:29]Connected sock=10 [00:38: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 21 01 00 00 E6 C3 19 01 75 44 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 11 00 00 00 F4 03 04 00 06 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3C 22 02 00 35 04 06 00 9B 56 E6 64 F7 12 C0 A4 F1 6E C1 F7 3A 58 [00:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CC C1 47 00 AE 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 3C 22 02 00 F4 03 04 00 B2 CE 23 67 B6 04 01 00 00 6A 89 AA B8 54 07 AA 5E [00:38:29]CommunicateWithHost err = 0 [00:38:29]CheckOFDResponse [00:38:29]1017 (14) - 77093643461234 [00:38:29]1041 (16) - 0000000000874669 [00:38:29]1040 (4) - 139836 [00:38:29]1012 (4) - 31.10.2024 18:38 [00:38:29]1206 (1) - 0 [00:38:29]OFD Sender: Remove packet 139836 [00:38:29]ProducePacketName [00:38:29]name=ofd_packets/00139836 [00:38:29]NVStorageDeleteData [00:38:29]Write to MH i2c: 01 00 00 CD 38 05 [00:38:29]Write i2c OK [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: 01 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: 01 07 00 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: 01 07 00 CD 38 00 00 00 00 00 05 0D 1E [00:38:29]RasterBufferAndPrint [00:38:29]line [00:38:29]line [00:38:29]line [00:38:29]line [00:38:29]line [00:38:29]written 0, free lines is 3339 [00:38:29]MH_Cut [00:38:29]Write to MH i2c: D1 01 00 D4 38 01 DE [00:38:29]Write i2c OK [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: D1 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: D1 01 00 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: D1 01 00 D4 38 00 DD [00:38:29]Write to MH i2c: 01 00 00 D5 38 0D [00:38:29]Write i2c OK [00:38:29]MH_I2C_Read... [00:38:29]OFD Sender: No OFD packet to send [00:38:30]*** Cut start [00:38:30]*** Partial cut [00:38:30]*** CUTSNS_PIN = 1 [00:38:30]*** CUTSNS_PIN = 0 [00:38:30]*** Brake cut motor [00:38:30]Read from MH i2c: 01 [00:38:30]MH_I2C_Read... [00:38:30]*** Stop cut motor [00:38:30]*** Cut end [00:38:30]Read from MH i2c: 01 07 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: 01 07 00 D5 38 00 00 00 00 00 FF 0F 22 [00:38:30]process_action close_receipt done [00:38:30]requested_data is exist [00:38:30]produce_requested_data [00:38:30]requested_item fm.sn is exist - process it [00:38:30]wFMCommunicate request_size=4 [00:38:30]MH_SAM_APDU [00:38:30]CAPDU: 80 11 00 00 [00:38:30]Write to MH i2c: E2 08 00 D6 38 80 11 00 00 00 00 00 00 88 [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:30]Read from MH i2c: E2 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 17 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 17 00 D6 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [00:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:38:30]wFMCommunicate OK [00:38:30]requested_item fd.num is exist - process it [00:38:30]SAM_PROTO_GetFieldsCounters [00:38:30]wFMCommunicate request_size=4 [00:38:30]MH_SAM_APDU [00:38:30]CAPDU: 80 13 00 00 [00:38:30]Write to MH i2c: E2 08 00 D7 38 80 13 00 00 00 00 00 00 8B [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:30]Read from MH i2c: E2 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 62 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 62 00 D7 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [00:38:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:30]wFMCommunicate OK [00:38:30]SAM_PROTO_GetFieldsCounters done [00:38:30]requested_item shift.num is exist - process it [00:38:30]requested_item shift.opened is exist - process it [00:38:30]req_shift_opened [00:38:30]FM_GetShiftState [00:38:30]SAM_PROTO_GetShiftState [00:38:30]wFMCommunicate request_size=4 [00:38:30]MH_SAM_APDU [00:38:30]CAPDU: 80 13 01 00 [00:38:30]Write to MH i2c: E2 08 00 D8 38 80 13 01 00 00 00 00 00 8D [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 0E 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 0E 00 D8 38 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C6 [00:38:31]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:38:31]wFMCommunicate OK [00:38:31]SAM_PROTO_GetShiftState done [00:38:31]FM_GetShiftState done [00:38:31]req_shift_opened done [00:38:31]requested_item shift.open_date is exist - process it [00:38:31]req_shift_open_date [00:38:31]req_shift_open_date done [00:38:31]produce_requested_data done [00:38:31]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139836,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:38:31]process_action_free close_receipt [00:38:31]json_value_free [00:38:31]json_value_free done [00:38:31]process_json_proto returns [00:38:31]Send response to host [00:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139836,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:38:31]free response buf [00:38:31]execute_script done [00:38:31]execute_script returns [00:38:31]free content buf [00:38:31]Sock 7.Close socket [00:38:31]Sock 7.Thread stoped [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:20]accept exits with 9 [00:41:20]New connection [00:41:20]New thread 3066510692 created [00:41:20]Thread 3066654052 joined [00:41:20]Waiting for new connection... [00:41:20] Sock 9.Parse request [00:41:20]Sock 9.Check first char [00:41:20]Sock 9.First char is OK [00:41:20]request: POST /json_proto HTTP/1.0 [00:41:20]Method: POST [00:41:20]URL: /json_proto [00:41:20]Method is POST - this is cgi request [00:41:20]url: /json_proto [00:41:20]query_string will be loaded in cgi processing [00:41:20]execute_cgi json_proto POST (null) [00:41:20]execute_cgi path=json_proto method=POST [00:41:20]POST find Content-Length [00:41:20]Host: 172.17.50.196:8080 [00:41:20]Content-Length: 1200 [00:41:20]Content-Type: application/json [00:41:20] [00:41:20]POST finish read [00:41:20]Found Content-Length = 1200 [00:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335667", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 179.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:20]execute_script... [00:41:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335667", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 179.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:20]POST & json_proto [00:41:20]process_json_proto [00:41:20]json parsed OK: [00:41:20]protocol is kg_v1.0 [00:41:20]action value=close_receipt [00:41:20]process_action close_receipt [00:41:20]cmd_close_receipt [00:41:20]MH_GetDate [00:41:20]Write to MH i2c: F0 00 00 D9 38 00 [00:41:20]Write i2c OK [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: F0 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: F0 09 00 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: F0 09 00 D9 38 00 B3 23 24 67 72 0D 1C 67 6C [00:41:20]GetLastDocTimeStamp 1730421510 [00:41:20]current date 1730421683 [00:41:20]FM_GetShiftState [00:41:20]SAM_PROTO_GetShiftState [00:41:20]wFMCommunicate request_size=4 [00:41:20]MH_SAM_APDU [00:41:20]CAPDU: 80 13 01 00 [00:41:20]Write to MH i2c: E2 08 00 DA 38 80 13 01 00 00 00 00 00 8F [00:41:20]Write i2c OK [00:41:20]MH_I2C_Read... [00:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:20]Read from MH i2c: E2 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 0E 00 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 0E 00 DA 38 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C8 [00:41:20]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:41:20]wFMCommunicate OK [00:41:20]SAM_PROTO_GetShiftState done [00:41:20]FM_GetShiftState done [00:41:20]opened in 1730419081 [00:41:20]opened+sec_in_day 1730505481 [00:41:20]quantity*price = 8000 [00:41:20]sum+1 = 8001 [00:41:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243870968 Напиток Gorilla ж/б 0,45л Персик Абрикос 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 179.00 НСП 1% : 1.59 НДС 12% : 19.01 Наличными: 0.00 Безнал.: 179.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 18 01.11.2024 00:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874669 ФД: 139837 ФПД: 88848629793144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004123&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139837&fm=88848629793144&tin=02508201610067®Number=0000000000091631&sum=17900 0 [00:41:21]StoreToDocumentArchive [00:41:21]shift 558 fd 139837 [00:41:21]save to /storage/0558/doc_00139837 [00:41:21]save last doc name /storage/0558/doc_00139837 to /storage/kkm_last_doc_name [00:41:21]save OK [00:41:21]Clear old archive folders... [00:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=429 [00:41:21]tlvbuf is 00AE6450 [00:41:21]SAM_PROTO_ClearQueue [00:41:21]wFMCommunicate request_size=4 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 09 00 00 [00:41:21]Write to MH i2c: E2 08 00 E7 38 80 09 00 00 00 00 00 00 91 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 E7 38 00 90 00 93 [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]SAM_PROTO_ClearQueue done [00:41:21]KKMCreateOFDPacket [00:41:21]OFDProtocolAddRootSTLVToBuf [00:41:21]FM_MakeSignedData [00:41:21]FM_MakeSignedData [00:41:21]SAM_PROTO_SignData [00:41:21]wFMCommunicate request_size=4 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 01 02 [00:41:21]Write to MH i2c: E2 08 00 E8 38 80 0D 01 02 00 00 00 00 99 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 E8 38 00 90 00 94 [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=255 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 02 02 FA 03 00 AD 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 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:41:21]Write to MH i2c: E2 02 01 E9 38 80 0D 02 02 FA 00 03 00 AD 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 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 4F [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 E9 38 00 90 00 95 [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=188 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 02 02 B7 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 45 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 6D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B3 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 22 02 00 35 04 06 00 50 CE AF 04 81 78 [00:41:21]Write to MH i2c: E2 BF 00 EA 38 80 0D 02 02 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 45 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 6D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B3 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 22 02 00 35 04 06 00 50 CE AF 04 81 78 00 00 46 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 EA 38 00 90 00 96 [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=4 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 03 02 [00:41:21]Write to MH i2c: E2 08 00 EB 38 80 0D 03 02 00 00 00 00 9E [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:22]Read from MH i2c: E2 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 0B 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 0B 00 EB 38 00 81 1B 8B C2 A5 D9 83 50 90 00 D9 [00:41:22]RAPDU: 81 1B 8B C2 A5 D9 83 50 90 00 [00:41:22]wFMCommunicate OK [00:41:22]SAM_PROTO_SignData done [00:41:22]FM_MakeSignedData done [00:41:22]CreateOFDProtocolMessage [00:41:22]wFMCommunicate request_size=4 [00:41:22]MH_SAM_APDU [00:41:22]CAPDU: 80 11 00 00 [00:41:22]Write to MH i2c: E2 08 00 EC 38 80 11 00 00 00 00 00 00 9E [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:22]Read from MH i2c: E2 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 17 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 17 00 EC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F9 [00:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:41:22]wFMCommunicate OK [00:41:22]CreateOFDProtocolMessage done [00:41:22]OFDSenderStorePacket 139837 [00:41:22]StoreOFDPacket docnum=139837 [00:41: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 C1 01 00 00 8C FE B9 01 B1 A9 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 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 EC 45 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 6D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B3 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 22 02 00 35 04 06 00 50 CE AF 04 81 78 81 1B 8B C2 A5 D9 83 50 [00:41:22]CheckFolder [00:41:22]dirname=/storage/ofd_packets [00:41:22]CheckFolder done [00:41:22]ProducePacketName [00:41:22]name=ofd_packets/00139837 [00:41:22]NVStorageSaveData ofd_packets/00139837 [00:41:22]File name is /storage/ofd_packets/00139837 [00:41:22]Write 479 bytes [00:41:22]NVStorageSaveData done [00:41:22]OFDSenderStorePacket done [00:41:22]KKMCreateOFDPacket done [00:41:22]NVStorageSaveData kkm_last_timestamp [00:41:22]File name is /storage/kkm_last_timestamp [00:41:22]Write 4 bytes [00:41:22]NVStorageSaveData done [00:41:22]ExternCall_PrintAddStr [00:41:22]wPrintStart [00:41:22]Write to MH i2c: 01 00 00 ED 38 25 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 ED 38 00 00 00 00 00 FF 0F 3A [00:41:22]RasterBufferAndPrint [00:41:22]line Счет N : (3)335667 [00:41:22]line ИНН: 02508201610067 [00:41:22]line Контрольно-Кассовый Чек [00:41:22]line ПРОДАЖА [00:41:22]line Товар: 4603290004817 [00:41:22]line Печ зат Яшкино клубн Крем 182г [00:41:22]line 1.000 * 80.00 [00:41:22]line = 80.00 [00:41:22]line НДС 12% НСП 1% [00:41:22]line > о реализуемом товаре [00:41:22]line Товар: 4650243870968 [00:41:22]line Напиток Gorilla ж/б 0,45л Персик Абрикос [00:41:22]line 1.000 * 99.00 [00:41:22]line = 99.00 [00:41:22]line НДС 12% НСП 1% [00:41:22]line > о реализуемом товаре [00:41:22]line ИТОГО: 179.00 [00:41:22]line НСП 1% : 1.59 [00:41:22]line НДС 12% : 19.01 [00:41:22]line Наличными: 0.00 [00:41:22]line Безнал.: 179.00 [00:41:22]line Место: АЗС № 101 "Партнер Нефть" [00:41:22]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:41:22]line СНО: Общий режим [00:41:22]line Чек 18 01.11.2024 00:41 [00:41:22]line Смена: 558 ФФД: 1.0 [00:41:22]line ЗНМ: 0300000081 [00:41:22]line РНМ: 0000000000091631 [00:41:22]line Версия ККМ: 001 [00:41:22]line Платежная система: Бакай Банк [00:41:22]line ФМ: 0000000000874669 [00:41:22]line ФД: 139837 [00:41:22]line ФПД: 88848629793144 [00:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004123&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139837&fm=88848629793144&tin=02508201610067®Number=0000000000091631&sum=17900 [00:41:22]line 0 [00:41:22]written 0, free lines is 4095 [00:41:22]OFD Sender: Processing packet 139837 [packets to send 34, broken 33] [00:41:22]ProducePacketName [00:41:22]name=ofd_packets/00139837 [00:41:22]OFD Sender: To server: pG, [00:41:22]CommunicateWithHost lk.salyk.kg:30040 [00:41:22]ConnectInit lk.salyk.kg [00:41:22]Connected sock=10 [00:41: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 C1 01 00 00 8C FE B9 01 B1 A9 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 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 EC 45 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 6D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B3 23 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 22 02 00 35 04 06 00 50 CE AF 04 81 78 81 1B 8B C2 A5 D9 83 50 [00:41: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 7A 66 47 00 61 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3D 22 02 00 F4 03 04 00 5F CF 23 67 B6 04 01 00 00 34 E0 66 89 24 0F B2 FE [00:41:22]CommunicateWithHost err = 0 [00:41:22]CheckOFDResponse [00:41:22]1017 (14) - 77093643461234 [00:41:22]1041 (16) - 0000000000874669 [00:41:22]1040 (4) - 139837 [00:41:22]1012 (4) - 31.10.2024 18:41 [00:41:22]1206 (1) - 0 [00:41:22]OFD Sender: Remove packet 139837 [00:41:22]ProducePacketName [00:41:22]name=ofd_packets/00139837 [00:41:22]NVStorageDeleteData [00:41:22]Write to MH i2c: 01 00 00 1F 39 58 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 1F 39 00 00 00 00 00 9A 0C 05 [00:41:22]RasterBufferAndPrint [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]written 0, free lines is 3235 [00:41:22]MH_Cut [00:41:22]Write to MH i2c: D1 01 00 26 39 01 31 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: D1 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: D1 01 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: D1 01 00 26 39 00 30 [00:41:22]Write to MH i2c: 01 00 00 27 39 60 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:23]OFD Sender: No OFD packet to send [00:41:23]*** Cut start [00:41:23]*** Partial cut [00:41:23]*** CUTSNS_PIN = 1 [00:41:23]*** CUTSNS_PIN = 0 [00:41:23]*** Brake cut motor [00:41:24]Read from MH i2c: 01 [00:41:24]MH_I2C_Read... [00:41:24]*** Stop cut motor [00:41:24]*** Cut end [00:41:24]Read from MH i2c: 01 07 00 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: 01 07 00 27 39 00 00 00 00 00 FF 0F 75 [00:41:24]process_action close_receipt done [00:41:24]requested_data is exist [00:41:24]produce_requested_data [00:41:24]requested_item fm.sn is exist - process it [00:41:24]wFMCommunicate request_size=4 [00:41:24]MH_SAM_APDU [00:41:24]CAPDU: 80 11 00 00 [00:41:24]Write to MH i2c: E2 08 00 28 39 80 11 00 00 00 00 00 00 DB [00:41:24]Write i2c OK [00:41:24]MH_I2C_Read... [00:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:24]Read from MH i2c: E2 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 17 00 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 17 00 28 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [00: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 [00:41:24]wFMCommunicate OK [00:41:24]requested_item fd.num is exist - process it [00:41:24]SAM_PROTO_GetFieldsCounters [00:41:24]wFMCommunicate request_size=4 [00:41:24]MH_SAM_APDU [00:41:24]CAPDU: 80 13 00 00 [00:41:24]Write to MH i2c: E2 08 00 29 39 80 13 00 00 00 00 00 00 DE [00:41:24]Write i2c OK [00:41:24]MH_I2C_Read... [00:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:24]Read from MH i2c: E2 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 62 00 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 62 00 29 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [00:41: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 3D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:24]wFMCommunicate OK [00:41:24]SAM_PROTO_GetFieldsCounters done [00:41:24]requested_item shift.num is exist - process it [00:41:24]requested_item shift.opened is exist - process it [00:41:24]req_shift_opened [00:41:24]FM_GetShiftState [00:41:24]SAM_PROTO_GetShiftState [00:41:24]wFMCommunicate request_size=4 [00:41:24]MH_SAM_APDU [00:41:24]CAPDU: 80 13 01 00 [00:41:24]Write to MH i2c: E2 08 00 2A 39 80 13 01 00 00 00 00 00 E0 [00:41:24]Write i2c OK [00:41:24]MH_I2C_Read... [00:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:24]Read from MH i2c: E2 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 0E 00 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 0E 00 2A 39 00 09 00 01 89 19 24 67 00 00 00 00 90 00 19 [00:41:24]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:41:24]wFMCommunicate OK [00:41:24]SAM_PROTO_GetShiftState done [00:41:24]FM_GetShiftState done [00:41:24]req_shift_opened done [00:41:24]requested_item shift.open_date is exist - process it [00:41:24]req_shift_open_date [00:41:24]req_shift_open_date done [00:41:24]produce_requested_data done [00:41:24]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139837,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:41:24]process_action_free close_receipt [00:41:24]json_value_free [00:41:24]json_value_free done [00:41:24]process_json_proto returns [00:41:24]Send response to host [00:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139837,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:41:24]free response buf [00:41:24]execute_script done [00:41:24]execute_script returns [00:41:24]free content buf [00:41:24]Sock 9.Close socket [00:41:24]Sock 9.Thread stoped [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:39]accept exits with 7 [00:44:39]New connection [00:44:39]New thread 3066654052 created [00:44:39]Thread 3066510692 joined [00:44:39]Waiting for new connection... [00:44:39] Sock 7.Parse request [00:44:39]Sock 7.Check first char [00:44:39]Sock 7.First char is OK [00:44:39]request: POST /json_proto HTTP/1.0 [00:44:39]Method: POST [00:44:39]URL: /json_proto [00:44:39]Method is POST - this is cgi request [00:44:39]url: /json_proto [00:44:39]query_string will be loaded in cgi processing [00:44:39]execute_cgi json_proto POST (null) [00:44:39]execute_cgi path=json_proto method=POST [00:44:39]POST find Content-Length [00:44:39]Host: 172.17.50.196:8080 [00:44:39]Content-Length: 658 [00:44:39]Content-Type: application/json [00:44:39] [00:44:39]POST finish read [00:44:39]Found Content-Length = 658 [00:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335668", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:39]execute_script... [00:44: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)335668", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:39]POST & json_proto [00:44:39]process_json_proto [00:44:39]json parsed OK: [00:44:39]protocol is kg_v1.0 [00:44:39]action value=close_receipt [00:44:39]process_action close_receipt [00:44:39]cmd_close_receipt [00:44:39]MH_GetDate [00:44:39]Write to MH i2c: F0 00 00 2B 39 53 [00:44:39]Write i2c OK [00:44:39]MH_I2C_Read... [00:44:39]Read from MH i2c: F0 [00:44:39]MH_I2C_Read... [00:44:39]Read from MH i2c: F0 09 00 [00:44:39]MH_I2C_Read... [00:44:39]Read from MH i2c: F0 09 00 2B 39 00 7A 24 24 67 72 0D 1C 67 87 [00:44:39]GetLastDocTimeStamp 1730421683 [00:44:39]current date 1730421882 [00:44:39]FM_GetShiftState [00:44:39]SAM_PROTO_GetShiftState [00:44:39]wFMCommunicate request_size=4 [00:44:39]MH_SAM_APDU [00:44:39]CAPDU: 80 13 01 00 [00:44:39]Write to MH i2c: E2 08 00 2C 39 80 13 01 00 00 00 00 00 E2 [00:44:39]Write i2c OK [00:44:39]MH_I2C_Read... [00:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:39]Read from MH i2c: E2 [00:44:39]MH_I2C_Read... [00:44:39]Read from MH i2c: E2 0E 00 [00:44:39]MH_I2C_Read... [00:44:39]Read from MH i2c: E2 0E 00 2C 39 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1B [00:44:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:44:39]wFMCommunicate OK [00:44:39]SAM_PROTO_GetShiftState done [00:44:39]FM_GetShiftState done [00:44:39]opened in 1730419081 [00:44:39]opened+sec_in_day 1730505481 [00:44:39]quantity*price = 25000 [00:44:39]sum+1 = 25001 [00:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 19 01.11.2024 00:44 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139838 ФПД: 50329465532895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004442&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139838&fm=50329465532895&tin=02508201610067®Number=0000000000091631&sum=25000 0 [00:44:40]StoreToDocumentArchive [00:44:40]shift 558 fd 139838 [00:44:40]save to /storage/0558/doc_00139838 [00:44:40]save last doc name /storage/0558/doc_00139838 to /storage/kkm_last_doc_name [00:44:40]save OK [00:44:40]Clear old archive folders... [00:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=278 [00:44:40]tlvbuf is B6E91350 [00:44:40]SAM_PROTO_ClearQueue [00:44:40]wFMCommunicate request_size=4 [00:44:40]MH_SAM_APDU [00:44:40]CAPDU: 80 09 00 00 [00:44:40]Write to MH i2c: E2 08 00 39 39 80 09 00 00 00 00 00 00 E4 [00:44:40]Write i2c OK [00:44:40]MH_I2C_Read... [00:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:40]Read from MH i2c: E2 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 39 39 00 90 00 E6 [00:44:40]RAPDU: 90 00 [00:44:40]wFMCommunicate OK [00:44:40]SAM_PROTO_ClearQueue done [00:44:40]KKMCreateOFDPacket [00:44:40]OFDProtocolAddRootSTLVToBuf [00:44:40]FM_MakeSignedData [00:44:40]FM_MakeSignedData [00:44:40]SAM_PROTO_SignData [00:44:40]wFMCommunicate request_size=4 [00:44:40]MH_SAM_APDU [00:44:40]CAPDU: 80 0D 01 02 [00:44:40]Write to MH i2c: E2 08 00 3A 39 80 0D 01 02 00 00 00 00 EC [00:44:40]Write i2c OK [00:44:40]MH_I2C_Read... [00:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:40]Read from MH i2c: E2 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 3A 39 00 90 00 E7 [00:44:40]RAPDU: 90 00 [00:44:40]wFMCommunicate OK [00:44:40]wFMCommunicate request_size=255 [00:44:40]MH_SAM_APDU [00:44:40]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7A 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 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:44:40]Write to MH i2c: E2 02 01 3B 39 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7A 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 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 9D [00:44:40]Write i2c OK [00:44:40]MH_I2C_Read... [00:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:40]Read from MH i2c: E2 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 3B 39 00 90 00 E8 [00:44:40]RAPDU: 90 00 [00:44:40]wFMCommunicate OK [00:44:40]wFMCommunicate request_size=37 [00:44:40]MH_SAM_APDU [00:44:40]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3E 22 02 00 35 04 06 00 2D C6 3D EA 31 DF [00:44:40]Write to MH i2c: E2 28 00 3C 39 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3E 22 02 00 35 04 06 00 2D C6 3D EA 31 DF 00 00 DA [00:44:40]Write i2c OK [00:44:40]MH_I2C_Read... [00:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:40]Read from MH i2c: E2 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 03 00 3C 39 00 90 00 E9 [00:44:40]RAPDU: 90 00 [00:44:40]wFMCommunicate OK [00:44:40]wFMCommunicate request_size=4 [00:44:40]MH_SAM_APDU [00:44:40]CAPDU: 80 0D 03 02 [00:44:40]Write to MH i2c: E2 08 00 3D 39 80 0D 03 02 00 00 00 00 F1 [00:44:40]Write i2c OK [00:44:40]MH_I2C_Read... [00:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:40]Read from MH i2c: E2 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 0B 00 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 0B 00 3D 39 00 93 52 63 EC 37 55 04 5E 90 00 14 [00:44:40]RAPDU: 93 52 63 EC 37 55 04 5E 90 00 [00:44:40]wFMCommunicate OK [00:44:40]SAM_PROTO_SignData done [00:44:40]FM_MakeSignedData done [00:44:40]CreateOFDProtocolMessage [00:44:40]wFMCommunicate request_size=4 [00:44:40]MH_SAM_APDU [00:44:40]CAPDU: 80 11 00 00 [00:44:40]Write to MH i2c: E2 08 00 3E 39 80 11 00 00 00 00 00 00 F1 [00:44:40]Write i2c OK [00:44:40]MH_I2C_Read... [00:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:40]Read from MH i2c: E2 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 17 00 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: E2 17 00 3E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [00: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 [00:44:40]wFMCommunicate OK [00:44:40]CreateOFDProtocolMessage done [00:44:40]OFDSenderStorePacket 139838 [00:44:40]StoreOFDPacket docnum=139838 [00: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 2A 01 00 00 72 8B 22 01 7B A6 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7A 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3E 22 02 00 35 04 06 00 2D C6 3D EA 31 DF 93 52 63 EC 37 55 04 5E [00:44:40]CheckFolder [00:44:40]dirname=/storage/ofd_packets [00:44:40]CheckFolder done [00:44:40]ProducePacketName [00:44:40]name=ofd_packets/00139838 [00:44:40]NVStorageSaveData ofd_packets/00139838 [00:44:40]File name is /storage/ofd_packets/00139838 [00:44:40]Write 328 bytes [00:44:40]NVStorageSaveData done [00:44:40]OFDSenderStorePacket done [00:44:40]KKMCreateOFDPacket done [00:44:40]NVStorageSaveData kkm_last_timestamp [00:44:40]File name is /storage/kkm_last_timestamp [00:44:40]Write 4 bytes [00:44:40]NVStorageSaveData done [00:44:40]ExternCall_PrintAddStr [00:44:40]wPrintStart [00:44:40]Write to MH i2c: 01 00 00 3F 39 78 [00:44:40]Write i2c OK [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: 01 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: 01 07 00 [00:44:40]MH_I2C_Read... [00:44:40]Read from MH i2c: 01 07 00 3F 39 00 00 00 00 00 FF 0F 8D [00:44:40]RasterBufferAndPrint [00:44:40]line Счет N : (3)335668 [00:44:40]line ИНН: 02508201610067 [00:44:40]line Контрольно-Кассовый Чек [00:44:40]line ПРОДАЖА [00:44:40]line Товар: 5449000054227 [00:44:40]line Напиток Кока-Кола 1л [00:44:40]line 2.000 * 125.00 [00:44:40]line = 250.00 [00:44:40]line НДС 12% НСП 1% [00:44:40]line > о реализуемом товаре [00:44:40]line ИТОГО: 250.00 [00:44:40]line НСП 1% : 2.21 [00:44:40]line НДС 12% : 26.55 [00:44:40]line Наличными: 250.00 [00:44:40]line Безнал.: 0.00 [00:44:40]line Место: АЗС № 101 "Партнер Нефть" [00:44:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:44:40]line СНО: Общий режим [00:44:40]line Чек 19 01.11.2024 00:44 [00:44:40]line Смена: 558 ФФД: 1.0 [00:44:40]line ЗНМ: 0300000081 [00:44:40]line РНМ: 0000000000091631 [00:44:40]line Версия ККМ: 001 [00:44:40]line ФМ: 0000000000874669 [00:44:40]line ФД: 139838 [00:44:40]line ФПД: 50329465532895 [00:44:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004442&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139838&fm=50329465532895&tin=02508201610067®Number=0000000000091631&sum=25000 [00:44:41]line 0 [00:44:41]OFD Sender: Processing packet 139838 [packets to send 34, broken 33] [00:44:41]ProducePacketName [00:44:41]name=ofd_packets/00139838 [00:44:41]OFD Sender: To server: pG, [00:44:41]CommunicateWithHost lk.salyk.kg:30040 [00:44:41]ConnectInit lk.salyk.kg [00:44:41]written 0, free lines is 4095 [00:44:41]Connected sock=10 [00:44: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 2A 01 00 00 72 8B 22 01 7B A6 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7A 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3E 22 02 00 35 04 06 00 2D C6 3D EA 31 DF 93 52 63 EC 37 55 04 5E [00:44: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 78 86 47 00 7D 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 3E 22 02 00 F4 03 04 00 26 D0 23 67 B6 04 01 00 00 FB DD A5 D9 E1 8D F5 CE [00:44:41]CommunicateWithHost err = 0 [00:44:41]CheckOFDResponse [00:44:41]1017 (14) - 77093643461234 [00:44:41]1041 (16) - 0000000000874669 [00:44:41]1040 (4) - 139838 [00:44:41]1012 (4) - 31.10.2024 18:44 [00:44:41]1206 (1) - 0 [00:44:41]OFD Sender: Remove packet 139838 [00:44:41]ProducePacketName [00:44:41]name=ofd_packets/00139838 [00:44:41]NVStorageDeleteData [00:44:41]Write to MH i2c: 01 00 00 67 39 A0 [00:44:41]Write i2c OK [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: 01 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: 01 07 00 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: 01 07 00 67 39 00 00 00 00 00 0B 0D BF [00:44:41]RasterBufferAndPrint [00:44:41]line [00:44:41]line [00:44:41]line [00:44:41]line [00:44:41]line [00:44:41]written 0, free lines is 3345 [00:44:41]MH_Cut [00:44:41]Write to MH i2c: D1 01 00 6E 39 01 79 [00:44:41]Write i2c OK [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: D1 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: D1 01 00 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: D1 01 00 6E 39 00 78 [00:44:41]Write to MH i2c: 01 00 00 6F 39 A8 [00:44:41]Write i2c OK [00:44:41]MH_I2C_Read... [00:44:41]OFD Sender: No OFD packet to send [00:44:42]*** Cut start [00:44:42]*** Partial cut [00:44:42]*** CUTSNS_PIN = 1 [00:44:42]*** CUTSNS_PIN = 0 [00:44:42]*** Brake cut motor [00:44:42]Read from MH i2c: 01 [00:44:42]MH_I2C_Read... [00:44:42]*** Stop cut motor [00:44:42]*** Cut end [00:44:42]Read from MH i2c: 01 07 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: 01 07 00 6F 39 00 00 00 00 00 FF 0F BD [00:44:42]process_action close_receipt done [00:44:42]requested_data is exist [00:44:42]produce_requested_data [00:44:42]requested_item fm.sn is exist - process it [00:44:42]wFMCommunicate request_size=4 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 11 00 00 [00:44:42]Write to MH i2c: E2 08 00 70 39 80 11 00 00 00 00 00 00 23 [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:42]Read from MH i2c: E2 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 17 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 17 00 70 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [00: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 [00:44:42]wFMCommunicate OK [00:44:42]requested_item fd.num is exist - process it [00:44:42]SAM_PROTO_GetFieldsCounters [00:44:42]wFMCommunicate request_size=4 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 13 00 00 [00:44:42]Write to MH i2c: E2 08 00 71 39 80 13 00 00 00 00 00 00 26 [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:43]Read from MH i2c: E2 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: E2 62 00 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: E2 62 00 71 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [00:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:44:43]wFMCommunicate OK [00:44:43]SAM_PROTO_GetFieldsCounters done [00:44:43]requested_item shift.num is exist - process it [00:44:43]requested_item shift.opened is exist - process it [00:44:43]req_shift_opened [00:44:43]FM_GetShiftState [00:44:43]SAM_PROTO_GetShiftState [00:44:43]wFMCommunicate request_size=4 [00:44:43]MH_SAM_APDU [00:44:43]CAPDU: 80 13 01 00 [00:44:43]Write to MH i2c: E2 08 00 72 39 80 13 01 00 00 00 00 00 28 [00:44:43]Write i2c OK [00:44:43]MH_I2C_Read... [00:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:43]Read from MH i2c: E2 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: E2 0E 00 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: E2 0E 00 72 39 00 09 00 01 89 19 24 67 00 00 00 00 90 00 61 [00:44:43]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:44:43]wFMCommunicate OK [00:44:43]SAM_PROTO_GetShiftState done [00:44:43]FM_GetShiftState done [00:44:43]req_shift_opened done [00:44:43]requested_item shift.open_date is exist - process it [00:44:43]req_shift_open_date [00:44:43]req_shift_open_date done [00:44:43]produce_requested_data done [00:44:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139838,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:44:43]process_action_free close_receipt [00:44:43]json_value_free [00:44:43]json_value_free done [00:44:43]process_json_proto returns [00:44:43]Send response to host [00:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139838,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:44:43]free response buf [00:44:43]execute_script done [00:44:43]execute_script returns [00:44:43]free content buf [00:44:43]Sock 7.Close socket [00:44:43]Sock 7.Thread stoped [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:47]accept exits with 9 [00:45:47]New connection [00:45:47]New thread 3066510692 created [00:45:47]Thread 3066654052 joined [00:45:47]Waiting for new connection... [00:45:47] Sock 9.Parse request [00:45:47]Sock 9.Check first char [00:45:47]Sock 9.First char is OK [00:45:47]request: POST /json_proto HTTP/1.0 [00:45:47]Method: POST [00:45:47]URL: /json_proto [00:45:47]Method is POST - this is cgi request [00:45:47]url: /json_proto [00:45:47]query_string will be loaded in cgi processing [00:45:47]execute_cgi json_proto POST (null) [00:45:47]execute_cgi path=json_proto method=POST [00:45:47]POST find Content-Length [00:45:47]Host: 172.17.50.196:8080 [00:45:47]Content-Length: 817 [00:45:47]Content-Type: application/json [00:45:47] [00:45:47]POST finish read [00:45:47]Found Content-Length = 817 [00:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335669", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 2.000, "sum" : 398.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:47]execute_script... [00:45: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)335669", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 2.000, "sum" : 398.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:47]POST & json_proto [00:45:47]process_json_proto [00:45:47]json parsed OK: [00:45:47]protocol is kg_v1.0 [00:45:47]action value=close_receipt [00:45:47]process_action close_receipt [00:45:47]cmd_close_receipt [00:45:47]MH_GetDate [00:45:47]Write to MH i2c: F0 00 00 73 39 9B [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: F0 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: F0 09 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: F0 09 00 73 39 00 BF 24 24 67 72 0D 1C 67 14 [00:45:47]GetLastDocTimeStamp 1730421882 [00:45:47]current date 1730421951 [00:45:47]FM_GetShiftState [00:45:47]SAM_PROTO_GetShiftState [00:45:47]wFMCommunicate request_size=4 [00:45:47]MH_SAM_APDU [00:45:47]CAPDU: 80 13 01 00 [00:45:47]Write to MH i2c: E2 08 00 74 39 80 13 01 00 00 00 00 00 2A [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:47]Read from MH i2c: E2 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 0E 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 0E 00 74 39 00 09 00 01 89 19 24 67 00 00 00 00 90 00 63 [00:45:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:45:47]wFMCommunicate OK [00:45:47]SAM_PROTO_GetShiftState done [00:45:47]FM_GetShiftState done [00:45:47]opened in 1730419081 [00:45:47]opened+sec_in_day 1730505481 [00:45:47]quantity*price = 39800 [00:45:47]sum+1 = 39801 [00:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 398.00 НСП 1% : 3.52 НДС 12% : 42.26 Наличными: 0.00 Безнал.: 398.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 20 01.11.2024 00:45 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874669 ФД: 139839 ФПД: 80005785422085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004551&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139839&fm=80005785422085&tin=02508201610067®Number=0000000000091631&sum=39800 0 [00:45:49]StoreToDocumentArchive [00:45:49]shift 558 fd 139839 [00:45:49]save to /storage/0558/doc_00139839 [00:45:49]save last doc name /storage/0558/doc_00139839 to /storage/kkm_last_doc_name [00:45:49]save OK [00:45:49]Clear old archive folders... [00:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=272 [00:45:49]tlvbuf is 00A86760 [00:45:49]SAM_PROTO_ClearQueue [00:45:49]wFMCommunicate request_size=4 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 09 00 00 [00:45:49]Write to MH i2c: E2 08 00 81 39 80 09 00 00 00 00 00 00 2C [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 81 39 00 90 00 2E [00:45:49]RAPDU: 90 00 [00:45:49]wFMCommunicate OK [00:45:49]SAM_PROTO_ClearQueue done [00:45:49]KKMCreateOFDPacket [00:45:49]OFDProtocolAddRootSTLVToBuf [00:45:49]FM_MakeSignedData [00:45:49]FM_MakeSignedData [00:45:49]SAM_PROTO_SignData [00:45:49]wFMCommunicate request_size=4 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 0D 01 02 [00:45:49]Write to MH i2c: E2 08 00 82 39 80 0D 01 02 00 00 00 00 34 [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 82 39 00 90 00 2F [00:45:49]RAPDU: 90 00 [00:45:49]wFMCommunicate OK [00:45:49]wFMCommunicate request_size=255 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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:45:49]Write to MH i2c: E2 02 01 83 39 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 6A [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 83 39 00 90 00 30 [00:45:49]RAPDU: 90 00 [00:45:49]wFMCommunicate OK [00:45:49]wFMCommunicate request_size=31 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 3F 22 02 00 35 04 06 00 48 C3 CC 6B 89 05 [00:45:49]Write to MH i2c: E2 22 00 84 39 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 3F 22 02 00 35 04 06 00 48 C3 CC 6B 89 05 00 00 9D [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 03 00 84 39 00 90 00 31 [00:45:49]RAPDU: 90 00 [00:45:49]wFMCommunicate OK [00:45:49]wFMCommunicate request_size=4 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 0D 03 02 [00:45:49]Write to MH i2c: E2 08 00 85 39 80 0D 03 02 00 00 00 00 39 [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 0B 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 0B 00 85 39 00 A3 23 4F F5 77 B0 61 34 90 00 00 [00:45:49]RAPDU: A3 23 4F F5 77 B0 61 34 90 00 [00:45:49]wFMCommunicate OK [00:45:49]SAM_PROTO_SignData done [00:45:49]FM_MakeSignedData done [00:45:49]CreateOFDProtocolMessage [00:45:49]wFMCommunicate request_size=4 [00:45:49]MH_SAM_APDU [00:45:49]CAPDU: 80 11 00 00 [00:45:49]Write to MH i2c: E2 08 00 86 39 80 11 00 00 00 00 00 00 39 [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:49]Read from MH i2c: E2 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 17 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: E2 17 00 86 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [00: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 [00:45:49]wFMCommunicate OK [00:45:49]CreateOFDProtocolMessage done [00:45:49]OFDSenderStorePacket 139839 [00:45:49]StoreOFDPacket docnum=139839 [00:45: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 24 01 00 00 49 A9 1C 01 9D 15 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3F 22 02 00 35 04 06 00 48 C3 CC 6B 89 05 A3 23 4F F5 77 B0 61 34 [00:45:49]CheckFolder [00:45:49]dirname=/storage/ofd_packets [00:45:49]CheckFolder done [00:45:49]ProducePacketName [00:45:49]name=ofd_packets/00139839 [00:45:49]NVStorageSaveData ofd_packets/00139839 [00:45:49]File name is /storage/ofd_packets/00139839 [00:45:49]Write 322 bytes [00:45:49]NVStorageSaveData done [00:45:49]OFDSenderStorePacket done [00:45:49]KKMCreateOFDPacket done [00:45:49]NVStorageSaveData kkm_last_timestamp [00:45:49]File name is /storage/kkm_last_timestamp [00:45:49]Write 4 bytes [00:45:49]NVStorageSaveData done [00:45:49]ExternCall_PrintAddStr [00:45:49]wPrintStart [00:45:49]Write to MH i2c: 01 00 00 87 39 C0 [00:45:49]Write i2c OK [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: 01 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: 01 07 00 [00:45:49]MH_I2C_Read... [00:45:49]Read from MH i2c: 01 07 00 87 39 00 00 00 00 00 FF 0F D5 [00:45:49]RasterBufferAndPrint [00:45:49]line Счет N : (3)335669 [00:45:49]line ИНН: 02508201610067 [00:45:49]line Контрольно-Кассовый Чек [00:45:49]line ПРОДАЖА [00:45:49]line Товар: 4700000480517 [00:45:49]line Пиво Живое 1л ПЭТ [00:45:49]line 2.000 * 199.00 [00:45:49]line = 398.00 [00:45:49]line НДС 12% НСП 1% [00:45:49]line > о реализуемом товаре [00:45:49]line ИТОГО: 398.00 [00:45:49]line НСП 1% : 3.52 [00:45:49]line НДС 12% : 42.26 [00:45:49]line Наличными: 0.00 [00:45:49]line Безнал.: 398.00 [00:45:49]line Место: АЗС № 101 "Партнер Нефть" [00:45:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:45:49]line СНО: Общий режим [00:45:49]line Чек 20 01.11.2024 00:45 [00:45:49]line Смена: 558 ФФД: 1.0 [00:45:49]line ЗНМ: 0300000081 [00:45:49]line РНМ: 0000000000091631 [00:45:49]line Версия ККМ: 001 [00:45:49]line Платежная система: Бакай Банк [00:45:49]line ФМ: 0000000000874669 [00:45:49]line ФД: 139839 [00:45:49]line ФПД: 80005785422085 [00:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004551&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139839&fm=80005785422085&tin=02508201610067®Number=0000000000091631&sum=39800 [00:45:50]OFD Sender: Processing packet 139839 [packets to send 34, broken 33] [00:45:50]ProducePacketName [00:45:50]name=ofd_packets/00139839 [00:45:50]OFD Sender: To server: pG, [00:45:50]CommunicateWithHost lk.salyk.kg:30040 [00:45:50]ConnectInit lk.salyk.kg [00:45:50]line 0 [00:45:50]written 0, free lines is 4095 [00:45:50]Connected sock=10 [00:45: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 24 01 00 00 49 A9 1C 01 9D 15 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 78 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 3F 22 02 00 35 04 06 00 48 C3 CC 6B 89 05 A3 23 4F F5 77 B0 61 34 [00:45: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 5A EC 47 00 5D 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 3F 22 02 00 F4 03 04 00 6B D0 23 67 B6 04 01 00 00 D4 A2 7C 4E 77 FA E8 9A [00:45:50]CommunicateWithHost err = 0 [00:45:50]CheckOFDResponse [00:45:50]1017 (14) - 77093643461234 [00:45:50]1041 (16) - 0000000000874669 [00:45:50]1040 (4) - 139839 [00:45:50]1012 (4) - 31.10.2024 18:46 [00:45:50]1206 (1) - 0 [00:45:50]OFD Sender: Remove packet 139839 [00:45:50]ProducePacketName [00:45:50]name=ofd_packets/00139839 [00:45:50]NVStorageDeleteData [00:45:50]Write to MH i2c: 01 00 00 B1 39 EA [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: 01 07 00 B1 39 00 00 00 00 00 FC 0C F9 [00:45:50]RasterBufferAndPrint [00:45:50]line [00:45:50]line [00:45:50]line [00:45:50]line [00:45:50]line [00:45:50]written 0, free lines is 3329 [00:45:50]MH_Cut [00:45:50]Write to MH i2c: D1 01 00 B8 39 01 C3 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: D1 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: D1 01 00 [00:45:50]MH_I2C_Read... [00:45:50]Read from MH i2c: D1 01 00 B8 39 00 C2 [00:45:50]Write to MH i2c: 01 00 00 B9 39 F2 [00:45:50]Write i2c OK [00:45:50]MH_I2C_Read... [00:45:50]OFD Sender: No OFD packet to send [00:45:51]*** Cut start [00:45:51]*** Partial cut [00:45:51]*** CUTSNS_PIN = 1 [00:45:51]*** CUTSNS_PIN = 0 [00:45:51]*** Brake cut motor [00:45:51]Read from MH i2c: 01 [00:45:51]MH_I2C_Read... [00:45:51]*** Stop cut motor [00:45:51]*** Cut end [00:45:51]Read from MH i2c: 01 07 00 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: 01 07 00 B9 39 00 00 00 00 00 FF 0F 07 [00:45:51]process_action close_receipt done [00:45:51]requested_data is exist [00:45:51]produce_requested_data [00:45:51]requested_item fm.sn is exist - process it [00:45:51]wFMCommunicate request_size=4 [00:45:51]MH_SAM_APDU [00:45:51]CAPDU: 80 11 00 00 [00:45:51]Write to MH i2c: E2 08 00 BA 39 80 11 00 00 00 00 00 00 6D [00:45:51]Write i2c OK [00:45:51]MH_I2C_Read... [00:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:51]Read from MH i2c: E2 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: E2 17 00 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: E2 17 00 BA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C8 [00:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:45:51]wFMCommunicate OK [00:45:51]requested_item fd.num is exist - process it [00:45:51]SAM_PROTO_GetFieldsCounters [00:45:51]wFMCommunicate request_size=4 [00:45:51]MH_SAM_APDU [00:45:51]CAPDU: 80 13 00 00 [00:45:51]Write to MH i2c: E2 08 00 BB 39 80 13 00 00 00 00 00 00 70 [00:45:51]Write i2c OK [00:45:51]MH_I2C_Read... [00:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:51]Read from MH i2c: E2 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: E2 62 00 [00:45:51]MH_I2C_Read... [00:45:51]Read from MH i2c: E2 62 00 BB 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 3F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [00:45: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 3F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:51]wFMCommunicate OK [00:45:51]SAM_PROTO_GetFieldsCounters done [00:45:51]requested_item shift.num is exist - process it [00:45:51]requested_item shift.opened is exist - process it [00:45:51]req_shift_opened [00:45:51]FM_GetShiftState [00:45:51]SAM_PROTO_GetShiftState [00:45:51]wFMCommunicate request_size=4 [00:45:51]MH_SAM_APDU [00:45:51]CAPDU: 80 13 01 00 [00:45:51]Write to MH i2c: E2 08 00 BC 39 80 13 01 00 00 00 00 00 72 [00:45:51]Write i2c OK [00:45:51]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 [00:45:52]MH_I2C_Read... [00:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:52]Read from MH i2c: E2 0E 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 0E 00 BC 39 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AB [00:45:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:45:52]wFMCommunicate OK [00:45:52]SAM_PROTO_GetShiftState done [00:45:52]FM_GetShiftState done [00:45:52]req_shift_opened done [00:45:52]requested_item shift.open_date is exist - process it [00:45:52]req_shift_open_date [00:45:52]req_shift_open_date done [00:45:52]produce_requested_data done [00:45:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139839,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:45:52]process_action_free close_receipt [00:45:52]json_value_free [00:45:52]json_value_free done [00:45:52]process_json_proto returns [00:45:52]Send response to host [00:45:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139839,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:45:52]free response buf [00:45:52]execute_script done [00:45:52]execute_script returns [00:45:52]free content buf [00:45:52]Sock 9.Close socket [00:45:52]Sock 9.Thread stoped [00:45:52]accept exits with 7 [00:45:52]New connection [00:45:52]New thread 3066654052 created [00:45:52]Thread 3066510692 joined [00:45:52]Waiting for new connection... [00:45:52] Sock 7.Parse request [00:45:52]Sock 7.Check first char [00:45:52]Sock 7.First char is OK [00:45:52]request: POST /json_proto HTTP/1.0 [00:45:52]Method: POST [00:45:52]URL: /json_proto [00:45:52]Method is POST - this is cgi request [00:45:52]url: /json_proto [00:45:52]query_string will be loaded in cgi processing [00:45:52]execute_cgi json_proto POST (null) [00:45:52]execute_cgi path=json_proto method=POST [00:45:52]POST find Content-Length [00:45:52]Host: 172.17.50.196:8080 [00:45:52]Content-Length: 775 [00:45:52]Content-Type: application/json [00:45:52] [00:45:52]POST finish read [00:45:52]Found Content-Length = 775 [00:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:52]execute_script... [00:45: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)1095592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:52]POST & json_proto [00:45:52]process_json_proto [00:45:52]json parsed OK: [00:45:52]protocol is kg_v1.0 [00:45:52]action value=close_receipt [00:45:52]process_action close_receipt [00:45:52]cmd_close_receipt [00:45:52]MH_GetDate [00:45:52]Write to MH i2c: F0 00 00 BD 39 E5 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: F0 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: F0 09 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: F0 09 00 BD 39 00 C3 24 24 67 72 0D 1C 67 62 [00:45:52]GetLastDocTimeStamp 1730421951 [00:45:52]current date 1730421955 [00:45:52]FM_GetShiftState [00:45:52]SAM_PROTO_GetShiftState [00:45:52]wFMCommunicate request_size=4 [00:45:52]MH_SAM_APDU [00:45:52]CAPDU: 80 13 01 00 [00:45:52]Write to MH i2c: E2 08 00 BE 39 80 13 01 00 00 00 00 00 74 [00:45:52]Write i2c OK [00:45:52]MH_I2C_Read... [00:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:52]Read from MH i2c: E2 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 0E 00 [00:45:52]MH_I2C_Read... [00:45:52]Read from MH i2c: E2 0E 00 BE 39 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AD [00:45:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:45:52]wFMCommunicate OK [00:45:52]SAM_PROTO_GetShiftState done [00:45:52]FM_GetShiftState done [00:45:52]opened in 1730419081 [00:45:52]opened+sec_in_day 1730505481 [00:45:52]quantity*price = 500024 [00:45:52]sum+1 = 500025 [00:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 21 01.11.2024 00:45 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139840 ФПД: 233118137090063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139840&fm=233118137090063&tin=02508201610067®Number=0000000000091631&sum=500024 [00:45:53]StoreToDocumentArchive [00:45:53]shift 558 fd 139840 [00:45:53]save to /storage/0558/doc_00139840 [00:45:53]save last doc name /storage/0558/doc_00139840 to /storage/kkm_last_doc_name [00:45:53]save OK [00:45:53]Clear old archive folders... [00:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:45:53]tlvbuf is 00A2D7A0 [00:45:53]SAM_PROTO_ClearQueue [00:45:53]wFMCommunicate request_size=4 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 09 00 00 [00:45:53]Write to MH i2c: E2 08 00 CB 39 80 09 00 00 00 00 00 00 76 [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:53]Read from MH i2c: E2 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 [00:45:53]MH_I2C_Read... [00:45:53]Read from MH i2c: E2 03 00 CB 39 00 90 00 78 [00:45:53]RAPDU: 90 00 [00:45:53]wFMCommunicate OK [00:45:53]SAM_PROTO_ClearQueue done [00:45:53]KKMCreateOFDPacket [00:45:53]OFDProtocolAddRootSTLVToBuf [00:45:53]FM_MakeSignedData [00:45:53]FM_MakeSignedData [00:45:53]SAM_PROTO_SignData [00:45:53]wFMCommunicate request_size=4 [00:45:53]MH_SAM_APDU [00:45:53]CAPDU: 80 0D 01 02 [00:45:53]Write to MH i2c: E2 08 00 CC 39 80 0D 01 02 00 00 00 00 7E [00:45:53]Write i2c OK [00:45:53]MH_I2C_Read... [00:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:54]Read from MH i2c: E2 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 03 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 03 00 CC 39 00 90 00 79 [00:45:54]RAPDU: 90 00 [00:45:54]wFMCommunicate OK [00:45:54]wFMCommunicate request_size=255 [00:45:54]MH_SAM_APDU [00:45:54]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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C3 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 22 02 00 35 04 06 00 [00:45:54]Write to MH i2c: E2 02 01 CD 39 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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C3 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 22 02 00 35 04 06 00 00 00 49 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:54]Read from MH i2c: E2 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 03 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 03 00 CD 39 00 90 00 7A [00:45:54]RAPDU: 90 00 [00:45:54]wFMCommunicate OK [00:45:54]wFMCommunicate request_size=11 [00:45:54]MH_SAM_APDU [00:45:54]CAPDU: 80 0D 02 02 06 D4 05 0B C0 80 0F [00:45:54]Write to MH i2c: E2 0E 00 CE 39 80 0D 02 02 06 00 D4 05 0B C0 80 0F 00 00 C0 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:54]Read from MH i2c: E2 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 03 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 03 00 CE 39 00 90 00 7B [00:45:54]RAPDU: 90 00 [00:45:54]wFMCommunicate OK [00:45:54]wFMCommunicate request_size=4 [00:45:54]MH_SAM_APDU [00:45:54]CAPDU: 80 0D 03 02 [00:45:54]Write to MH i2c: E2 08 00 CF 39 80 0D 03 02 00 00 00 00 83 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:54]Read from MH i2c: E2 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 0B 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 0B 00 CF 39 00 39 C0 AD CC 97 4E 31 5C 90 00 68 [00:45:54]RAPDU: 39 C0 AD CC 97 4E 31 5C 90 00 [00:45:54]wFMCommunicate OK [00:45:54]SAM_PROTO_SignData done [00:45:54]FM_MakeSignedData done [00:45:54]CreateOFDProtocolMessage [00:45:54]wFMCommunicate request_size=4 [00:45:54]MH_SAM_APDU [00:45:54]CAPDU: 80 11 00 00 [00:45:54]Write to MH i2c: E2 08 00 D0 39 80 11 00 00 00 00 00 00 83 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:54]Read from MH i2c: E2 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 17 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: E2 17 00 D0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [00:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:45:54]wFMCommunicate OK [00:45:54]CreateOFDProtocolMessage done [00:45:54]OFDSenderStorePacket 139840 [00:45:54]StoreOFDPacket docnum=139840 [00:45: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 10 01 00 00 5A 48 08 01 4E 96 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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C3 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 22 02 00 35 04 06 00 D4 05 0B C0 80 0F 39 C0 AD CC 97 4E 31 5C [00:45:54]CheckFolder [00:45:54]dirname=/storage/ofd_packets [00:45:54]CheckFolder done [00:45:54]ProducePacketName [00:45:54]name=ofd_packets/00139840 [00:45:54]NVStorageSaveData ofd_packets/00139840 [00:45:54]File name is /storage/ofd_packets/00139840 [00:45:54]Write 302 bytes [00:45:54]NVStorageSaveData done [00:45:54]OFDSenderStorePacket done [00:45:54]KKMCreateOFDPacket done [00:45:54]NVStorageSaveData kkm_last_timestamp [00:45:54]File name is /storage/kkm_last_timestamp [00:45:54]Write 4 bytes [00:45:54]NVStorageSaveData done [00:45:54]ExternCall_PrintAddStr [00:45:54]wPrintStart [00:45:54]Write to MH i2c: 01 00 00 D1 39 0A [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 07 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 07 00 D1 39 00 00 00 00 00 FF 0F 1F [00:45:54]RasterBufferAndPrint [00:45:54]line Счет N : (1)1095592 [00:45:54]line ИНН: 02508201610067 [00:45:54]line Контрольно-Кассовый Чек [00:45:54]line ПРОДАЖА [00:45:54]line ТРК (МРК, ГНК) : 31 [00:45:54]line Товар: 2710194210 [00:45:54]line ДТ(л)-К-2 [00:45:54]line 65.620 * 76.20 [00:45:54]line = 5000.24 [00:45:54]line НДС 12% НСП 1% [00:45:54]line > о реализуемом товаре [00:45:54]line ИТОГО: 5000.24 [00:45:54]line НСП 1% : 44.25 [00:45:54]line НДС 12% : 531.00 [00:45:54]line Наличными: 0.00 [00:45:54]line Безнал.: 5000.24 [00:45:54]line Место: АЗС № 101 "Партнер Нефть" [00:45:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:45:54]line СНО: Общий режим [00:45:54]line Чек 21 01.11.2024 00:45 [00:45:54]line Смена: 558 ФФД: 1.0 [00:45:54]line ЗНМ: 0300000081 [00:45:54]line РНМ: 0000000000091631 [00:45:54]line Версия ККМ: 001 [00:45:54]line Платежная система: Mbank [00:45:54]line ФМ: 0000000000874669 [00:45:54]line ФД: 139840 [00:45:54]line ФПД: 233118137090063 [00:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T004555&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139840&fm=233118137090063&tin=02508201610067®Number=0000000000091631&sum=500024 [00:45:54]written 0, free lines is 4095 [00:45:54]OFD Sender: Processing packet 139840 [packets to send 34, broken 33] [00:45:54]ProducePacketName [00:45:54]name=ofd_packets/00139840 [00:45:54]OFD Sender: To server: pG, [00:45:54]CommunicateWithHost lk.salyk.kg:30040 [00:45:54]ConnectInit lk.salyk.kg [00:45:54]Connected sock=10 [00:45: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 10 01 00 00 5A 48 08 01 4E 96 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 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C3 24 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 22 02 00 35 04 06 00 D4 05 0B C0 80 0F 39 C0 AD CC 97 4E 31 5C [00:45: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 C7 72 47 00 8F C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 40 22 02 00 F4 03 04 00 70 D0 23 67 B6 04 01 00 00 87 6A 07 29 1F 48 7E F6 [00:45:54]CommunicateWithHost err = 0 [00:45:54]CheckOFDResponse [00:45:54]1017 (14) - 77093643461234 [00:45:54]1041 (16) - 0000000000874669 [00:45:54]1040 (4) - 139840 [00:45:54]1012 (4) - 31.10.2024 18:46 [00:45:54]1206 (1) - 0 [00:45:54]OFD Sender: Remove packet 139840 [00:45:54]ProducePacketName [00:45:54]name=ofd_packets/00139840 [00:45:54]NVStorageDeleteData [00:45:54]Write to MH i2c: 01 00 00 FA 39 33 [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 07 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: 01 07 00 FA 39 00 00 00 00 00 23 0D 6A [00:45:54]RasterBufferAndPrint [00:45:54]line [00:45:54]line [00:45:54]line [00:45:54]line [00:45:54]line [00:45:54]written 0, free lines is 3375 [00:45:54]MH_Cut [00:45:54]Write to MH i2c: D1 01 00 01 3A 01 0D [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: D1 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: D1 01 00 [00:45:54]MH_I2C_Read... [00:45:54]Read from MH i2c: D1 01 00 01 3A 00 0C [00:45:54]Write to MH i2c: 01 00 00 02 3A 3C [00:45:54]Write i2c OK [00:45:54]MH_I2C_Read... [00:45:55]OFD Sender: No OFD packet to send [00:45:55]*** Cut start [00:45:55]*** Partial cut [00:45:55]*** CUTSNS_PIN = 1 [00:45:55]*** CUTSNS_PIN = 0 [00:45:55]*** Brake cut motor [00:45:56]Read from MH i2c: 01 [00:45:56]MH_I2C_Read... [00:45:56]*** Stop cut motor [00:45:56]*** Cut end [00:45:56]Read from MH i2c: 01 07 00 [00:45:56]MH_I2C_Read... [00:45:56]Read from MH i2c: 01 07 00 02 3A 00 00 00 00 00 FF 0F 51 [00:45:56]process_action close_receipt done [00:45:56]requested_data is exist [00:45:56]produce_requested_data [00:45:56]requested_item fm.sn is exist - process it [00:45:56]wFMCommunicate request_size=4 [00:45:56]MH_SAM_APDU [00:45:56]CAPDU: 80 11 00 00 [00:45:56]Write to MH i2c: E2 08 00 03 3A 80 11 00 00 00 00 00 00 B7 [00:45:56]Write i2c OK [00:45:56]MH_I2C_Read... [00:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:56]Read from MH i2c: E2 [00:45:56]MH_I2C_Read... [00:45:56]Read from MH i2c: E2 17 00 [00:45:56]MH_I2C_Read... [00:45:56]Read from MH i2c: E2 17 00 03 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 12 [00:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:45:56]wFMCommunicate OK [00:45:56]requested_item fd.num is exist - process it [00:45:56]SAM_PROTO_GetFieldsCounters [00:45:56]wFMCommunicate request_size=4 [00:45:56]MH_SAM_APDU [00:45:56]CAPDU: 80 13 00 00 [00:45:56]Write to MH i2c: E2 08 00 04 3A 80 13 00 00 00 00 00 00 BA [00:45:56]Write i2c OK [00:45:56]MH_I2C_Read... [00:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:56]Read from MH i2c: E2 [00:45:56]MH_I2C_Read... [00:45:56]Read from MH i2c: E2 62 00 [00:45:56]MH_I2C_Read... [00:45:56]Read from MH i2c: E2 62 00 04 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 40 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [00:45: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 40 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:56]wFMCommunicate OK [00:45:56]SAM_PROTO_GetFieldsCounters done [00:45:56]requested_item shift.num is exist - process it [00:45:56]requested_item shift.opened is exist - process it [00:45:56]req_shift_opened [00:45:56]FM_GetShiftState [00:45:56]SAM_PROTO_GetShiftState [00:45:56]wFMCommunicate request_size=4 [00:45:56]MH_SAM_APDU [00:45:56]CAPDU: 80 13 01 00 [00:45:56]Write to MH i2c: E2 08 00 05 3A 80 13 01 00 00 00 00 00 BC [00:45:56]Write i2c OK [00:45:56]MH_I2C_Read... [00:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:56]Read from MH i2c: E2 [00:45:56]MH_I2C_Read... [00:45:56]Read from MH i2c: E2 0E 00 [00:45:56]MH_I2C_Read... [00:45:56]Read from MH i2c: E2 0E 00 05 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F5 [00:45:56]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:45:56]wFMCommunicate OK [00:45:56]SAM_PROTO_GetShiftState done [00:45:56]FM_GetShiftState done [00:45:56]req_shift_opened done [00:45:56]requested_item shift.open_date is exist - process it [00:45:56]req_shift_open_date [00:45:56]req_shift_open_date done [00:45:56]produce_requested_data done [00:45:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139840,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:45:56]process_action_free close_receipt [00:45:56]json_value_free [00:45:56]json_value_free done [00:45:56]process_json_proto returns [00:45:56]Send response to host [00:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139840,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:45:56]free response buf [00:45:56]execute_script done [00:45:56]execute_script returns [00:45:56]free content buf [00:45:56]Sock 7.Close socket [00:45:56]Sock 7.Thread stoped [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:18]ConnectInit Can't connect to host [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:28]accept exits with 9 [00:57:28]New connection [00:57:28]New thread 3066510692 created [00:57:28]Thread 3066654052 joined [00:57:28]Waiting for new connection... [00:57:28] Sock 9.Parse request [00:57:28]Sock 9.Check first char [00:57:28]Sock 9.First char is OK [00:57:28]request: POST /json_proto HTTP/1.0 [00:57:28]Method: POST [00:57:28]URL: /json_proto [00:57:28]Method is POST - this is cgi request [00:57:28]url: /json_proto [00:57:28]query_string will be loaded in cgi processing [00:57:28]execute_cgi json_proto POST (null) [00:57:28]execute_cgi path=json_proto method=POST [00:57:28]POST find Content-Length [00:57:28]Host: 172.17.50.196:8080 [00:57:28]Content-Length: 688 [00:57:28]Content-Type: application/json [00:57:28] [00:57:28]POST finish read [00:57:28]Found Content-Length = 688 [00:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095604", "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" : 47.780, "sum" : 3640.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3640.00, "payments": [ { "type": 0, "sum" : 3640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:28]execute_script... [00:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095604", "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" : 47.780, "sum" : 3640.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3640.00, "payments": [ { "type": 0, "sum" : 3640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:28]POST & json_proto [00:57:28]process_json_proto [00:57:28]json parsed OK: [00:57:28]protocol is kg_v1.0 [00:57:28]action value=close_receipt [00:57:28]process_action close_receipt [00:57:28]cmd_close_receipt [00:57:28]MH_GetDate [00:57:28]Write to MH i2c: F0 00 00 06 3A 2F [00:57:28]Write i2c OK [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: F0 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: F0 09 00 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: F0 09 00 06 3A 00 7B 27 24 67 72 0D 1C 67 67 [00:57:28]GetLastDocTimeStamp 1730421955 [00:57:28]current date 1730422651 [00:57:28]FM_GetShiftState [00:57:28]SAM_PROTO_GetShiftState [00:57:28]wFMCommunicate request_size=4 [00:57:28]MH_SAM_APDU [00:57:28]CAPDU: 80 13 01 00 [00:57:28]Write to MH i2c: E2 08 00 07 3A 80 13 01 00 00 00 00 00 BE [00:57:28]Write i2c OK [00:57:28]MH_I2C_Read... [00:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:28]Read from MH i2c: E2 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 0E 00 [00:57:28]MH_I2C_Read... [00:57:28]Read from MH i2c: E2 0E 00 07 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F7 [00:57:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:57:28]wFMCommunicate OK [00:57:28]SAM_PROTO_GetShiftState done [00:57:28]FM_GetShiftState done [00:57:28]opened in 1730419081 [00:57:28]opened+sec_in_day 1730505481 [00:57:28]quantity*price = 364083 [00:57:28]sum+1 = 364085 [00:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 3640.00 Внесено: 5000.00 СДАЧА: 1360.00 НСП 1% : 32.22 НДС 12% : 386.64 Наличными: 3640.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 22 01.11.2024 00:57 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139841 ФПД: 251700332869815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T005731&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139841&fm=251700332869815&tin=02508201610067®Number=0000000000091631&sum=364000 [00:57:29]StoreToDocumentArchive [00:57:29]shift 558 fd 139841 [00:57:29]save to /storage/0558/doc_00139841 [00:57:29]save last doc name /storage/0558/doc_00139841 to /storage/kkm_last_doc_name [00:57:29]save OK [00:57:29]Clear old archive folders... [00:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:57:29]tlvbuf is 00A3AC80 [00:57:29]SAM_PROTO_ClearQueue [00:57:29]wFMCommunicate request_size=4 [00:57:29]MH_SAM_APDU [00:57:29]CAPDU: 80 09 00 00 [00:57:29]Write to MH i2c: E2 08 00 14 3A 80 09 00 00 00 00 00 00 C0 [00:57:29]Write i2c OK [00:57:29]MH_I2C_Read... [00:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:57:29]Read from MH i2c: E2 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 14 3A 00 90 00 C2 [00:57:29]RAPDU: 90 00 [00:57:29]wFMCommunicate OK [00:57:29]SAM_PROTO_ClearQueue done [00:57:29]KKMCreateOFDPacket [00:57:29]OFDProtocolAddRootSTLVToBuf [00:57:29]FM_MakeSignedData [00:57:29]FM_MakeSignedData [00:57:29]SAM_PROTO_SignData [00:57:29]wFMCommunicate request_size=4 [00:57:29]MH_SAM_APDU [00:57:29]CAPDU: 80 0D 01 02 [00:57:29]Write to MH i2c: E2 08 00 15 3A 80 0D 01 02 00 00 00 00 C8 [00:57:29]Write i2c OK [00:57:29]MH_I2C_Read... [00:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:29]Read from MH i2c: E2 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 15 3A 00 90 00 C3 [00:57:29]RAPDU: 90 00 [00:57:29]wFMCommunicate OK [00:57:29]wFMCommunicate request_size=255 [00:57:29]MH_SAM_APDU [00:57:29]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 A4 BA 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 8E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 97 00 00 00 00 07 04 06 00 E0 8D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7B 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 22 02 00 35 04 06 00 [00:57:29]Write to MH i2c: E2 02 01 16 3A 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 A4 BA 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 8E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 97 00 00 00 00 07 04 06 00 E0 8D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7B 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 22 02 00 35 04 06 00 00 00 10 [00:57:29]Write i2c OK [00:57:29]MH_I2C_Read... [00:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:29]Read from MH i2c: E2 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 16 3A 00 90 00 C4 [00:57:29]RAPDU: 90 00 [00:57:29]wFMCommunicate OK [00:57:29]wFMCommunicate request_size=11 [00:57:29]MH_SAM_APDU [00:57:29]CAPDU: 80 0D 02 02 06 E4 EB 8C EE 38 B7 [00:57:29]Write to MH i2c: E2 0E 00 17 3A 80 0D 02 02 06 00 E4 EB 8C EE 38 B7 00 00 0F [00:57:29]Write i2c OK [00:57:29]MH_I2C_Read... [00:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:29]Read from MH i2c: E2 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 03 00 17 3A 00 90 00 C5 [00:57:29]RAPDU: 90 00 [00:57:29]wFMCommunicate OK [00:57:29]wFMCommunicate request_size=4 [00:57:29]MH_SAM_APDU [00:57:29]CAPDU: 80 0D 03 02 [00:57:29]Write to MH i2c: E2 08 00 18 3A 80 0D 03 02 00 00 00 00 CD [00:57:29]Write i2c OK [00:57:29]MH_I2C_Read... [00:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:29]Read from MH i2c: E2 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 0B 00 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 0B 00 18 3A 00 C4 35 C6 77 21 F6 68 CC 90 00 4F [00:57:29]RAPDU: C4 35 C6 77 21 F6 68 CC 90 00 [00:57:29]wFMCommunicate OK [00:57:29]SAM_PROTO_SignData done [00:57:29]FM_MakeSignedData done [00:57:29]CreateOFDProtocolMessage [00:57:29]wFMCommunicate request_size=4 [00:57:29]MH_SAM_APDU [00:57:29]CAPDU: 80 11 00 00 [00:57:29]Write to MH i2c: E2 08 00 19 3A 80 11 00 00 00 00 00 00 CD [00:57:29]Write i2c OK [00:57:29]MH_I2C_Read... [00:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:29]Read from MH i2c: E2 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 17 00 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: E2 17 00 19 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 28 [00:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:57:29]wFMCommunicate OK [00:57:29]CreateOFDProtocolMessage done [00:57:29]OFDSenderStorePacket 139841 [00:57:29]StoreOFDPacket docnum=139841 [00:57: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 10 01 00 00 A9 95 08 01 01 4B 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 A4 BA 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 8E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 97 00 00 00 00 07 04 06 00 E0 8D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7B 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 22 02 00 35 04 06 00 E4 EB 8C EE 38 B7 C4 35 C6 77 21 F6 68 CC [00:57:29]CheckFolder [00:57:29]dirname=/storage/ofd_packets [00:57:29]CheckFolder done [00:57:29]ProducePacketName [00:57:29]name=ofd_packets/00139841 [00:57:29]NVStorageSaveData ofd_packets/00139841 [00:57:29]File name is /storage/ofd_packets/00139841 [00:57:29]Write 302 bytes [00:57:29]NVStorageSaveData done [00:57:29]OFDSenderStorePacket done [00:57:29]KKMCreateOFDPacket done [00:57:29]NVStorageSaveData kkm_last_timestamp [00:57:29]File name is /storage/kkm_last_timestamp [00:57:29]Write 4 bytes [00:57:29]NVStorageSaveData done [00:57:29]ExternCall_PrintAddStr [00:57:29]wPrintStart [00:57:29]Write to MH i2c: 01 00 00 1A 3A 54 [00:57:29]Write i2c OK [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: 01 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: 01 07 00 [00:57:29]MH_I2C_Read... [00:57:29]Read from MH i2c: 01 07 00 1A 3A 00 00 00 00 00 FF 0F 69 [00:57:29]RasterBufferAndPrint [00:57:29]line Счет N : (1)1095604 [00:57:29]line ИНН: 02508201610067 [00:57:29]line Контрольно-Кассовый Чек [00:57:29]line ПРОДАЖА [00:57:29]line ТРК (МРК, ГНК) : 41 [00:57:29]line Товар: 2710194210 [00:57:29]line ДТ(л)-К-2 [00:57:29]line 47.780 * 76.20 [00:57:29]line = 3640.84 [00:57:29]line НДС 12% НСП 1% [00:57:29]line > о реализуемом товаре [00:57:29]line ОКРУГЛЕНИЕ: -0.84 [00:57:29]line ИТОГО: 3640.00 [00:57:29]line Внесено: 5000.00 [00:57:29]line СДАЧА: 1360.00 [00:57:29]line НСП 1% : 32.22 [00:57:29]line НДС 12% : 386.64 [00:57:29]line Наличными: 3640.00 [00:57:29]line Безнал.: 0.00 [00:57:29]line Место: АЗС № 101 "Партнер Нефть" [00:57:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:57:29]line СНО: Общий режим [00:57:29]line Чек 22 01.11.2024 00:57 [00:57:29]line Смена: 558 ФФД: 1.0 [00:57:29]line ЗНМ: 0300000081 [00:57:29]line РНМ: 0000000000091631 [00:57:29]line Версия ККМ: 001 [00:57:29]line ФМ: 0000000000874669 [00:57:29]line ФД: 139841 [00:57:29]line ФПД: 251700332869815 [00:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T005731&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139841&fm=251700332869815&tin=02508201610067®Number=0000000000091631&sum=364000 [00:57:30]OFD Sender: Processing packet 139841 [packets to send 34, broken 33] [00:57:30]ProducePacketName [00:57:30]name=ofd_packets/00139841 [00:57:30]OFD Sender: To server: pG, [00:57:30]CommunicateWithHost lk.salyk.kg:30040 [00:57:30]ConnectInit lk.salyk.kg [00:57:30]written 0, free lines is 4095 [00:57:30]Connected sock=10 [00:57: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 10 01 00 00 A9 95 08 01 01 4B 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 A4 BA 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 34 8E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 8D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 97 00 00 00 00 07 04 06 00 E0 8D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7B 27 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 22 02 00 35 04 06 00 E4 EB 8C EE 38 B7 C4 35 C6 77 21 F6 68 CC [00:57: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 8B 47 00 EA 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 41 22 02 00 F4 03 04 00 27 D3 23 67 B6 04 01 00 00 0D 43 FD 0A 91 5C FC 82 [00:57:30]CommunicateWithHost err = 0 [00:57:30]CheckOFDResponse [00:57:30]1017 (14) - 77093643461234 [00:57:30]1041 (16) - 0000000000874669 [00:57:30]1040 (4) - 139841 [00:57:30]1012 (4) - 31.10.2024 18:57 [00:57:30]1206 (1) - 0 [00:57:30]OFD Sender: Remove packet 139841 [00:57:30]ProducePacketName [00:57:30]name=ofd_packets/00139841 [00:57:30]NVStorageDeleteData [00:57:30]Write to MH i2c: 01 00 00 45 3A 7F [00:57:30]Write i2c OK [00:57:30]MH_I2C_Read... [00:57:30]Read from MH i2c: 01 [00:57:30]MH_I2C_Read... [00:57:30]Read from MH i2c: 01 07 00 [00:57:30]MH_I2C_Read... [00:57:30]Read from MH i2c: 01 07 00 45 3A 00 00 00 00 00 F5 0C 87 [00:57:30]RasterBufferAndPrint [00:57:30]line [00:57:30]line [00:57:30]line [00:57:30]line [00:57:30]line [00:57:30]written 0, free lines is 3324 [00:57:30]MH_Cut [00:57:30]Write to MH i2c: D1 01 00 4C 3A 01 58 [00:57:30]Write i2c OK [00:57:30]MH_I2C_Read... [00:57:30]Read from MH i2c: D1 [00:57:30]MH_I2C_Read... [00:57:30]Read from MH i2c: D1 01 00 [00:57:30]MH_I2C_Read... [00:57:30]Read from MH i2c: D1 01 00 4C 3A 00 57 [00:57:30]Write to MH i2c: 01 00 00 4D 3A 87 [00:57:30]Write i2c OK [00:57:30]MH_I2C_Read... [00:57:31]OFD Sender: No OFD packet to send [00:57:31]*** Cut start [00:57:31]*** Partial cut [00:57:31]*** CUTSNS_PIN = 1 [00:57:31]*** CUTSNS_PIN = 0 [00:57:31]*** Brake cut motor [00:57:32]Read from MH i2c: 01 [00:57:32]MH_I2C_Read... [00:57:32]*** Stop cut motor [00:57:32]*** Cut end [00:57:32]Read from MH i2c: 01 07 00 [00:57:32]MH_I2C_Read... [00:57:32]Read from MH i2c: 01 07 00 4D 3A 00 00 00 00 00 FF 0F 9C [00:57:32]process_action close_receipt done [00:57:32]requested_data is exist [00:57:32]produce_requested_data [00:57:32]requested_item fm.sn is exist - process it [00:57:32]wFMCommunicate request_size=4 [00:57:32]MH_SAM_APDU [00:57:32]CAPDU: 80 11 00 00 [00:57:32]Write to MH i2c: E2 08 00 4E 3A 80 11 00 00 00 00 00 00 02 [00:57:32]Write i2c OK [00:57:32]MH_I2C_Read... [00:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:32]Read from MH i2c: E2 [00:57:32]MH_I2C_Read... [00:57:32]Read from MH i2c: E2 17 00 [00:57:32]MH_I2C_Read... [00:57:32]Read from MH i2c: E2 17 00 4E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5D [00:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:57:32]wFMCommunicate OK [00:57:32]requested_item fd.num is exist - process it [00:57:32]SAM_PROTO_GetFieldsCounters [00:57:32]wFMCommunicate request_size=4 [00:57:32]MH_SAM_APDU [00:57:32]CAPDU: 80 13 00 00 [00:57:32]Write to MH i2c: E2 08 00 4F 3A 80 13 00 00 00 00 00 00 05 [00:57:32]Write i2c OK [00:57:32]MH_I2C_Read... [00:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:32]Read from MH i2c: E2 [00:57:32]MH_I2C_Read... [00:57:32]Read from MH i2c: E2 62 00 [00:57:32]MH_I2C_Read... [00:57:32]Read from MH i2c: E2 62 00 4F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 41 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [00:57: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 41 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:32]wFMCommunicate OK [00:57:32]SAM_PROTO_GetFieldsCounters done [00:57:32]requested_item shift.num is exist - process it [00:57:32]requested_item shift.opened is exist - process it [00:57:32]req_shift_opened [00:57:32]FM_GetShiftState [00:57:32]SAM_PROTO_GetShiftState [00:57:32]wFMCommunicate request_size=4 [00:57:32]MH_SAM_APDU [00:57:32]CAPDU: 80 13 01 00 [00:57:32]Write to MH i2c: E2 08 00 50 3A 80 13 01 00 00 00 00 00 07 [00:57:32]Write i2c OK [00:57:32]MH_I2C_Read... [00:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:32]Read from MH i2c: E2 [00:57:32]MH_I2C_Read... [00:57:32]Read from MH i2c: E2 0E 00 [00:57:32]MH_I2C_Read... [00:57:32]Read from MH i2c: E2 0E 00 50 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 40 [00:57:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [00:57:32]wFMCommunicate OK [00:57:32]SAM_PROTO_GetShiftState done [00:57:32]FM_GetShiftState done [00:57:32]req_shift_opened done [00:57:32]requested_item shift.open_date is exist - process it [00:57:32]req_shift_open_date [00:57:32]req_shift_open_date done [00:57:32]produce_requested_data done [00:57:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139841,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [00:57:32]process_action_free close_receipt [00:57:32]json_value_free [00:57:32]json_value_free done [00:57:32]process_json_proto returns [00:57:32]Send response to host [00:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139841,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [00:57:32]free response buf [00:57:32]execute_script done [00:57:32]execute_script returns [00:57:32]free content buf [00:57:32]Sock 9.Close socket [00:57:32]Sock 9.Thread stoped [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:21]accept exits with 7 [01:01:21]New connection [01:01:21]New thread 3066654052 created [01:01:21]Thread 3066510692 joined [01:01:21]Waiting for new connection... [01:01:21] Sock 7.Parse request [01:01:21]Sock 7.Check first char [01:01:21]Sock 7.First char is OK [01:01:21]request: POST /json_proto HTTP/1.0 [01:01:21]Method: POST [01:01:21]URL: /json_proto [01:01:21]Method is POST - this is cgi request [01:01:21]url: /json_proto [01:01:21]query_string will be loaded in cgi processing [01:01:21]execute_cgi json_proto POST (null) [01:01:21]execute_cgi path=json_proto method=POST [01:01:21]POST find Content-Length [01:01:21]Host: 172.17.50.196:8080 [01:01:21]Content-Length: 621 [01:01:21]Content-Type: application/json [01:01:21] [01:01:21]POST finish read [01:01:21]Found Content-Length = 621 [01:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335670", "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" ] } } [01:01:21]execute_script... [01:01: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)335670", "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" ] } } [01:01:21]POST & json_proto [01:01:21]process_json_proto [01:01:21]json parsed OK: [01:01:21]protocol is kg_v1.0 [01:01:21]action value=close_receipt [01:01:21]process_action close_receipt [01:01:21]cmd_close_receipt [01:01:21]MH_GetDate [01:01:21]Write to MH i2c: F0 00 00 51 3A 7A [01:01:21]Write i2c OK [01:01:21]MH_I2C_Read... [01:01:21]Read from MH i2c: F0 [01:01:21]MH_I2C_Read... [01:01:21]Read from MH i2c: F0 09 00 [01:01:21]MH_I2C_Read... [01:01:21]Read from MH i2c: F0 09 00 51 3A 00 65 28 24 67 72 0D 1C 67 9D [01:01:21]GetLastDocTimeStamp 1730422651 [01:01:21]current date 1730422885 [01:01:21]FM_GetShiftState [01:01:21]SAM_PROTO_GetShiftState [01:01:21]wFMCommunicate request_size=4 [01:01:21]MH_SAM_APDU [01:01:21]CAPDU: 80 13 01 00 [01:01:21]Write to MH i2c: E2 08 00 52 3A 80 13 01 00 00 00 00 00 09 [01:01:21]Write i2c OK [01:01:21]MH_I2C_Read... [01:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:22]Read from MH i2c: E2 [01:01:22]MH_I2C_Read... [01:01:22]Read from MH i2c: E2 0E 00 [01:01:22]MH_I2C_Read... [01:01:22]Read from MH i2c: E2 0E 00 52 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 42 [01:01:22]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:01:22]wFMCommunicate OK [01:01:22]SAM_PROTO_GetShiftState done [01:01:22]FM_GetShiftState done [01:01:22]opened in 1730419081 [01:01:22]opened+sec_in_day 1730505481 [01:01:22]quantity*price = 14400 [01:01:22]sum+1 = 14401 [01:01:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 23 01.11.2024 01:01 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139842 ФПД: 12268885959593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010125&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139842&fm=12268885959593&tin=02508201610067®Number=0000000000091631&sum=14400 0 [01:01:23]StoreToDocumentArchive [01:01:23]shift 558 fd 139842 [01:01:23]save to /storage/0558/doc_00139842 [01:01:23]save last doc name /storage/0558/doc_00139842 to /storage/kkm_last_doc_name [01:01:23]save OK [01:01:23]Clear old archive folders... [01:01:23]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:01:23]tlvbuf is 00B28720 [01:01:23]SAM_PROTO_ClearQueue [01:01:23]wFMCommunicate request_size=4 [01:01:23]MH_SAM_APDU [01:01:23]CAPDU: 80 09 00 00 [01:01:23]Write to MH i2c: E2 08 00 5F 3A 80 09 00 00 00 00 00 00 0B [01:01:23]Write i2c OK [01:01:23]MH_I2C_Read... [01:01:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:23]Read from MH i2c: E2 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 5F 3A 00 90 00 0D [01:01:23]RAPDU: 90 00 [01:01:23]wFMCommunicate OK [01:01:23]SAM_PROTO_ClearQueue done [01:01:23]KKMCreateOFDPacket [01:01:23]OFDProtocolAddRootSTLVToBuf [01:01:23]FM_MakeSignedData [01:01:23]FM_MakeSignedData [01:01:23]SAM_PROTO_SignData [01:01:23]wFMCommunicate request_size=4 [01:01:23]MH_SAM_APDU [01:01:23]CAPDU: 80 0D 01 02 [01:01:23]Write to MH i2c: E2 08 00 60 3A 80 0D 01 02 00 00 00 00 13 [01:01:23]Write i2c OK [01:01:23]MH_I2C_Read... [01:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:23]Read from MH i2c: E2 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 60 3A 00 90 00 0E [01:01:23]RAPDU: 90 00 [01:01:23]wFMCommunicate OK [01:01:23]wFMCommunicate request_size=255 [01:01:23]MH_SAM_APDU [01:01:23]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 17 00 00 00 F4 03 04 00 65 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [01:01:23]Write to MH i2c: E2 02 01 61 3A 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 17 00 00 00 F4 03 04 00 65 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 C3 [01:01:23]Write i2c OK [01:01:23]MH_I2C_Read... [01:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:23]Read from MH i2c: E2 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 61 3A 00 90 00 0F [01:01:23]RAPDU: 90 00 [01:01:23]wFMCommunicate OK [01:01:23]wFMCommunicate request_size=32 [01:01:23]MH_SAM_APDU [01:01:23]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 42 22 02 00 35 04 06 00 0B 28 92 96 E3 A9 [01:01:23]Write to MH i2c: E2 23 00 62 3A 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 42 22 02 00 35 04 06 00 0B 28 92 96 E3 A9 00 00 C8 [01:01:23]Write i2c OK [01:01:23]MH_I2C_Read... [01:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:23]Read from MH i2c: E2 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 03 00 62 3A 00 90 00 10 [01:01:23]RAPDU: 90 00 [01:01:23]wFMCommunicate OK [01:01:23]wFMCommunicate request_size=4 [01:01:23]MH_SAM_APDU [01:01:23]CAPDU: 80 0D 03 02 [01:01:23]Write to MH i2c: E2 08 00 63 3A 80 0D 03 02 00 00 00 00 18 [01:01:23]Write i2c OK [01:01:23]MH_I2C_Read... [01:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:23]Read from MH i2c: E2 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 0B 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 0B 00 63 3A 00 EB A1 13 83 18 99 51 55 90 00 92 [01:01:23]RAPDU: EB A1 13 83 18 99 51 55 90 00 [01:01:23]wFMCommunicate OK [01:01:23]SAM_PROTO_SignData done [01:01:23]FM_MakeSignedData done [01:01:23]CreateOFDProtocolMessage [01:01:23]wFMCommunicate request_size=4 [01:01:23]MH_SAM_APDU [01:01:23]CAPDU: 80 11 00 00 [01:01:23]Write to MH i2c: E2 08 00 64 3A 80 11 00 00 00 00 00 00 18 [01:01:23]Write i2c OK [01:01:23]MH_I2C_Read... [01:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:23]Read from MH i2c: E2 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 17 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: E2 17 00 64 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 73 [01:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:01:23]wFMCommunicate OK [01:01:23]CreateOFDProtocolMessage done [01:01:23]OFDSenderStorePacket 139842 [01:01:23]StoreOFDPacket docnum=139842 [01:01: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 25 01 00 00 5E A2 1D 01 11 47 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 17 00 00 00 F4 03 04 00 65 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 42 22 02 00 35 04 06 00 0B 28 92 96 E3 A9 EB A1 13 83 18 99 51 55 [01:01:23]CheckFolder [01:01:23]dirname=/storage/ofd_packets [01:01:23]CheckFolder done [01:01:23]ProducePacketName [01:01:23]name=ofd_packets/00139842 [01:01:23]NVStorageSaveData ofd_packets/00139842 [01:01:23]File name is /storage/ofd_packets/00139842 [01:01:23]Write 323 bytes [01:01:23]NVStorageSaveData done [01:01:23]OFDSenderStorePacket done [01:01:23]KKMCreateOFDPacket done [01:01:23]NVStorageSaveData kkm_last_timestamp [01:01:23]File name is /storage/kkm_last_timestamp [01:01:23]Write 4 bytes [01:01:23]NVStorageSaveData done [01:01:23]ExternCall_PrintAddStr [01:01:23]wPrintStart [01:01:23]Write to MH i2c: 01 00 00 65 3A 9F [01:01:23]Write i2c OK [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: 01 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: 01 07 00 [01:01:23]MH_I2C_Read... [01:01:23]Read from MH i2c: 01 07 00 65 3A 00 00 00 00 00 FF 0F B4 [01:01:23]RasterBufferAndPrint [01:01:23]line Счет N : (3)335670 [01:01:23]line ИНН: 02508201610067 [01:01:23]line Контрольно-Кассовый Чек [01:01:23]line ПРОДАЖА [01:01:23]line Товар: 48747059 [01:01:23]line Сигареты Winston Legend Blue [01:01:23]line 1.000 * 144.00 [01:01:23]line = 144.00 [01:01:23]line НДС 12% НСП 1% [01:01:23]line > о реализуемом товаре [01:01:23]line ИТОГО: 144.00 [01:01:23]line НСП 1% : 1.27 [01:01:23]line НДС 12% : 15.29 [01:01:23]line Наличными: 144.00 [01:01:23]line Безнал.: 0.00 [01:01:23]line Место: АЗС № 101 "Партнер Нефть" [01:01:23]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:01:23]line СНО: Общий режим [01:01:23]line Чек 23 01.11.2024 01:01 [01:01:23]line Смена: 558 ФФД: 1.0 [01:01:23]line ЗНМ: 0300000081 [01:01:23]line РНМ: 0000000000091631 [01:01:23]line Версия ККМ: 001 [01:01:23]line ФМ: 0000000000874669 [01:01:23]line ФД: 139842 [01:01:23]line ФПД: 12268885959593 [01:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010125&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139842&fm=12268885959593&tin=02508201610067®Number=0000000000091631&sum=14400 [01:01:24]OFD Sender: Processing packet 139842 [packets to send 34, broken 33] [01:01:24]ProducePacketName [01:01:24]name=ofd_packets/00139842 [01:01:24]OFD Sender: To server: pG, [01:01:24]CommunicateWithHost lk.salyk.kg:30040 [01:01:24]ConnectInit lk.salyk.kg [01:01:24]line 0 [01:01:24]written 0, free lines is 4095 [01:01:24]Connected sock=10 [01:01: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 25 01 00 00 5E A2 1D 01 11 47 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 17 00 00 00 F4 03 04 00 65 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 42 22 02 00 35 04 06 00 0B 28 92 96 E3 A9 EB A1 13 83 18 99 51 55 [01:01: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 D7 3B 47 00 A9 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 42 22 02 00 F4 03 04 00 11 D4 23 67 B6 04 01 00 00 BD 84 C6 93 9E E3 4A 93 [01:01:24]CommunicateWithHost err = 0 [01:01:24]CheckOFDResponse [01:01:24]1017 (14) - 77093643461234 [01:01:24]1041 (16) - 0000000000874669 [01:01:24]1040 (4) - 139842 [01:01:24]1012 (4) - 31.10.2024 19:01 [01:01:24]1206 (1) - 0 [01:01:24]OFD Sender: Remove packet 139842 [01:01:24]ProducePacketName [01:01:24]name=ofd_packets/00139842 [01:01:24]NVStorageDeleteData [01:01:24]Write to MH i2c: 01 00 00 8E 3A C8 [01:01:24]Write i2c OK [01:01:24]MH_I2C_Read... [01:01:24]Read from MH i2c: 01 [01:01:24]MH_I2C_Read... [01:01:24]Read from MH i2c: 01 07 00 [01:01:24]MH_I2C_Read... [01:01:24]Read from MH i2c: 01 07 00 8E 3A 00 00 00 00 00 E8 0C C3 [01:01:24]RasterBufferAndPrint [01:01:24]line [01:01:24]line [01:01:24]line [01:01:24]line [01:01:24]line [01:01:24]written 0, free lines is 3310 [01:01:24]MH_Cut [01:01:24]Write to MH i2c: D1 01 00 95 3A 01 A1 [01:01:24]Write i2c OK [01:01:24]MH_I2C_Read... [01:01:24]Read from MH i2c: D1 [01:01:24]MH_I2C_Read... [01:01:24]Read from MH i2c: D1 01 00 [01:01:24]MH_I2C_Read... [01:01:24]Read from MH i2c: D1 01 00 95 3A 00 A0 [01:01:24]Write to MH i2c: 01 00 00 96 3A D0 [01:01:24]Write i2c OK [01:01:24]MH_I2C_Read... [01:01:24]OFD Sender: No OFD packet to send [01:01:25]*** Cut start [01:01:25]*** Partial cut [01:01:25]*** CUTSNS_PIN = 1 [01:01:25]*** CUTSNS_PIN = 0 [01:01:25]*** Brake cut motor [01:01:25]Read from MH i2c: 01 [01:01:25]MH_I2C_Read... [01:01:25]*** Stop cut motor [01:01:25]*** Cut end [01:01:25]Read from MH i2c: 01 07 00 [01:01:25]MH_I2C_Read... [01:01:25]Read from MH i2c: 01 07 00 96 3A 00 00 00 00 00 FF 0F E5 [01:01:25]process_action close_receipt done [01:01:25]requested_data is exist [01:01:25]produce_requested_data [01:01:25]requested_item fm.sn is exist - process it [01:01:25]wFMCommunicate request_size=4 [01:01:25]MH_SAM_APDU [01:01:25]CAPDU: 80 11 00 00 [01:01:25]Write to MH i2c: E2 08 00 97 3A 80 11 00 00 00 00 00 00 4B [01:01:25]Write i2c OK [01:01:25]MH_I2C_Read... [01:01:25]Read from MH i2c: E2 [01:01:25]MH_I2C_Read... [01:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:25]Read from MH i2c: E2 17 00 [01:01:25]MH_I2C_Read... [01:01:25]Read from MH i2c: E2 17 00 97 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A6 [01:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:01:25]wFMCommunicate OK [01:01:25]requested_item fd.num is exist - process it [01:01:25]SAM_PROTO_GetFieldsCounters [01:01:25]wFMCommunicate request_size=4 [01:01:25]MH_SAM_APDU [01:01:25]CAPDU: 80 13 00 00 [01:01:25]Write to MH i2c: E2 08 00 98 3A 80 13 00 00 00 00 00 00 4E [01:01:25]Write i2c OK [01:01:25]MH_I2C_Read... [01:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:25]Read from MH i2c: E2 [01:01:25]MH_I2C_Read... [01:01:25]Read from MH i2c: E2 62 00 [01:01:25]MH_I2C_Read... [01:01:25]Read from MH i2c: E2 62 00 98 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 42 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [01:01: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 42 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:01:25]wFMCommunicate OK [01:01:25]SAM_PROTO_GetFieldsCounters done [01:01:25]requested_item shift.num is exist - process it [01:01:25]requested_item shift.opened is exist - process it [01:01:25]req_shift_opened [01:01:25]FM_GetShiftState [01:01:25]SAM_PROTO_GetShiftState [01:01:25]wFMCommunicate request_size=4 [01:01:25]MH_SAM_APDU [01:01:25]CAPDU: 80 13 01 00 [01:01:25]Write to MH i2c: E2 08 00 99 3A 80 13 01 00 00 00 00 00 50 [01:01:25]Write i2c OK [01:01:25]MH_I2C_Read... [01:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:26]Read from MH i2c: E2 [01:01:26]MH_I2C_Read... [01:01:26]Read from MH i2c: E2 0E 00 [01:01:26]MH_I2C_Read... [01:01:26]Read from MH i2c: E2 0E 00 99 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 89 [01:01:26]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:01:26]wFMCommunicate OK [01:01:26]SAM_PROTO_GetShiftState done [01:01:26]FM_GetShiftState done [01:01:26]req_shift_opened done [01:01:26]requested_item shift.open_date is exist - process it [01:01:26]req_shift_open_date [01:01:26]req_shift_open_date done [01:01:26]produce_requested_data done [01:01:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139842,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:01:26]process_action_free close_receipt [01:01:26]json_value_free [01:01:26]json_value_free done [01:01:26]process_json_proto returns [01:01:26]Send response to host [01:01:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139842,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:01:26]free response buf [01:01:26]execute_script done [01:01:26]execute_script returns [01:01:26]free content buf [01:01:26]Sock 7.Close socket [01:01:26]Sock 7.Thread stoped [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:35]accept exits with 9 [01:03:35]New connection [01:03:35]New thread 3066510692 created [01:03:35]Thread 3066654052 joined [01:03:35]Waiting for new connection... [01:03:35] Sock 9.Parse request [01:03:35]Sock 9.Check first char [01:03:35]Sock 9.First char is OK [01:03:35]request: POST /json_proto HTTP/1.0 [01:03:35]Method: POST [01:03:35]URL: /json_proto [01:03:35]Method is POST - this is cgi request [01:03:35]url: /json_proto [01:03:35]query_string will be loaded in cgi processing [01:03:35]execute_cgi json_proto POST (null) [01:03:35]execute_cgi path=json_proto method=POST [01:03:35]POST find Content-Length [01:03:35]Host: 172.17.50.196:8080 [01:03:35]Content-Length: 770 [01:03:35]Content-Type: application/json [01:03:35] [01:03:35]POST finish read [01:03:35]Found Content-Length = 770 [01:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095606", "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" ] } } [01:03:35]execute_script... [01:03: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)1095606", "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" ] } } [01:03:35]POST & json_proto [01:03:35]process_json_proto [01:03:35]json parsed OK: [01:03:35]protocol is kg_v1.0 [01:03:35]action value=close_receipt [01:03:35]process_action close_receipt [01:03:35]cmd_close_receipt [01:03:35]MH_GetDate [01:03:35]Write to MH i2c: F0 00 00 9A 3A C3 [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: F0 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: F0 09 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: F0 09 00 9A 3A 00 EA 28 24 67 72 0D 1C 67 6B [01:03:35]GetLastDocTimeStamp 1730422885 [01:03:35]current date 1730423018 [01:03:35]FM_GetShiftState [01:03:35]SAM_PROTO_GetShiftState [01:03:35]wFMCommunicate request_size=4 [01:03:35]MH_SAM_APDU [01:03:35]CAPDU: 80 13 01 00 [01:03:35]Write to MH i2c: E2 08 00 9B 3A 80 13 01 00 00 00 00 00 52 [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:35]Read from MH i2c: E2 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 0E 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 0E 00 9B 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8B [01:03:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:03:35]wFMCommunicate OK [01:03:35]SAM_PROTO_GetShiftState done [01:03:35]FM_GetShiftState done [01:03:35]opened in 1730419081 [01:03:35]opened+sec_in_day 1730505481 [01:03:35]quantity*price = 150032 [01:03:35]sum+1 = 150033 [01:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 24 01.11.2024 01:03 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139843 ФПД: 67351156184313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010338&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139843&fm=67351156184313&tin=02508201610067®Number=0000000000091631&sum=150032 [01:03:36]StoreToDocumentArchive [01:03:36]shift 558 fd 139843 [01:03:36]save to /storage/0558/doc_00139843 [01:03:36]save last doc name /storage/0558/doc_00139843 to /storage/kkm_last_doc_name [01:03:36]save OK [01:03:36]Clear old archive folders... [01:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:36]tlvbuf is 00B78050 [01:03:36]SAM_PROTO_ClearQueue [01:03:36]wFMCommunicate request_size=4 [01:03:36]MH_SAM_APDU [01:03:36]CAPDU: 80 09 00 00 [01:03:36]Write to MH i2c: E2 08 00 A8 3A 80 09 00 00 00 00 00 00 54 [01:03:36]Write i2c OK [01:03:36]MH_I2C_Read... [01:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:36]Read from MH i2c: E2 [01:03:36]MH_I2C_Read... [01:03:36]Read from MH i2c: E2 03 00 [01:03:36]MH_I2C_Read... [01:03:36]Read from MH i2c: E2 03 00 A8 3A 00 90 00 56 [01:03:36]RAPDU: 90 00 [01:03:36]wFMCommunicate OK [01:03:36]SAM_PROTO_ClearQueue done [01:03:36]KKMCreateOFDPacket [01:03:36]OFDProtocolAddRootSTLVToBuf [01:03:36]FM_MakeSignedData [01:03:36]FM_MakeSignedData [01:03:36]SAM_PROTO_SignData [01:03:36]wFMCommunicate request_size=4 [01:03:36]MH_SAM_APDU [01:03:36]CAPDU: 80 0D 01 02 [01:03:36]Write to MH i2c: E2 08 00 A9 3A 80 0D 01 02 00 00 00 00 5C [01:03:36]Write i2c OK [01:03:36]MH_I2C_Read... [01:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:36]Read from MH i2c: E2 [01:03:36]MH_I2C_Read... [01:03:36]Read from MH i2c: E2 03 00 [01:03:36]MH_I2C_Read... [01:03:36]Read from MH i2c: E2 03 00 A9 3A 00 90 00 57 [01:03:36]RAPDU: 90 00 [01:03:36]wFMCommunicate OK [01:03:36]wFMCommunicate request_size=255 [01:03:36]MH_SAM_APDU [01:03: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 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 18 00 00 00 F4 03 04 00 EA 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 22 02 00 35 04 06 00 3D [01:03:36]Write to MH i2c: E2 02 01 AA 3A 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 18 00 00 00 F4 03 04 00 EA 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 22 02 00 35 04 06 00 3D 00 00 1A [01:03:36]Write i2c OK [01:03:36]MH_I2C_Read... [01:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:37]Read from MH i2c: E2 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 03 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 03 00 AA 3A 00 90 00 58 [01:03:37]RAPDU: 90 00 [01:03:37]wFMCommunicate OK [01:03:37]wFMCommunicate request_size=10 [01:03:37]MH_SAM_APDU [01:03:37]CAPDU: 80 0D 02 02 05 41 69 BD 54 F9 [01:03:37]Write to MH i2c: E2 0D 00 AB 3A 80 0D 02 02 05 00 41 69 BD 54 F9 00 00 1D [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:37]Read from MH i2c: E2 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 03 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 03 00 AB 3A 00 90 00 59 [01:03:37]RAPDU: 90 00 [01:03:37]wFMCommunicate OK [01:03:37]wFMCommunicate request_size=4 [01:03:37]MH_SAM_APDU [01:03:37]CAPDU: 80 0D 03 02 [01:03:37]Write to MH i2c: E2 08 00 AC 3A 80 0D 03 02 00 00 00 00 61 [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:37]Read from MH i2c: E2 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 0B 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 0B 00 AC 3A 00 18 8E CB 44 AE DF D6 63 90 00 DD [01:03:37]RAPDU: 18 8E CB 44 AE DF D6 63 90 00 [01:03:37]wFMCommunicate OK [01:03:37]SAM_PROTO_SignData done [01:03:37]FM_MakeSignedData done [01:03:37]CreateOFDProtocolMessage [01:03:37]wFMCommunicate request_size=4 [01:03:37]MH_SAM_APDU [01:03:37]CAPDU: 80 11 00 00 [01:03:37]Write to MH i2c: E2 08 00 AD 3A 80 11 00 00 00 00 00 00 61 [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:37]Read from MH i2c: E2 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 17 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 17 00 AD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BC [01:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:03:37]wFMCommunicate OK [01:03:37]CreateOFDProtocolMessage done [01:03:37]OFDSenderStorePacket 139843 [01:03:37]StoreOFDPacket docnum=139843 [01:03: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 A7 28 07 01 11 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 EA 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 22 02 00 35 04 06 00 3D 41 69 BD 54 F9 18 8E CB 44 AE DF D6 63 [01:03:37]CheckFolder [01:03:37]dirname=/storage/ofd_packets [01:03:37]CheckFolder done [01:03:37]ProducePacketName [01:03:37]name=ofd_packets/00139843 [01:03:37]NVStorageSaveData ofd_packets/00139843 [01:03:37]File name is /storage/ofd_packets/00139843 [01:03:37]Write 301 bytes [01:03:37]NVStorageSaveData done [01:03:37]OFDSenderStorePacket done [01:03:37]KKMCreateOFDPacket done [01:03:37]NVStorageSaveData kkm_last_timestamp [01:03:37]File name is /storage/kkm_last_timestamp [01:03:37]Write 4 bytes [01:03:37]NVStorageSaveData done [01:03:37]ExternCall_PrintAddStr [01:03:37]wPrintStart [01:03:37]Write to MH i2c: 01 00 00 AE 3A E8 [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: 01 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: 01 07 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: 01 07 00 AE 3A 00 00 00 00 00 FF 0F FD [01:03:37]RasterBufferAndPrint [01:03:37]line Счет N : (1)1095606 [01:03:37]line ИНН: 02508201610067 [01:03:37]line Контрольно-Кассовый Чек [01:03:37]line ПРОДАЖА [01:03:37]line ТРК (МРК, ГНК) : 44 [01:03:37]line Товар: 2710124500 [01:03:37]line Аи-95-К-3 [01:03:37]line 20.220 * 74.20 [01:03:37]line = 1500.32 [01:03:37]line НДС 12% НСП 1% [01:03:37]line > о реализуемом товаре [01:03:37]line ИТОГО: 1500.32 [01:03:37]line НСП 1% : 13.28 [01:03:37]line НДС 12% : 159.33 [01:03:37]line Наличными: 0.00 [01:03:37]line Безнал.: 1500.32 [01:03:37]line Место: АЗС № 101 "Партнер Нефть" [01:03:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:03:37]line СНО: Общий режим [01:03:37]line Чек 24 01.11.2024 01:03 [01:03:37]line Смена: 558 ФФД: 1.0 [01:03:37]line ЗНМ: 0300000081 [01:03:37]line РНМ: 0000000000091631 [01:03:37]line Версия ККМ: 001 [01:03:37]line Платежная система: Mbank [01:03:37]line ФМ: 0000000000874669 [01:03:37]line ФД: 139843 [01:03:37]line ФПД: 67351156184313 [01:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010338&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139843&fm=67351156184313&tin=02508201610067®Number=0000000000091631&sum=150032 [01:03:37]OFD Sender: Processing packet 139843 [packets to send 34, broken 33] [01:03:37]ProducePacketName [01:03:37]name=ofd_packets/00139843 [01:03:37]OFD Sender: To server: pG, [01:03:37]CommunicateWithHost lk.salyk.kg:30040 [01:03:37]ConnectInit lk.salyk.kg [01:03:37]written 0, free lines is 4095 [01:03:37]Connected sock=10 [01:03: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 A7 28 07 01 11 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 EA 28 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 43 22 02 00 35 04 06 00 3D 41 69 BD 54 F9 18 8E CB 44 AE DF D6 63 [01:03: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 F0 92 47 00 44 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 43 22 02 00 F4 03 04 00 97 D4 23 67 B6 04 01 00 00 66 FB B5 C9 11 5C A7 74 [01:03:37]CommunicateWithHost err = 0 [01:03:37]CheckOFDResponse [01:03:37]1017 (14) - 77093643461234 [01:03:37]1041 (16) - 0000000000874669 [01:03:37]1040 (4) - 139843 [01:03:37]1012 (4) - 31.10.2024 19:03 [01:03:37]1206 (1) - 0 [01:03:37]OFD Sender: Remove packet 139843 [01:03:37]ProducePacketName [01:03:37]name=ofd_packets/00139843 [01:03:37]NVStorageDeleteData [01:03:37]Write to MH i2c: 01 00 00 D7 3A 11 [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: 01 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: 01 07 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: 01 07 00 D7 3A 00 00 00 00 00 12 0D 37 [01:03:37]RasterBufferAndPrint [01:03:37]line [01:03:37]line [01:03:37]line [01:03:37]line [01:03:37]line [01:03:38]written 0, free lines is 3353 [01:03:38]MH_Cut [01:03:38]Write to MH i2c: D1 01 00 DE 3A 01 EA [01:03:38]Write i2c OK [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: D1 [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: D1 01 00 [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: D1 01 00 DE 3A 00 E9 [01:03:38]Write to MH i2c: 01 00 00 DF 3A 19 [01:03:38]Write i2c OK [01:03:38]MH_I2C_Read... [01:03:38]OFD Sender: No OFD packet to send [01:03:38]*** Cut start [01:03:38]*** Partial cut [01:03:38]*** CUTSNS_PIN = 1 [01:03:38]*** CUTSNS_PIN = 0 [01:03:38]*** Brake cut motor [01:03:39]Read from MH i2c: 01 [01:03:39]MH_I2C_Read... [01:03:39]*** Stop cut motor [01:03:39]*** Cut end [01:03:39]Read from MH i2c: 01 07 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: 01 07 00 DF 3A 00 00 00 00 00 FF 0F 2E [01:03:39]process_action close_receipt done [01:03:39]requested_data is exist [01:03:39]produce_requested_data [01:03:39]requested_item fm.sn is exist - process it [01:03:39]wFMCommunicate request_size=4 [01:03:39]MH_SAM_APDU [01:03:39]CAPDU: 80 11 00 00 [01:03:39]Write to MH i2c: E2 08 00 E0 3A 80 11 00 00 00 00 00 00 94 [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:39]Read from MH i2c: E2 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 17 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 17 00 E0 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [01:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:03:39]wFMCommunicate OK [01:03:39]requested_item fd.num is exist - process it [01:03:39]SAM_PROTO_GetFieldsCounters [01:03:39]wFMCommunicate request_size=4 [01:03:39]MH_SAM_APDU [01:03:39]CAPDU: 80 13 00 00 [01:03:39]Write to MH i2c: E2 08 00 E1 3A 80 13 00 00 00 00 00 00 97 [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:39]Read from MH i2c: E2 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 62 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 62 00 E1 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 43 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [01:03: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 43 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:39]wFMCommunicate OK [01:03:39]SAM_PROTO_GetFieldsCounters done [01:03:39]requested_item shift.num is exist - process it [01:03:39]requested_item shift.opened is exist - process it [01:03:39]req_shift_opened [01:03:39]FM_GetShiftState [01:03:39]SAM_PROTO_GetShiftState [01:03:39]wFMCommunicate request_size=4 [01:03:39]MH_SAM_APDU [01:03:39]CAPDU: 80 13 01 00 [01:03:39]Write to MH i2c: E2 08 00 E2 3A 80 13 01 00 00 00 00 00 99 [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:39]Read from MH i2c: E2 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 0E 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 0E 00 E2 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D2 [01:03:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:03:39]wFMCommunicate OK [01:03:39]SAM_PROTO_GetShiftState done [01:03:39]FM_GetShiftState done [01:03:39]req_shift_opened done [01:03:39]requested_item shift.open_date is exist - process it [01:03:39]req_shift_open_date [01:03:39]req_shift_open_date done [01:03:39]produce_requested_data done [01:03:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139843,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:03:39]process_action_free close_receipt [01:03:39]json_value_free [01:03:39]json_value_free done [01:03:39]process_json_proto returns [01:03:39]Send response to host [01:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139843,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:03:39]free response buf [01:03:39]execute_script done [01:03:39]execute_script returns [01:03:39]free content buf [01:03:39]Sock 9.Close socket [01:03:39]Sock 9.Thread stoped [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:04:59]accept exits with 7 [01:04:59]New connection [01:04:59]New thread 3066654052 created [01:04:59]Thread 3066510692 joined [01:04:59]Waiting for new connection... [01:04:59] Sock 7.Parse request [01:04:59]Sock 7.Check first char [01:04:59]Sock 7.First char is OK [01:04:59]request: POST /json_proto HTTP/1.0 [01:04:59]Method: POST [01:04:59]URL: /json_proto [01:04:59]Method is POST - this is cgi request [01:04:59]url: /json_proto [01:04:59]query_string will be loaded in cgi processing [01:04:59]execute_cgi json_proto POST (null) [01:04:59]execute_cgi path=json_proto method=POST [01:04:59]POST find Content-Length [01:04:59]Host: 172.17.50.196:8080 [01:04:59]Content-Length: 770 [01:04:59]Content-Type: application/json [01:04:59] [01:04:59]POST finish read [01:04:59]Found Content-Length = 770 [01:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095609", "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" : 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" ] } } [01:04:59]execute_script... [01:04: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)1095609", "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" : 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" ] } } [01:04:59]POST & json_proto [01:04:59]process_json_proto [01:04:59]json parsed OK: [01:04:59]protocol is kg_v1.0 [01:04:59]action value=close_receipt [01:04:59]process_action close_receipt [01:04:59]cmd_close_receipt [01:04:59]MH_GetDate [01:04:59]Write to MH i2c: F0 00 00 E3 3A 0C [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: F0 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: F0 09 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: F0 09 00 E3 3A 00 3E 29 24 67 72 0D 1C 67 09 [01:04:59]GetLastDocTimeStamp 1730423018 [01:04:59]current date 1730423102 [01:04:59]FM_GetShiftState [01:04:59]SAM_PROTO_GetShiftState [01:04:59]wFMCommunicate request_size=4 [01:04:59]MH_SAM_APDU [01:04:59]CAPDU: 80 13 01 00 [01:04:59]Write to MH i2c: E2 08 00 E4 3A 80 13 01 00 00 00 00 00 9B [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:59]Read from MH i2c: E2 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 0E 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 0E 00 E4 3A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D4 [01:04:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:04:59]wFMCommunicate OK [01:04:59]SAM_PROTO_GetShiftState done [01:04:59]FM_GetShiftState done [01:04:59]opened in 1730419081 [01:04:59]opened+sec_in_day 1730505481 [01:04:59]quantity*price = 100015 [01:04:59]sum+1 = 100017 [01:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 25 01.11.2024 01:05 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139844 ФПД: 18069467831697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010502&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139844&fm=18069467831697&tin=02508201610067®Number=0000000000091631&sum=100016 [01:05:00]StoreToDocumentArchive [01:05:00]shift 558 fd 139844 [01:05:00]save to /storage/0558/doc_00139844 [01:05:00]save last doc name /storage/0558/doc_00139844 to /storage/kkm_last_doc_name [01:05:00]save OK [01:05:00]Clear old archive folders... [01:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:05:00]tlvbuf is 00A3AB00 [01:05:00]SAM_PROTO_ClearQueue [01:05:00]wFMCommunicate request_size=4 [01:05:00]MH_SAM_APDU [01:05:00]CAPDU: 80 09 00 00 [01:05:00]Write to MH i2c: E2 08 00 F1 3A 80 09 00 00 00 00 00 00 9D [01:05:00]Write i2c OK [01:05:00]MH_I2C_Read... [01:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:00]Read from MH i2c: E2 [01:05:00]MH_I2C_Read... [01:05:00]Read from MH i2c: E2 03 00 [01:05:00]MH_I2C_Read... [01:05:00]Read from MH i2c: E2 03 00 F1 3A 00 90 00 9F [01:05:00]RAPDU: 90 00 [01:05:00]wFMCommunicate OK [01:05:00]SAM_PROTO_ClearQueue done [01:05:00]KKMCreateOFDPacket [01:05:00]OFDProtocolAddRootSTLVToBuf [01:05:00]FM_MakeSignedData [01:05:00]FM_MakeSignedData [01:05:00]SAM_PROTO_SignData [01:05:00]wFMCommunicate request_size=4 [01:05:00]MH_SAM_APDU [01:05:00]CAPDU: 80 0D 01 02 [01:05:00]Write to MH i2c: E2 08 00 F2 3A 80 0D 01 02 00 00 00 00 A5 [01:05:00]Write i2c OK [01:05:00]MH_I2C_Read... [01:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:00]Read from MH i2c: E2 [01:05:00]MH_I2C_Read... [01:05:00]Read from MH i2c: E2 03 00 [01:05:00]MH_I2C_Read... [01:05:00]Read from MH i2c: E2 03 00 F2 3A 00 90 00 A0 [01:05:00]RAPDU: 90 00 [01:05:00]wFMCommunicate OK [01:05:00]wFMCommunicate request_size=255 [01:05:00]MH_SAM_APDU [01:05:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 3E 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 22 02 00 35 04 06 00 10 [01:05:01]Write to MH i2c: E2 02 01 F3 3A 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 19 00 00 00 F4 03 04 00 3E 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 22 02 00 35 04 06 00 10 00 00 01 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 03 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 03 00 F3 3A 00 90 00 A1 [01:05:01]RAPDU: 90 00 [01:05:01]wFMCommunicate OK [01:05:01]wFMCommunicate request_size=10 [01:05:01]MH_SAM_APDU [01:05:01]CAPDU: 80 0D 02 02 05 6F 20 36 1D 91 [01:05:01]Write to MH i2c: E2 0D 00 F4 3A 80 0D 02 02 05 00 6F 20 36 1D 91 00 00 25 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 03 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 03 00 F4 3A 00 90 00 A2 [01:05:01]RAPDU: 90 00 [01:05:01]wFMCommunicate OK [01:05:01]wFMCommunicate request_size=4 [01:05:01]MH_SAM_APDU [01:05:01]CAPDU: 80 0D 03 02 [01:05:01]Write to MH i2c: E2 08 00 F5 3A 80 0D 03 02 00 00 00 00 AA [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 0B 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 0B 00 F5 3A 00 0D 61 75 CB 7A 9B 32 9D 90 00 3D [01:05:01]RAPDU: 0D 61 75 CB 7A 9B 32 9D 90 00 [01:05:01]wFMCommunicate OK [01:05:01]SAM_PROTO_SignData done [01:05:01]FM_MakeSignedData done [01:05:01]CreateOFDProtocolMessage [01:05:01]wFMCommunicate request_size=4 [01:05:01]MH_SAM_APDU [01:05:01]CAPDU: 80 11 00 00 [01:05:01]Write to MH i2c: E2 08 00 F6 3A 80 11 00 00 00 00 00 00 AA [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 17 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 17 00 F6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [01:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:05:01]wFMCommunicate OK [01:05:01]CreateOFDProtocolMessage done [01:05:01]OFDSenderStorePacket 139844 [01:05:01]StoreOFDPacket docnum=139844 [01:05: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 B7 5D 07 01 97 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 00 00 00 F4 03 04 00 3E 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 22 02 00 35 04 06 00 10 6F 20 36 1D 91 0D 61 75 CB 7A 9B 32 9D [01:05:01]CheckFolder [01:05:01]dirname=/storage/ofd_packets [01:05:01]CheckFolder done [01:05:01]ProducePacketName [01:05:01]name=ofd_packets/00139844 [01:05:01]NVStorageSaveData ofd_packets/00139844 [01:05:01]File name is /storage/ofd_packets/00139844 [01:05:01]Write 301 bytes [01:05:01]NVStorageSaveData done [01:05:01]OFDSenderStorePacket done [01:05:01]KKMCreateOFDPacket done [01:05:01]NVStorageSaveData kkm_last_timestamp [01:05:01]File name is /storage/kkm_last_timestamp [01:05:01]Write 4 bytes [01:05:01]NVStorageSaveData done [01:05:01]ExternCall_PrintAddStr [01:05:01]wPrintStart [01:05:01]Write to MH i2c: 01 00 00 F7 3A 31 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: 01 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: 01 07 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: 01 07 00 F7 3A 00 00 00 00 00 FF 0F 46 [01:05:01]RasterBufferAndPrint [01:05:01]line Счет N : (1)1095609 [01:05:01]line ИНН: 02508201610067 [01:05:01]line Контрольно-Кассовый Чек [01:05:01]line ПРОДАЖА [01:05:01]line ТРК (МРК, ГНК) : 53 [01:05:01]line Товар: 2710124130 [01:05:01]line Аи-92-К-2 [01:05:01]line 14.950 * 66.90 [01:05:01]line = 1000.16 [01:05:01]line НДС 12% НСП 1% [01:05:01]line > о реализуемом товаре [01:05:01]line ИТОГО: 1000.16 [01:05:01]line НСП 1% : 8.85 [01:05:01]line НДС 12% : 106.21 [01:05:01]line Наличными: 0.00 [01:05:01]line Безнал.: 1000.16 [01:05:01]line Место: АЗС № 101 "Партнер Нефть" [01:05:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:05:01]line СНО: Общий режим [01:05:01]line Чек 25 01.11.2024 01:05 [01:05:01]line Смена: 558 ФФД: 1.0 [01:05:01]line ЗНМ: 0300000081 [01:05:01]line РНМ: 0000000000091631 [01:05:01]line Версия ККМ: 001 [01:05:01]line Платежная система: Mbank [01:05:01]line ФМ: 0000000000874669 [01:05:01]line ФД: 139844 [01:05:01]line ФПД: 18069467831697 [01:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010502&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139844&fm=18069467831697&tin=02508201610067®Number=0000000000091631&sum=100016 [01:05:01]written 0, free lines is 4095 [01:05:01]OFD Sender: Processing packet 139844 [packets to send 34, broken 33] [01:05:01]ProducePacketName [01:05:01]name=ofd_packets/00139844 [01:05:01]OFD Sender: To server: pG, [01:05:01]CommunicateWithHost lk.salyk.kg:30040 [01:05:01]ConnectInit lk.salyk.kg [01:05:01]Connected sock=10 [01:05: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 B7 5D 07 01 97 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 00 00 00 F4 03 04 00 3E 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 22 02 00 35 04 06 00 10 6F 20 36 1D 91 0D 61 75 CB 7A 9B 32 9D [01:05:01]Write to MH i2c: 01 00 00 20 3B 5B [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: 01 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: 01 07 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: 01 07 00 20 3B 00 00 00 00 00 0E 0D 7D [01:05:01]RasterBufferAndPrint [01:05:01]line [01:05:01]line [01:05:01]line [01:05:01]line [01:05:01]line [01:05:01]written 0, free lines is 3349 [01:05:01]MH_Cut [01:05:01]Write to MH i2c: D1 01 00 27 3B 01 34 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: D1 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: D1 01 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: D1 01 00 27 3B 00 33 [01:05:01]Write to MH i2c: 01 00 00 28 3B 63 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05: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 08 14 47 00 B7 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 44 22 02 00 F4 03 04 00 EB D4 23 67 B6 04 01 00 00 D8 5A 65 5D 39 19 56 6E [01:05:02]CommunicateWithHost err = 0 [01:05:02]CheckOFDResponse [01:05:02]1017 (14) - 77093643461234 [01:05:02]1041 (16) - 0000000000874669 [01:05:02]1040 (4) - 139844 [01:05:02]1012 (4) - 31.10.2024 19:05 [01:05:02]1206 (1) - 0 [01:05:02]OFD Sender: Remove packet 139844 [01:05:02]ProducePacketName [01:05:02]name=ofd_packets/00139844 [01:05:02]NVStorageDeleteData [01:05:02]*** Cut start [01:05:02]*** Partial cut [01:05:02]*** CUTSNS_PIN = 1 [01:05:02]OFD Sender: No OFD packet to send [01:05:02]*** CUTSNS_PIN = 0 [01:05:02]*** Brake cut motor [01:05:03]Read from MH i2c: 01 [01:05:03]MH_I2C_Read... [01:05:03]*** Stop cut motor [01:05:03]*** Cut end [01:05:03]Read from MH i2c: 01 07 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: 01 07 00 28 3B 00 00 00 00 00 FF 0F 78 [01:05:03]process_action close_receipt done [01:05:03]requested_data is exist [01:05:03]produce_requested_data [01:05:03]requested_item fm.sn is exist - process it [01:05:03]wFMCommunicate request_size=4 [01:05:03]MH_SAM_APDU [01:05:03]CAPDU: 80 11 00 00 [01:05:03]Write to MH i2c: E2 08 00 29 3B 80 11 00 00 00 00 00 00 DE [01:05:03]Write i2c OK [01:05:03]MH_I2C_Read... [01:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:03]Read from MH i2c: E2 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 17 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 17 00 29 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 39 [01:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:05:03]wFMCommunicate OK [01:05:03]requested_item fd.num is exist - process it [01:05:03]SAM_PROTO_GetFieldsCounters [01:05:03]wFMCommunicate request_size=4 [01:05:03]MH_SAM_APDU [01:05:03]CAPDU: 80 13 00 00 [01:05:03]Write to MH i2c: E2 08 00 2A 3B 80 13 00 00 00 00 00 00 E1 [01:05:03]Write i2c OK [01:05:03]MH_I2C_Read... [01:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:03]Read from MH i2c: E2 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 62 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 62 00 2A 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 44 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [01:05: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 44 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:05:03]wFMCommunicate OK [01:05:03]SAM_PROTO_GetFieldsCounters done [01:05:03]requested_item shift.num is exist - process it [01:05:03]requested_item shift.opened is exist - process it [01:05:03]req_shift_opened [01:05:03]FM_GetShiftState [01:05:03]SAM_PROTO_GetShiftState [01:05:03]wFMCommunicate request_size=4 [01:05:03]MH_SAM_APDU [01:05:03]CAPDU: 80 13 01 00 [01:05:03]Write to MH i2c: E2 08 00 2B 3B 80 13 01 00 00 00 00 00 E3 [01:05:03]Write i2c OK [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:03]E2 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 0E 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 0E 00 2B 3B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1C [01:05:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:05:03]wFMCommunicate OK [01:05:03]SAM_PROTO_GetShiftState done [01:05:03]FM_GetShiftState done [01:05:03]req_shift_opened done [01:05:03]requested_item shift.open_date is exist - process it [01:05:03]req_shift_open_date [01:05:03]req_shift_open_date done [01:05:03]produce_requested_data done [01:05:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139844,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:05:03]process_action_free close_receipt [01:05:03]json_value_free [01:05:03]json_value_free done [01:05:03]process_json_proto returns [01:05:03]Send response to host [01:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139844,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:05:03]free response buf [01:05:03]execute_script done [01:05:03]execute_script returns [01:05:03]free content buf [01:05:03]Sock 7.Close socket [01:05:03]Sock 7.Thread stoped [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:08]accept exits with 9 [01:06:08]New connection [01:06:08]New thread 3066510692 created [01:06:08]Thread 3066654052 joined [01:06:08]Waiting for new connection... [01:06:08] Sock 9.Parse request [01:06:08]Sock 9.Check first char [01:06:08]Sock 9.First char is OK [01:06:08]request: POST /json_proto HTTP/1.0 [01:06:08]Method: POST [01:06:08]URL: /json_proto [01:06:08]Method is POST - this is cgi request [01:06:08]url: /json_proto [01:06:08]query_string will be loaded in cgi processing [01:06:08]execute_cgi json_proto POST (null) [01:06:08]execute_cgi path=json_proto method=POST [01:06:08]POST find Content-Length [01:06:08]Host: 172.17.50.196:8080 [01:06:08]Content-Length: 1051 [01:06:08]Content-Type: application/json [01:06:08] [01:06:08]POST finish read [01:06:08]Found Content-Length = 1051 [01:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335671", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 179.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:08]execute_script... [01:06: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)335671", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 179.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:08]POST & json_proto [01:06:08]process_json_proto [01:06:08]json parsed OK: [01:06:08]protocol is kg_v1.0 [01:06:08]action value=close_receipt [01:06:08]process_action close_receipt [01:06:08]cmd_close_receipt [01:06:08]MH_GetDate [01:06:08]Write to MH i2c: F0 00 00 2C 3B 56 [01:06:08]Write i2c OK [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: F0 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: F0 09 00 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: F0 09 00 2C 3B 00 83 29 24 67 72 0D 1C 67 98 [01:06:08]GetLastDocTimeStamp 1730423102 [01:06:08]current date 1730423171 [01:06:08]FM_GetShiftState [01:06:08]SAM_PROTO_GetShiftState [01:06:08]wFMCommunicate request_size=4 [01:06:08]MH_SAM_APDU [01:06:08]CAPDU: 80 13 01 00 [01:06:08]Write to MH i2c: E2 08 00 2D 3B 80 13 01 00 00 00 00 00 E5 [01:06:08]Write i2c OK [01:06:08]MH_I2C_Read... [01:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:08]Read from MH i2c: E2 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 0E 00 [01:06:08]MH_I2C_Read... [01:06:08]Read from MH i2c: E2 0E 00 2D 3B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1E [01:06:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:06:08]wFMCommunicate OK [01:06:08]SAM_PROTO_GetShiftState done [01:06:08]FM_GetShiftState done [01:06:08]opened in 1730419081 [01:06:08]opened+sec_in_day 1730505481 [01:06:08]quantity*price = 9000 [01:06:08]sum+1 = 9001 [01:06:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 179.00 НСП 1% : 1.59 НДС 12% : 19.01 Наличными: 179.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 26 01.11.2024 01:06 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139845 ФПД: 159236383451079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139845&fm=159236383451079&tin=02508201610067®Number=0000000000091631&sum=17900 0 [01:06:09]StoreToDocumentArchive [01:06:09]shift 558 fd 139845 [01:06:09]save to /storage/0558/doc_00139845 [01:06:09]save last doc name /storage/0558/doc_00139845 to /storage/kkm_last_doc_name [01:06:09]save OK [01:06:09]Clear old archive folders... [01:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=437 [01:06:09]tlvbuf is 00B88B70 [01:06:09]SAM_PROTO_ClearQueue [01:06:09]wFMCommunicate request_size=4 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 09 00 00 [01:06:09]Write to MH i2c: E2 08 00 3A 3B 80 09 00 00 00 00 00 00 E7 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 3A 3B 00 90 00 E9 [01:06:09]RAPDU: 90 00 [01:06:09]wFMCommunicate OK [01:06:09]SAM_PROTO_ClearQueue done [01:06:09]KKMCreateOFDPacket [01:06:09]OFDProtocolAddRootSTLVToBuf [01:06:09]FM_MakeSignedData [01:06:09]FM_MakeSignedData [01:06:09]SAM_PROTO_SignData [01:06:09]wFMCommunicate request_size=4 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 0D 01 02 [01:06:09]Write to MH i2c: E2 08 00 3B 3B 80 0D 01 02 00 00 00 00 EF [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 3B 3B 00 90 00 EA [01:06:09]RAPDU: 90 00 [01:06:09]wFMCommunicate OK [01:06:09]wFMCommunicate request_size=255 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 0D 02 02 FA 03 00 B5 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [01:06:09]Write to MH i2c: E2 02 01 3C 3B 80 0D 02 02 FA 00 03 00 B5 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 8E [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 3C 3B 00 90 00 EB [01:06:09]RAPDU: 90 00 [01:06:09]wFMCommunicate OK [01:06:09]wFMCommunicate request_size=196 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 0D 02 02 BF 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 EC 45 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 6D 07 00 00 00 00 07 04 06 00 EC 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 22 02 00 35 04 06 00 90 D3 1C 12 27 C7 [01:06:09]Write to MH i2c: E2 C7 00 3D 3B 80 0D 02 02 BF 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 EC 45 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 6D 07 00 00 00 00 07 04 06 00 EC 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 22 02 00 35 04 06 00 90 D3 1C 12 27 C7 00 00 4A [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 03 00 3D 3B 00 90 00 EC [01:06:09]RAPDU: 90 00 [01:06:09]wFMCommunicate OK [01:06:09]wFMCommunicate request_size=4 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 0D 03 02 [01:06:09]Write to MH i2c: E2 08 00 3E 3B 80 0D 03 02 00 00 00 00 F4 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:09]Read from MH i2c: E2 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 0B 00 [01:06:09]MH_I2C_Read... [01:06:09]Read from MH i2c: E2 0B 00 3E 3B 00 2D 14 E8 1D 09 24 7A EB 90 00 CD [01:06:09]RAPDU: 2D 14 E8 1D 09 24 7A EB 90 00 [01:06:09]wFMCommunicate OK [01:06:09]SAM_PROTO_SignData done [01:06:09]FM_MakeSignedData done [01:06:09]CreateOFDProtocolMessage [01:06:09]wFMCommunicate request_size=4 [01:06:09]MH_SAM_APDU [01:06:09]CAPDU: 80 11 00 00 [01:06:09]Write to MH i2c: E2 08 00 3F 3B 80 11 00 00 00 00 00 00 F4 [01:06:09]Write i2c OK [01:06:09]MH_I2C_Read... [01:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:10]Read from MH i2c: E2 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: E2 17 00 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: E2 17 00 3F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4F [01:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:06:10]wFMCommunicate OK [01:06:10]CreateOFDProtocolMessage done [01:06:10]OFDSenderStorePacket 139845 [01:06:10]StoreOFDPacket docnum=139845 [01:06: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 C9 01 00 00 93 C1 C1 01 BD 71 5A 03 01 00 03 00 B5 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 EC 45 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 6D 07 00 00 00 00 07 04 06 00 EC 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 22 02 00 35 04 06 00 90 D3 1C 12 27 C7 2D 14 E8 1D 09 24 7A EB [01:06:10]CheckFolder [01:06:10]dirname=/storage/ofd_packets [01:06:10]CheckFolder done [01:06:10]ProducePacketName [01:06:10]name=ofd_packets/00139845 [01:06:10]NVStorageSaveData ofd_packets/00139845 [01:06:10]File name is /storage/ofd_packets/00139845 [01:06:10]Write 487 bytes [01:06:10]NVStorageSaveData done [01:06:10]OFDSenderStorePacket done [01:06:10]KKMCreateOFDPacket done [01:06:10]NVStorageSaveData kkm_last_timestamp [01:06:10]File name is /storage/kkm_last_timestamp [01:06:10]Write 4 bytes [01:06:10]NVStorageSaveData done [01:06:10]ExternCall_PrintAddStr [01:06:10]wPrintStart [01:06:10]Write to MH i2c: 01 00 00 40 3B 7B [01:06:10]OFD Sender: Processing packet 139845 [packets to send 34, broken 33] [01:06:10]ProducePacketName [01:06:10]name=ofd_packets/00139845 [01:06:10]OFD Sender: To server: pG, [01:06:10]CommunicateWithHost lk.salyk.kg:30040 [01:06:10]ConnectInit lk.salyk.kg [01:06:10]Write i2c OK [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: 01 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: 01 07 00 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: 01 07 00 40 3B 00 00 00 00 00 FF 0F 90 [01:06:10]RasterBufferAndPrint [01:06:10]line Счет N : (3)335671 [01:06:10]line ИНН: 02508201610067 [01:06:10]line Контрольно-Кассовый Чек [01:06:10]line ПРОДАЖА [01:06:10]line Товар: 4870235681062 [01:06:10]line Grizzly волнистые Колбаски с горчицей 55 [01:06:10]line 1.000 * 90.00 [01:06:10]line = 90.00 [01:06:10]line НДС 12% НСП 1% [01:06:10]line > о реализуемом товаре [01:06:10]line Товар: 4660085515163 [01:06:10]line Шок Батончик Сникерс супер 95/80г [01:06:10]line 1.000 * 89.00 [01:06:10]line = 89.00 [01:06:10]line НДС 12% НСП 1% [01:06:10]line > о реализуемом товаре [01:06:10]line ИТОГО: 179.00 [01:06:10]line НСП 1% : 1.59 [01:06:10]line НДС 12% : 19.01 [01:06:10]line Наличными: 179.00 [01:06:10]line Безнал.: 0.00 [01:06:10]line Место: АЗС № 101 "Партнер Нефть" [01:06:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:06:10]line СНО: Общий режим [01:06:10]line Чек 26 01.11.2024 01:06 [01:06:10]line Смена: 558 ФФД: 1.0 [01:06:10]line ЗНМ: 0300000081 [01:06:10]line РНМ: 0000000000091631 [01:06:10]line Версия ККМ: 001 [01:06:10]line ФМ: 0000000000874669 [01:06:10]line ФД: 139845 [01:06:10]line ФПД: 159236383451079 [01:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139845&fm=159236383451079&tin=02508201610067®Number=0000000000091631&sum=17900 [01:06:10]line 0 [01:06:10]written 0, free lines is 4095 [01:06:10]Connected sock=10 [01:06: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 C9 01 00 00 93 C1 C1 01 BD 71 5A 03 01 00 03 00 B5 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 EC 45 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 6D 07 00 00 00 00 07 04 06 00 EC 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 22 02 00 35 04 06 00 90 D3 1C 12 27 C7 2D 14 E8 1D 09 24 7A EB [01:06: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 92 B2 47 00 55 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 45 22 02 00 F4 03 04 00 2F D5 23 67 B6 04 01 00 00 BF 79 E9 22 CA 21 0A 98 [01:06:10]CommunicateWithHost err = 0 [01:06:10]CheckOFDResponse [01:06:10]1017 (14) - 77093643461234 [01:06:10]1041 (16) - 0000000000874669 [01:06:10]1040 (4) - 139845 [01:06:10]1012 (4) - 31.10.2024 19:06 [01:06:10]1206 (1) - 0 [01:06:10]OFD Sender: Remove packet 139845 [01:06:10]ProducePacketName [01:06:10]name=ofd_packets/00139845 [01:06:10]NVStorageDeleteData [01:06:10]Write to MH i2c: 01 00 00 70 3B AB [01:06:10]Write i2c OK [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: 01 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: 01 07 00 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: 01 07 00 70 3B 00 00 00 00 00 98 0C 56 [01:06:10]RasterBufferAndPrint [01:06:10]line [01:06:10]line [01:06:10]line [01:06:10]line [01:06:10]line [01:06:10]written 0, free lines is 3234 [01:06:10]MH_Cut [01:06:10]Write to MH i2c: D1 01 00 77 3B 01 84 [01:06:10]Write i2c OK [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: D1 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: D1 01 00 [01:06:10]MH_I2C_Read... [01:06:10]Read from MH i2c: D1 01 00 77 3B 00 83 [01:06:10]Write to MH i2c: 01 00 00 78 3B B3 [01:06:10]Write i2c OK [01:06:10]MH_I2C_Read... [01:06:11]OFD Sender: No OFD packet to send [01:06:11]*** Cut start [01:06:11]*** Partial cut [01:06:11]*** CUTSNS_PIN = 1 [01:06:11]*** CUTSNS_PIN = 0 [01:06:11]*** Brake cut motor [01:06:12]Read from MH i2c: 01 [01:06:12]MH_I2C_Read... [01:06:12]*** Stop cut motor [01:06:12]*** Cut end [01:06:12]Read from MH i2c: 01 07 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: 01 07 00 78 3B 00 00 00 00 00 FF 0F C8 [01:06:12]process_action close_receipt done [01:06:12]requested_data is exist [01:06:12]produce_requested_data [01:06:12]requested_item fm.sn is exist - process it [01:06:12]wFMCommunicate request_size=4 [01:06:12]MH_SAM_APDU [01:06:12]CAPDU: 80 11 00 00 [01:06:12]Write to MH i2c: E2 08 00 79 3B 80 11 00 00 00 00 00 00 2E [01:06:12]Write i2c OK [01:06:12]MH_I2C_Read... [01:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:12]Read from MH i2c: E2 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 17 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 17 00 79 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 89 [01:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:06:12]wFMCommunicate OK [01:06:12]requested_item fd.num is exist - process it [01:06:12]SAM_PROTO_GetFieldsCounters [01:06:12]wFMCommunicate request_size=4 [01:06:12]MH_SAM_APDU [01:06:12]CAPDU: 80 13 00 00 [01:06:12]Write to MH i2c: E2 08 00 7A 3B 80 13 00 00 00 00 00 00 31 [01:06:12]Write i2c OK [01:06:12]MH_I2C_Read... [01:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:12]Read from MH i2c: E2 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 62 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 62 00 7A 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 45 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [01:06: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 45 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:12]wFMCommunicate OK [01:06:12]SAM_PROTO_GetFieldsCounters done [01:06:12]requested_item shift.num is exist - process it [01:06:12]requested_item shift.opened is exist - process it [01:06:12]req_shift_opened [01:06:12]FM_GetShiftState [01:06:12]SAM_PROTO_GetShiftState [01:06:12]wFMCommunicate request_size=4 [01:06:12]MH_SAM_APDU [01:06:12]CAPDU: 80 13 01 00 [01:06:12]Write to MH i2c: E2 08 00 7B 3B 80 13 01 00 00 00 00 00 33 [01:06:12]Write i2c OK [01:06:12]MH_I2C_Read... [01:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:12]Read from MH i2c: E2 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 0E 00 [01:06:12]MH_I2C_Read... [01:06:12]Read from MH i2c: E2 0E 00 7B 3B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 6C [01:06:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:06:12]wFMCommunicate OK [01:06:12]SAM_PROTO_GetShiftState done [01:06:12]FM_GetShiftState done [01:06:12]req_shift_opened done [01:06:12]requested_item shift.open_date is exist - process it [01:06:12]req_shift_open_date [01:06:12]req_shift_open_date done [01:06:12]produce_requested_data done [01:06:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139845,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:06:12]process_action_free close_receipt [01:06:12]json_value_free [01:06:12]json_value_free done [01:06:12]process_json_proto returns [01:06:12]Send response to host [01:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139845,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:06:12]free response buf [01:06:12]execute_script done [01:06:12]execute_script returns [01:06:12]free content buf [01:06:12]Sock 9.Close socket [01:06:12]Sock 9.Thread stoped [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:36]accept exits with 7 [01:07:36]New connection [01:07:36]New thread 3066654052 created [01:07:36]Thread 3066510692 joined [01:07:36]Waiting for new connection... [01:07:36] Sock 7.Parse request [01:07:36]Sock 7.Check first char [01:07:36]Sock 7.First char is OK [01:07:36]request: POST /json_proto HTTP/1.0 [01:07:36]Method: POST [01:07:36]URL: /json_proto [01:07:36]Method is POST - this is cgi request [01:07:36]url: /json_proto [01:07:36]query_string will be loaded in cgi processing [01:07:36]execute_cgi json_proto POST (null) [01:07:36]execute_cgi path=json_proto method=POST [01:07:36]POST find Content-Length [01:07:36]Host: 172.17.50.196:8080 [01:07:36]Content-Length: 688 [01:07:36]Content-Type: application/json [01:07:36] [01:07:36]POST finish read [01:07:36]Found Content-Length = 688 [01:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095610", "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" : 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" ] } } [01:07:36]execute_script... [01:07:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095610", "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" : 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" ] } } [01:07:36]POST & json_proto [01:07:36]process_json_proto [01:07:36]json parsed OK: [01:07:36]protocol is kg_v1.0 [01:07:36]action value=close_receipt [01:07:36]process_action close_receipt [01:07:36]cmd_close_receipt [01:07:36]MH_GetDate [01:07:36]Write to MH i2c: F0 00 00 7C 3B A6 [01:07:36]Write i2c OK [01:07:36]MH_I2C_Read... [01:07:36]Read from MH i2c: F0 [01:07:36]MH_I2C_Read... [01:07:36]Read from MH i2c: F0 09 00 [01:07:36]MH_I2C_Read... [01:07:36]Read from MH i2c: F0 09 00 7C 3B 00 DB 29 24 67 72 0D 1C 67 40 [01:07:36]GetLastDocTimeStamp 1730423171 [01:07:36]current date 1730423259 [01:07:36]FM_GetShiftState [01:07:36]SAM_PROTO_GetShiftState [01:07:36]wFMCommunicate request_size=4 [01:07:36]MH_SAM_APDU [01:07:36]CAPDU: 80 13 01 00 [01:07:36]Write to MH i2c: E2 08 00 7D 3B 80 13 01 00 00 00 00 00 35 [01:07:36]Write i2c OK [01:07:36]MH_I2C_Read... [01:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:36]Read from MH i2c: E2 [01:07:36]MH_I2C_Read... [01:07:36]Read from MH i2c: E2 0E 00 [01:07:36]MH_I2C_Read... [01:07:36]Read from MH i2c: E2 0E 00 7D 3B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 6E [01:07:36]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:07:36]wFMCommunicate OK [01:07:36]SAM_PROTO_GetShiftState done [01:07:36]FM_GetShiftState done [01:07:36]opened in 1730419081 [01:07:36]opened+sec_in_day 1730505481 [01:07:36]quantity*price = 400050 [01:07:36]sum+1 = 400051 [01:07:36]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 СНО: Общий режим Чек 27 01.11.2024 01:07 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139846 ФПД: 272953612199831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010739&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139846&fm=272953612199831&tin=02508201610067®Number=0000000000091631&sum=400000 [01:07:37]StoreToDocumentArchive [01:07:37]shift 558 fd 139846 [01:07:37]save to /storage/0558/doc_00139846 [01:07:37]save last doc name /storage/0558/doc_00139846 to /storage/kkm_last_doc_name [01:07:37]save OK [01:07:37]Clear old archive folders... [01:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:07:37]tlvbuf is 00A86BE0 [01:07:37]SAM_PROTO_ClearQueue [01:07:37]wFMCommunicate request_size=4 [01:07:37]MH_SAM_APDU [01:07:37]CAPDU: 80 09 00 00 [01:07:37]Write to MH i2c: E2 08 00 8A 3B 80 09 00 00 00 00 00 00 37 [01:07:37]Write i2c OK [01:07:37]MH_I2C_Read... [01:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:37]Read from MH i2c: E2 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 8A 3B 00 90 00 39 [01:07:37]RAPDU: 90 00 [01:07:37]wFMCommunicate OK [01:07:37]SAM_PROTO_ClearQueue done [01:07:37]KKMCreateOFDPacket [01:07:37]OFDProtocolAddRootSTLVToBuf [01:07:37]FM_MakeSignedData [01:07:37]FM_MakeSignedData [01:07:37]SAM_PROTO_SignData [01:07:37]wFMCommunicate request_size=4 [01:07:37]MH_SAM_APDU [01:07:37]CAPDU: 80 0D 01 02 [01:07:37]Write to MH i2c: E2 08 00 8B 3B 80 0D 01 02 00 00 00 00 3F [01:07:37]Write i2c OK [01:07:37]MH_I2C_Read... [01:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:37]Read from MH i2c: E2 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 8B 3B 00 90 00 3A [01:07:37]RAPDU: 90 00 [01:07:37]wFMCommunicate OK [01:07:37]wFMCommunicate request_size=255 [01:07:37]MH_SAM_APDU [01:07:37]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 1B 00 00 00 F4 03 04 00 DB 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 22 02 00 35 04 06 00 [01:07:37]Write to MH i2c: E2 02 01 8C 3B 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 1B 00 00 00 F4 03 04 00 DB 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 22 02 00 35 04 06 00 00 00 15 [01:07:37]Write i2c OK [01:07:37]MH_I2C_Read... [01:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:37]Read from MH i2c: E2 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 8C 3B 00 90 00 3B [01:07:37]RAPDU: 90 00 [01:07:37]wFMCommunicate OK [01:07:37]wFMCommunicate request_size=11 [01:07:37]MH_SAM_APDU [01:07:37]CAPDU: 80 0D 02 02 06 F8 3F F7 18 67 97 [01:07:37]Write to MH i2c: E2 0E 00 8D 3B 80 0D 02 02 06 00 F8 3F F7 18 67 97 00 00 92 [01:07:37]Write i2c OK [01:07:37]MH_I2C_Read... [01:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:37]Read from MH i2c: E2 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 [01:07:37]MH_I2C_Read... [01:07:37]Read from MH i2c: E2 03 00 8D 3B 00 90 00 3C [01:07:37]RAPDU: 90 00 [01:07:37]wFMCommunicate OK [01:07:37]wFMCommunicate request_size=4 [01:07:37]MH_SAM_APDU [01:07:37]CAPDU: 80 0D 03 02 [01:07:37]Write to MH i2c: E2 08 00 8E 3B 80 0D 03 02 00 00 00 00 44 [01:07:37]Write i2c OK [01:07:37]MH_I2C_Read... [01:07:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:38]Read from MH i2c: E2 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: E2 0B 00 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: E2 0B 00 8E 3B 00 0E DA 2D 4F 41 2F B1 8A 90 00 54 [01:07:38]RAPDU: 0E DA 2D 4F 41 2F B1 8A 90 00 [01:07:38]wFMCommunicate OK [01:07:38]SAM_PROTO_SignData done [01:07:38]FM_MakeSignedData done [01:07:38]CreateOFDProtocolMessage [01:07:38]wFMCommunicate request_size=4 [01:07:38]MH_SAM_APDU [01:07:38]CAPDU: 80 11 00 00 [01:07:38]Write to MH i2c: E2 08 00 8F 3B 80 11 00 00 00 00 00 00 44 [01:07:38]Write i2c OK [01:07:38]MH_I2C_Read... [01:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:38]Read from MH i2c: E2 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: E2 17 00 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: E2 17 00 8F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9F [01:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:07:38]wFMCommunicate OK [01:07:38]CreateOFDProtocolMessage done [01:07:38]OFDSenderStorePacket 139846 [01:07:38]StoreOFDPacket docnum=139846 [01:07: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 10 01 00 00 A5 35 08 01 17 46 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 1B 00 00 00 F4 03 04 00 DB 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 22 02 00 35 04 06 00 F8 3F F7 18 67 97 0E DA 2D 4F 41 2F B1 8A [01:07:38]CheckFolder [01:07:38]dirname=/storage/ofd_packets [01:07:38]CheckFolder done [01:07:38]ProducePacketName [01:07:38]name=ofd_packets/00139846 [01:07:38]NVStorageSaveData ofd_packets/00139846 [01:07:38]File name is /storage/ofd_packets/00139846 [01:07:38]Write 302 bytes [01:07:38]NVStorageSaveData done [01:07:38]OFDSenderStorePacket done [01:07:38]KKMCreateOFDPacket done [01:07:38]NVStorageSaveData kkm_last_timestamp [01:07:38]File name is /storage/kkm_last_timestamp [01:07:38]Write 4 bytes [01:07:38]NVStorageSaveData done [01:07:38]ExternCall_PrintAddStr [01:07:38]wPrintStart [01:07:38]Write to MH i2c: 01 00 00 90 3B CB [01:07:38]Write i2c OK [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: 01 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: 01 07 00 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: 01 07 00 90 3B 00 00 00 00 00 FF 0F E0 [01:07:38]RasterBufferAndPrint [01:07:38]line Счет N : (1)1095610 [01:07:38]line ИНН: 02508201610067 [01:07:38]line Контрольно-Кассовый Чек [01:07:38]line ПРОДАЖА [01:07:38]line ТРК (МРК, ГНК) : 21 [01:07:38]line Товар: 2710194210 [01:07:38]line ДТ(л)-К-2 [01:07:38]line 52.500 * 76.20 [01:07:38]line = 4000.50 [01:07:38]line НДС 12% НСП 1% [01:07:38]line > о реализуемом товаре [01:07:38]line ОКРУГЛЕНИЕ: -0.50 [01:07:38]line ИТОГО: 4000.00 [01:07:38]line Внесено: 4000.00 [01:07:38]line СДАЧА: 0.00 [01:07:38]line НСП 1% : 35.40 [01:07:38]line НДС 12% : 424.83 [01:07:38]line Наличными: 4000.00 [01:07:38]line Безнал.: 0.00 [01:07:38]line Место: АЗС № 101 "Партнер Нефть" [01:07:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:07:38]line СНО: Общий режим [01:07:38]line Чек 27 01.11.2024 01:07 [01:07:38]line Смена: 558 ФФД: 1.0 [01:07:38]line ЗНМ: 0300000081 [01:07:38]line РНМ: 0000000000091631 [01:07:38]line Версия ККМ: 001 [01:07:38]line ФМ: 0000000000874669 [01:07:38]line ФД: 139846 [01:07:38]line ФПД: 272953612199831 [01:07:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010739&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139846&fm=272953612199831&tin=02508201610067®Number=0000000000091631&sum=400000 [01:07:38]OFD Sender: Processing packet 139846 [packets to send 34, broken 33] [01:07:38]ProducePacketName [01:07:38]name=ofd_packets/00139846 [01:07:38]OFD Sender: To server: pG, [01:07:38]CommunicateWithHost lk.salyk.kg:30040 [01:07:38]ConnectInit lk.salyk.kg [01:07:38]written 0, free lines is 4095 [01:07:38]Connected sock=10 [01:07:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 A5 35 08 01 17 46 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 1B 00 00 00 F4 03 04 00 DB 29 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 22 02 00 35 04 06 00 F8 3F F7 18 67 97 0E DA 2D 4F 41 2F B1 8A [01:07:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2C C5 47 00 56 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 46 22 02 00 F4 03 04 00 87 D5 23 67 B6 04 01 00 00 C1 65 73 24 97 BB 3D B6 [01:07:38]CommunicateWithHost err = 0 [01:07:38]CheckOFDResponse [01:07:38]1017 (14) - 77093643461234 [01:07:38]1041 (16) - 0000000000874669 [01:07:38]1040 (4) - 139846 [01:07:38]1012 (4) - 31.10.2024 19:07 [01:07:38]1206 (1) - 0 [01:07:38]OFD Sender: Remove packet 139846 [01:07:38]ProducePacketName [01:07:38]name=ofd_packets/00139846 [01:07:38]NVStorageDeleteData [01:07:38]Write to MH i2c: 01 00 00 BB 3B F6 [01:07:38]Write i2c OK [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: 01 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: 01 07 00 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: 01 07 00 BB 3B 00 00 00 00 00 E9 0C F2 [01:07:38]RasterBufferAndPrint [01:07:38]line [01:07:38]line [01:07:38]line [01:07:38]line [01:07:38]line [01:07:38]written 0, free lines is 3311 [01:07:38]MH_Cut [01:07:38]Write to MH i2c: D1 01 00 C2 3B 01 CF [01:07:38]Write i2c OK [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: D1 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: D1 01 00 [01:07:38]MH_I2C_Read... [01:07:38]Read from MH i2c: D1 01 00 C2 3B 00 CE [01:07:38]Write to MH i2c: 01 00 00 C3 3B FE [01:07:38]Write i2c OK [01:07:38]MH_I2C_Read... [01:07:39]OFD Sender: No OFD packet to send [01:07:39]*** Cut start [01:07:39]*** Partial cut [01:07:39]*** CUTSNS_PIN = 1 [01:07:39]*** CUTSNS_PIN = 0 [01:07:39]*** Brake cut motor [01:07:40]Read from MH i2c: 01 [01:07:40]MH_I2C_Read... [01:07:40]*** Stop cut motor [01:07:40]*** Cut end [01:07:40]Read from MH i2c: 01 07 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: 01 07 00 C3 3B 00 00 00 00 00 FF 0F 13 [01:07:40]process_action close_receipt done [01:07:40]requested_data is exist [01:07:40]produce_requested_data [01:07:40]requested_item fm.sn is exist - process it [01:07:40]wFMCommunicate request_size=4 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 11 00 00 [01:07:40]Write to MH i2c: E2 08 00 C4 3B 80 11 00 00 00 00 00 00 79 [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 17 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 17 00 C4 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D4 [01:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:07:40]wFMCommunicate OK [01:07:40]requested_item fd.num is exist - process it [01:07:40]SAM_PROTO_GetFieldsCounters [01:07:40]wFMCommunicate request_size=4 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 13 00 00 [01:07:40]Write to MH i2c: E2 08 00 C5 3B 80 13 00 00 00 00 00 00 7C [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 62 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 62 00 C5 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 46 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [01:07:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 46 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:40]wFMCommunicate OK [01:07:40]SAM_PROTO_GetFieldsCounters done [01:07:40]requested_item shift.num is exist - process it [01:07:40]requested_item shift.opened is exist - process it [01:07:40]req_shift_opened [01:07:40]FM_GetShiftState [01:07:40]SAM_PROTO_GetShiftState [01:07:40]wFMCommunicate request_size=4 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 13 01 00 [01:07:40]Write to MH i2c: E2 08 00 C6 3B 80 13 01 00 00 00 00 00 7E [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 0E 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 0E 00 C6 3B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B7 [01:07:40]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:07:40]wFMCommunicate OK [01:07:40]SAM_PROTO_GetShiftState done [01:07:40]FM_GetShiftState done [01:07:40]req_shift_opened done [01:07:40]requested_item shift.open_date is exist - process it [01:07:40]req_shift_open_date [01:07:40]req_shift_open_date done [01:07:40]produce_requested_data done [01:07:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139846,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:07:40]process_action_free close_receipt [01:07:40]json_value_free [01:07:40]json_value_free done [01:07:40]process_json_proto returns [01:07:40]Send response to host [01:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139846,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:07:40]free response buf [01:07:40]execute_script done [01:07:40]execute_script returns [01:07:40]free content buf [01:07:40]Sock 7.Close socket [01:07:40]Sock 7.Thread stoped [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:30]accept exits with 9 [01:08:30]New connection [01:08:30]New thread 3066510692 created [01:08:30]Thread 3066654052 joined [01:08:30]Waiting for new connection... [01:08:30] Sock 9.Parse request [01:08:30]Sock 9.Check first char [01:08:30]Sock 9.First char is OK [01:08:30]request: POST /json_proto HTTP/1.0 [01:08:30]Method: POST [01:08:30]URL: /json_proto [01:08:30]Method is POST - this is cgi request [01:08:30]url: /json_proto [01:08:30]query_string will be loaded in cgi processing [01:08:30]execute_cgi json_proto POST (null) [01:08:30]execute_cgi path=json_proto method=POST [01:08:30]POST find Content-Length [01:08:30]Host: 172.17.50.196:8080 [01:08:30]Content-Length: 688 [01:08:30]Content-Type: application/json [01:08:30] [01:08:30]POST finish read [01:08:30]Found Content-Length = 688 [01:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095611", "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" : 26.250, "sum" : 2000.25, "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" ] } } [01:08:30]execute_script... [01:08:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095611", "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" : 26.250, "sum" : 2000.25, "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" ] } } [01:08:30]POST & json_proto [01:08:30]process_json_proto [01:08:30]json parsed OK: [01:08:30]protocol is kg_v1.0 [01:08:30]action value=close_receipt [01:08:30]process_action close_receipt [01:08:30]cmd_close_receipt [01:08:30]MH_GetDate [01:08:30]Write to MH i2c: F0 00 00 C7 3B F1 [01:08:30]Write i2c OK [01:08:30]MH_I2C_Read... [01:08:30]Read from MH i2c: F0 [01:08:30]MH_I2C_Read... [01:08:30]Read from MH i2c: F0 09 00 [01:08:30]MH_I2C_Read... [01:08:30]Read from MH i2c: F0 09 00 C7 3B 00 11 2A 24 67 72 0D 1C 67 C2 [01:08:30]GetLastDocTimeStamp 1730423259 [01:08:30]current date 1730423313 [01:08:30]FM_GetShiftState [01:08:30]SAM_PROTO_GetShiftState [01:08:30]wFMCommunicate request_size=4 [01:08:30]MH_SAM_APDU [01:08:30]CAPDU: 80 13 01 00 [01:08:30]Write to MH i2c: E2 08 00 C8 3B 80 13 01 00 00 00 00 00 80 [01:08:30]Write i2c OK [01:08:30]MH_I2C_Read... [01:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:30]Read from MH i2c: E2 [01:08:30]MH_I2C_Read... [01:08:30]Read from MH i2c: E2 0E 00 [01:08:30]MH_I2C_Read... [01:08:30]Read from MH i2c: E2 0E 00 C8 3B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B9 [01:08:30]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:08:30]wFMCommunicate OK [01:08:30]SAM_PROTO_GetShiftState done [01:08:30]FM_GetShiftState done [01:08:30]opened in 1730419081 [01:08:30]opened+sec_in_day 1730505481 [01:08:30]quantity*price = 200025 [01:08:30]sum+1 = 200026 [01:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 28 01.11.2024 01:08 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139847 ФПД: 96723532560646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010833&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139847&fm=96723532560646&tin=02508201610067®Number=0000000000091631&sum=200000 [01:08:31]StoreToDocumentArchive [01:08:31]shift 558 fd 139847 [01:08:31]save to /storage/0558/doc_00139847 [01:08:31]save last doc name /storage/0558/doc_00139847 to /storage/kkm_last_doc_name [01:08:31]save OK [01:08:31]Clear old archive folders... [01:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:08:31]tlvbuf is B6F0C650 [01:08:31]SAM_PROTO_ClearQueue [01:08:31]wFMCommunicate request_size=4 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 09 00 00 [01:08:31]Write to MH i2c: E2 08 00 D5 3B 80 09 00 00 00 00 00 00 82 [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 D5 3B 00 90 00 84 [01:08:31]RAPDU: 90 00 [01:08:31]wFMCommunicate OK [01:08:31]SAM_PROTO_ClearQueue done [01:08:31]KKMCreateOFDPacket [01:08:31]OFDProtocolAddRootSTLVToBuf [01:08:31]FM_MakeSignedData [01:08:31]FM_MakeSignedData [01:08:31]SAM_PROTO_SignData [01:08:31]wFMCommunicate request_size=4 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 0D 01 02 [01:08:31]Write to MH i2c: E2 08 00 D6 3B 80 0D 01 02 00 00 00 00 8A [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 D6 3B 00 90 00 85 [01:08:31]RAPDU: 90 00 [01:08:31]wFMCommunicate OK [01:08:31]wFMCommunicate request_size=255 [01:08:31]MH_SAM_APDU [01:08:31]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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1C 00 00 00 F4 03 04 00 11 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 22 02 00 35 04 06 00 [01:08:31]Write to MH i2c: E2 02 01 D7 3B 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1C 00 00 00 F4 03 04 00 11 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 22 02 00 35 04 06 00 00 00 62 [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 D7 3B 00 90 00 86 [01:08:31]RAPDU: 90 00 [01:08:31]wFMCommunicate OK [01:08:31]wFMCommunicate request_size=11 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 0D 02 02 06 57 F8 33 CC B9 06 [01:08:31]Write to MH i2c: E2 0E 00 D8 3B 80 0D 02 02 06 00 57 F8 33 CC B9 06 00 00 A6 [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 03 00 D8 3B 00 90 00 87 [01:08:31]RAPDU: 90 00 [01:08:31]wFMCommunicate OK [01:08:31]wFMCommunicate request_size=4 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 0D 03 02 [01:08:31]Write to MH i2c: E2 08 00 D9 3B 80 0D 03 02 00 00 00 00 8F [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 0B 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 0B 00 D9 3B 00 FD 6C 05 FA 91 36 91 F3 90 00 43 [01:08:31]RAPDU: FD 6C 05 FA 91 36 91 F3 90 00 [01:08:31]wFMCommunicate OK [01:08:31]SAM_PROTO_SignData done [01:08:31]FM_MakeSignedData done [01:08:31]CreateOFDProtocolMessage [01:08:31]wFMCommunicate request_size=4 [01:08:31]MH_SAM_APDU [01:08:31]CAPDU: 80 11 00 00 [01:08:31]Write to MH i2c: E2 08 00 DA 3B 80 11 00 00 00 00 00 00 8F [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:31]Read from MH i2c: E2 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 17 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: E2 17 00 DA 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EA [01:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:08:31]wFMCommunicate OK [01:08:31]CreateOFDProtocolMessage done [01:08:31]OFDSenderStorePacket 139847 [01:08:31]StoreOFDPacket docnum=139847 [01:08: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 10 01 00 00 64 D6 08 01 BA 56 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1C 00 00 00 F4 03 04 00 11 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 22 02 00 35 04 06 00 57 F8 33 CC B9 06 FD 6C 05 FA 91 36 91 F3 [01:08:31]CheckFolder [01:08:31]dirname=/storage/ofd_packets [01:08:31]CheckFolder done [01:08:31]ProducePacketName [01:08:31]name=ofd_packets/00139847 [01:08:31]NVStorageSaveData ofd_packets/00139847 [01:08:31]File name is /storage/ofd_packets/00139847 [01:08:31]Write 302 bytes [01:08:31]NVStorageSaveData done [01:08:31]OFDSenderStorePacket done [01:08:31]KKMCreateOFDPacket done [01:08:31]NVStorageSaveData kkm_last_timestamp [01:08:31]File name is /storage/kkm_last_timestamp [01:08:31]Write 4 bytes [01:08:31]NVStorageSaveData done [01:08:31]ExternCall_PrintAddStr [01:08:31]wPrintStart [01:08:31]Write to MH i2c: 01 00 00 DB 3B 16 [01:08:31]Write i2c OK [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: 01 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: 01 07 00 [01:08:31]MH_I2C_Read... [01:08:31]Read from MH i2c: 01 07 00 DB 3B 00 00 00 00 00 FF 0F 2B [01:08:31]RasterBufferAndPrint [01:08:31]line Счет N : (1)1095611 [01:08:31]line ИНН: 02508201610067 [01:08:31]line Контрольно-Кассовый Чек [01:08:31]line ПРОДАЖА [01:08:31]line ТРК (МРК, ГНК) : 41 [01:08:31]line Товар: 2710194210 [01:08:31]line ДТ(л)-К-2 [01:08:31]line 26.250 * 76.20 [01:08:31]line = 2000.25 [01:08:31]line НДС 12% НСП 1% [01:08:31]line > о реализуемом товаре [01:08:31]line ОКРУГЛЕНИЕ: -0.25 [01:08:31]line ИТОГО: 2000.00 [01:08:31]line Внесено: 2000.00 [01:08:31]line СДАЧА: 0.00 [01:08:31]line НСП 1% : 17.70 [01:08:31]line НДС 12% : 212.42 [01:08:31]line Наличными: 2000.00 [01:08:31]line Безнал.: 0.00 [01:08:31]line Место: АЗС № 101 "Партнер Нефть" [01:08:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:08:31]line СНО: Общий режим [01:08:31]line Чек 28 01.11.2024 01:08 [01:08:31]line Смена: 558 ФФД: 1.0 [01:08:31]line ЗНМ: 0300000081 [01:08:31]line РНМ: 0000000000091631 [01:08:31]line Версия ККМ: 001 [01:08:31]line ФМ: 0000000000874669 [01:08:31]line ФД: 139847 [01:08:31]line ФПД: 96723532560646 [01:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T010833&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139847&fm=96723532560646&tin=02508201610067®Number=0000000000091631&sum=200000 [01:08:32]OFD Sender: Processing packet 139847 [packets to send 34, broken 33] [01:08:32]ProducePacketName [01:08:32]name=ofd_packets/00139847 [01:08:32]OFD Sender: To server: pG, [01:08:32]CommunicateWithHost lk.salyk.kg:30040 [01:08:32]ConnectInit lk.salyk.kg [01:08:32]written 0, free lines is 4095 [01:08:32]Connected sock=10 [01:08:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 64 D6 08 01 BA 56 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 1C 00 00 00 F4 03 04 00 11 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 22 02 00 35 04 06 00 57 F8 33 CC B9 06 FD 6C 05 FA 91 36 91 F3 [01:08:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F1 AF 47 00 03 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 47 22 02 00 F4 03 04 00 BD D5 23 67 B6 04 01 00 00 26 2D F0 43 92 9A 72 8A [01:08:32]CommunicateWithHost err = 0 [01:08:32]CheckOFDResponse [01:08:32]1017 (14) - 77093643461234 [01:08:32]1041 (16) - 0000000000874669 [01:08:32]1040 (4) - 139847 [01:08:32]1012 (4) - 31.10.2024 19:08 [01:08:32]1206 (1) - 0 [01:08:32]OFD Sender: Remove packet 139847 [01:08:32]ProducePacketName [01:08:32]name=ofd_packets/00139847 [01:08:32]NVStorageDeleteData [01:08:32]Write to MH i2c: 01 00 00 06 3C 42 [01:08:32]Write i2c OK [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: 01 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: 01 07 00 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: 01 07 00 06 3C 00 00 00 00 00 F4 0C 49 [01:08:32]RasterBufferAndPrint [01:08:32]line [01:08:32]line [01:08:32]line [01:08:32]line [01:08:32]line [01:08:32]written 0, free lines is 3322 [01:08:32]MH_Cut [01:08:32]Write to MH i2c: D1 01 00 0D 3C 01 1B [01:08:32]Write i2c OK [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: D1 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: D1 01 00 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: D1 01 00 0D 3C 00 1A [01:08:32]Write to MH i2c: 01 00 00 0E 3C 4A [01:08:32]Write i2c OK [01:08:32]MH_I2C_Read... [01:08:32]OFD Sender: No OFD packet to send [01:08:33]*** Cut start [01:08:33]*** Partial cut [01:08:33]*** CUTSNS_PIN = 1 [01:08:33]*** CUTSNS_PIN = 0 [01:08:33]*** Brake cut motor [01:08:33]Read from MH i2c: 01 [01:08:33]MH_I2C_Read... [01:08:33]*** Stop cut motor [01:08:33]*** Cut end [01:08:33]Read from MH i2c: 01 07 00 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: 01 07 00 0E 3C 00 00 00 00 00 FF 0F 5F [01:08:33]process_action close_receipt done [01:08:33]requested_data is exist [01:08:33]produce_requested_data [01:08:33]requested_item fm.sn is exist - process it [01:08:33]wFMCommunicate request_size=4 [01:08:33]MH_SAM_APDU [01:08:33]CAPDU: 80 11 00 00 [01:08:33]Write to MH i2c: E2 08 00 0F 3C 80 11 00 00 00 00 00 00 C5 [01:08:33]Write i2c OK [01:08:33]MH_I2C_Read... [01:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:33]Read from MH i2c: E2 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 17 00 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 17 00 0F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 20 [01:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:08:33]wFMCommunicate OK [01:08:33]requested_item fd.num is exist - process it [01:08:33]SAM_PROTO_GetFieldsCounters [01:08:33]wFMCommunicate request_size=4 [01:08:33]MH_SAM_APDU [01:08:33]CAPDU: 80 13 00 00 [01:08:33]Write to MH i2c: E2 08 00 10 3C 80 13 00 00 00 00 00 00 C8 [01:08:33]Write i2c OK [01:08:33]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 62 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 62 00 10 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 47 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [01:08: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 47 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:34]wFMCommunicate OK [01:08:34]SAM_PROTO_GetFieldsCounters done [01:08:34]requested_item shift.num is exist - process it [01:08:34]requested_item shift.opened is exist - process it [01:08:34]req_shift_opened [01:08:34]FM_GetShiftState [01:08:34]SAM_PROTO_GetShiftState [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 13 01 00 [01:08:34]Write to MH i2c: E2 08 00 11 3C 80 13 01 00 00 00 00 00 CA [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0E 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0E 00 11 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 03 [01:08:34]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:08:34]wFMCommunicate OK [01:08:34]SAM_PROTO_GetShiftState done [01:08:34]FM_GetShiftState done [01:08:34]req_shift_opened done [01:08:34]requested_item shift.open_date is exist - process it [01:08:34]req_shift_open_date [01:08:34]req_shift_open_date done [01:08:34]produce_requested_data done [01:08:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139847,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:08:34]process_action_free close_receipt [01:08:34]json_value_free [01:08:34]json_value_free done [01:08:34]process_json_proto returns [01:08:34]Send response to host [01:08:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139847,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:08:34]free response buf [01:08:34]execute_script done [01:08:34]execute_script returns [01:08:34]free content buf [01:08:34]Sock 9.Close socket [01:08:34]Sock 9.Thread stoped [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:51]accept exits with 7 [01:11:51]New connection [01:11:51]New thread 3066654052 created [01:11:51]Thread 3066510692 joined [01:11:51]Waiting for new connection... [01:11:51] Sock 7.Parse request [01:11:51]Sock 7.Check first char [01:11:51]Sock 7.First char is OK [01:11:51]request: POST /json_proto HTTP/1.0 [01:11:51]Method: POST [01:11:51]URL: /json_proto [01:11:51]Method is POST - this is cgi request [01:11:51]url: /json_proto [01:11:51]query_string will be loaded in cgi processing [01:11:51]execute_cgi json_proto POST (null) [01:11:51]execute_cgi path=json_proto method=POST [01:11:51]POST find Content-Length [01:11:51]Host: 172.17.50.196:8080 [01:11:51]Content-Length: 672 [01:11:51]Content-Type: application/json [01:11:51] [01:11:51]POST finish read [01:11:51]Found Content-Length = 672 [01:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335672", "tax_sys" : 0, "items" : [ { "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "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" ] } } [01:11:51]execute_script... [01:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335672", "tax_sys" : 0, "items" : [ { "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "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" ] } } [01:11:51]POST & json_proto [01:11:51]process_json_proto [01:11:51]json parsed OK: [01:11:51]protocol is kg_v1.0 [01:11:51]action value=close_receipt [01:11:51]process_action close_receipt [01:11:51]cmd_close_receipt [01:11:51]MH_GetDate [01:11:51]Write to MH i2c: F0 00 00 12 3C 3D [01:11:51]Write i2c OK [01:11:51]MH_I2C_Read... [01:11:51]Read from MH i2c: F0 [01:11:51]MH_I2C_Read... [01:11:51]Read from MH i2c: F0 09 00 [01:11:51]MH_I2C_Read... [01:11:51]Read from MH i2c: F0 09 00 12 3C 00 DB 2A 24 67 72 0D 1C 67 D8 [01:11:51]GetLastDocTimeStamp 1730423313 [01:11:51]current date 1730423515 [01:11:51]FM_GetShiftState [01:11:51]SAM_PROTO_GetShiftState [01:11:51]wFMCommunicate request_size=4 [01:11:51]MH_SAM_APDU [01:11:51]CAPDU: 80 13 01 00 [01:11:51]Write to MH i2c: E2 08 00 13 3C 80 13 01 00 00 00 00 00 CC [01:11:51]Write i2c OK [01:11:51]MH_I2C_Read... [01:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:51]Read from MH i2c: E2 [01:11:51]MH_I2C_Read... [01:11:51]Read from MH i2c: E2 0E 00 [01:11:51]MH_I2C_Read... [01:11:51]Read from MH i2c: E2 0E 00 13 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 05 [01:11:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:11:51]wFMCommunicate OK [01:11:51]SAM_PROTO_GetShiftState done [01:11:51]FM_GetShiftState done [01:11:51]opened in 1730419081 [01:11:51]opened+sec_in_day 1730505481 [01:11:51]quantity*price = 13000 [01:11:51]sum+1 = 13001 [01:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 29 01.11.2024 01:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139848 ФПД: 80399367741318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T011155&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139848&fm=80399367741318&tin=02508201610067®Number=0000000000091631&sum=13000 0 [01:11:53]StoreToDocumentArchive [01:11:53]shift 558 fd 139848 [01:11:53]save to /storage/0558/doc_00139848 [01:11:53]save last doc name /storage/0558/doc_00139848 to /storage/kkm_last_doc_name [01:11:53]save OK [01:11:53]Clear old archive folders... [01:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=284 [01:11:53]tlvbuf is 00A5DD40 [01:11:53]SAM_PROTO_ClearQueue [01:11:53]wFMCommunicate request_size=4 [01:11:53]MH_SAM_APDU [01:11:53]CAPDU: 80 09 00 00 [01:11:53]Write to MH i2c: E2 08 00 20 3C 80 09 00 00 00 00 00 00 CE [01:11:53]Write i2c OK [01:11:53]MH_I2C_Read... [01:11:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:11:53]Read from MH i2c: E2 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 20 3C 00 90 00 D0 [01:11:53]RAPDU: 90 00 [01:11:53]wFMCommunicate OK [01:11:53]SAM_PROTO_ClearQueue done [01:11:53]KKMCreateOFDPacket [01:11:53]OFDProtocolAddRootSTLVToBuf [01:11:53]FM_MakeSignedData [01:11:53]FM_MakeSignedData [01:11:53]SAM_PROTO_SignData [01:11:53]wFMCommunicate request_size=4 [01:11:53]MH_SAM_APDU [01:11:53]CAPDU: 80 0D 01 02 [01:11:53]Write to MH i2c: E2 08 00 21 3C 80 0D 01 02 00 00 00 00 D6 [01:11:53]Write i2c OK [01:11:53]MH_I2C_Read... [01:11:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:11:53]OFD Sender: No OFD packet to send [01:11:53]Read from MH i2c: E2 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 21 3C 00 90 00 D1 [01:11:53]RAPDU: 90 00 [01:11:53]wFMCommunicate OK [01:11:53]wFMCommunicate request_size=255 [01:11:53]MH_SAM_APDU [01:11:53]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 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 1D 00 00 00 F4 03 04 00 DB 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [01:11:53]Write to MH i2c: E2 02 01 22 3C 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 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 1D 00 00 00 F4 03 04 00 DB 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 C4 [01:11:53]Write i2c OK [01:11:53]MH_I2C_Read... [01:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:53]Read from MH i2c: E2 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 22 3C 00 90 00 D2 [01:11:53]RAPDU: 90 00 [01:11:53]wFMCommunicate OK [01:11:53]wFMCommunicate request_size=43 [01:11:53]MH_SAM_APDU [01:11:53]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 22 02 00 35 04 06 00 49 1F 6F C1 1F 86 [01:11:53]Write to MH i2c: E2 2E 00 23 3C 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 22 02 00 35 04 06 00 49 1F 6F C1 1F 86 00 00 72 [01:11:53]Write i2c OK [01:11:53]MH_I2C_Read... [01:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:53]Read from MH i2c: E2 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 03 00 23 3C 00 90 00 D3 [01:11:53]RAPDU: 90 00 [01:11:53]wFMCommunicate OK [01:11:53]wFMCommunicate request_size=4 [01:11:53]MH_SAM_APDU [01:11:53]CAPDU: 80 0D 03 02 [01:11:53]Write to MH i2c: E2 08 00 24 3C 80 0D 03 02 00 00 00 00 DB [01:11:53]Write i2c OK [01:11:53]MH_I2C_Read... [01:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:11:53]Read from MH i2c: E2 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 0B 00 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 0B 00 24 3C 00 5C AD 76 C9 6C E5 55 93 90 00 5D [01:11:53]RAPDU: 5C AD 76 C9 6C E5 55 93 90 00 [01:11:53]wFMCommunicate OK [01:11:53]SAM_PROTO_SignData done [01:11:53]FM_MakeSignedData done [01:11:53]CreateOFDProtocolMessage [01:11:53]wFMCommunicate request_size=4 [01:11:53]MH_SAM_APDU [01:11:53]CAPDU: 80 11 00 00 [01:11:53]Write to MH i2c: E2 08 00 25 3C 80 11 00 00 00 00 00 00 DB [01:11:53]Write i2c OK [01:11:53]MH_I2C_Read... [01:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:53]Read from MH i2c: E2 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 17 00 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: E2 17 00 25 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [01:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:11:53]wFMCommunicate OK [01:11:53]CreateOFDProtocolMessage done [01:11:53]OFDSenderStorePacket 139848 [01:11:53]StoreOFDPacket docnum=139848 [01:11: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 30 01 00 00 3B D2 28 01 D5 9C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 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 1D 00 00 00 F4 03 04 00 DB 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 22 02 00 35 04 06 00 49 1F 6F C1 1F 86 5C AD 76 C9 6C E5 55 93 [01:11:53]CheckFolder [01:11:53]dirname=/storage/ofd_packets [01:11:53]CheckFolder done [01:11:53]ProducePacketName [01:11:53]name=ofd_packets/00139848 [01:11:53]NVStorageSaveData ofd_packets/00139848 [01:11:53]File name is /storage/ofd_packets/00139848 [01:11:53]Write 334 bytes [01:11:53]NVStorageSaveData done [01:11:53]OFDSenderStorePacket done [01:11:53]KKMCreateOFDPacket done [01:11:53]NVStorageSaveData kkm_last_timestamp [01:11:53]File name is /storage/kkm_last_timestamp [01:11:53]Write 4 bytes [01:11:53]NVStorageSaveData done [01:11:53]ExternCall_PrintAddStr [01:11:53]wPrintStart [01:11:53]Write to MH i2c: 01 00 00 26 3C 62 [01:11:53]Write i2c OK [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: 01 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: 01 07 00 [01:11:53]MH_I2C_Read... [01:11:53]Read from MH i2c: 01 07 00 26 3C 00 00 00 00 00 FF 0F 77 [01:11:53]RasterBufferAndPrint [01:11:53]line Счет N : (3)335672 [01:11:53]line ИНН: 02508201610067 [01:11:53]line Контрольно-Кассовый Чек [01:11:53]line ПРОДАЖА [01:11:53]line Товар: 4630007400662 [01:11:53]line Семечки ДЖИНН 140г синий [01:11:53]line 1.000 * 130.00 [01:11:53]line = 130.00 [01:11:53]line НДС 12% НСП 1% [01:11:53]line > о реализуемом товаре [01:11:53]line ИТОГО: 130.00 [01:11:53]line НСП 1% : 1.15 [01:11:53]line НДС 12% : 13.80 [01:11:53]line Наличными: 130.00 [01:11:53]line Безнал.: 0.00 [01:11:53]line Место: АЗС № 101 "Партнер Нефть" [01:11:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:11:53]line СНО: Общий режим [01:11:53]line Чек 29 01.11.2024 01:11 [01:11:53]line Смена: 558 ФФД: 1.0 [01:11:53]line ЗНМ: 0300000081 [01:11:53]line РНМ: 0000000000091631 [01:11:53]line Версия ККМ: 001 [01:11:53]line ФМ: 0000000000874669 [01:11:53]line ФД: 139848 [01:11:53]line ФПД: 80399367741318 [01:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T011155&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139848&fm=80399367741318&tin=02508201610067®Number=0000000000091631&sum=13000 [01:11:53]line 0 [01:11:53]OFD Sender: Processing packet 139848 [packets to send 34, broken 33] [01:11:53]ProducePacketName [01:11:53]name=ofd_packets/00139848 [01:11:53]OFD Sender: To server: pG, [01:11:53]CommunicateWithHost lk.salyk.kg:30040 [01:11:53]ConnectInit lk.salyk.kg [01:11:53]written 0, free lines is 4095 [01:11:54]Connected sock=10 [01:11: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 30 01 00 00 3B D2 28 01 D5 9C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 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 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 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 1D 00 00 00 F4 03 04 00 DB 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 22 02 00 35 04 06 00 49 1F 6F C1 1F 86 5C AD 76 C9 6C E5 55 93 [01:11: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 BA A0 47 00 27 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 48 22 02 00 F4 03 04 00 87 D6 23 67 B6 04 01 00 00 4A A4 CC 55 10 37 FB 26 [01:11:54]CommunicateWithHost err = 0 [01:11:54]CheckOFDResponse [01:11:54]1017 (14) - 77093643461234 [01:11:54]1041 (16) - 0000000000874669 [01:11:54]1040 (4) - 139848 [01:11:54]1012 (4) - 31.10.2024 19:12 [01:11:54]1206 (1) - 0 [01:11:54]OFD Sender: Remove packet 139848 [01:11:54]ProducePacketName [01:11:54]name=ofd_packets/00139848 [01:11:54]NVStorageDeleteData [01:11:54]Write to MH i2c: 01 00 00 4E 3C 8A [01:11:54]Write i2c OK [01:11:54]MH_I2C_Read... [01:11:54]Read from MH i2c: 01 [01:11:54]MH_I2C_Read... [01:11:54]Read from MH i2c: 01 07 00 [01:11:54]MH_I2C_Read... [01:11:54]Read from MH i2c: 01 07 00 4E 3C 00 00 00 00 00 0D 0D AB [01:11:54]RasterBufferAndPrint [01:11:54]line [01:11:54]line [01:11:54]line [01:11:54]line [01:11:54]line [01:11:54]written 0, free lines is 3350 [01:11:54]MH_Cut [01:11:54]Write to MH i2c: D1 01 00 55 3C 01 63 [01:11:54]Write i2c OK [01:11:54]MH_I2C_Read... [01:11:54]Read from MH i2c: D1 [01:11:54]MH_I2C_Read... [01:11:54]Read from MH i2c: D1 01 00 [01:11:54]MH_I2C_Read... [01:11:54]Read from MH i2c: D1 01 00 55 3C 00 62 [01:11:54]Write to MH i2c: 01 00 00 56 3C 92 [01:11:54]Write i2c OK [01:11:54]MH_I2C_Read... [01:11:54]OFD Sender: No OFD packet to send [01:11:55]*** Cut start [01:11:55]*** Partial cut [01:11:55]*** CUTSNS_PIN = 1 [01:11:55]*** CUTSNS_PIN = 0 [01:11:55]*** Brake cut motor [01:11:55]Read from MH i2c: 01 [01:11:55]MH_I2C_Read... [01:11:55]*** Stop cut motor [01:11:55]*** Cut end [01:11:55]Read from MH i2c: 01 07 00 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: 01 07 00 56 3C 00 00 00 00 00 FF 0F A7 [01:11:55]process_action close_receipt done [01:11:55]requested_data is exist [01:11:55]produce_requested_data [01:11:55]requested_item fm.sn is exist - process it [01:11:55]wFMCommunicate request_size=4 [01:11:55]MH_SAM_APDU [01:11:55]CAPDU: 80 11 00 00 [01:11:55]Write to MH i2c: E2 08 00 57 3C 80 11 00 00 00 00 00 00 0D [01:11:55]Write i2c OK [01:11:55]MH_I2C_Read... [01:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:55]Read from MH i2c: E2 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 17 00 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 17 00 57 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 68 [01:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:11:55]wFMCommunicate OK [01:11:55]requested_item fd.num is exist - process it [01:11:55]SAM_PROTO_GetFieldsCounters [01:11:55]wFMCommunicate request_size=4 [01:11:55]MH_SAM_APDU [01:11:55]CAPDU: 80 13 00 00 [01:11:55]Write to MH i2c: E2 08 00 58 3C 80 13 00 00 00 00 00 00 10 [01:11:55]Write i2c OK [01:11:55]MH_I2C_Read... [01:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:11:55]Read from MH i2c: E2 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 62 00 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 62 00 58 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 48 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [01:11: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 48 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:11:55]wFMCommunicate OK [01:11:55]SAM_PROTO_GetFieldsCounters done [01:11:55]requested_item shift.num is exist - process it [01:11:55]requested_item shift.opened is exist - process it [01:11:55]req_shift_opened [01:11:55]FM_GetShiftState [01:11:55]SAM_PROTO_GetShiftState [01:11:55]wFMCommunicate request_size=4 [01:11:55]MH_SAM_APDU [01:11:55]CAPDU: 80 13 01 00 [01:11:55]Write to MH i2c: E2 08 00 59 3C 80 13 01 00 00 00 00 00 12 [01:11:55]Write i2c OK [01:11:55]MH_I2C_Read... [01:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:55]Read from MH i2c: E2 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 0E 00 [01:11:55]MH_I2C_Read... [01:11:55]Read from MH i2c: E2 0E 00 59 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4B [01:11:55]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:11:55]wFMCommunicate OK [01:11:55]SAM_PROTO_GetShiftState done [01:11:55]FM_GetShiftState done [01:11:55]req_shift_opened done [01:11:55]requested_item shift.open_date is exist - process it [01:11:55]req_shift_open_date [01:11:55]req_shift_open_date done [01:11:55]produce_requested_data done [01:11:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139848,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:11:55]process_action_free close_receipt [01:11:55]json_value_free [01:11:55]json_value_free done [01:11:55]process_json_proto returns [01:11:55]Send response to host [01:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139848,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:11:55]free response buf [01:11:55]execute_script done [01:11:55]execute_script returns [01:11:55]free content buf [01:11:55]Sock 7.Close socket [01:11:55]Sock 7.Thread stoped [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:23]accept exits with 9 [01:12:23]New connection [01:12:23]New thread 3066510692 created [01:12:23]Thread 3066654052 joined [01:12:23]Waiting for new connection... [01:12:23] Sock 9.Parse request [01:12:23]Sock 9.Check first char [01:12:23]Sock 9.First char is OK [01:12:23]request: POST /json_proto HTTP/1.0 [01:12:23]Method: POST [01:12:23]URL: /json_proto [01:12:23]Method is POST - this is cgi request [01:12:23]url: /json_proto [01:12:23]query_string will be loaded in cgi processing [01:12:23]execute_cgi json_proto POST (null) [01:12:23]execute_cgi path=json_proto method=POST [01:12:23]POST find Content-Length [01:12:23]Host: 172.17.50.196:8080 [01:12:23]Content-Length: 1022 [01:12:23]Content-Type: application/json [01:12:23] [01:12:23]POST finish read [01:12:23]Found Content-Length = 1022 [01:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335673", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:23]execute_script... [01:12: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)335673", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:23]POST & json_proto [01:12:23]process_json_proto [01:12:23]json parsed OK: [01:12:23]protocol is kg_v1.0 [01:12:23]action value=close_receipt [01:12:23]process_action close_receipt [01:12:23]cmd_close_receipt [01:12:23]MH_GetDate [01:12:23]Write to MH i2c: F0 00 00 5A 3C 85 [01:12:23]Write i2c OK [01:12:23]MH_I2C_Read... [01:12:23]Read from MH i2c: F0 [01:12:23]MH_I2C_Read... [01:12:23]Read from MH i2c: F0 09 00 [01:12:23]MH_I2C_Read... [01:12:23]Read from MH i2c: F0 09 00 5A 3C 00 FA 2A 24 67 72 0D 1C 67 3F [01:12:23]GetLastDocTimeStamp 1730423515 [01:12:23]current date 1730423546 [01:12:23]FM_GetShiftState [01:12:23]SAM_PROTO_GetShiftState [01:12:23]wFMCommunicate request_size=4 [01:12:23]MH_SAM_APDU [01:12:23]CAPDU: 80 13 01 00 [01:12:23]Write to MH i2c: E2 08 00 5B 3C 80 13 01 00 00 00 00 00 14 [01:12:23]Write i2c OK [01:12:23]MH_I2C_Read... [01:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:23]Read from MH i2c: E2 [01:12:23]MH_I2C_Read... [01:12:23]Read from MH i2c: E2 0E 00 [01:12:23]MH_I2C_Read... [01:12:23]Read from MH i2c: E2 0E 00 5B 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4D [01:12:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:12:23]wFMCommunicate OK [01:12:23]SAM_PROTO_GetShiftState done [01:12:23]FM_GetShiftState done [01:12:23]opened in 1730419081 [01:12:23]opened+sec_in_day 1730505481 [01:12:23]quantity*price = 9500 [01:12:23]sum+1 = 9501 [01:12:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 30 01.11.2024 01:12 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139849 ФПД: 103531403524134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T011226&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139849&fm=103531403524134&tin=02508201610067®Number=0000000000091631&sum=19000 0 [01:12:24]StoreToDocumentArchive [01:12:24]shift 558 fd 139849 [01:12:24]save to /storage/0558/doc_00139849 [01:12:24]save last doc name /storage/0558/doc_00139849 to /storage/kkm_last_doc_name [01:12:24]save OK [01:12:24]Clear old archive folders... [01:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=436 [01:12:24]tlvbuf is 00B78AA0 [01:12:24]SAM_PROTO_ClearQueue [01:12:24]wFMCommunicate request_size=4 [01:12:24]MH_SAM_APDU [01:12:24]CAPDU: 80 09 00 00 [01:12:24]Write to MH i2c: E2 08 00 68 3C 80 09 00 00 00 00 00 00 16 [01:12:24]Write i2c OK [01:12:24]MH_I2C_Read... [01:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:12:24]Read from MH i2c: E2 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 68 3C 00 90 00 18 [01:12:24]RAPDU: 90 00 [01:12:24]wFMCommunicate OK [01:12:24]SAM_PROTO_ClearQueue done [01:12:24]KKMCreateOFDPacket [01:12:24]OFDProtocolAddRootSTLVToBuf [01:12:24]FM_MakeSignedData [01:12:24]FM_MakeSignedData [01:12:24]SAM_PROTO_SignData [01:12:24]wFMCommunicate request_size=4 [01:12:24]MH_SAM_APDU [01:12:24]CAPDU: 80 0D 01 02 [01:12:24]Write to MH i2c: E2 08 00 69 3C 80 0D 01 02 00 00 00 00 1E [01:12:24]Write i2c OK [01:12:24]MH_I2C_Read... [01:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:12:24]Read from MH i2c: E2 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 69 3C 00 90 00 19 [01:12:24]RAPDU: 90 00 [01:12:24]wFMCommunicate OK [01:12:24]wFMCommunicate request_size=255 [01:12:24]MH_SAM_APDU [01:12:24]CAPDU: 80 0D 02 02 FA 03 00 B4 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [01:12:24]Write to MH i2c: E2 02 01 6A 3C 80 0D 02 02 FA 00 03 00 B4 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 EB [01:12:24]Write i2c OK [01:12:24]MH_I2C_Read... [01:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:24]Read from MH i2c: E2 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 6A 3C 00 90 00 1A [01:12:24]RAPDU: 90 00 [01:12:24]wFMCommunicate OK [01:12:24]wFMCommunicate request_size=195 [01:12:24]MH_SAM_APDU [01:12:24]CAPDU: 80 0D 02 02 BE 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FA 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 22 02 00 35 04 06 00 5E 29 48 87 B8 26 [01:12:24]Write to MH i2c: E2 C6 00 6B 3C 80 0D 02 02 BE 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FA 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 22 02 00 35 04 06 00 5E 29 48 87 B8 26 00 00 27 [01:12:24]Write i2c OK [01:12:24]MH_I2C_Read... [01:12:24]OFD Sender: No OFD packet to send [01:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:24]Read from MH i2c: E2 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 03 00 6B 3C 00 90 00 1B [01:12:24]RAPDU: 90 00 [01:12:24]wFMCommunicate OK [01:12:24]wFMCommunicate request_size=4 [01:12:24]MH_SAM_APDU [01:12:24]CAPDU: 80 0D 03 02 [01:12:24]Write to MH i2c: E2 08 00 6C 3C 80 0D 03 02 00 00 00 00 23 [01:12:24]Write i2c OK [01:12:24]MH_I2C_Read... [01:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:12:24]Read from MH i2c: E2 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 0B 00 [01:12:24]MH_I2C_Read... [01:12:24]Read from MH i2c: E2 0B 00 6C 3C 00 74 1A BF 2C D6 9F 40 EE 90 00 40 [01:12:24]RAPDU: 74 1A BF 2C D6 9F 40 EE 90 00 [01:12:24]wFMCommunicate OK [01:12:24]SAM_PROTO_SignData done [01:12:24]FM_MakeSignedData done [01:12:24]CreateOFDProtocolMessage [01:12:24]wFMCommunicate request_size=4 [01:12:24]MH_SAM_APDU [01:12:24]CAPDU: 80 11 00 00 [01:12:24]Write to MH i2c: E2 08 00 6D 3C 80 11 00 00 00 00 00 00 23 [01:12:24]Write i2c OK [01:12:24]MH_I2C_Read... [01:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:25]Read from MH i2c: E2 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: E2 17 00 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: E2 17 00 6D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [01:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:12:25]wFMCommunicate OK [01:12:25]CreateOFDProtocolMessage done [01:12:25]OFDSenderStorePacket 139849 [01:12:25]StoreOFDPacket docnum=139849 [01:12: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 C8 01 00 00 F1 5B C0 01 7E 64 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FA 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 22 02 00 35 04 06 00 5E 29 48 87 B8 26 74 1A BF 2C D6 9F 40 EE [01:12:25]CheckFolder [01:12:25]dirname=/storage/ofd_packets [01:12:25]CheckFolder done [01:12:25]ProducePacketName [01:12:25]name=ofd_packets/00139849 [01:12:25]NVStorageSaveData ofd_packets/00139849 [01:12:25]File name is /storage/ofd_packets/00139849 [01:12:25]Write 486 bytes [01:12:25]NVStorageSaveData done [01:12:25]OFDSenderStorePacket done [01:12:25]KKMCreateOFDPacket done [01:12:25]NVStorageSaveData kkm_last_timestamp [01:12:25]File name is /storage/kkm_last_timestamp [01:12:25]Write 4 bytes [01:12:25]NVStorageSaveData done [01:12:25]ExternCall_PrintAddStr [01:12:25]wPrintStart [01:12:25]Write to MH i2c: 01 00 00 6E 3C AA [01:12:25]OFD Sender: Processing packet 139849 [packets to send 34, broken 33] [01:12:25]ProducePacketName [01:12:25]name=ofd_packets/00139849 [01:12:25]OFD Sender: To server: pG, [01:12:25]CommunicateWithHost lk.salyk.kg:30040 [01:12:25]ConnectInit lk.salyk.kg [01:12:25]Write i2c OK [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: 01 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: 01 07 00 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: 01 07 00 6E 3C 00 00 00 00 00 FF 0F BF [01:12:25]RasterBufferAndPrint [01:12:25]line Счет N : (3)335673 [01:12:25]line ИНН: 02508201610067 [01:12:25]line Контрольно-Кассовый Чек [01:12:25]line ПРОДАЖА [01:12:25]line Товар: 4631162227163 [01:12:25]line Напиток газированный Mojito LEMON LIME ж [01:12:25]line 1.000 * 95.00 [01:12:25]line = 95.00 [01:12:25]line НДС 12% НСП 1% [01:12:25]line > о реализуемом товаре [01:12:25]line Товар: 4700000480302 [01:12:25]line Напиток энерг Nitro манго-клуб 0.45 ж/б [01:12:25]line 1.000 * 95.00 [01:12:25]line = 95.00 [01:12:25]line НДС 12% НСП 1% [01:12:25]line > о реализуемом товаре [01:12:25]line ИТОГО: 190.00 [01:12:25]line НСП 1% : 1.68 [01:12:25]line НДС 12% : 20.18 [01:12:25]line Наличными: 190.00 [01:12:25]line Безнал.: 0.00 [01:12:25]line Место: АЗС № 101 "Партнер Нефть" [01:12:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:12:25]line СНО: Общий режим [01:12:25]line Чек 30 01.11.2024 01:12 [01:12:25]line Смена: 558 ФФД: 1.0 [01:12:25]line ЗНМ: 0300000081 [01:12:25]line РНМ: 0000000000091631 [01:12:25]line Версия ККМ: 001 [01:12:25]line ФМ: 0000000000874669 [01:12:25]line ФД: 139849 [01:12:25]line ФПД: 103531403524134 [01:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T011226&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139849&fm=103531403524134&tin=02508201610067®Number=0000000000091631&sum=19000 [01:12:25]line 0 [01:12:25]written 0, free lines is 4095 [01:12:25]Connected sock=10 [01:12: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 C8 01 00 00 F1 5B C0 01 7E 64 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FA 2A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 49 22 02 00 35 04 06 00 5E 29 48 87 B8 26 74 1A BF 2C D6 9F 40 EE [01:12: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 3D BD 47 00 6A 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 49 22 02 00 F4 03 04 00 A6 D6 23 67 B6 04 01 00 00 16 F0 73 7F 2C 13 0F 13 [01:12:25]CommunicateWithHost err = 0 [01:12:25]CheckOFDResponse [01:12:25]1017 (14) - 77093643461234 [01:12:25]1041 (16) - 0000000000874669 [01:12:25]1040 (4) - 139849 [01:12:25]1012 (4) - 31.10.2024 19:12 [01:12:25]1206 (1) - 0 [01:12:25]OFD Sender: Remove packet 139849 [01:12:25]ProducePacketName [01:12:25]name=ofd_packets/00139849 [01:12:25]NVStorageDeleteData [01:12:25]Write to MH i2c: 01 00 00 9E 3C DA [01:12:25]Write i2c OK [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: 01 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: 01 07 00 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: 01 07 00 9E 3C 00 00 00 00 00 9C 0C 89 [01:12:25]RasterBufferAndPrint [01:12:25]line [01:12:25]line [01:12:25]line [01:12:25]line [01:12:25]line [01:12:25]written 0, free lines is 3238 [01:12:25]MH_Cut [01:12:25]Write to MH i2c: D1 01 00 A5 3C 01 B3 [01:12:25]Write i2c OK [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: D1 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: D1 01 00 [01:12:25]MH_I2C_Read... [01:12:25]Read from MH i2c: D1 01 00 A5 3C 00 B2 [01:12:25]Write to MH i2c: 01 00 00 A6 3C E2 [01:12:25]Write i2c OK [01:12:25]MH_I2C_Read... [01:12:26]OFD Sender: No OFD packet to send [01:12:26]*** Cut start [01:12:26]*** Partial cut [01:12:26]*** CUTSNS_PIN = 1 [01:12:26]*** CUTSNS_PIN = 0 [01:12:26]*** Brake cut motor [01:12:27]Read from MH i2c: 01 [01:12:27]MH_I2C_Read... [01:12:27]*** Stop cut motor [01:12:27]*** Cut end [01:12:27]Read from MH i2c: 01 07 00 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: 01 07 00 A6 3C 00 00 00 00 00 FF 0F F7 [01:12:27]process_action close_receipt done [01:12:27]requested_data is exist [01:12:27]produce_requested_data [01:12:27]requested_item fm.sn is exist - process it [01:12:27]wFMCommunicate request_size=4 [01:12:27]MH_SAM_APDU [01:12:27]CAPDU: 80 11 00 00 [01:12:27]Write to MH i2c: E2 08 00 A7 3C 80 11 00 00 00 00 00 00 5D [01:12:27]Write i2c OK [01:12:27]MH_I2C_Read... [01:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:27]Read from MH i2c: E2 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: E2 17 00 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: E2 17 00 A7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B8 [01:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:12:27]wFMCommunicate OK [01:12:27]requested_item fd.num is exist - process it [01:12:27]SAM_PROTO_GetFieldsCounters [01:12:27]wFMCommunicate request_size=4 [01:12:27]MH_SAM_APDU [01:12:27]CAPDU: 80 13 00 00 [01:12:27]Write to MH i2c: E2 08 00 A8 3C 80 13 00 00 00 00 00 00 60 [01:12:27]Write i2c OK [01:12:27]MH_I2C_Read... [01:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:12:27]Read from MH i2c: E2 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: E2 62 00 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: E2 62 00 A8 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 49 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [01:12: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 49 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:12:27]wFMCommunicate OK [01:12:27]SAM_PROTO_GetFieldsCounters done [01:12:27]requested_item shift.num is exist - process it [01:12:27]requested_item shift.opened is exist - process it [01:12:27]req_shift_opened [01:12:27]FM_GetShiftState [01:12:27]SAM_PROTO_GetShiftState [01:12:27]wFMCommunicate request_size=4 [01:12:27]MH_SAM_APDU [01:12:27]CAPDU: 80 13 01 00 [01:12:27]Write to MH i2c: E2 08 00 A9 3C 80 13 01 00 00 00 00 00 62 [01:12:27]Write i2c OK [01:12:27]MH_I2C_Read... [01:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:27]Read from MH i2c: E2 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: E2 0E 00 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: E2 0E 00 A9 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9B [01:12:27]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:12:27]wFMCommunicate OK [01:12:27]SAM_PROTO_GetShiftState done [01:12:27]FM_GetShiftState done [01:12:27]req_shift_opened done [01:12:27]requested_item shift.open_date is exist - process it [01:12:27]req_shift_open_date [01:12:27]req_shift_open_date done [01:12:27]produce_requested_data done [01:12:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139849,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:12:27]process_action_free close_receipt [01:12:27]json_value_free [01:12:27]json_value_free done [01:12:27]process_json_proto returns [01:12:27]Send response to host [01:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139849,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:12:27]free response buf [01:12:27]execute_script done [01:12:27]execute_script returns [01:12:27]free content buf [01:12:27]Sock 9.Close socket [01:12:27]Sock 9.Thread stoped [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:24]accept exits with 7 [01:17:24]New connection [01:17:24]New thread 3066654052 created [01:17:24]Thread 3066510692 joined [01:17:24]Waiting for new connection... [01:17:24] Sock 7.Parse request [01:17:24]Sock 7.Check first char [01:17:24]Sock 7.First char is OK [01:17:24]request: POST /json_proto HTTP/1.0 [01:17:24]Method: POST [01:17:24]URL: /json_proto [01:17:24]Method is POST - this is cgi request [01:17:24]url: /json_proto [01:17:24]query_string will be loaded in cgi processing [01:17:24]execute_cgi json_proto POST (null) [01:17:24]execute_cgi path=json_proto method=POST [01:17:24]POST find Content-Length [01:17:24]Host: 172.17.50.196:8080 [01:17:24]Content-Length: 977 [01:17:24]Content-Type: application/json [01:17:24] [01:17:24]POST finish read [01:17:24]Found Content-Length = 977 [01:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335674", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 157.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:24]execute_script... [01:17:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335674", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 157.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:24]POST & json_proto [01:17:24]process_json_proto [01:17:24]json parsed OK: [01:17:24]protocol is kg_v1.0 [01:17:24]action value=close_receipt [01:17:24]process_action close_receipt [01:17:24]cmd_close_receipt [01:17:24]MH_GetDate [01:17:24]Write to MH i2c: F0 00 00 AA 3C D5 [01:17:24]Write i2c OK [01:17:24]MH_I2C_Read... [01:17:24]Read from MH i2c: F0 [01:17:24]MH_I2C_Read... [01:17:24]Read from MH i2c: F0 09 00 [01:17:24]MH_I2C_Read... [01:17:24]Read from MH i2c: F0 09 00 AA 3C 00 27 2C 24 67 72 0D 1C 67 BE [01:17:24]GetLastDocTimeStamp 1730423546 [01:17:24]current date 1730423847 [01:17:24]FM_GetShiftState [01:17:24]SAM_PROTO_GetShiftState [01:17:24]wFMCommunicate request_size=4 [01:17:24]MH_SAM_APDU [01:17:24]CAPDU: 80 13 01 00 [01:17:24]Write to MH i2c: E2 08 00 AB 3C 80 13 01 00 00 00 00 00 64 [01:17:24]Write i2c OK [01:17:24]MH_I2C_Read... [01:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:24]Read from MH i2c: E2 [01:17:24]MH_I2C_Read... [01:17:24]Read from MH i2c: E2 0E 00 [01:17:24]MH_I2C_Read... [01:17:24]Read from MH i2c: E2 0E 00 AB 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9D [01:17:24]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:17:24]wFMCommunicate OK [01:17:24]SAM_PROTO_GetShiftState done [01:17:24]FM_GetShiftState done [01:17:24]opened in 1730419081 [01:17:24]opened+sec_in_day 1730505481 [01:17:24]quantity*price = 9500 [01:17:24]sum+1 = 9501 [01:17:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607120854184 Снек Орехи BEERKa Арахис 90г 1.000 * 62.00 = 62.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 157.00 НСП 1% : 1.39 НДС 12% : 16.67 Наличными: 157.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 31 01.11.2024 01:17 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139850 ФПД: 61727073436341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T011727&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139850&fm=61727073436341&tin=02508201610067®Number=0000000000091631&sum=15700 0 [01:17:25]StoreToDocumentArchive [01:17:25]shift 558 fd 139850 [01:17:25]save to /storage/0558/doc_00139850 [01:17:25]save last doc name /storage/0558/doc_00139850 to /storage/kkm_last_doc_name [01:17:25]save OK [01:17:25]Clear old archive folders... [01:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=415 [01:17:25]tlvbuf is 00AFD0E0 [01:17:25]SAM_PROTO_ClearQueue [01:17:25]wFMCommunicate request_size=4 [01:17:25]MH_SAM_APDU [01:17:25]CAPDU: 80 09 00 00 [01:17:25]Write to MH i2c: E2 08 00 B8 3C 80 09 00 00 00 00 00 00 66 [01:17:25]Write i2c OK [01:17:25]MH_I2C_Read... [01:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:17:25]Read from MH i2c: E2 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 B8 3C 00 90 00 68 [01:17:25]RAPDU: 90 00 [01:17:25]wFMCommunicate OK [01:17:25]SAM_PROTO_ClearQueue done [01:17:25]KKMCreateOFDPacket [01:17:25]OFDProtocolAddRootSTLVToBuf [01:17:25]FM_MakeSignedData [01:17:25]FM_MakeSignedData [01:17:25]SAM_PROTO_SignData [01:17:25]wFMCommunicate request_size=4 [01:17:25]MH_SAM_APDU [01:17:25]CAPDU: 80 0D 01 02 [01:17:25]Write to MH i2c: E2 08 00 B9 3C 80 0D 01 02 00 00 00 00 6E [01:17:25]Write i2c OK [01:17:25]MH_I2C_Read... [01:17:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:17:25]Read from MH i2c: E2 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 B9 3C 00 90 00 69 [01:17:25]RAPDU: 90 00 [01:17:25]wFMCommunicate OK [01:17:25]wFMCommunicate request_size=255 [01:17:25]MH_SAM_APDU [01:17:25]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [01:17:25]Write to MH i2c: E2 02 01 BA 3C 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 00 [01:17:25]Write i2c OK [01:17:25]MH_I2C_Read... [01:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:25]Read from MH i2c: E2 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 BA 3C 00 90 00 6A [01:17:25]RAPDU: 90 00 [01:17:25]wFMCommunicate OK [01:17:25]wFMCommunicate request_size=174 [01:17:25]MH_SAM_APDU [01:17:25]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 27 2C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4A 22 02 00 35 04 06 00 38 23 F4 49 02 B5 [01:17:25]Write to MH i2c: E2 B1 00 BB 3C 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 27 2C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4A 22 02 00 35 04 06 00 38 23 F4 49 02 B5 00 00 2E [01:17:25]Write i2c OK [01:17:25]MH_I2C_Read... [01:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:25]Read from MH i2c: E2 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 [01:17:25]MH_I2C_Read... [01:17:25]Read from MH i2c: E2 03 00 BB 3C 00 90 00 6B [01:17:25]RAPDU: 90 00 [01:17:25]wFMCommunicate OK [01:17:25]wFMCommunicate request_size=4 [01:17:25]MH_SAM_APDU [01:17:25]CAPDU: 80 0D 03 02 [01:17:25]Write to MH i2c: E2 08 00 BC 3C 80 0D 03 02 00 00 00 00 73 [01:17:25]Write i2c OK [01:17:25]MH_I2C_Read... [01:17:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:17:26]Read from MH i2c: E2 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: E2 0B 00 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: E2 0B 00 BC 3C 00 0B 0C BC 85 49 81 1E 32 90 00 E6 [01:17:26]RAPDU: 0B 0C BC 85 49 81 1E 32 90 00 [01:17:26]wFMCommunicate OK [01:17:26]SAM_PROTO_SignData done [01:17:26]FM_MakeSignedData done [01:17:26]CreateOFDProtocolMessage [01:17:26]wFMCommunicate request_size=4 [01:17:26]MH_SAM_APDU [01:17:26]CAPDU: 80 11 00 00 [01:17:26]Write to MH i2c: E2 08 00 BD 3C 80 11 00 00 00 00 00 00 73 [01:17:26]Write i2c OK [01:17:26]MH_I2C_Read... [01:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:26]Read from MH i2c: E2 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: E2 17 00 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: E2 17 00 BD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [01: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 [01:17:26]wFMCommunicate OK [01:17:26]CreateOFDProtocolMessage done [01:17:26]OFDSenderStorePacket 139850 [01:17:26]StoreOFDPacket docnum=139850 [01:17: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 B3 01 00 00 D1 5C AB 01 61 DF 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 27 2C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4A 22 02 00 35 04 06 00 38 23 F4 49 02 B5 0B 0C BC 85 49 81 1E 32 [01:17:26]CheckFolder [01:17:26]dirname=/storage/ofd_packets [01:17:26]CheckFolder done [01:17:26]ProducePacketName [01:17:26]name=ofd_packets/00139850 [01:17:26]NVStorageSaveData ofd_packets/00139850 [01:17:26]File name is /storage/ofd_packets/00139850 [01:17:26]Write 465 bytes [01:17:26]NVStorageSaveData done [01:17:26]OFDSenderStorePacket done [01:17:26]KKMCreateOFDPacket done [01:17:26]NVStorageSaveData kkm_last_timestamp [01:17:26]File name is /storage/kkm_last_timestamp [01:17:26]Write 4 bytes [01:17:26]NVStorageSaveData done [01:17:26]ExternCall_PrintAddStr [01:17:26]wPrintStart [01:17:26]Write to MH i2c: 01 00 00 BE 3C FA [01:17:26]Write i2c OK [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: 01 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: 01 07 00 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: 01 07 00 BE 3C 00 00 00 00 00 FF 0F 0F [01:17:26]RasterBufferAndPrint [01:17:26]line Счет N : (3)335674 [01:17:26]line ИНН: 02508201610067 [01:17:26]line Контрольно-Кассовый Чек [01:17:26]line ПРОДАЖА [01:17:26]line Товар: 4700000480364 [01:17:26]line Напиток энерг Nitro экзотик 0.45 ж/б [01:17:26]line 1.000 * 95.00 [01:17:26]line = 95.00 [01:17:26]line НДС 12% НСП 1% [01:17:26]line > о реализуемом товаре [01:17:26]line Товар: 4607120854184 [01:17:26]line Снек Орехи BEERKa Арахис 90г [01:17:26]line 1.000 * 62.00 [01:17:26]line = 62.00 [01:17:26]line НДС 12% НСП 1% [01:17:26]line > о реализуемом товаре [01:17:26]line ИТОГО: 157.00 [01:17:26]line НСП 1% : 1.39 [01:17:26]line НДС 12% : 16.67 [01:17:26]line Наличными: 157.00 [01:17:26]line Безнал.: 0.00 [01:17:26]line Место: АЗС № 101 "Партнер Нефть" [01:17:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:17:26]line СНО: Общий режим [01:17:26]line Чек 31 01.11.2024 01:17 [01:17:26]line Смена: 558 ФФД: 1.0 [01:17:26]line ЗНМ: 0300000081 [01:17:26]line РНМ: 0000000000091631 [01:17:26]line Версия ККМ: 001 [01:17:26]line ФМ: 0000000000874669 [01:17:26]line ФД: 139850 [01:17:26]line ФПД: 61727073436341 [01:17:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T011727&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139850&fm=61727073436341&tin=02508201610067®Number=0000000000091631&sum=15700 [01:17:26]line 0 [01:17:26]OFD Sender: Processing packet 139850 [packets to send 34, broken 33] [01:17:26]ProducePacketName [01:17:26]name=ofd_packets/00139850 [01:17:26]OFD Sender: To server: pG, [01:17:26]CommunicateWithHost lk.salyk.kg:30040 [01:17:26]ConnectInit lk.salyk.kg [01:17:26]written 0, free lines is 4095 [01:17:26]Connected sock=10 [01:17: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 B3 01 00 00 D1 5C AB 01 61 DF 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 27 2C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4A 22 02 00 35 04 06 00 38 23 F4 49 02 B5 0B 0C BC 85 49 81 1E 32 [01:17: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 5B 3C 47 00 AA 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4A 22 02 00 F4 03 04 00 D3 D7 23 67 B6 04 01 00 00 A7 C5 7A 7C 94 F0 A3 9A [01:17:26]CommunicateWithHost err = 0 [01:17:26]CheckOFDResponse [01:17:26]1017 (14) - 77093643461234 [01:17:26]1041 (16) - 0000000000874669 [01:17:26]1040 (4) - 139850 [01:17:26]1012 (4) - 31.10.2024 19:17 [01:17:26]1206 (1) - 0 [01:17:26]OFD Sender: Remove packet 139850 [01:17:26]ProducePacketName [01:17:26]name=ofd_packets/00139850 [01:17:26]NVStorageDeleteData [01:17:26]Write to MH i2c: 01 00 00 EE 3C 2A [01:17:26]Write i2c OK [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: 01 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: 01 07 00 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: 01 07 00 EE 3C 00 00 00 00 00 8F 0C CC [01:17:26]RasterBufferAndPrint [01:17:26]line [01:17:26]line [01:17:26]line [01:17:26]line [01:17:26]line [01:17:26]written 0, free lines is 3224 [01:17:26]MH_Cut [01:17:26]Write to MH i2c: D1 01 00 F5 3C 01 03 [01:17:26]Write i2c OK [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: D1 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: D1 01 00 [01:17:26]MH_I2C_Read... [01:17:26]Read from MH i2c: D1 01 00 F5 3C 00 02 [01:17:26]Write to MH i2c: 01 00 00 F6 3C 32 [01:17:26]Write i2c OK [01:17:26]MH_I2C_Read... [01:17:27]OFD Sender: No OFD packet to send [01:17:27]*** Cut start [01:17:27]*** Partial cut [01:17:27]*** CUTSNS_PIN = 1 [01:17:27]*** CUTSNS_PIN = 0 [01:17:27]*** Brake cut motor [01:17:28]Read from MH i2c: 01 [01:17:28]MH_I2C_Read... [01:17:28]*** Stop cut motor [01:17:28]*** Cut end [01:17:28]Read from MH i2c: 01 07 00 [01:17:28]MH_I2C_Read... [01:17:28]Read from MH i2c: 01 07 00 F6 3C 00 00 00 00 00 FF 0F 47 [01:17:28]process_action close_receipt done [01:17:28]requested_data is exist [01:17:28]produce_requested_data [01:17:28]requested_item fm.sn is exist - process it [01:17:28]wFMCommunicate request_size=4 [01:17:28]MH_SAM_APDU [01:17:28]CAPDU: 80 11 00 00 [01:17:28]Write to MH i2c: E2 08 00 F7 3C 80 11 00 00 00 00 00 00 AD [01:17:28]Write i2c OK [01:17:28]MH_I2C_Read... [01:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:28]Read from MH i2c: E2 [01:17:28]MH_I2C_Read... [01:17:28]Read from MH i2c: E2 17 00 [01:17:28]MH_I2C_Read... [01:17:28]Read from MH i2c: E2 17 00 F7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 08 [01:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:17:28]wFMCommunicate OK [01:17:28]requested_item fd.num is exist - process it [01:17:28]SAM_PROTO_GetFieldsCounters [01:17:28]wFMCommunicate request_size=4 [01:17:28]MH_SAM_APDU [01:17:28]CAPDU: 80 13 00 00 [01:17:28]Write to MH i2c: E2 08 00 F8 3C 80 13 00 00 00 00 00 00 B0 [01:17:28]Write i2c OK [01:17:28]MH_I2C_Read... [01:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:28]Read from MH i2c: E2 [01:17:28]MH_I2C_Read... [01:17:28]Read from MH i2c: E2 62 00 [01:17:28]MH_I2C_Read... [01:17:28]Read from MH i2c: E2 62 00 F8 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [01:17: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 4A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:17:28]wFMCommunicate OK [01:17:28]SAM_PROTO_GetFieldsCounters done [01:17:28]requested_item shift.num is exist - process it [01:17:28]requested_item shift.opened is exist - process it [01:17:28]req_shift_opened [01:17:28]FM_GetShiftState [01:17:28]SAM_PROTO_GetShiftState [01:17:28]wFMCommunicate request_size=4 [01:17:28]MH_SAM_APDU [01:17:28]CAPDU: 80 13 01 00 [01:17:28]Write to MH i2c: E2 08 00 F9 3C 80 13 01 00 00 00 00 00 B2 [01:17:28]Write i2c OK [01:17:28]MH_I2C_Read... [01:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:28]Read from MH i2c: E2 [01:17:28]MH_I2C_Read... [01:17:28]Read from MH i2c: E2 0E 00 [01:17:28]MH_I2C_Read... [01:17:28]Read from MH i2c: E2 0E 00 F9 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EB [01:17:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:17:28]wFMCommunicate OK [01:17:28]SAM_PROTO_GetShiftState done [01:17:28]FM_GetShiftState done [01:17:28]req_shift_opened done [01:17:28]requested_item shift.open_date is exist - process it [01:17:28]req_shift_open_date [01:17:28]req_shift_open_date done [01:17:28]produce_requested_data done [01:17:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139850,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:17:28]process_action_free close_receipt [01:17:28]json_value_free [01:17:28]json_value_free done [01:17:28]process_json_proto returns [01:17:28]Send response to host [01:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139850,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:17:28]free response buf [01:17:28]execute_script done [01:17:28]execute_script returns [01:17:28]free content buf [01:17:28]Sock 7.Close socket [01:17:28]Sock 7.Thread stoped [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:33]accept exits with 9 [01:22:33]New connection [01:22:33]New thread 3066510692 created [01:22:33]Thread 3066654052 joined [01:22:33]Waiting for new connection... [01:22:33] Sock 9.Parse request [01:22:33]Sock 9.Check first char [01:22:33]Sock 9.First char is OK [01:22:33]request: POST /json_proto HTTP/1.0 [01:22:33]Method: POST [01:22:33]URL: /json_proto [01:22:33]Method is POST - this is cgi request [01:22:33]url: /json_proto [01:22:33]query_string will be loaded in cgi processing [01:22:33]execute_cgi json_proto POST (null) [01:22:33]execute_cgi path=json_proto method=POST [01:22:33]POST find Content-Length [01:22:33]Host: 172.17.50.196:8080 [01:22:33]Content-Length: 775 [01:22:33]Content-Type: application/json [01:22:33] [01:22:33]POST finish read [01:22:33]Found Content-Length = 775 [01:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095614", "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 }]} ], "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" ] } } [01:22:33]execute_script... [01:22:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095614", "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 }]} ], "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" ] } } [01:22:33]POST & json_proto [01:22:33]process_json_proto [01:22:33]json parsed OK: [01:22:33]protocol is kg_v1.0 [01:22:33]action value=close_receipt [01:22:33]process_action close_receipt [01:22:33]cmd_close_receipt [01:22:33]MH_GetDate [01:22:33]Write to MH i2c: F0 00 00 FA 3C 25 [01:22:33]Write i2c OK [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: F0 [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: F0 09 00 [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: F0 09 00 FA 3C 00 5D 2D 24 67 72 0D 1C 67 45 [01:22:33]GetLastDocTimeStamp 1730423847 [01:22:33]current date 1730424157 [01:22:33]FM_GetShiftState [01:22:33]SAM_PROTO_GetShiftState [01:22:33]wFMCommunicate request_size=4 [01:22:33]MH_SAM_APDU [01:22:33]CAPDU: 80 13 01 00 [01:22:33]Write to MH i2c: E2 08 00 FB 3C 80 13 01 00 00 00 00 00 B4 [01:22:33]Write i2c OK [01:22:33]MH_I2C_Read... [01:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:33]Read from MH i2c: E2 [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: E2 0E 00 [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: E2 0E 00 FB 3C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 ED [01:22:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:22:33]wFMCommunicate OK [01:22:33]SAM_PROTO_GetShiftState done [01:22:33]FM_GetShiftState done [01:22:33]opened in 1730419081 [01:22:33]opened+sec_in_day 1730505481 [01:22:33]quantity*price = 400050 [01:22:33]sum+1 = 400051 [01:22:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 32 01.11.2024 01:22 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139851 ФПД: 126435845482517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T012237&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139851&fm=126435845482517&tin=02508201610067®Number=0000000000091631&sum=400050 [01:22:35]StoreToDocumentArchive [01:22:35]shift 558 fd 139851 [01:22:35]save to /storage/0558/doc_00139851 [01:22:35]save last doc name /storage/0558/doc_00139851 to /storage/kkm_last_doc_name [01:22:35]save OK [01:22:35]Clear old archive folders... [01:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:22:35]tlvbuf is 00AE6390 [01:22:35]SAM_PROTO_ClearQueue [01:22:35]wFMCommunicate request_size=4 [01:22:35]MH_SAM_APDU [01:22:35]CAPDU: 80 09 00 00 [01:22:35]Write to MH i2c: E2 08 00 08 3D 80 09 00 00 00 00 00 00 B7 [01:22:35]Write i2c OK [01:22:35]MH_I2C_Read... [01:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:35]Read from MH i2c: E2 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 08 3D 00 90 00 B9 [01:22:35]RAPDU: 90 00 [01:22:35]wFMCommunicate OK [01:22:35]SAM_PROTO_ClearQueue done [01:22:35]KKMCreateOFDPacket [01:22:35]OFDProtocolAddRootSTLVToBuf [01:22:35]FM_MakeSignedData [01:22:35]FM_MakeSignedData [01:22:35]SAM_PROTO_SignData [01:22:35]wFMCommunicate request_size=4 [01:22:35]MH_SAM_APDU [01:22:35]CAPDU: 80 0D 01 02 [01:22:35]Write to MH i2c: E2 08 00 09 3D 80 0D 01 02 00 00 00 00 BF [01:22:35]Write i2c OK [01:22:35]MH_I2C_Read... [01:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:35]Read from MH i2c: E2 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 09 3D 00 90 00 BA [01:22:35]RAPDU: 90 00 [01:22:35]wFMCommunicate OK [01:22:35]wFMCommunicate request_size=255 [01:22:35]MH_SAM_APDU [01:22: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 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 20 00 00 00 F4 03 04 00 5D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4B 22 02 00 35 04 06 00 [01:22:35]Write to MH i2c: E2 02 01 0A 3D 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 20 00 00 00 F4 03 04 00 5D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4B 22 02 00 35 04 06 00 00 00 89 [01:22:35]Write i2c OK [01:22:35]MH_I2C_Read... [01:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:35]Read from MH i2c: E2 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 0A 3D 00 90 00 BB [01:22:35]RAPDU: 90 00 [01:22:35]wFMCommunicate OK [01:22:35]wFMCommunicate request_size=11 [01:22:35]MH_SAM_APDU [01:22:35]CAPDU: 80 0D 02 02 06 72 FE 23 A8 28 15 [01:22:35]Write to MH i2c: E2 0E 00 0B 3D 80 0D 02 02 06 00 72 FE 23 A8 28 15 00 00 46 [01:22:35]Write i2c OK [01:22:35]MH_I2C_Read... [01:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:35]Read from MH i2c: E2 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 03 00 0B 3D 00 90 00 BC [01:22:35]RAPDU: 90 00 [01:22:35]wFMCommunicate OK [01:22:35]wFMCommunicate request_size=4 [01:22:35]MH_SAM_APDU [01:22:35]CAPDU: 80 0D 03 02 [01:22:35]Write to MH i2c: E2 08 00 0C 3D 80 0D 03 02 00 00 00 00 C4 [01:22:35]Write i2c OK [01:22:35]MH_I2C_Read... [01:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:35]Read from MH i2c: E2 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 0B 00 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 0B 00 0C 3D 00 65 E6 F6 15 91 B7 45 92 90 00 3A [01:22:35]RAPDU: 65 E6 F6 15 91 B7 45 92 90 00 [01:22:35]wFMCommunicate OK [01:22:35]SAM_PROTO_SignData done [01:22:35]FM_MakeSignedData done [01:22:35]CreateOFDProtocolMessage [01:22:35]wFMCommunicate request_size=4 [01:22:35]MH_SAM_APDU [01:22:35]CAPDU: 80 11 00 00 [01:22:35]Write to MH i2c: E2 08 00 0D 3D 80 11 00 00 00 00 00 00 C4 [01:22:35]Write i2c OK [01:22:35]MH_I2C_Read... [01:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:35]Read from MH i2c: E2 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 17 00 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: E2 17 00 0D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [01:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:22:35]wFMCommunicate OK [01:22:35]CreateOFDProtocolMessage done [01:22:35]OFDSenderStorePacket 139851 [01:22:35]StoreOFDPacket docnum=139851 [01:22: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 10 01 00 00 13 CB 08 01 E0 0F 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 20 00 00 00 F4 03 04 00 5D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4B 22 02 00 35 04 06 00 72 FE 23 A8 28 15 65 E6 F6 15 91 B7 45 92 [01:22:35]CheckFolder [01:22:35]dirname=/storage/ofd_packets [01:22:35]CheckFolder done [01:22:35]ProducePacketName [01:22:35]name=ofd_packets/00139851 [01:22:35]NVStorageSaveData ofd_packets/00139851 [01:22:35]File name is /storage/ofd_packets/00139851 [01:22:35]Write 302 bytes [01:22:35]NVStorageSaveData done [01:22:35]OFDSenderStorePacket done [01:22:35]KKMCreateOFDPacket done [01:22:35]NVStorageSaveData kkm_last_timestamp [01:22:35]File name is /storage/kkm_last_timestamp [01:22:35]Write 4 bytes [01:22:35]NVStorageSaveData done [01:22:35]ExternCall_PrintAddStr [01:22:35]wPrintStart [01:22:35]Write to MH i2c: 01 00 00 0E 3D 4B [01:22:35]Write i2c OK [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: 01 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: 01 07 00 [01:22:35]MH_I2C_Read... [01:22:35]Read from MH i2c: 01 07 00 0E 3D 00 00 00 00 00 FF 0F 60 [01:22:35]RasterBufferAndPrint [01:22:35]line Счет N : (1)1095614 [01:22:35]line ИНН: 02508201610067 [01:22:35]line Контрольно-Кассовый Чек [01:22:35]line ПРОДАЖА [01:22:35]line ТРК (МРК, ГНК) : 11 [01:22:35]line Товар: 2710194210 [01:22:35]line ДТ(л)-К-2 [01:22:35]line 52.500 * 76.20 [01:22:35]line = 4000.50 [01:22:35]line НДС 12% НСП 1% [01:22:35]line > о реализуемом товаре [01:22:35]line ИТОГО: 4000.50 [01:22:35]line НСП 1% : 35.40 [01:22:35]line НДС 12% : 424.83 [01:22:35]line Наличными: 0.00 [01:22:35]line Безнал.: 4000.50 [01:22:35]line Место: АЗС № 101 "Партнер Нефть" [01:22:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:22:35]line СНО: Общий режим [01:22:35]line Чек 32 01.11.2024 01:22 [01:22:35]line Смена: 558 ФФД: 1.0 [01:22:35]line ЗНМ: 0300000081 [01:22:35]line РНМ: 0000000000091631 [01:22:35]line Версия ККМ: 001 [01:22:35]line Платежная система: Mbank [01:22:35]line ФМ: 0000000000874669 [01:22:35]line ФД: 139851 [01:22:35]line ФПД: 126435845482517 [01:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T012237&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139851&fm=126435845482517&tin=02508201610067®Number=0000000000091631&sum=400050 [01:22:35]written 0, free lines is 4095 [01:22:35]OFD Sender: Processing packet 139851 [packets to send 34, broken 33] [01:22:35]ProducePacketName [01:22:35]name=ofd_packets/00139851 [01:22:35]OFD Sender: To server: pG, [01:22:35]CommunicateWithHost lk.salyk.kg:30040 [01:22:35]ConnectInit lk.salyk.kg [01:22:36]Connected sock=10 [01:22: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 13 CB 08 01 E0 0F 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 20 00 00 00 F4 03 04 00 5D 2D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4B 22 02 00 35 04 06 00 72 FE 23 A8 28 15 65 E6 F6 15 91 B7 45 92 [01:22: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 4C F3 47 00 6F 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4B 22 02 00 F4 03 04 00 09 D9 23 67 B6 04 01 00 00 79 24 C2 4C 1C 4D 5B E0 [01:22:36]CommunicateWithHost err = 0 [01:22:36]CheckOFDResponse [01:22:36]1017 (14) - 77093643461234 [01:22:36]1041 (16) - 0000000000874669 [01:22:36]1040 (4) - 139851 [01:22:36]1012 (4) - 31.10.2024 19:22 [01:22:36]1206 (1) - 0 [01:22:36]OFD Sender: Remove packet 139851 [01:22:36]ProducePacketName [01:22:36]name=ofd_packets/00139851 [01:22:36]NVStorageDeleteData [01:22:36]Write to MH i2c: 01 00 00 37 3D 74 [01:22:36]Write i2c OK [01:22:36]MH_I2C_Read... [01:22:36]Read from MH i2c: 01 [01:22:36]MH_I2C_Read... [01:22:36]Read from MH i2c: 01 07 00 [01:22:36]MH_I2C_Read... [01:22:36]Read from MH i2c: 01 07 00 37 3D 00 00 00 00 00 0C 0D 94 [01:22:36]RasterBufferAndPrint [01:22:36]line [01:22:36]line [01:22:36]line [01:22:36]line [01:22:36]line [01:22:36]written 0, free lines is 3346 [01:22:36]MH_Cut [01:22:36]Write to MH i2c: D1 01 00 3E 3D 01 4D [01:22:36]Write i2c OK [01:22:36]MH_I2C_Read... [01:22:36]Read from MH i2c: D1 [01:22:36]MH_I2C_Read... [01:22:36]Read from MH i2c: D1 01 00 [01:22:36]MH_I2C_Read... [01:22:36]Read from MH i2c: D1 01 00 3E 3D 00 4C [01:22:36]Write to MH i2c: 01 00 00 3F 3D 7C [01:22:36]Write i2c OK [01:22:36]MH_I2C_Read... [01:22:36]OFD Sender: No OFD packet to send [01:22:37]*** Cut start [01:22:37]*** Partial cut [01:22:37]*** CUTSNS_PIN = 1 [01:22:37]*** CUTSNS_PIN = 0 [01:22:37]*** Brake cut motor [01:22:37]Read from MH i2c: 01 [01:22:37]MH_I2C_Read... [01:22:37]*** Stop cut motor [01:22:37]*** Cut end [01:22:37]Read from MH i2c: 01 07 00 [01:22:37]MH_I2C_Read... [01:22:37]Read from MH i2c: 01 07 00 3F 3D 00 00 00 00 00 FF 0F 91 [01:22:37]process_action close_receipt done [01:22:37]requested_data is exist [01:22:37]produce_requested_data [01:22:37]requested_item fm.sn is exist - process it [01:22:37]wFMCommunicate request_size=4 [01:22:37]MH_SAM_APDU [01:22:37]CAPDU: 80 11 00 00 [01:22:37]Write to MH i2c: E2 08 00 40 3D 80 11 00 00 00 00 00 00 F7 [01:22:37]Write i2c OK [01:22:37]MH_I2C_Read... [01:22:37]Read from MH i2c: E2 [01:22:37]MH_I2C_Read... [01:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:37]Read from MH i2c: E2 17 00 [01:22:37]MH_I2C_Read... [01:22:37]Read from MH i2c: E2 17 00 40 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 52 [01:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:22:37]wFMCommunicate OK [01:22:37]requested_item fd.num is exist - process it [01:22:37]SAM_PROTO_GetFieldsCounters [01:22:37]wFMCommunicate request_size=4 [01:22:37]MH_SAM_APDU [01:22:37]CAPDU: 80 13 00 00 [01:22:37]Write to MH i2c: E2 08 00 41 3D 80 13 00 00 00 00 00 00 FA [01:22:37]Write i2c OK [01:22:37]MH_I2C_Read... [01:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:37]Read from MH i2c: E2 [01:22:37]MH_I2C_Read... [01:22:37]Read from MH i2c: E2 62 00 [01:22:37]MH_I2C_Read... [01:22:37]Read from MH i2c: E2 62 00 41 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [01:22: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 4B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:22:37]wFMCommunicate OK [01:22:37]SAM_PROTO_GetFieldsCounters done [01:22:37]requested_item shift.num is exist - process it [01:22:37]requested_item shift.opened is exist - process it [01:22:37]req_shift_opened [01:22:37]FM_GetShiftState [01:22:37]SAM_PROTO_GetShiftState [01:22:37]wFMCommunicate request_size=4 [01:22:37]MH_SAM_APDU [01:22:37]CAPDU: 80 13 01 00 [01:22:37]Write to MH i2c: E2 08 00 42 3D 80 13 01 00 00 00 00 00 FC [01:22:37]Write i2c OK [01:22:37]MH_I2C_Read... [01:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:37]Read from MH i2c: E2 [01:22:37]MH_I2C_Read... [01:22:37]Read from MH i2c: E2 0E 00 [01:22:37]MH_I2C_Read... [01:22:37]Read from MH i2c: E2 0E 00 42 3D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 35 [01:22:37]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:22:37]wFMCommunicate OK [01:22:37]SAM_PROTO_GetShiftState done [01:22:37]FM_GetShiftState done [01:22:37]req_shift_opened done [01:22:37]requested_item shift.open_date is exist - process it [01:22:37]req_shift_open_date [01:22:37]req_shift_open_date done [01:22:37]produce_requested_data done [01:22:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139851,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:22:37]process_action_free close_receipt [01:22:37]json_value_free [01:22:37]json_value_free done [01:22:37]process_json_proto returns [01:22:37]Send response to host [01:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139851,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:22:37]free response buf [01:22:37]execute_script done [01:22:37]execute_script returns [01:22:37]free content buf [01:22:37]Sock 9.Close socket [01:22:37]Sock 9.Thread stoped [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:02]accept exits with 7 [01:31:02]New connection [01:31:02]New thread 3066654052 created [01:31:02]Thread 3066510692 joined [01:31:02]Waiting for new connection... [01:31:02] Sock 7.Parse request [01:31:02]Sock 7.Check first char [01:31:02]Sock 7.First char is OK [01:31:02]request: POST /json_proto HTTP/1.0 [01:31:02]Method: POST [01:31:02]URL: /json_proto [01:31:02]Method is POST - this is cgi request [01:31:02]url: /json_proto [01:31:02]query_string will be loaded in cgi processing [01:31:02]execute_cgi json_proto POST (null) [01:31:02]execute_cgi path=json_proto method=POST [01:31:02]POST find Content-Length [01:31:02]Host: 172.17.50.196:8080 [01:31:02]Content-Length: 775 [01:31:02]Content-Type: application/json [01:31:02] [01:31:02]POST finish read [01:31:02]Found Content-Length = 775 [01:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095618", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:02]execute_script... [01:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095618", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:02]POST & json_proto [01:31:02]process_json_proto [01:31:02]json parsed OK: [01:31:02]protocol is kg_v1.0 [01:31:02]action value=close_receipt [01:31:02]process_action close_receipt [01:31:02]cmd_close_receipt [01:31:02]MH_GetDate [01:31:02]Write to MH i2c: F0 00 00 43 3D 6F [01:31:02]Write i2c OK [01:31:02]MH_I2C_Read... [01:31:02]Read from MH i2c: F0 [01:31:02]MH_I2C_Read... [01:31:02]Read from MH i2c: F0 09 00 [01:31:02]MH_I2C_Read... [01:31:02]Read from MH i2c: F0 09 00 43 3D 00 59 2F 24 67 72 0D 1C 67 8D [01:31:02]GetLastDocTimeStamp 1730424157 [01:31:02]current date 1730424665 [01:31:02]FM_GetShiftState [01:31:02]SAM_PROTO_GetShiftState [01:31:02]wFMCommunicate request_size=4 [01:31:02]MH_SAM_APDU [01:31:02]CAPDU: 80 13 01 00 [01:31:02]Write to MH i2c: E2 08 00 44 3D 80 13 01 00 00 00 00 00 FE [01:31:02]Write i2c OK [01:31:02]MH_I2C_Read... [01:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:02]Read from MH i2c: E2 [01:31:02]MH_I2C_Read... [01:31:02]Read from MH i2c: E2 0E 00 [01:31:02]MH_I2C_Read... [01:31:02]Read from MH i2c: E2 0E 00 44 3D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 37 [01:31:02]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:31:02]wFMCommunicate OK [01:31:02]SAM_PROTO_GetShiftState done [01:31:02]FM_GetShiftState done [01:31:02]opened in 1730419081 [01:31:02]opened+sec_in_day 1730505481 [01:31:02]quantity*price = 300075 [01:31:02]sum+1 = 300077 [01:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 33 01.11.2024 01:31 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139852 ФПД: 101651675337173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T013105&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139852&fm=101651675337173&tin=02508201610067®Number=0000000000091631&sum=300076 [01:31:03]StoreToDocumentArchive [01:31:03]shift 558 fd 139852 [01:31:03]save to /storage/0558/doc_00139852 [01:31:03]save last doc name /storage/0558/doc_00139852 to /storage/kkm_last_doc_name [01:31:03]save OK [01:31:03]Clear old archive folders... [01:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:31:03]tlvbuf is B6E91AB0 [01:31:03]SAM_PROTO_ClearQueue [01:31:03]wFMCommunicate request_size=4 [01:31:03]MH_SAM_APDU [01:31:03]CAPDU: 80 09 00 00 [01:31:03]Write to MH i2c: E2 08 00 51 3D 80 09 00 00 00 00 00 00 00 [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 51 3D 00 90 00 02 [01:31:03]RAPDU: 90 00 [01:31:03]wFMCommunicate OK [01:31:03]SAM_PROTO_ClearQueue done [01:31:03]KKMCreateOFDPacket [01:31:03]OFDProtocolAddRootSTLVToBuf [01:31:03]FM_MakeSignedData [01:31:03]FM_MakeSignedData [01:31:03]SAM_PROTO_SignData [01:31:03]wFMCommunicate request_size=4 [01:31:03]MH_SAM_APDU [01:31:03]CAPDU: 80 0D 01 02 [01:31:03]Write to MH i2c: E2 08 00 52 3D 80 0D 01 02 00 00 00 00 08 [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:31:03]Read from MH i2c: E2 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: E2 03 00 52 3D 00 90 00 03 [01:31:03]RAPDU: 90 00 [01:31:03]wFMCommunicate OK [01:31:03]wFMCommunicate request_size=255 [01:31:03]MH_SAM_APDU [01:31:03]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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 59 2F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 22 02 00 35 04 06 00 [01:31:03]Write to MH i2c: E2 02 01 53 3D 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 59 2F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 22 02 00 35 04 06 00 00 00 1A [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:04]Read from MH i2c: E2 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 03 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 03 00 53 3D 00 90 00 04 [01:31:04]RAPDU: 90 00 [01:31:04]wFMCommunicate OK [01:31:04]wFMCommunicate request_size=11 [01:31:04]MH_SAM_APDU [01:31:04]CAPDU: 80 0D 02 02 06 5C 73 9F FF D1 D5 [01:31:04]Write to MH i2c: E2 0E 00 54 3D 80 0D 02 02 06 00 5C 73 9F FF D1 D5 00 00 2A [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:04]Read from MH i2c: E2 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 03 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 03 00 54 3D 00 90 00 05 [01:31:04]RAPDU: 90 00 [01:31:04]wFMCommunicate OK [01:31:04]wFMCommunicate request_size=4 [01:31:04]MH_SAM_APDU [01:31:04]CAPDU: 80 0D 03 02 [01:31:04]Write to MH i2c: E2 08 00 55 3D 80 0D 03 02 00 00 00 00 0D [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:31:04]Read from MH i2c: E2 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 0B 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 0B 00 55 3D 00 A6 FB 8D DE DA D1 19 31 90 00 0F [01:31:04]RAPDU: A6 FB 8D DE DA D1 19 31 90 00 [01:31:04]wFMCommunicate OK [01:31:04]SAM_PROTO_SignData done [01:31:04]FM_MakeSignedData done [01:31:04]CreateOFDProtocolMessage [01:31:04]wFMCommunicate request_size=4 [01:31:04]MH_SAM_APDU [01:31:04]CAPDU: 80 11 00 00 [01:31:04]Write to MH i2c: E2 08 00 56 3D 80 11 00 00 00 00 00 00 0D [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:04]Read from MH i2c: E2 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 17 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: E2 17 00 56 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 68 [01:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:31:04]wFMCommunicate OK [01:31:04]CreateOFDProtocolMessage done [01:31:04]OFDSenderStorePacket 139852 [01:31:04]StoreOFDPacket docnum=139852 [01:31:04]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 94 3B 08 01 7F 7C 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 59 2F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 22 02 00 35 04 06 00 5C 73 9F FF D1 D5 A6 FB 8D DE DA D1 19 31 [01:31:04]CheckFolder [01:31:04]dirname=/storage/ofd_packets [01:31:04]CheckFolder done [01:31:04]ProducePacketName [01:31:04]name=ofd_packets/00139852 [01:31:04]NVStorageSaveData ofd_packets/00139852 [01:31:04]File name is /storage/ofd_packets/00139852 [01:31:04]Write 302 bytes [01:31:04]NVStorageSaveData done [01:31:04]OFDSenderStorePacket done [01:31:04]KKMCreateOFDPacket done [01:31:04]NVStorageSaveData kkm_last_timestamp [01:31:04]File name is /storage/kkm_last_timestamp [01:31:04]Write 4 bytes [01:31:04]NVStorageSaveData done [01:31:04]ExternCall_PrintAddStr [01:31:04]wPrintStart [01:31:04]Write to MH i2c: 01 00 00 57 3D 94 [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 07 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 07 00 57 3D 00 00 00 00 00 FF 0F A9 [01:31:04]RasterBufferAndPrint [01:31:04]line Счет N : (1)1095618 [01:31:04]line ИНН: 02508201610067 [01:31:04]line Контрольно-Кассовый Чек [01:31:04]line ПРОДАЖА [01:31:04]line ТРК (МРК, ГНК) : 21 [01:31:04]line Товар: 2710194210 [01:31:04]line ДТ(л)-К-2 [01:31:04]line 39.380 * 76.20 [01:31:04]line = 3000.76 [01:31:04]line НДС 12% НСП 1% [01:31:04]line > о реализуемом товаре [01:31:04]line ИТОГО: 3000.76 [01:31:04]line НСП 1% : 26.55 [01:31:04]line НДС 12% : 318.66 [01:31:04]line Наличными: 0.00 [01:31:04]line Безнал.: 3000.76 [01:31:04]line Место: АЗС № 101 "Партнер Нефть" [01:31:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:31:04]line СНО: Общий режим [01:31:04]line Чек 33 01.11.2024 01:31 [01:31:04]line Смена: 558 ФФД: 1.0 [01:31:04]line ЗНМ: 0300000081 [01:31:04]line РНМ: 0000000000091631 [01:31:04]line Версия ККМ: 001 [01:31:04]line Платежная система: Mbank [01:31:04]line ФМ: 0000000000874669 [01:31:04]line ФД: 139852 [01:31:04]line ФПД: 101651675337173 [01:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T013105&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139852&fm=101651675337173&tin=02508201610067®Number=0000000000091631&sum=300076 [01:31:04]OFD Sender: Processing packet 139852 [packets to send 34, broken 33] [01:31:04]ProducePacketName [01:31:04]name=ofd_packets/00139852 [01:31:04]OFD Sender: To server: pG, [01:31:04]CommunicateWithHost lk.salyk.kg:30040 [01:31:04]ConnectInit lk.salyk.kg [01:31:04]written 0, free lines is 4095 [01:31:04]Connected sock=10 [01:31: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 10 01 00 00 94 3B 08 01 7F 7C 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 59 2F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 22 02 00 35 04 06 00 5C 73 9F FF D1 D5 A6 FB 8D DE DA D1 19 31 [01:31: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 C9 5D 47 00 38 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4C 22 02 00 F4 03 04 00 06 DB 23 67 B6 04 01 00 00 81 50 55 68 F4 A6 D9 DA [01:31:04]CommunicateWithHost err = 0 [01:31:04]CheckOFDResponse [01:31:04]1017 (14) - 77093643461234 [01:31:04]1041 (16) - 0000000000874669 [01:31:04]1040 (4) - 139852 [01:31:04]1012 (4) - 31.10.2024 19:31 [01:31:04]1206 (1) - 0 [01:31:04]OFD Sender: Remove packet 139852 [01:31:04]ProducePacketName [01:31:04]name=ofd_packets/00139852 [01:31:04]NVStorageDeleteData [01:31:04]Write to MH i2c: 01 00 00 80 3D BD [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 07 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: 01 07 00 80 3D 00 00 00 00 00 0F 0D E0 [01:31:04]RasterBufferAndPrint [01:31:04]line [01:31:04]line [01:31:04]line [01:31:04]line [01:31:04]line [01:31:04]written 0, free lines is 3349 [01:31:04]MH_Cut [01:31:04]Write to MH i2c: D1 01 00 87 3D 01 96 [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: D1 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: D1 01 00 [01:31:04]MH_I2C_Read... [01:31:04]Read from MH i2c: D1 01 00 87 3D 00 95 [01:31:04]Write to MH i2c: 01 00 00 88 3D C5 [01:31:04]Write i2c OK [01:31:04]MH_I2C_Read... [01:31:05]OFD Sender: No OFD packet to send [01:31:05]*** Cut start [01:31:05]*** Partial cut [01:31:05]*** CUTSNS_PIN = 1 [01:31:05]*** CUTSNS_PIN = 0 [01:31:05]*** Brake cut motor [01:31:06]Read from MH i2c: 01 [01:31:06]MH_I2C_Read... [01:31:06]*** Stop cut motor [01:31:06]*** Cut end [01:31:06]Read from MH i2c: 01 07 00 [01:31:06]MH_I2C_Read... [01:31:06]Read from MH i2c: 01 07 00 88 3D 00 00 00 00 00 FF 0F DA [01:31:06]process_action close_receipt done [01:31:06]requested_data is exist [01:31:06]produce_requested_data [01:31:06]requested_item fm.sn is exist - process it [01:31:06]wFMCommunicate request_size=4 [01:31:06]MH_SAM_APDU [01:31:06]CAPDU: 80 11 00 00 [01:31:06]Write to MH i2c: E2 08 00 89 3D 80 11 00 00 00 00 00 00 40 [01:31:06]Write i2c OK [01:31:06]MH_I2C_Read... [01:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:06]Read from MH i2c: E2 [01:31:06]MH_I2C_Read... [01:31:06]Read from MH i2c: E2 17 00 [01:31:06]MH_I2C_Read... [01:31:06]Read from MH i2c: E2 17 00 89 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9B [01:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:31:06]wFMCommunicate OK [01:31:06]requested_item fd.num is exist - process it [01:31:06]SAM_PROTO_GetFieldsCounters [01:31:06]wFMCommunicate request_size=4 [01:31:06]MH_SAM_APDU [01:31:06]CAPDU: 80 13 00 00 [01:31:06]Write to MH i2c: E2 08 00 8A 3D 80 13 00 00 00 00 00 00 43 [01:31:06]Write i2c OK [01:31:06]MH_I2C_Read... [01:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:06]Read from MH i2c: E2 [01:31:06]MH_I2C_Read... [01:31:06]Read from MH i2c: E2 62 00 [01:31:06]MH_I2C_Read... [01:31:06]Read from MH i2c: E2 62 00 8A 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [01:31: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 4C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:31:06]wFMCommunicate OK [01:31:06]SAM_PROTO_GetFieldsCounters done [01:31:06]requested_item shift.num is exist - process it [01:31:06]requested_item shift.opened is exist - process it [01:31:06]req_shift_opened [01:31:06]FM_GetShiftState [01:31:06]SAM_PROTO_GetShiftState [01:31:06]wFMCommunicate request_size=4 [01:31:06]MH_SAM_APDU [01:31:06]CAPDU: 80 13 01 00 [01:31:06]Write to MH i2c: E2 08 00 8B 3D 80 13 01 00 00 00 00 00 45 [01:31:06]Write i2c OK [01:31:06]MH_I2C_Read... [01:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:06]Read from MH i2c: E2 [01:31:06]MH_I2C_Read... [01:31:06]Read from MH i2c: E2 0E 00 [01:31:06]MH_I2C_Read... [01:31:06]Read from MH i2c: E2 0E 00 8B 3D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7E [01:31:06]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:31:06]wFMCommunicate OK [01:31:06]SAM_PROTO_GetShiftState done [01:31:06]FM_GetShiftState done [01:31:06]req_shift_opened done [01:31:06]requested_item shift.open_date is exist - process it [01:31:06]req_shift_open_date [01:31:06]req_shift_open_date done [01:31:06]produce_requested_data done [01:31:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139852,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:31:06]process_action_free close_receipt [01:31:06]json_value_free [01:31:06]json_value_free done [01:31:06]process_json_proto returns [01:31:06]Send response to host [01:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139852,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:31:06]free response buf [01:31:06]execute_script done [01:31:06]execute_script returns [01:31:06]free content buf [01:31:06]Sock 7.Close socket [01:31:06]Sock 7.Thread stoped [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]ConnectInit Can't connect to host [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:08]accept exits with 9 [01:41:08]New connection [01:41:08]New thread 3066510692 created [01:41:08]Thread 3066654052 joined [01:41:08]Waiting for new connection... [01:41:08] Sock 9.Parse request [01:41:08]Sock 9.Check first char [01:41:08]Sock 9.First char is OK [01:41:08]request: POST /json_proto HTTP/1.0 [01:41:08]Method: POST [01:41:08]URL: /json_proto [01:41:08]Method is POST - this is cgi request [01:41:08]url: /json_proto [01:41:08]query_string will be loaded in cgi processing [01:41:08]execute_cgi json_proto POST (null) [01:41:08]execute_cgi path=json_proto method=POST [01:41:08]POST find Content-Length [01:41:08]Host: 172.17.50.196:8080 [01:41:08]Content-Length: 823 [01:41:08]Content-Type: application/json [01:41:08] [01:41:08]POST finish read [01:41:08]Found Content-Length = 823 [01:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095622", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:08]execute_script... [01: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 : (1)1095622", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:08]POST & json_proto [01:41:08]process_json_proto [01:41:08]json parsed OK: [01:41:08]protocol is kg_v1.0 [01:41:08]action value=close_receipt [01:41:08]process_action close_receipt [01:41:08]cmd_close_receipt [01:41:08]MH_GetDate [01:41:08]Write to MH i2c: F0 00 00 8C 3D B8 [01:41:08]Write i2c OK [01:41:08]MH_I2C_Read... [01:41:08]Read from MH i2c: F0 [01:41:08]MH_I2C_Read... [01:41:08]Read from MH i2c: F0 09 00 [01:41:08]MH_I2C_Read... [01:41:08]Read from MH i2c: F0 09 00 8C 3D 00 B7 31 24 67 72 0D 1C 67 36 [01:41:08]GetLastDocTimeStamp 1730424665 [01:41:08]current date 1730425271 [01:41:08]FM_GetShiftState [01:41:08]SAM_PROTO_GetShiftState [01:41:08]wFMCommunicate request_size=4 [01:41:08]MH_SAM_APDU [01:41:08]CAPDU: 80 13 01 00 [01:41:08]Write to MH i2c: E2 08 00 8D 3D 80 13 01 00 00 00 00 00 47 [01:41:08]Write i2c OK [01:41:08]MH_I2C_Read... [01:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:08]Read from MH i2c: E2 [01:41:08]MH_I2C_Read... [01:41:08]Read from MH i2c: E2 0E 00 [01:41:08]MH_I2C_Read... [01:41:08]Read from MH i2c: E2 0E 00 8D 3D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 80 [01:41:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:41:08]wFMCommunicate OK [01:41:08]SAM_PROTO_GetShiftState done [01:41:08]FM_GetShiftState done [01:41:08]opened in 1730419081 [01:41:08]opened+sec_in_day 1730505481 [01:41:08]quantity*price = 200002 [01:41:08]sum+1 = 200004 [01:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.03 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.03 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 34 01.11.2024 01:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874669 ФД: 139853 ФПД: 130975354276021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014111&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139853&fm=130975354276021&tin=02508201610067®Number=0000000000091631&sum=200003 [01:41:09]StoreToDocumentArchive [01:41:09]shift 558 fd 139853 [01:41:09]save to /storage/0558/doc_00139853 [01:41:09]save last doc name /storage/0558/doc_00139853 to /storage/kkm_last_doc_name [01:41:09]save OK [01:41:09]Clear old archive folders... [01:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:41:09]tlvbuf is 00B57000 [01:41:09]SAM_PROTO_ClearQueue [01:41:09]wFMCommunicate request_size=4 [01:41:09]MH_SAM_APDU [01:41:09]CAPDU: 80 09 00 00 [01:41:09]Write to MH i2c: E2 08 00 9A 3D 80 09 00 00 00 00 00 00 49 [01:41:09]Write i2c OK [01:41:09]MH_I2C_Read... [01:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:41:09]Read from MH i2c: E2 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 9A 3D 00 90 00 4B [01:41:09]RAPDU: 90 00 [01:41:09]wFMCommunicate OK [01:41:09]SAM_PROTO_ClearQueue done [01:41:09]KKMCreateOFDPacket [01:41:09]OFDProtocolAddRootSTLVToBuf [01:41:09]FM_MakeSignedData [01:41:09]FM_MakeSignedData [01:41:09]SAM_PROTO_SignData [01:41:09]wFMCommunicate request_size=4 [01:41:09]MH_SAM_APDU [01:41:09]CAPDU: 80 0D 01 02 [01:41:09]Write to MH i2c: E2 08 00 9B 3D 80 0D 01 02 00 00 00 00 51 [01:41:09]Write i2c OK [01:41:09]MH_I2C_Read... [01:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:41:09]Read from MH i2c: E2 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 9B 3D 00 90 00 4C [01:41:09]RAPDU: 90 00 [01:41:09]wFMCommunicate OK [01:41:09]wFMCommunicate request_size=255 [01:41:09]MH_SAM_APDU [01:41:09]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 22 00 00 00 F4 03 04 00 B7 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4D 22 02 00 35 04 06 00 77 1F [01:41:09]Write to MH i2c: E2 02 01 9C 3D 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 22 00 00 00 F4 03 04 00 B7 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4D 22 02 00 35 04 06 00 77 1F 00 00 CE [01:41:09]Write i2c OK [01:41:09]MH_I2C_Read... [01:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:09]Read from MH i2c: E2 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 9C 3D 00 90 00 4D [01:41:09]RAPDU: 90 00 [01:41:09]wFMCommunicate OK [01:41:09]wFMCommunicate request_size=9 [01:41:09]MH_SAM_APDU [01:41:09]CAPDU: 80 0D 02 02 04 13 77 48 B5 [01:41:09]Write to MH i2c: E2 0C 00 9D 3D 80 0D 02 02 04 00 13 77 48 B5 00 00 E3 [01:41:09]Write i2c OK [01:41:09]MH_I2C_Read... [01:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:09]Read from MH i2c: E2 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 03 00 9D 3D 00 90 00 4E [01:41:09]RAPDU: 90 00 [01:41:09]wFMCommunicate OK [01:41:09]wFMCommunicate request_size=4 [01:41:09]MH_SAM_APDU [01:41:09]CAPDU: 80 0D 03 02 [01:41:09]Write to MH i2c: E2 08 00 9E 3D 80 0D 03 02 00 00 00 00 56 [01:41:09]Write i2c OK [01:41:09]MH_I2C_Read... [01:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:41:09]Read from MH i2c: E2 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 0B 00 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 0B 00 9E 3D 00 8D 95 B4 21 1D AF 38 EC 90 00 3E [01:41:09]RAPDU: 8D 95 B4 21 1D AF 38 EC 90 00 [01:41:09]wFMCommunicate OK [01:41:09]SAM_PROTO_SignData done [01:41:09]FM_MakeSignedData done [01:41:09]CreateOFDProtocolMessage [01:41:09]wFMCommunicate request_size=4 [01:41:09]MH_SAM_APDU [01:41:09]CAPDU: 80 11 00 00 [01:41:09]Write to MH i2c: E2 08 00 9F 3D 80 11 00 00 00 00 00 00 56 [01:41:09]Write i2c OK [01:41:09]MH_I2C_Read... [01:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:09]Read from MH i2c: E2 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 17 00 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: E2 17 00 9F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [01:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:41:09]wFMCommunicate OK [01:41:09]CreateOFDProtocolMessage done [01:41:09]OFDSenderStorePacket 139853 [01:41:09]StoreOFDPacket docnum=139853 [01:41: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 6F 17 06 01 52 61 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 22 00 00 00 F4 03 04 00 B7 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4D 22 02 00 35 04 06 00 77 1F 13 77 48 B5 8D 95 B4 21 1D AF 38 EC [01:41:09]CheckFolder [01:41:09]dirname=/storage/ofd_packets [01:41:09]CheckFolder done [01:41:09]ProducePacketName [01:41:09]name=ofd_packets/00139853 [01:41:09]NVStorageSaveData ofd_packets/00139853 [01:41:09]File name is /storage/ofd_packets/00139853 [01:41:09]Write 300 bytes [01:41:09]NVStorageSaveData done [01:41:09]OFDSenderStorePacket done [01:41:09]KKMCreateOFDPacket done [01:41:09]NVStorageSaveData kkm_last_timestamp [01:41:09]File name is /storage/kkm_last_timestamp [01:41:09]Write 4 bytes [01:41:09]NVStorageSaveData done [01:41:09]ExternCall_PrintAddStr [01:41:09]wPrintStart [01:41:09]Write to MH i2c: 01 00 00 A0 3D DD [01:41:09]OFD Sender: Processing packet 139853 [packets to send 34, broken 33] [01:41:09]ProducePacketName [01:41:09]name=ofd_packets/00139853 [01:41:09]OFD Sender: To server: pG, [01:41:09]CommunicateWithHost lk.salyk.kg:30040 [01:41:09]ConnectInit lk.salyk.kg [01:41:09]Write i2c OK [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: 01 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: 01 07 00 [01:41:09]MH_I2C_Read... [01:41:09]Read from MH i2c: 01 07 00 A0 3D 00 00 00 00 00 FF 0F F2 [01:41:09]RasterBufferAndPrint [01:41:09]line Счет N : (1)1095622 [01:41:09]line ИНН: 02508201610067 [01:41:09]line Контрольно-Кассовый Чек [01:41:09]line ПРОДАЖА [01:41:09]line ТРК (МРК, ГНК) : 81 [01:41:09]line Товар: 2711190000 [01:41:09]line ГАЗ-К-5 [01:41:09]line 52.220 * 38.30 [01:41:09]line = 2000.03 [01:41:09]line НДС 12% НСП 1% [01:41:09]line > о реализуемом товаре [01:41:09]line ИТОГО: 2000.03 [01:41:09]line НСП 1% : 17.70 [01:41:09]line НДС 12% : 212.39 [01:41:09]line Наличными: 0.00 [01:41:09]line Безнал.: 2000.03 [01:41:09]line Место: АЗС № 101 "Партнер Нефть" [01:41:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:41:09]line СНО: Общий режим [01:41:09]line Чек 34 01.11.2024 01:41 [01:41:09]line Смена: 558 ФФД: 1.0 [01:41:09]line ЗНМ: 0300000081 [01:41:09]line РНМ: 0000000000091631 [01:41:09]line Версия ККМ: 001 [01:41:09]line Платежная система: Бакай Банк [01:41:09]line ФМ: 0000000000874669 [01:41:09]line ФД: 139853 [01:41:09]line ФПД: 130975354276021 [01:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014111&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139853&fm=130975354276021&tin=02508201610067®Number=0000000000091631&sum=200003 [01:41:10]Connected sock=11 [01: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 0E 01 00 00 6F 17 06 01 52 61 written 0, free lines is 4095 [01:41:10]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 22 00 00 00 F4 03 04 00 B7 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4D 22 02 00 35 04 06 00 77 1F 13 77 48 B5 8D 95 B4 21 1D AF 38 EC [01:41: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 CC 85 47 00 14 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 4D 22 02 00 F4 03 04 00 63 DD 23 67 B6 04 01 00 00 84 4E A4 86 37 B6 34 7F [01:41:10]CommunicateWithHost err = 0 [01:41:10]CheckOFDResponse [01:41:10]1017 (14) - 77093643461234 [01:41:10]1041 (16) - 0000000000874669 [01:41:10]1040 (4) - 139853 [01:41:10]1012 (4) - 31.10.2024 19:41 [01:41:10]1206 (1) - 0 [01:41:10]OFD Sender: Remove packet 139853 [01:41:10]ProducePacketName [01:41:10]name=ofd_packets/00139853 [01:41:10]NVStorageDeleteData [01:41:10]Write to MH i2c: 01 00 00 CA 3D 07 [01:41:10]Write i2c OK [01:41:10]MH_I2C_Read... [01:41:10]Read from MH i2c: 01 [01:41:10]MH_I2C_Read... [01:41:10]Read from MH i2c: 01 07 00 [01:41:10]MH_I2C_Read... [01:41:10]Read from MH i2c: 01 07 00 CA 3D 00 00 00 00 00 F8 0C 12 [01:41:10]RasterBufferAndPrint [01:41:10]line [01:41:10]line [01:41:10]line [01:41:10]line [01:41:10]line [01:41:10]written 0, free lines is 3327 [01:41:10]MH_Cut [01:41:10]Write to MH i2c: D1 01 00 D1 3D 01 E0 [01:41:10]Write i2c OK [01:41:10]MH_I2C_Read... [01:41:10]Read from MH i2c: D1 [01:41:10]MH_I2C_Read... [01:41:10]Read from MH i2c: D1 01 00 [01:41:10]MH_I2C_Read... [01:41:10]Read from MH i2c: D1 01 00 D1 3D 00 DF [01:41:10]Write to MH i2c: 01 00 00 D2 3D 0F [01:41:10]Write i2c OK [01:41:10]MH_I2C_Read... [01:41:10]OFD Sender: No OFD packet to send [01:41:11]*** Cut start [01:41:11]*** Partial cut [01:41:11]*** CUTSNS_PIN = 1 [01:41:11]*** CUTSNS_PIN = 0 [01:41:11]*** Brake cut motor [01:41:12]Read from MH i2c: 01 [01:41:12]MH_I2C_Read... [01:41:12]*** Stop cut motor [01:41:12]*** Cut end [01:41:12]Read from MH i2c: 01 07 00 [01:41:12]MH_I2C_Read... [01:41:12]Read from MH i2c: 01 07 00 D2 3D 00 00 00 00 00 FF 0F 24 [01:41:12]process_action close_receipt done [01:41:12]requested_data is exist [01:41:12]produce_requested_data [01:41:12]requested_item fm.sn is exist - process it [01:41:12]wFMCommunicate request_size=4 [01:41:12]MH_SAM_APDU [01:41:12]CAPDU: 80 11 00 00 [01:41:12]Write to MH i2c: E2 08 00 D3 3D 80 11 00 00 00 00 00 00 8A [01:41:12]Write i2c OK [01:41:12]MH_I2C_Read... [01:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:12]Read from MH i2c: E2 [01:41:12]MH_I2C_Read... [01:41:12]Read from MH i2c: E2 17 00 [01:41:12]MH_I2C_Read... [01:41:12]Read from MH i2c: E2 17 00 D3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E5 [01: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 [01:41:12]wFMCommunicate OK [01:41:12]requested_item fd.num is exist - process it [01:41:12]SAM_PROTO_GetFieldsCounters [01:41:12]wFMCommunicate request_size=4 [01:41:12]MH_SAM_APDU [01:41:12]CAPDU: 80 13 00 00 [01:41:12]Write to MH i2c: E2 08 00 D4 3D 80 13 00 00 00 00 00 00 8D [01:41:12]Write i2c OK [01:41:12]MH_I2C_Read... [01:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:12]Read from MH i2c: E2 [01:41:12]MH_I2C_Read... [01:41:12]Read from MH i2c: E2 62 00 [01:41:12]MH_I2C_Read... [01:41:12]Read from MH i2c: E2 62 00 D4 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [01: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 4D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:41:12]wFMCommunicate OK [01:41:12]SAM_PROTO_GetFieldsCounters done [01:41:12]requested_item shift.num is exist - process it [01:41:12]requested_item shift.opened is exist - process it [01:41:12]req_shift_opened [01:41:12]FM_GetShiftState [01:41:12]SAM_PROTO_GetShiftState [01:41:12]wFMCommunicate request_size=4 [01:41:12]MH_SAM_APDU [01:41:12]CAPDU: 80 13 01 00 [01:41:12]Write to MH i2c: E2 08 00 D5 3D 80 13 01 00 00 00 00 00 8F [01:41:12]Write i2c OK [01:41:12]MH_I2C_Read... [01:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:12]Read from MH i2c: E2 [01:41:12]MH_I2C_Read... [01:41:12]Read from MH i2c: E2 0E 00 [01:41:12]MH_I2C_Read... [01:41:12]Read from MH i2c: E2 0E 00 D5 3D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C8 [01:41:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:41:12]wFMCommunicate OK [01:41:12]SAM_PROTO_GetShiftState done [01:41:12]FM_GetShiftState done [01:41:12]req_shift_opened done [01:41:12]requested_item shift.open_date is exist - process it [01:41:12]req_shift_open_date [01:41:12]req_shift_open_date done [01:41:12]produce_requested_data done [01:41:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139853,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:41:12]process_action_free close_receipt [01:41:12]json_value_free [01:41:12]json_value_free done [01:41:12]process_json_proto returns [01:41:12]Send response to host [01:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139853,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:41:12]free response buf [01:41:12]execute_script done [01:41:12]execute_script returns [01:41:12]free content buf [01:41:12]Sock 9.Close socket [01:41:12]Sock 9.Thread stoped [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:08]accept exits with 10 [01:42:08]New connection [01:42:08]New thread 3066654052 created [01:42:08]Thread 3066510692 joined [01:42:08]Waiting for new connection... [01:42:08] Sock 10.Parse request [01:42:08]Sock 10.Check first char [01:42:08]Sock 10.First char is OK [01:42:08]request: POST /json_proto HTTP/1.0 [01:42:08]Method: POST [01:42:08]URL: /json_proto [01:42:08]Method is POST - this is cgi request [01:42:08]url: /json_proto [01:42:08]query_string will be loaded in cgi processing [01:42:08]execute_cgi json_proto POST (null) [01:42:08]execute_cgi path=json_proto method=POST [01:42:08]POST find Content-Length [01:42:08]Host: 172.17.50.196:8080 [01:42:08]Content-Length: 988 [01:42:08]Content-Type: application/json [01:42:08] [01:42:08]POST finish read [01:42:08]Found Content-Length = 988 [01:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335675", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:08]execute_script... [01:42: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)335675", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:08]POST & json_proto [01:42:08]process_json_proto [01:42:08]json parsed OK: [01:42:08]protocol is kg_v1.0 [01:42:08]action value=close_receipt [01:42:08]process_action close_receipt [01:42:08]cmd_close_receipt [01:42:08]MH_GetDate [01:42:08]Write to MH i2c: F0 00 00 D6 3D 02 [01:42:08]Write i2c OK [01:42:08]MH_I2C_Read... [01:42:08]Read from MH i2c: F0 [01:42:08]MH_I2C_Read... [01:42:08]Read from MH i2c: F0 09 00 [01:42:08]MH_I2C_Read... [01:42:08]Read from MH i2c: F0 09 00 D6 3D 00 F3 31 24 67 72 0D 1C 67 BC [01:42:08]GetLastDocTimeStamp 1730425271 [01:42:08]current date 1730425331 [01:42:08]FM_GetShiftState [01:42:08]SAM_PROTO_GetShiftState [01:42:08]wFMCommunicate request_size=4 [01:42:08]MH_SAM_APDU [01:42:08]CAPDU: 80 13 01 00 [01:42:08]Write to MH i2c: E2 08 00 D7 3D 80 13 01 00 00 00 00 00 91 [01:42:08]Write i2c OK [01:42:08]MH_I2C_Read... [01:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:08]Read from MH i2c: E2 [01:42:08]MH_I2C_Read... [01:42:08]Read from MH i2c: E2 0E 00 [01:42:08]MH_I2C_Read... [01:42:08]Read from MH i2c: E2 0E 00 D7 3D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 CA [01:42:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:42:08]wFMCommunicate OK [01:42:08]SAM_PROTO_GetShiftState done [01:42:08]FM_GetShiftState done [01:42:08]opened in 1730419081 [01:42:08]opened+sec_in_day 1730505481 [01:42:08]quantity*price = 9500 [01:42:08]sum+1 = 9501 [01:42:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.72 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 35 01.11.2024 01:42 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139854 ФПД: 230622284197334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014211&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139854&fm=230622284197334&tin=02508201610067®Number=0000000000091631&sum=19400 0 [01:42:09]StoreToDocumentArchive [01:42:09]shift 558 fd 139854 [01:42:09]save to /storage/0558/doc_00139854 [01:42:09]save last doc name /storage/0558/doc_00139854 to /storage/kkm_last_doc_name [01:42:09]save OK [01:42:09]Clear old archive folders... [01:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=426 [01:42:09]tlvbuf is 00B28420 [01:42:09]SAM_PROTO_ClearQueue [01:42:09]wFMCommunicate request_size=4 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 09 00 00 [01:42:09]Write to MH i2c: E2 08 00 E4 3D 80 09 00 00 00 00 00 00 93 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 E4 3D 00 90 00 95 [01:42:09]RAPDU: 90 00 [01:42:09]wFMCommunicate OK [01:42:09]SAM_PROTO_ClearQueue done [01:42:09]KKMCreateOFDPacket [01:42:09]OFDProtocolAddRootSTLVToBuf [01:42:09]FM_MakeSignedData [01:42:09]FM_MakeSignedData [01:42:09]SAM_PROTO_SignData [01:42:09]wFMCommunicate request_size=4 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 0D 01 02 [01:42:09]Write to MH i2c: E2 08 00 E5 3D 80 0D 01 02 00 00 00 00 9B [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 E5 3D 00 90 00 96 [01:42:09]RAPDU: 90 00 [01:42:09]wFMCommunicate OK [01:42:09]wFMCommunicate request_size=255 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 0D 02 02 FA 03 00 AA 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 [01:42:09]Write to MH i2c: E2 02 01 E6 3D 80 0D 02 02 FA 00 03 00 AA 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 00 00 F6 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 E6 3D 00 90 00 97 [01:42:09]RAPDU: 90 00 [01:42:09]wFMCommunicate OK [01:42:09]wFMCommunicate request_size=185 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 0D 02 02 B4 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F3 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 22 02 00 35 04 06 00 D1 BF EF 53 AD D6 [01:42:09]Write to MH i2c: E2 BC 00 E7 3D 80 0D 02 02 B4 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F3 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 22 02 00 35 04 06 00 D1 BF EF 53 AD D6 00 00 AE [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 03 00 E7 3D 00 90 00 98 [01:42:09]RAPDU: 90 00 [01:42:09]wFMCommunicate OK [01:42:09]wFMCommunicate request_size=4 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 0D 03 02 [01:42:09]Write to MH i2c: E2 08 00 E8 3D 80 0D 03 02 00 00 00 00 A0 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 0B 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 0B 00 E8 3D 00 BB B9 83 FA 29 02 8A DF 90 00 26 [01:42:09]RAPDU: BB B9 83 FA 29 02 8A DF 90 00 [01:42:09]wFMCommunicate OK [01:42:09]SAM_PROTO_SignData done [01:42:09]FM_MakeSignedData done [01:42:09]CreateOFDProtocolMessage [01:42:09]wFMCommunicate request_size=4 [01:42:09]MH_SAM_APDU [01:42:09]CAPDU: 80 11 00 00 [01:42:09]Write to MH i2c: E2 08 00 E9 3D 80 11 00 00 00 00 00 00 A0 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:09]Read from MH i2c: E2 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 17 00 [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: E2 17 00 E9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FB [01:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:42:09]wFMCommunicate OK [01:42:09]CreateOFDProtocolMessage done [01:42:09]OFDSenderStorePacket 139854 [01:42:09]StoreOFDPacket docnum=139854 [01:42: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 BE 01 00 00 FE 12 B6 01 59 0C 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F3 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 22 02 00 35 04 06 00 D1 BF EF 53 AD D6 BB B9 83 FA 29 02 8A DF [01:42:09]CheckFolder [01:42:09]dirname=/storage/ofd_packets [01:42:09]CheckFolder done [01:42:09]ProducePacketName [01:42:09]name=ofd_packets/00139854 [01:42:09]NVStorageSaveData ofd_packets/00139854 [01:42:09]File name is /storage/ofd_packets/00139854 [01:42:09]Write 476 bytes [01:42:09]NVStorageSaveData done [01:42:09]OFDSenderStorePacket done [01:42:09]KKMCreateOFDPacket done [01:42:09]NVStorageSaveData kkm_last_timestamp [01:42:09]File name is /storage/kkm_last_timestamp [01:42:09]Write 4 bytes [01:42:09]NVStorageSaveData done [01:42:09]ExternCall_PrintAddStr [01:42:09]wPrintStart [01:42:09]Write to MH i2c: 01 00 00 EA 3D 27 [01:42:09]Write i2c OK [01:42:09]MH_I2C_Read... [01:42:09]Read from MH i2c: 01 [01:42:10]MH_I2C_Read... [01:42:10]OFD Sender: Processing packet 139854 [packets to send 34, broken 33] [01:42:10]ProducePacketName [01:42:10]name=ofd_packets/00139854 [01:42:10]OFD Sender: To server: pG, [01:42:10]CommunicateWithHost lk.salyk.kg:30040 [01:42:10]ConnectInit lk.salyk.kg [01:42:10]Read from MH i2c: 01 07 00 [01:42:10]MH_I2C_Read... [01:42:10]Read from MH i2c: 01 07 00 EA 3D 00 00 00 00 00 FF 0F 3C [01:42:10]RasterBufferAndPrint [01:42:10]line Счет N : (3)335675 [01:42:10]line ИНН: 02508201610067 [01:42:10]line Контрольно-Кассовый Чек [01:42:10]line ПРОДАЖА [01:42:10]line Товар: 4631162227163 [01:42:10]line Напиток газированный Mojito LEMON LIME ж [01:42:10]line 1.000 * 95.00 [01:42:10]line = 95.00 [01:42:10]line НДС 12% НСП 1% [01:42:10]line > о реализуемом товаре [01:42:10]line Товар: 4870022003312 [01:42:10]line Gorilla эн нап манго-кокос 0,45 ж/б [01:42:10]line 1.000 * 99.00 [01:42:10]line = 99.00 [01:42:10]line НДС 12% НСП 1% [01:42:10]line > о реализуемом товаре [01:42:10]line ИТОГО: 194.00 [01:42:10]line НСП 1% : 1.72 [01:42:10]line НДС 12% : 20.60 [01:42:10]line Наличными: 194.00 [01:42:10]line Безнал.: 0.00 [01:42:10]line Место: АЗС № 101 "Партнер Нефть" [01:42:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:42:10]line СНО: Общий режим [01:42:10]line Чек 35 01.11.2024 01:42 [01:42:10]line Смена: 558 ФФД: 1.0 [01:42:10]line ЗНМ: 0300000081 [01:42:10]line РНМ: 0000000000091631 [01:42:10]line Версия ККМ: 001 [01:42:10]line ФМ: 0000000000874669 [01:42:10]line ФД: 139854 [01:42:10]line ФПД: 230622284197334 [01:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014211&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139854&fm=230622284197334&tin=02508201610067®Number=0000000000091631&sum=19400 [01:42:10]line 0 [01:42:10]written 0, free lines is 4095 [01:42:10]Connected sock=9 [01:42: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 BE 01 00 00 FE 12 B6 01 59 0C 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F3 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 22 02 00 35 04 06 00 D1 BF EF 53 AD D6 BB B9 83 FA 29 02 8A DF [01:42: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 5B 53 47 00 F8 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 4E 22 02 00 F4 03 04 00 9F DD 23 67 B6 04 01 00 00 2E 3B AE C4 E4 33 22 63 [01:42:10]CommunicateWithHost err = 0 [01:42:10]CheckOFDResponse [01:42:10]1017 (14) - 77093643461234 [01:42:10]1041 (16) - 0000000000874669 [01:42:10]1040 (4) - 139854 [01:42:10]1012 (4) - 31.10.2024 19:42 [01:42:10]1206 (1) - 0 [01:42:10]OFD Sender: Remove packet 139854 [01:42:10]ProducePacketName [01:42:10]name=ofd_packets/00139854 [01:42:10]NVStorageDeleteData [01:42:10]Write to MH i2c: 01 00 00 1A 3E 58 [01:42:10]Write i2c OK [01:42:10]MH_I2C_Read... [01:42:10]Read from MH i2c: 01 [01:42:10]MH_I2C_Read... [01:42:10]Read from MH i2c: 01 07 00 [01:42:10]MH_I2C_Read... [01:42:10]Read from MH i2c: 01 07 00 1A 3E 00 00 00 00 00 A9 0C 14 [01:42:10]RasterBufferAndPrint [01:42:10]line [01:42:10]line [01:42:10]line [01:42:10]line [01:42:10]line [01:42:10]written 0, free lines is 3249 [01:42:10]MH_Cut [01:42:10]Write to MH i2c: D1 01 00 21 3E 01 31 [01:42:10]Write i2c OK [01:42:10]MH_I2C_Read... [01:42:10]Read from MH i2c: D1 [01:42:10]MH_I2C_Read... [01:42:10]Read from MH i2c: D1 01 00 [01:42:10]MH_I2C_Read... [01:42:10]Read from MH i2c: D1 01 00 21 3E 00 30 [01:42:10]Write to MH i2c: 01 00 00 22 3E 60 [01:42:10]Write i2c OK [01:42:10]MH_I2C_Read... [01:42:11]OFD Sender: No OFD packet to send [01:42:11]*** Cut start [01:42:11]*** Partial cut [01:42:11]*** CUTSNS_PIN = 1 [01:42:11]*** CUTSNS_PIN = 0 [01:42:11]*** Brake cut motor [01:42:12]Read from MH i2c: 01 [01:42:12]MH_I2C_Read... [01:42:12]*** Stop cut motor [01:42:12]*** Cut end [01:42:12]Read from MH i2c: 01 07 00 [01:42:12]MH_I2C_Read... [01:42:12]Read from MH i2c: 01 07 00 22 3E 00 00 00 00 00 FF 0F 75 [01:42:12]process_action close_receipt done [01:42:12]requested_data is exist [01:42:12]produce_requested_data [01:42:12]requested_item fm.sn is exist - process it [01:42:12]wFMCommunicate request_size=4 [01:42:12]MH_SAM_APDU [01:42:12]CAPDU: 80 11 00 00 [01:42:12]Write to MH i2c: E2 08 00 23 3E 80 11 00 00 00 00 00 00 DB [01:42:12]Write i2c OK [01:42:12]MH_I2C_Read... [01:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:12]Read from MH i2c: E2 [01:42:12]MH_I2C_Read... [01:42:12]Read from MH i2c: E2 17 00 [01:42:12]MH_I2C_Read... [01:42:12]Read from MH i2c: E2 17 00 23 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [01:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:42:12]wFMCommunicate OK [01:42:12]requested_item fd.num is exist - process it [01:42:12]SAM_PROTO_GetFieldsCounters [01:42:12]wFMCommunicate request_size=4 [01:42:12]MH_SAM_APDU [01:42:12]CAPDU: 80 13 00 00 [01:42:12]Write to MH i2c: E2 08 00 24 3E 80 13 00 00 00 00 00 00 DE [01:42:12]Write i2c OK [01:42:12]MH_I2C_Read... [01:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:12]Read from MH i2c: E2 [01:42:12]MH_I2C_Read... [01:42:12]Read from MH i2c: E2 62 00 [01:42:12]MH_I2C_Read... [01:42:12]Read from MH i2c: E2 62 00 24 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [01:42: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 4E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:12]wFMCommunicate OK [01:42:12]SAM_PROTO_GetFieldsCounters done [01:42:12]requested_item shift.num is exist - process it [01:42:12]requested_item shift.opened is exist - process it [01:42:12]req_shift_opened [01:42:12]FM_GetShiftState [01:42:12]SAM_PROTO_GetShiftState [01:42:12]wFMCommunicate request_size=4 [01:42:12]MH_SAM_APDU [01:42:12]CAPDU: 80 13 01 00 [01:42:12]Write to MH i2c: E2 08 00 25 3E 80 13 01 00 00 00 00 00 E0 [01:42:12]Write i2c OK [01:42:12]MH_I2C_Read... [01:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:12]Read from MH i2c: E2 [01:42:12]MH_I2C_Read... [01:42:12]Read from MH i2c: E2 0E 00 [01:42:12]MH_I2C_Read... [01:42:12]Read from MH i2c: E2 0E 00 25 3E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 19 [01:42:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:42:12]wFMCommunicate OK [01:42:12]SAM_PROTO_GetShiftState done [01:42:12]FM_GetShiftState done [01:42:12]req_shift_opened done [01:42:12]requested_item shift.open_date is exist - process it [01:42:12]req_shift_open_date [01:42:12]req_shift_open_date done [01:42:12]produce_requested_data done [01:42:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139854,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:42:12]process_action_free close_receipt [01:42:12]json_value_free [01:42:12]json_value_free done [01:42:12]process_json_proto returns [01:42:12]Send response to host [01:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139854,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:42:12]free response buf [01:42:12]execute_script done [01:42:12]execute_script returns [01:42:12]free content buf [01:42:12]Sock 10.Close socket [01:42:12]Sock 10.Thread stoped [01:42:16]OFD Sender: No OFD packet to send [01:42:19]accept exits with 7 [01:42:19]New connection [01:42:19]New thread 3066510692 created [01:42:19]Thread 3066654052 joined [01:42:19]Waiting for new connection... [01:42:19] Sock 7.Parse request [01:42:19]Sock 7.Check first char [01:42:19]Sock 7.First char is OK [01:42:19]request: POST /json_proto HTTP/1.0 [01:42:19]Method: POST [01:42:19]URL: /json_proto [01:42:19]Method is POST - this is cgi request [01:42:19]url: /json_proto [01:42:19]query_string will be loaded in cgi processing [01:42:19]execute_cgi json_proto POST (null) [01:42:19]execute_cgi path=json_proto method=POST [01:42:19]POST find Content-Length [01:42:19]Host: 172.17.50.196:8080 [01:42:19]Content-Length: 683 [01:42:19]Content-Type: application/json [01:42:19] [01:42:19]POST finish read [01:42:19]Found Content-Length = 683 [01:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095623", "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 }]} ], "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" ] } } [01:42:19]execute_script... [01:42: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)1095623", "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 }]} ], "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" ] } } [01:42:19]POST & json_proto [01:42:19]process_json_proto [01:42:19]json parsed OK: [01:42:19]protocol is kg_v1.0 [01:42:19]action value=close_receipt [01:42:19]process_action close_receipt [01:42:19]cmd_close_receipt [01:42:19]MH_GetDate [01:42:19]Write to MH i2c: F0 00 00 26 3E 53 [01:42:19]Write i2c OK [01:42:19]MH_I2C_Read... [01:42:19]Read from MH i2c: F0 [01:42:19]MH_I2C_Read... [01:42:19]Read from MH i2c: F0 09 00 [01:42:19]MH_I2C_Read... [01:42:19]Read from MH i2c: F0 09 00 26 3E 00 FE 31 24 67 72 0D 1C 67 18 [01:42:19]GetLastDocTimeStamp 1730425331 [01:42:19]current date 1730425342 [01:42:19]FM_GetShiftState [01:42:19]SAM_PROTO_GetShiftState [01:42:19]wFMCommunicate request_size=4 [01:42:19]MH_SAM_APDU [01:42:19]CAPDU: 80 13 01 00 [01:42:19]Write to MH i2c: E2 08 00 27 3E 80 13 01 00 00 00 00 00 E2 [01:42:19]Write i2c OK [01:42:19]MH_I2C_Read... [01:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:19]Read from MH i2c: E2 [01:42:19]MH_I2C_Read... [01:42:19]Read from MH i2c: E2 0E 00 [01:42:19]MH_I2C_Read... [01:42:19]Read from MH i2c: E2 0E 00 27 3E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1B [01:42:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:42:19]wFMCommunicate OK [01:42:19]SAM_PROTO_GetShiftState done [01:42:19]FM_GetShiftState done [01:42:19]opened in 1730419081 [01:42:19]opened+sec_in_day 1730505481 [01:42:19]quantity*price = 200043 [01:42:19]sum+1 = 200044 [01:42:19]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 СНО: Общий режим Чек 36 01.11.2024 01:42 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139855 ФПД: 184612944978266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014222&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139855&fm=184612944978266&tin=02508201610067®Number=0000000000091631&sum=200000 [01:42:20]StoreToDocumentArchive [01:42:20]shift 558 fd 139855 [01:42:20]save to /storage/0558/doc_00139855 [01:42:20]save last doc name /storage/0558/doc_00139855 to /storage/kkm_last_doc_name [01:42:20]save OK [01:42:20]Clear old archive folders... [01:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:42:20]tlvbuf is 00A17010 [01:42:20]SAM_PROTO_ClearQueue [01:42:20]wFMCommunicate request_size=4 [01:42:20]MH_SAM_APDU [01:42:20]CAPDU: 80 09 00 00 [01:42:20]Write to MH i2c: E2 08 00 34 3E 80 09 00 00 00 00 00 00 E4 [01:42:20]Write i2c OK [01:42:20]MH_I2C_Read... [01:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:20]Read from MH i2c: E2 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: E2 03 00 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: E2 03 00 34 3E 00 90 00 E6 [01:42:20]RAPDU: 90 00 [01:42:20]wFMCommunicate OK [01:42:20]SAM_PROTO_ClearQueue done [01:42:20]KKMCreateOFDPacket [01:42:20]OFDProtocolAddRootSTLVToBuf [01:42:20]FM_MakeSignedData [01:42:20]FM_MakeSignedData [01:42:20]SAM_PROTO_SignData [01:42:20]wFMCommunicate request_size=4 [01:42:20]MH_SAM_APDU [01:42:20]CAPDU: 80 0D 01 02 [01:42:20]Write to MH i2c: E2 08 00 35 3E 80 0D 01 02 00 00 00 00 EC [01:42:20]Write i2c OK [01:42:20]MH_I2C_Read... [01:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:20]Read from MH i2c: E2 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: E2 03 00 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: E2 03 00 35 3E 00 90 00 E7 [01:42:20]RAPDU: 90 00 [01:42:20]wFMCommunicate OK [01:42:20]wFMCommunicate request_size=255 [01:42:20]MH_SAM_APDU [01:42: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 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 24 00 00 00 F4 03 04 00 FE 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 22 02 00 35 04 06 00 A7 [01:42:20]Write to MH i2c: E2 02 01 36 3E 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 24 00 00 00 F4 03 04 00 FE 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 22 02 00 35 04 06 00 A7 00 00 4C [01:42:20]Write i2c OK [01:42:20]MH_I2C_Read... [01:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 36 3E 00 90 00 E8 [01:42:21]RAPDU: 90 00 [01:42:21]wFMCommunicate OK [01:42:21]wFMCommunicate request_size=10 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 0D 02 02 05 E7 8D 01 A1 5A [01:42:21]Write to MH i2c: E2 0D 00 37 3E 80 0D 02 02 05 00 E7 8D 01 A1 5A 00 00 69 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 37 3E 00 90 00 E9 [01:42:21]RAPDU: 90 00 [01:42:21]wFMCommunicate OK [01:42:21]wFMCommunicate request_size=4 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 0D 03 02 [01:42:21]Write to MH i2c: E2 08 00 38 3E 80 0D 03 02 00 00 00 00 F1 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:21]OFD Sender: No OFD packet to send [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 0B 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 0B 00 38 3E 00 55 FB AA 0D A3 DD 2D 91 90 00 37 [01:42:21]RAPDU: 55 FB AA 0D A3 DD 2D 91 90 00 [01:42:21]wFMCommunicate OK [01:42:21]SAM_PROTO_SignData done [01:42:21]FM_MakeSignedData done [01:42:21]CreateOFDProtocolMessage [01:42:21]wFMCommunicate request_size=4 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 11 00 00 [01:42:21]Write to MH i2c: E2 08 00 39 3E 80 11 00 00 00 00 00 00 F1 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 17 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 17 00 39 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [01:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:42:21]wFMCommunicate OK [01:42:21]CreateOFDProtocolMessage done [01:42:21]OFDSenderStorePacket 139855 [01:42:21]StoreOFDPacket docnum=139855 [01:42: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 0F 01 00 00 CE 6F 07 01 1A 7E 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 24 00 00 00 F4 03 04 00 FE 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 22 02 00 35 04 06 00 A7 E7 8D 01 A1 5A 55 FB AA 0D A3 DD 2D 91 [01:42:21]CheckFolder [01:42:21]dirname=/storage/ofd_packets [01:42:21]CheckFolder done [01:42:21]ProducePacketName [01:42:21]name=ofd_packets/00139855 [01:42:21]NVStorageSaveData ofd_packets/00139855 [01:42:21]File name is /storage/ofd_packets/00139855 [01:42:21]Write 301 bytes [01:42:21]NVStorageSaveData done [01:42:21]OFDSenderStorePacket done [01:42:21]KKMCreateOFDPacket done [01:42:21]NVStorageSaveData kkm_last_timestamp [01:42:21]File name is /storage/kkm_last_timestamp [01:42:21]Write 4 bytes [01:42:21]NVStorageSaveData done [01:42:21]ExternCall_PrintAddStr [01:42:21]wPrintStart [01:42:21]Write to MH i2c: 01 00 00 3A 3E 78 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 07 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 07 00 3A 3E 00 00 00 00 00 FF 0F 8D [01:42:21]RasterBufferAndPrint [01:42:21]line Счет N : (1)1095623 [01:42:21]line ИНН: 02508201610067 [01:42:21]line Контрольно-Кассовый Чек [01:42:21]line ПРОДАЖА [01:42:21]line ТРК (МРК, ГНК) : 54 [01:42:21]line Товар: 2710124500 [01:42:21]line Аи-95-К-3 [01:42:21]line 26.960 * 74.20 [01:42:21]line = 2000.43 [01:42:21]line НДС 12% НСП 1% [01:42:21]line > о реализуемом товаре [01:42:21]line ОКРУГЛЕНИЕ: -0.43 [01:42:21]line ИТОГО: 2000.00 [01:42:21]line Внесено: 2000.00 [01:42:21]line СДАЧА: 0.00 [01:42:21]line НСП 1% : 17.70 [01:42:21]line НДС 12% : 212.43 [01:42:21]line Наличными: 2000.00 [01:42:21]line Безнал.: 0.00 [01:42:21]line Место: АЗС № 101 "Партнер Нефть" [01:42:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:42:21]line СНО: Общий режим [01:42:21]line Чек 36 01.11.2024 01:42 [01:42:21]OFD Sender: Processing packet 139855 [packets to send 34, broken 33] [01:42:21]ProducePacketName [01:42:21]name=ofd_packets/00139855 [01:42:21]OFD Sender: To server: pG, [01:42:21]CommunicateWithHost lk.salyk.kg:30040 [01:42:21]ConnectInit lk.salyk.kg [01:42:21]line Смена: 558 ФФД: 1.0 [01:42:21]line ЗНМ: 0300000081 [01:42:21]line РНМ: 0000000000091631 [01:42:21]line Версия ККМ: 001 [01:42:21]line ФМ: 0000000000874669 [01:42:21]line ФД: 139855 [01:42:21]line ФПД: 184612944978266 [01:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T014222&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139855&fm=184612944978266&tin=02508201610067®Number=0000000000091631&sum=200000 [01:42:21]written 0, free lines is 4095 [01:42:21]Connected sock=10 [01:42: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 CE 6F 07 01 1A 7E 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 24 00 00 00 F4 03 04 00 FE 31 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 22 02 00 35 04 06 00 A7 E7 8D 01 A1 5A 55 FB AA 0D A3 DD 2D 91 [01:42: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 01 8D 47 00 EA 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 22 02 00 F4 03 04 00 AA DD 23 67 B6 04 01 00 00 4B 91 DC 1E C8 DD 41 E6 [01:42:21]CommunicateWithHost err = 0 [01:42:21]CheckOFDResponse [01:42:21]1017 (14) - 77093643461234 [01:42:21]1041 (16) - 0000000000874669 [01:42:21]1040 (4) - 139855 [01:42:21]1012 (4) - 31.10.2024 19:42 [01:42:21]1206 (1) - 0 [01:42:21]OFD Sender: Remove packet 139855 [01:42:21]ProducePacketName [01:42:21]name=ofd_packets/00139855 [01:42:21]NVStorageDeleteData [01:42:21]Write to MH i2c: 01 00 00 65 3E A3 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 07 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 07 00 65 3E 00 00 00 00 00 05 0D BC [01:42:21]RasterBufferAndPrint [01:42:21]line [01:42:21]line [01:42:21]line [01:42:21]line [01:42:21]line [01:42:21]written 0, free lines is 3345 [01:42:21]MH_Cut [01:42:21]Write to MH i2c: D1 01 00 6C 3E 01 7C [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: D1 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: D1 01 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: D1 01 00 6C 3E 00 7B [01:42:21]Write to MH i2c: 01 00 00 6D 3E AB [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]OFD Sender: No OFD packet to send [01:42:22]*** Cut start [01:42:22]*** Partial cut [01:42:22]*** CUTSNS_PIN = 1 [01:42:22]*** CUTSNS_PIN = 0 [01:42:22]*** Brake cut motor [01:42:22]Read from MH i2c: 01 [01:42:22]MH_I2C_Read... [01:42:22]*** Stop cut motor [01:42:22]*** Cut end [01:42:22]Read from MH i2c: 01 07 00 [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: 01 07 00 6D 3E 00 00 00 00 00 FF 0F C0 [01:42:22]process_action close_receipt done [01:42:22]requested_data is exist [01:42:22]produce_requested_data [01:42:22]requested_item fm.sn is exist - process it [01:42:22]wFMCommunicate request_size=4 [01:42:22]MH_SAM_APDU [01:42:22]CAPDU: 80 11 00 00 [01:42:22]Write to MH i2c: E2 08 00 6E 3E 80 11 00 00 00 00 00 00 26 [01:42:22]Write i2c OK [01:42:22]MH_I2C_Read... [01:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:22]Read from MH i2c: E2 [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: E2 17 00 [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: E2 17 00 6E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 81 [01:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:42:22]wFMCommunicate OK [01:42:22]requested_item fd.num is exist - process it [01:42:22]SAM_PROTO_GetFieldsCounters [01:42:22]wFMCommunicate request_size=4 [01:42:22]MH_SAM_APDU [01:42:22]CAPDU: 80 13 00 00 [01:42:22]Write to MH i2c: E2 08 00 6F 3E 80 13 00 00 00 00 00 00 29 [01:42:23]Write i2c OK [01:42:23]MH_I2C_Read... [01:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:23]Read from MH i2c: E2 [01:42:23]MH_I2C_Read... [01:42:23]Read from MH i2c: E2 62 00 [01:42:23]MH_I2C_Read... [01:42:23]Read from MH i2c: E2 62 00 6F 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [01:42: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 4F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:23]wFMCommunicate OK [01:42:23]SAM_PROTO_GetFieldsCounters done [01:42:23]requested_item shift.num is exist - process it [01:42:23]requested_item shift.opened is exist - process it [01:42:23]req_shift_opened [01:42:23]FM_GetShiftState [01:42:23]SAM_PROTO_GetShiftState [01:42:23]wFMCommunicate request_size=4 [01:42:23]MH_SAM_APDU [01:42:23]CAPDU: 80 13 01 00 [01:42:23]Write to MH i2c: E2 08 00 70 3E 80 13 01 00 00 00 00 00 2B [01:42:23]Write i2c OK [01:42:23]MH_I2C_Read... [01:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:23]Read from MH i2c: E2 [01:42:23]MH_I2C_Read... [01:42:23]Read from MH i2c: E2 0E 00 [01:42:23]MH_I2C_Read... [01:42:23]Read from MH i2c: E2 0E 00 70 3E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 64 [01:42:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:42:23]wFMCommunicate OK [01:42:23]SAM_PROTO_GetShiftState done [01:42:23]FM_GetShiftState done [01:42:23]req_shift_opened done [01:42:23]requested_item shift.open_date is exist - process it [01:42:23]req_shift_open_date [01:42:23]req_shift_open_date done [01:42:23]produce_requested_data done [01:42:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139855,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:42:23]process_action_free close_receipt [01:42:23]json_value_free [01:42:23]json_value_free done [01:42:23]process_json_proto returns [01:42:23]Send response to host [01:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139855,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:42:23]free response buf [01:42:23]execute_script done [01:42:23]execute_script returns [01:42:23]free content buf [01:42:23]Sock 7.Close socket [01:42:23]Sock 7.Thread stoped [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:53]accept exits with 9 [01:50:53]New connection [01:50:53]New thread 3066654052 created [01:50:53]Thread 3066510692 joined [01:50:53]Waiting for new connection... [01:50:53] Sock 9.Parse request [01:50:53]Sock 9.Check first char [01:50:53]Sock 9.First char is OK [01:50:53]request: POST /json_proto HTTP/1.0 [01:50:53]Method: POST [01:50:53]URL: /json_proto [01:50:53]Method is POST - this is cgi request [01:50:53]url: /json_proto [01:50:53]query_string will be loaded in cgi processing [01:50:53]execute_cgi json_proto POST (null) [01:50:53]execute_cgi path=json_proto method=POST [01:50:53]POST find Content-Length [01:50:53]Host: 172.17.50.196:8080 [01:50:53]Content-Length: 688 [01:50:53]Content-Type: application/json [01:50:53] [01:50:53]POST finish read [01:50:53]Found Content-Length = 688 [01:50:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:53]execute_script... [01:50: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)1095624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:53]POST & json_proto [01:50:53]process_json_proto [01:50:53]json parsed OK: [01:50:53]protocol is kg_v1.0 [01:50:53]action value=close_receipt [01:50:53]process_action close_receipt [01:50:53]cmd_close_receipt [01:50:53]MH_GetDate [01:50:53]Write to MH i2c: F0 00 00 71 3E 9E [01:50:53]Write i2c OK [01:50:53]MH_I2C_Read... [01:50:53]Read from MH i2c: F0 [01:50:53]MH_I2C_Read... [01:50:53]Read from MH i2c: F0 09 00 [01:50:53]MH_I2C_Read... [01:50:53]Read from MH i2c: F0 09 00 71 3E 00 01 34 24 67 72 0D 1C 67 69 [01:50:53]GetLastDocTimeStamp 1730425342 [01:50:53]current date 1730425857 [01:50:53]FM_GetShiftState [01:50:53]SAM_PROTO_GetShiftState [01:50:53]wFMCommunicate request_size=4 [01:50:53]MH_SAM_APDU [01:50:53]CAPDU: 80 13 01 00 [01:50:53]Write to MH i2c: E2 08 00 72 3E 80 13 01 00 00 00 00 00 2D [01:50:53]Write i2c OK [01:50:53]MH_I2C_Read... [01:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:53]Read from MH i2c: E2 [01:50:53]MH_I2C_Read... [01:50:53]Read from MH i2c: E2 0E 00 [01:50:53]MH_I2C_Read... [01:50:53]Read from MH i2c: E2 0E 00 72 3E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 66 [01:50:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:50:53]wFMCommunicate OK [01:50:53]SAM_PROTO_GetShiftState done [01:50:53]FM_GetShiftState done [01:50:53]opened in 1730419081 [01:50:53]opened+sec_in_day 1730505481 [01:50:53]quantity*price = 300075 [01:50:53]sum+1 = 300077 [01:50:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 37 01.11.2024 01:50 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139856 ФПД: 183246918107273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T015057&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139856&fm=183246918107273&tin=02508201610067®Number=0000000000091631&sum=300000 [01:50:55]StoreToDocumentArchive [01:50:55]shift 558 fd 139856 [01:50:55]save to /storage/0558/doc_00139856 [01:50:55]save last doc name /storage/0558/doc_00139856 to /storage/kkm_last_doc_name [01:50:55]save OK [01:50:55]Clear old archive folders... [01:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:50:55]tlvbuf is 00B289D0 [01:50:55]SAM_PROTO_ClearQueue [01:50:55]wFMCommunicate request_size=4 [01:50:55]MH_SAM_APDU [01:50:55]CAPDU: 80 09 00 00 [01:50:55]Write to MH i2c: E2 08 00 7F 3E 80 09 00 00 00 00 00 00 2F [01:50:55]Write i2c OK [01:50:55]MH_I2C_Read... [01:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:50:55]Read from MH i2c: E2 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 7F 3E 00 90 00 31 [01:50:55]RAPDU: 90 00 [01:50:55]wFMCommunicate OK [01:50:55]SAM_PROTO_ClearQueue done [01:50:55]KKMCreateOFDPacket [01:50:55]OFDProtocolAddRootSTLVToBuf [01:50:55]FM_MakeSignedData [01:50:55]FM_MakeSignedData [01:50:55]SAM_PROTO_SignData [01:50:55]wFMCommunicate request_size=4 [01:50:55]MH_SAM_APDU [01:50:55]CAPDU: 80 0D 01 02 [01:50:55]Write to MH i2c: E2 08 00 80 3E 80 0D 01 02 00 00 00 00 37 [01:50:55]Write i2c OK [01:50:55]MH_I2C_Read... [01:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:50:55]Read from MH i2c: E2 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 80 3E 00 90 00 32 [01:50:55]RAPDU: 90 00 [01:50:55]wFMCommunicate OK [01:50:55]wFMCommunicate request_size=255 [01:50:55]MH_SAM_APDU [01:50: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 34 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 22 02 00 35 04 06 00 [01:50:55]Write to MH i2c: E2 02 01 81 3E 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 34 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 22 02 00 35 04 06 00 00 00 64 [01:50:55]Write i2c OK [01:50:55]MH_I2C_Read... [01:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:55]Read from MH i2c: E2 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 81 3E 00 90 00 33 [01:50:55]RAPDU: 90 00 [01:50:55]wFMCommunicate OK [01:50:55]wFMCommunicate request_size=11 [01:50:55]MH_SAM_APDU [01:50:55]CAPDU: 80 0D 02 02 06 A6 A9 7F 75 C0 89 [01:50:55]Write to MH i2c: E2 0E 00 82 3E 80 0D 02 02 06 00 A6 A9 7F 75 C0 89 00 00 D2 [01:50:55]Write i2c OK [01:50:55]MH_I2C_Read... [01:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:55]Read from MH i2c: E2 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 03 00 82 3E 00 90 00 34 [01:50:55]RAPDU: 90 00 [01:50:55]wFMCommunicate OK [01:50:55]wFMCommunicate request_size=4 [01:50:55]MH_SAM_APDU [01:50:55]CAPDU: 80 0D 03 02 [01:50:55]Write to MH i2c: E2 08 00 83 3E 80 0D 03 02 00 00 00 00 3C [01:50:55]Write i2c OK [01:50:55]MH_I2C_Read... [01:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:50:55]Read from MH i2c: E2 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 0B 00 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 0B 00 83 3E 00 DF 45 72 37 4D 98 68 89 90 00 E0 [01:50:55]RAPDU: DF 45 72 37 4D 98 68 89 90 00 [01:50:55]wFMCommunicate OK [01:50:55]SAM_PROTO_SignData done [01:50:55]FM_MakeSignedData done [01:50:55]CreateOFDProtocolMessage [01:50:55]wFMCommunicate request_size=4 [01:50:55]MH_SAM_APDU [01:50:55]CAPDU: 80 11 00 00 [01:50:55]Write to MH i2c: E2 08 00 84 3E 80 11 00 00 00 00 00 00 3C [01:50:55]Write i2c OK [01:50:55]MH_I2C_Read... [01:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:55]Read from MH i2c: E2 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 17 00 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: E2 17 00 84 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 97 [01: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 [01:50:55]wFMCommunicate OK [01:50:55]CreateOFDProtocolMessage done [01:50:55]OFDSenderStorePacket 139856 [01:50:55]StoreOFDPacket docnum=139856 [01: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 10 01 00 00 42 C0 08 01 A0 2D 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 34 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 22 02 00 35 04 06 00 A6 A9 7F 75 C0 89 DF 45 72 37 4D 98 68 89 [01:50:55]CheckFolder [01:50:55]dirname=/storage/ofd_packets [01:50:55]CheckFolder done [01:50:55]ProducePacketName [01:50:55]name=ofd_packets/00139856 [01:50:55]NVStorageSaveData ofd_packets/00139856 [01:50:55]File name is /storage/ofd_packets/00139856 [01:50:55]Write 302 bytes [01:50:55]NVStorageSaveData done [01:50:55]OFDSenderStorePacket done [01:50:55]KKMCreateOFDPacket done [01:50:55]NVStorageSaveData kkm_last_timestamp [01:50:55]File name is /storage/kkm_last_timestamp [01:50:55]Write 4 bytes [01:50:55]NVStorageSaveData done [01:50:55]ExternCall_PrintAddStr [01:50:55]wPrintStart [01:50:55]Write to MH i2c: 01 00 00 85 3E C3 [01:50:55]Write i2c OK [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: 01 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: 01 07 00 [01:50:55]MH_I2C_Read... [01:50:55]Read from MH i2c: 01 07 00 85 3E 00 00 00 00 00 FF 0F D8 [01:50:55]RasterBufferAndPrint [01:50:55]line Счет N : (1)1095624 [01:50:55]line ИНН: 02508201610067 [01:50:55]line Контрольно-Кассовый Чек [01:50:55]line ПРОДАЖА [01:50:55]line ТРК (МРК, ГНК) : 31 [01:50:55]line Товар: 2710194210 [01:50:55]line ДТ(л)-К-2 [01:50:55]line 39.380 * 76.20 [01:50:55]line = 3000.76 [01:50:55]line НДС 12% НСП 1% [01:50:55]line > о реализуемом товаре [01:50:55]line ОКРУГЛЕНИЕ: -0.76 [01:50:55]line ИТОГО: 3000.00 [01:50:55]line Внесено: 3000.00 [01:50:55]line СДАЧА: 0.00 [01:50:55]line НСП 1% : 26.55 [01:50:55]line НДС 12% : 318.66 [01:50:55]line Наличными: 3000.00 [01:50:55]line Безнал.: 0.00 [01:50:55]line Место: АЗС № 101 "Партнер Нефть" [01:50:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:50:55]line СНО: Общий режим [01:50:55]line Чек 37 01.11.2024 01:50 [01:50:55]line Смена: 558 ФФД: 1.0 [01:50:55]line ЗНМ: 0300000081 [01:50:55]line РНМ: 0000000000091631 [01:50:55]line Версия ККМ: 001 [01:50:55]line ФМ: 0000000000874669 [01:50:55]line ФД: 139856 [01:50:55]line ФПД: 183246918107273 [01:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T015057&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139856&fm=183246918107273&tin=02508201610067®Number=0000000000091631&sum=300000 [01:50:55]OFD Sender: Processing packet 139856 [packets to send 34, broken 33] [01:50:55]ProducePacketName [01:50:55]name=ofd_packets/00139856 [01:50:55]OFD Sender: To server: pG, [01:50:55]CommunicateWithHost lk.salyk.kg:30040 [01:50:55]ConnectInit lk.salyk.kg [01:50:55]written 0, free lines is 4095 [01:50:55]Connected sock=10 [01:50: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 10 01 00 00 42 C0 08 01 A0 2D 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 01 34 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 22 02 00 35 04 06 00 A6 A9 7F 75 C0 89 DF 45 72 37 4D 98 68 89 [01: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 27 8C 47 00 58 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 50 22 02 00 F4 03 04 00 AD DF 23 67 B6 04 01 00 00 6E 94 66 73 D7 5A 78 45 [01:50:56]CommunicateWithHost err = 0 [01:50:56]CheckOFDResponse [01:50:56]1017 (14) - 77093643461234 [01:50:56]1041 (16) - 0000000000874669 [01:50:56]1040 (4) - 139856 [01:50:56]1012 (4) - 31.10.2024 19:51 [01:50:56]1206 (1) - 0 [01:50:56]OFD Sender: Remove packet 139856 [01:50:56]ProducePacketName [01:50:56]name=ofd_packets/00139856 [01:50:56]NVStorageDeleteData [01:50:56]Write to MH i2c: 01 00 00 B0 3E EE [01:50:56]Write i2c OK [01:50:56]MH_I2C_Read... [01:50:56]Read from MH i2c: 01 [01:50:56]MH_I2C_Read... [01:50:56]Read from MH i2c: 01 07 00 [01:50:56]MH_I2C_Read... [01:50:56]Read from MH i2c: 01 07 00 B0 3E 00 00 00 00 00 E4 0C E5 [01:50:56]RasterBufferAndPrint [01:50:56]line [01:50:56]line [01:50:56]line [01:50:56]line [01:50:56]line [01:50:56]written 0, free lines is 3306 [01:50:56]MH_Cut [01:50:56]Write to MH i2c: D1 01 00 B7 3E 01 C7 [01:50:56]Write i2c OK [01:50:56]MH_I2C_Read... [01:50:56]Read from MH i2c: D1 [01:50:56]MH_I2C_Read... [01:50:56]Read from MH i2c: D1 01 00 [01:50:56]MH_I2C_Read... [01:50:56]Read from MH i2c: D1 01 00 B7 3E 00 C6 [01:50:56]Write to MH i2c: 01 00 00 B8 3E F6 [01:50:56]Write i2c OK [01:50:56]MH_I2C_Read... [01:50:56]OFD Sender: No OFD packet to send [01:50:57]*** Cut start [01:50:57]*** Partial cut [01:50:57]*** CUTSNS_PIN = 1 [01:50:57]*** CUTSNS_PIN = 0 [01:50:57]*** Brake cut motor [01:50:57]Read from MH i2c: 01 [01:50:57]MH_I2C_Read... [01:50:57]*** Stop cut motor [01:50:57]*** Cut end [01:50:57]Read from MH i2c: 01 07 00 [01:50:57]MH_I2C_Read... [01:50:57]Read from MH i2c: 01 07 00 B8 3E 00 00 00 00 00 FF 0F 0B [01:50:57]process_action close_receipt done [01:50:57]requested_data is exist [01:50:57]produce_requested_data [01:50:57]requested_item fm.sn is exist - process it [01:50:57]wFMCommunicate request_size=4 [01:50:57]MH_SAM_APDU [01:50:57]CAPDU: 80 11 00 00 [01:50:57]Write to MH i2c: E2 08 00 B9 3E 80 11 00 00 00 00 00 00 71 [01:50:57]Write i2c OK [01:50:57]MH_I2C_Read... [01:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:57]Read from MH i2c: E2 [01:50:57]MH_I2C_Read... [01:50:57]Read from MH i2c: E2 17 00 [01:50:57]MH_I2C_Read... [01:50:57]Read from MH i2c: E2 17 00 B9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [01:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:50:57]wFMCommunicate OK [01:50:57]requested_item fd.num is exist - process it [01:50:57]SAM_PROTO_GetFieldsCounters [01:50:57]wFMCommunicate request_size=4 [01:50:57]MH_SAM_APDU [01:50:57]CAPDU: 80 13 00 00 [01:50:57]Write to MH i2c: E2 08 00 BA 3E 80 13 00 00 00 00 00 00 74 [01:50:57]Write i2c OK [01:50:57]MH_I2C_Read... [01:50:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:50:57]Read from MH i2c: E2 [01:50:57]MH_I2C_Read... [01:50:57]Read from MH i2c: E2 62 00 [01:50:57]MH_I2C_Read... [01:50:57]Read from MH i2c: E2 62 00 BA 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 50 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [01:50: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 50 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:50:57]wFMCommunicate OK [01:50:57]SAM_PROTO_GetFieldsCounters done [01:50:57]requested_item shift.num is exist - process it [01:50:57]requested_item shift.opened is exist - process it [01:50:57]req_shift_opened [01:50:57]FM_GetShiftState [01:50:57]SAM_PROTO_GetShiftState [01:50:57]wFMCommunicate request_size=4 [01:50:57]MH_SAM_APDU [01:50:57]CAPDU: 80 13 01 00 [01:50:57]Write to MH i2c: E2 08 00 BB 3E 80 13 01 00 00 00 00 00 76 [01:50:57]Write i2c OK [01:50:57]MH_I2C_Read... [01:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:57]Read from MH i2c: E2 [01:50:57]MH_I2C_Read... [01:50:57]Read from MH i2c: E2 0E 00 [01:50:57]MH_I2C_Read... [01:50:57]Read from MH i2c: E2 0E 00 BB 3E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AF [01:50:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [01:50:57]wFMCommunicate OK [01:50:57]SAM_PROTO_GetShiftState done [01:50:57]FM_GetShiftState done [01:50:57]req_shift_opened done [01:50:57]requested_item shift.open_date is exist - process it [01:50:57]req_shift_open_date [01:50:57]req_shift_open_date done [01:50:57]produce_requested_data done [01:50:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139856,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [01:50:57]process_action_free close_receipt [01:50:57]json_value_free [01:50:57]json_value_free done [01:50:57]process_json_proto returns [01:50:57]Send response to host [01:50:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139856,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [01:50:57]free response buf [01:50:57]execute_script done [01:50:57]execute_script returns [01:50:57]free content buf [01:50:57]Sock 9.Close socket [01:50:57]Sock 9.Thread stoped [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:00]accept exits with 7 [02:01:00]New connection [02:01:00]New thread 3066510692 created [02:01:00]Thread 3066654052 joined [02:01:00]Waiting for new connection... [02:01:00] Sock 7.Parse request [02:01:00]Sock 7.Check first char [02:01:00]Sock 7.First char is OK [02:01:00]request: POST /json_proto HTTP/1.0 [02:01:00]Method: POST [02:01:00]URL: /json_proto [02:01:00]Method is POST - this is cgi request [02:01:00]url: /json_proto [02:01:00]query_string will be loaded in cgi processing [02:01:00]execute_cgi json_proto POST (null) [02:01:00]execute_cgi path=json_proto method=POST [02:01:00]POST find Content-Length [02:01:00]Host: 172.17.50.196:8080 [02:01:00]Content-Length: 646 [02:01:00]Content-Type: application/json [02:01:00] [02:01:00]POST finish read [02:01:00]Found Content-Length = 646 [02:01:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335676", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:00]execute_script... [02:01:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335676", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:00]POST & json_proto [02:01:00]process_json_proto [02:01:00]json parsed OK: [02:01:00]protocol is kg_v1.0 [02:01:00]action value=close_receipt [02:01:00]process_action close_receipt [02:01:00]cmd_close_receipt [02:01:00]MH_GetDate [02:01:00]Write to MH i2c: F0 00 00 BC 3E E9 [02:01:00]Write i2c OK [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: F0 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: F0 09 00 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: F0 09 00 BC 3E 00 60 36 24 67 72 0D 1C 67 15 [02:01:00]GetLastDocTimeStamp 1730425857 [02:01:00]current date 1730426464 [02:01:00]FM_GetShiftState [02:01:00]SAM_PROTO_GetShiftState [02:01:00]wFMCommunicate request_size=4 [02:01:00]MH_SAM_APDU [02:01:00]CAPDU: 80 13 01 00 [02:01:00]Write to MH i2c: E2 08 00 BD 3E 80 13 01 00 00 00 00 00 78 [02:01:00]Write i2c OK [02:01:00]MH_I2C_Read... [02:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:00]Read from MH i2c: E2 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: E2 0E 00 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: E2 0E 00 BD 3E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B1 [02:01:00]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:01:00]wFMCommunicate OK [02:01:00]SAM_PROTO_GetShiftState done [02:01:00]FM_GetShiftState done [02:01:00]opened in 1730419081 [02:01:00]opened+sec_in_day 1730505481 [02:01:00]quantity*price = 26000 [02:01:00]sum+1 = 26001 [02:01:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 38 01.11.2024 02:01 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139857 ФПД: 37131151848914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T020104&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139857&fm=37131151848914&tin=02508201610067®Number=0000000000091631&sum=26000 0 [02:01:01]StoreToDocumentArchive [02:01:01]shift 558 fd 139857 [02:01:01]save to /storage/0558/doc_00139857 [02:01:01]save last doc name /storage/0558/doc_00139857 to /storage/kkm_last_doc_name [02:01:01]save OK [02:01:01]Clear old archive folders... [02:01:01]ProcessDocumentItem done err = 0, tmpTLVsize=282 [02:01:01]tlvbuf is 00B285F0 [02:01:01]SAM_PROTO_ClearQueue [02:01:01]wFMCommunicate request_size=4 [02:01:01]MH_SAM_APDU [02:01:01]CAPDU: 80 09 00 00 [02:01:01]Write to MH i2c: E2 08 00 CA 3E 80 09 00 00 00 00 00 00 7A [02:01:01]Write i2c OK [02:01:01]MH_I2C_Read... [02:01:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:01:01]Read from MH i2c: E2 [02:01:01]MH_I2C_Read... [02:01:01]Read from MH i2c: E2 03 00 [02:01:01]MH_I2C_Read... [02:01:01]Read from MH i2c: E2 03 00 CA 3E 00 90 00 7C [02:01:01]RAPDU: 90 00 [02:01:01]wFMCommunicate OK [02:01:01]SAM_PROTO_ClearQueue done [02:01:01]KKMCreateOFDPacket [02:01:01]OFDProtocolAddRootSTLVToBuf [02:01:01]FM_MakeSignedData [02:01:01]FM_MakeSignedData [02:01:01]SAM_PROTO_SignData [02:01:01]wFMCommunicate request_size=4 [02:01:01]MH_SAM_APDU [02:01:01]CAPDU: 80 0D 01 02 [02:01:01]Write to MH i2c: E2 08 00 CB 3E 80 0D 01 02 00 00 00 00 82 [02:01:01]Write i2c OK [02:01:01]MH_I2C_Read... [02:01:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:01:01]Read from MH i2c: E2 [02:01:01]MH_I2C_Read... [02:01:01]Read from MH i2c: E2 03 00 [02:01:01]MH_I2C_Read... [02:01:01]Read from MH i2c: E2 03 00 CB 3E 00 90 00 7D [02:01:01]RAPDU: 90 00 [02:01:01]wFMCommunicate OK [02:01:01]wFMCommunicate request_size=255 [02:01:01]MH_SAM_APDU [02:01:01]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 60 36 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [02:01:01]Write to MH i2c: E2 02 01 CC 3E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 60 36 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 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 BD [02:01:01]Write i2c OK [02:01:01]MH_I2C_Read... [02:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:02]OFD Sender: No OFD packet to send [02:01:02]Read from MH i2c: E2 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 03 00 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 03 00 CC 3E 00 90 00 7E [02:01:02]RAPDU: 90 00 [02:01:02]wFMCommunicate OK [02:01:02]wFMCommunicate request_size=41 [02:01:02]MH_SAM_APDU [02:01:02]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 51 22 02 00 35 04 06 00 21 C5 45 1D B5 D2 [02:01:02]Write to MH i2c: E2 2C 00 CD 3E 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 51 22 02 00 35 04 06 00 21 C5 45 1D B5 D2 00 00 A0 [02:01:02]Write i2c OK [02:01:02]MH_I2C_Read... [02:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:02]Read from MH i2c: E2 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 03 00 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 03 00 CD 3E 00 90 00 7F [02:01:02]RAPDU: 90 00 [02:01:02]wFMCommunicate OK [02:01:02]wFMCommunicate request_size=4 [02:01:02]MH_SAM_APDU [02:01:02]CAPDU: 80 0D 03 02 [02:01:02]Write to MH i2c: E2 08 00 CE 3E 80 0D 03 02 00 00 00 00 87 [02:01:02]Write i2c OK [02:01:02]MH_I2C_Read... [02:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:01:02]Read from MH i2c: E2 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 0B 00 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 0B 00 CE 3E 00 EC 0A 7E 25 8F 94 A3 C0 90 00 A7 [02:01:02]RAPDU: EC 0A 7E 25 8F 94 A3 C0 90 00 [02:01:02]wFMCommunicate OK [02:01:02]SAM_PROTO_SignData done [02:01:02]FM_MakeSignedData done [02:01:02]CreateOFDProtocolMessage [02:01:02]wFMCommunicate request_size=4 [02:01:02]MH_SAM_APDU [02:01:02]CAPDU: 80 11 00 00 [02:01:02]Write to MH i2c: E2 08 00 CF 3E 80 11 00 00 00 00 00 00 87 [02:01:02]Write i2c OK [02:01:02]MH_I2C_Read... [02:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:02]Read from MH i2c: E2 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 17 00 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: E2 17 00 CF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E2 [02:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:01:02]wFMCommunicate OK [02:01:02]CreateOFDProtocolMessage done [02:01:02]OFDSenderStorePacket 139857 [02:01:02]StoreOFDPacket docnum=139857 [02:01: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 2E 01 00 00 73 63 26 01 64 D7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 60 36 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 22 02 00 35 04 06 00 21 C5 45 1D B5 D2 EC 0A 7E 25 8F 94 A3 C0 [02:01:02]CheckFolder [02:01:02]dirname=/storage/ofd_packets [02:01:02]CheckFolder done [02:01:02]ProducePacketName [02:01:02]name=ofd_packets/00139857 [02:01:02]NVStorageSaveData ofd_packets/00139857 [02:01:02]File name is /storage/ofd_packets/00139857 [02:01:02]Write 332 bytes [02:01:02]NVStorageSaveData done [02:01:02]OFDSenderStorePacket done [02:01:02]KKMCreateOFDPacket done [02:01:02]NVStorageSaveData kkm_last_timestamp [02:01:02]File name is /storage/kkm_last_timestamp [02:01:02]Write 4 bytes [02:01:02]NVStorageSaveData done [02:01:02]ExternCall_PrintAddStr [02:01:02]wPrintStart [02:01:02]Write to MH i2c: 01 00 00 D0 3E 0E [02:01:02]Write i2c OK [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: 01 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: 01 07 00 [02:01:02]MH_I2C_Read... [02:01:02]Read from MH i2c: 01 07 00 D0 3E 00 00 00 00 00 FF 0F 23 [02:01:02]RasterBufferAndPrint [02:01:02]line Счет N : (3)335676 [02:01:02]line ИНН: 02508201610067 [02:01:02]line Контрольно-Кассовый Чек [02:01:02]line ПРОДАЖА [02:01:02]line Товар: 2000036220012 [02:01:02]line Кофе Капучино XL(GABB TRADE) [02:01:02]line 2.000 * 130.00 [02:01:02]line = 260.00 [02:01:02]line НДС 12% НСП 1% [02:01:02]line > о реализуемом товаре [02:01:02]line ИТОГО: 260.00 [02:01:02]line НСП 1% : 2.30 [02:01:02]line НДС 12% : 27.61 [02:01:02]line Наличными: 260.00 [02:01:02]line Безнал.: 0.00 [02:01:02]line Место: АЗС № 101 "Партнер Нефть" [02:01:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:01:02]line СНО: Общий режим [02:01:02]line Чек 38 01.11.2024 02:01 [02:01:02]line Смена: 558 ФФД: 1.0 [02:01:02]line ЗНМ: 0300000081 [02:01:02]line РНМ: 0000000000091631 [02:01:02]line Версия ККМ: 001 [02:01:02]line ФМ: 0000000000874669 [02:01:02]line ФД: 139857 [02:01:02]line ФПД: 37131151848914 [02:01:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T020104&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139857&fm=37131151848914&tin=02508201610067®Number=0000000000091631&sum=26000 [02:01:02]line 0 [02:01:02]OFD Sender: Processing packet 139857 [packets to send 34, broken 33] [02:01:02]ProducePacketName [02:01:02]name=ofd_packets/00139857 [02:01:02]OFD Sender: To server: pG, [02:01:02]CommunicateWithHost lk.salyk.kg:30040 [02:01:02]ConnectInit lk.salyk.kg [02:01:02]written 0, free lines is 4095 [02:01:02]Connected sock=10 [02:01: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 2E 01 00 00 73 63 26 01 64 D7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 60 36 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 22 02 00 35 04 06 00 21 C5 45 1D B5 D2 EC 0A 7E 25 8F 94 A3 C0 [02:01: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 E1 AE 47 00 84 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 22 02 00 F4 03 04 00 0C E2 23 67 B6 04 01 00 00 46 0F D0 5A 83 6D F1 C5 [02:01:03]CommunicateWithHost err = 0 [02:01:03]CheckOFDResponse [02:01:03]1017 (14) - 77093643461234 [02:01:03]1041 (16) - 0000000000874669 [02:01:03]1040 (4) - 139857 [02:01:03]1012 (4) - 31.10.2024 20:01 [02:01:03]1206 (1) - 0 [02:01:03]OFD Sender: Remove packet 139857 [02:01:03]ProducePacketName [02:01:03]name=ofd_packets/00139857 [02:01:03]NVStorageDeleteData [02:01:03]Write to MH i2c: 01 00 00 F9 3E 37 [02:01:03]Write i2c OK [02:01:03]MH_I2C_Read... [02:01:03]Read from MH i2c: 01 [02:01:03]MH_I2C_Read... [02:01:03]Read from MH i2c: 01 07 00 [02:01:03]MH_I2C_Read... [02:01:03]Read from MH i2c: 01 07 00 F9 3E 00 00 00 00 00 06 0D 51 [02:01:03]RasterBufferAndPrint [02:01:03]line [02:01:03]line [02:01:03]line [02:01:03]line [02:01:03]line [02:01:03]written 0, free lines is 3340 [02:01:03]MH_Cut [02:01:03]Write to MH i2c: D1 01 00 00 3F 01 11 [02:01:03]Write i2c OK [02:01:03]MH_I2C_Read... [02:01:03]Read from MH i2c: D1 [02:01:03]MH_I2C_Read... [02:01:03]Read from MH i2c: D1 01 00 [02:01:03]MH_I2C_Read... [02:01:03]Read from MH i2c: D1 01 00 00 3F 00 10 [02:01:03]Write to MH i2c: 01 00 00 01 3F 40 [02:01:03]Write i2c OK [02:01:03]MH_I2C_Read... [02:01:03]OFD Sender: No OFD packet to send [02:01:03]*** Cut start [02:01:03]*** Partial cut [02:01:03]*** CUTSNS_PIN = 1 [02:01:03]*** CUTSNS_PIN = 0 [02:01:04]*** Brake cut motor [02:01:04]Read from MH i2c: 01 [02:01:04]MH_I2C_Read... [02:01:04]*** Stop cut motor [02:01:04]*** Cut end [02:01:04]Read from MH i2c: 01 07 00 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: 01 07 00 01 3F 00 00 00 00 00 FF 0F 55 [02:01:04]process_action close_receipt done [02:01:04]requested_data is exist [02:01:04]produce_requested_data [02:01:04]requested_item fm.sn is exist - process it [02:01:04]wFMCommunicate request_size=4 [02:01:04]MH_SAM_APDU [02:01:04]CAPDU: 80 11 00 00 [02:01:04]Write to MH i2c: E2 08 00 02 3F 80 11 00 00 00 00 00 00 BB [02:01:04]Write i2c OK [02:01:04]MH_I2C_Read... [02:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:04]Read from MH i2c: E2 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: E2 17 00 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: E2 17 00 02 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 16 [02:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:01:04]wFMCommunicate OK [02:01:04]requested_item fd.num is exist - process it [02:01:04]SAM_PROTO_GetFieldsCounters [02:01:04]wFMCommunicate request_size=4 [02:01:04]MH_SAM_APDU [02:01:04]CAPDU: 80 13 00 00 [02:01:04]Write to MH i2c: E2 08 00 03 3F 80 13 00 00 00 00 00 00 BE [02:01:04]Write i2c OK [02:01:04]MH_I2C_Read... [02:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:01:04]Read from MH i2c: E2 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: E2 62 00 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: E2 62 00 03 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 51 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [02:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 51 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:01:04]wFMCommunicate OK [02:01:04]SAM_PROTO_GetFieldsCounters done [02:01:04]requested_item shift.num is exist - process it [02:01:04]requested_item shift.opened is exist - process it [02:01:04]req_shift_opened [02:01:04]FM_GetShiftState [02:01:04]SAM_PROTO_GetShiftState [02:01:04]wFMCommunicate request_size=4 [02:01:04]MH_SAM_APDU [02:01:04]CAPDU: 80 13 01 00 [02:01:04]Write to MH i2c: E2 08 00 04 3F 80 13 01 00 00 00 00 00 C0 [02:01:04]Write i2c OK [02:01:04]MH_I2C_Read... [02:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:04]Read from MH i2c: E2 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: E2 0E 00 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: E2 0E 00 04 3F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F9 [02:01:04]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:01:04]wFMCommunicate OK [02:01:04]SAM_PROTO_GetShiftState done [02:01:04]FM_GetShiftState done [02:01:04]req_shift_opened done [02:01:04]requested_item shift.open_date is exist - process it [02:01:04]req_shift_open_date [02:01:04]req_shift_open_date done [02:01:04]produce_requested_data done [02:01:04]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139857,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:01:04]process_action_free close_receipt [02:01:04]json_value_free [02:01:04]json_value_free done [02:01:04]process_json_proto returns [02:01:04]Send response to host [02:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139857,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:01:04]free response buf [02:01:04]execute_script done [02:01:04]execute_script returns [02:01:04]free content buf [02:01:04]Sock 7.Close socket [02:01:04]Sock 7.Thread stoped [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:56]accept exits with 9 [02:10:56]New connection [02:10:56]New thread 3066654052 created [02:10:56]Thread 3066510692 joined [02:10:56]Waiting for new connection... [02:10:56] Sock 9.Parse request [02:10:56]Sock 9.Check first char [02:10:56]Sock 9.First char is OK [02:10:56]request: POST /json_proto HTTP/1.0 [02:10:56]Method: POST [02:10:56]URL: /json_proto [02:10:56]Method is POST - this is cgi request [02:10:56]url: /json_proto [02:10:56]query_string will be loaded in cgi processing [02:10:56]execute_cgi json_proto POST (null) [02:10:56]execute_cgi path=json_proto method=POST [02:10:56]POST find Content-Length [02:10:56]Host: 172.17.50.196:8080 [02:10:56]Content-Length: 1230 [02:10:56]Content-Type: application/json [02:10:56] [02:10:56]POST finish read [02:10:56]Found Content-Length = 1230 [02:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335677", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 227.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:10:56]execute_script... [02:10: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)335677", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 227.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:10:56]POST & json_proto [02:10:56]process_json_proto [02:10:56]json parsed OK: [02:10:56]protocol is kg_v1.0 [02:10:56]action value=close_receipt [02:10:56]process_action close_receipt [02:10:56]cmd_close_receipt [02:10:56]MH_GetDate [02:10:56]Write to MH i2c: F0 00 00 05 3F 33 [02:10:56]Write i2c OK [02:10:56]MH_I2C_Read... [02:10:56]Read from MH i2c: F0 [02:10:56]MH_I2C_Read... [02:10:56]Read from MH i2c: F0 09 00 [02:10:56]MH_I2C_Read... [02:10:56]Read from MH i2c: F0 09 00 05 3F 00 B4 38 24 67 72 0D 1C 67 B5 [02:10:56]GetLastDocTimeStamp 1730426464 [02:10:56]current date 1730427060 [02:10:56]FM_GetShiftState [02:10:56]SAM_PROTO_GetShiftState [02:10:56]wFMCommunicate request_size=4 [02:10:56]MH_SAM_APDU [02:10:56]CAPDU: 80 13 01 00 [02:10:56]Write to MH i2c: E2 08 00 06 3F 80 13 01 00 00 00 00 00 C2 [02:10:56]Write i2c OK [02:10:56]MH_I2C_Read... [02:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:10:56]Read from MH i2c: E2 [02:10:56]MH_I2C_Read... [02:10:56]Read from MH i2c: E2 0E 00 [02:10:56]MH_I2C_Read... [02:10:56]Read from MH i2c: E2 0E 00 06 3F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FB [02:10:56]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:10:56]wFMCommunicate OK [02:10:56]SAM_PROTO_GetShiftState done [02:10:56]FM_GetShiftState done [02:10:56]opened in 1730419081 [02:10:56]opened+sec_in_day 1730505481 [02:10:56]quantity*price = 9500 [02:10:56]sum+1 = 9501 [02:10:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120854184 Снек Орехи BEERKa Арахис 90г 1.000 * 62.00 = 62.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 227.00 НСП 1% : 2.01 НДС 12% : 24.10 Наличными: 227.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 39 01.11.2024 02:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139858 ФПД: 46913879708466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021100&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139858&fm=46913879708466&tin=02508201610067®Number=0000000000091631&sum=22700 0 [02:10:58]StoreToDocumentArchive [02:10:58]shift 558 fd 139858 [02:10:58]save to /storage/0558/doc_00139858 [02:10:58]save last doc name /storage/0558/doc_00139858 to /storage/kkm_last_doc_name [02:10:58]save OK [02:10:58]Clear old archive folders... [02:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=520 [02:10:58]tlvbuf is B6E913A0 [02:10:58]SAM_PROTO_ClearQueue [02:10:58]wFMCommunicate request_size=4 [02:10:58]MH_SAM_APDU [02:10:58]CAPDU: 80 09 00 00 [02:10:58]Write to MH i2c: E2 08 00 13 3F 80 09 00 00 00 00 00 00 C4 [02:10:58]Write i2c OK [02:10:58]MH_I2C_Read... [02:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:10:58]Read from MH i2c: E2 [02:10:58]MH_I2C_Read... [02:10:58]Read from MH i2c: E2 03 00 [02:10:58]MH_I2C_Read... [02:10:58]Read from MH i2c: E2 03 00 13 3F 00 90 00 C6 [02:10:58]RAPDU: 90 00 [02:10:58]wFMCommunicate OK [02:10:58]SAM_PROTO_ClearQueue done [02:10:58]KKMCreateOFDPacket [02:10:58]OFDProtocolAddRootSTLVToBuf [02:10:58]FM_MakeSignedData [02:10:58]FM_MakeSignedData [02:10:58]SAM_PROTO_SignData [02:10:58]wFMCommunicate request_size=4 [02:10:58]MH_SAM_APDU [02:10:58]CAPDU: 80 0D 01 02 [02:10:58]Write to MH i2c: E2 08 00 14 3F 80 0D 01 02 00 00 00 00 CC [02:10:58]Write i2c OK [02:10:58]MH_I2C_Read... [02:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:10:58]Read from MH i2c: E2 [02:10:58]MH_I2C_Read... [02:10:58]Read from MH i2c: E2 03 00 [02:10:58]MH_I2C_Read... [02:10:58]Read from MH i2c: E2 03 00 14 3F 00 90 00 C7 [02:10:58]RAPDU: 90 00 [02:10:58]wFMCommunicate OK [02:10:58]wFMCommunicate request_size=255 [02:10:58]MH_SAM_APDU [02:10:58]CAPDU: 80 0D 02 02 FA 03 00 08 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D [02:10:58]Write to MH i2c: E2 02 01 15 3F 80 0D 02 02 FA 00 03 00 08 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 00 EC [02:10:58]Write i2c OK [02:10:58]MH_I2C_Read... [02:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:10:58]Read from MH i2c: E2 [02:10:58]MH_I2C_Read... [02:10:58]Read from MH i2c: E2 03 00 [02:10:58]MH_I2C_Read... [02:10:58]Read from MH i2c: E2 03 00 15 3F 00 90 00 C8 [02:10:58]RAPDU: 90 00 [02:10:58]wFMCommunicate OK [02:10:58]wFMCommunicate request_size=255 [02:10:58]MH_SAM_APDU [02:10:58]CAPDU: 80 0D 02 02 FA 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 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 6A 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B4 38 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [02:10:58]Write to MH i2c: E2 02 01 16 3F 80 0D 02 02 FA 00 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 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 6A 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B4 38 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 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 C4 [02:10:58]Write i2c OK [02:10:58]MH_I2C_Read... [02:10:59]OFD Sender: No OFD packet to send [02:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:10:59]Read from MH i2c: E2 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 03 00 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 03 00 16 3F 00 90 00 C9 [02:10:59]RAPDU: 90 00 [02:10:59]wFMCommunicate OK [02:10:59]wFMCommunicate request_size=29 [02:10:59]MH_SAM_APDU [02:10:59]CAPDU: 80 0D 02 02 18 38 37 34 36 36 39 10 04 04 00 52 22 02 00 35 04 06 00 2A AA FD 22 93 32 [02:10:59]Write to MH i2c: E2 20 00 17 3F 80 0D 02 02 18 00 38 37 34 36 36 39 10 04 04 00 52 22 02 00 35 04 06 00 2A AA FD 22 93 32 00 00 CD [02:10:59]Write i2c OK [02:10:59]MH_I2C_Read... [02:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:10:59]Read from MH i2c: E2 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 03 00 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 03 00 17 3F 00 90 00 CA [02:10:59]RAPDU: 90 00 [02:10:59]wFMCommunicate OK [02:10:59]wFMCommunicate request_size=4 [02:10:59]MH_SAM_APDU [02:10:59]CAPDU: 80 0D 03 02 [02:10:59]Write to MH i2c: E2 08 00 18 3F 80 0D 03 02 00 00 00 00 D2 [02:10:59]Write i2c OK [02:10:59]MH_I2C_Read... [02:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:10:59]Read from MH i2c: E2 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 0B 00 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 0B 00 18 3F 00 D7 F7 6D E5 25 67 9A 7B 90 00 94 [02:10:59]RAPDU: D7 F7 6D E5 25 67 9A 7B 90 00 [02:10:59]wFMCommunicate OK [02:10:59]SAM_PROTO_SignData done [02:10:59]FM_MakeSignedData done [02:10:59]CreateOFDProtocolMessage [02:10:59]wFMCommunicate request_size=4 [02:10:59]MH_SAM_APDU [02:10:59]CAPDU: 80 11 00 00 [02:10:59]Write to MH i2c: E2 08 00 19 3F 80 11 00 00 00 00 00 00 D2 [02:10:59]Write i2c OK [02:10:59]MH_I2C_Read... [02:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:10:59]Read from MH i2c: E2 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 17 00 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: E2 17 00 19 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2D [02:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:10:59]wFMCommunicate OK [02:10:59]CreateOFDProtocolMessage done [02:10:59]OFDSenderStorePacket 139858 [02:10:59]StoreOFDPacket docnum=139858 [02:10: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 1C 02 00 00 F6 F3 14 02 E2 1B 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 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 6A 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B4 38 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 22 02 00 35 04 06 00 2A AA FD 22 93 32 D7 F7 6D E5 25 67 9A 7B [02:10:59]CheckFolder [02:10:59]dirname=/storage/ofd_packets [02:10:59]CheckFolder done [02:10:59]ProducePacketName [02:10:59]name=ofd_packets/00139858 [02:10:59]NVStorageSaveData ofd_packets/00139858 [02:10:59]File name is /storage/ofd_packets/00139858 [02:10:59]Write 570 bytes [02:10:59]NVStorageSaveData done [02:10:59]OFDSenderStorePacket done [02:10:59]KKMCreateOFDPacket done [02:10:59]NVStorageSaveData kkm_last_timestamp [02:10:59]File name is /storage/kkm_last_timestamp [02:10:59]Write 4 bytes [02:10:59]NVStorageSaveData done [02:10:59]OFD Sender: Processing packet 139858 [packets to send 34, broken 33] [02:10:59]ProducePacketName [02:10:59]name=ofd_packets/00139858 [02:10:59]OFD Sender: To server: pG, [02:10:59]CommunicateWithHost lk.salyk.kg:30040 [02:10:59]ConnectInit lk.salyk.kg [02:10:59]ExternCall_PrintAddStr [02:10:59]wPrintStart [02:10:59]Write to MH i2c: 01 00 00 1A 3F 59 [02:10:59]Write i2c OK [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: 01 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: 01 07 00 [02:10:59]MH_I2C_Read... [02:10:59]Read from MH i2c: 01 07 00 1A 3F 00 00 00 00 00 FF 0F 6E [02:10:59]RasterBufferAndPrint [02:10:59]line Счет N : (3)335677 [02:10:59]line ИНН: 02508201610067 [02:10:59]line Контрольно-Кассовый Чек [02:10:59]line ПРОДАЖА [02:10:59]line Товар: 4631162227163 [02:10:59]line Напиток газированный Mojito LEMON LIME ж [02:10:59]line 1.000 * 95.00 [02:10:59]line = 95.00 [02:10:59]line НДС 12% НСП 1% [02:10:59]line > о реализуемом товаре [02:10:59]line Товар: 4630007400358 [02:10:59]line Семечки ДЖИНН 70г [02:10:59]line 1.000 * 70.00 [02:10:59]line = 70.00 [02:10:59]line НДС 12% НСП 1% [02:10:59]line > о реализуемом товаре [02:10:59]line Товар: 4607120854184 [02:10:59]line Снек Орехи BEERKa Арахис 90г [02:10:59]line 1.000 * 62.00 [02:10:59]line = 62.00 [02:10:59]line НДС 12% НСП 1% [02:10:59]line > о реализуемом товаре [02:10:59]line ИТОГО: 227.00 [02:10:59]line НСП 1% : 2.01 [02:10:59]line НДС 12% : 24.10 [02:10:59]line Наличными: 227.00 [02:10:59]line Безнал.: 0.00 [02:10:59]line Место: АЗС № 101 "Партнер Нефть" [02:10:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:10:59]line СНО: Общий режим [02:10:59]line Чек 39 01.11.2024 02:11 [02:10:59]line Смена: 558 ФФД: 1.0 [02:10:59]line ЗНМ: 0300000081 [02:10:59]line РНМ: 0000000000091631 [02:10:59]line Версия ККМ: 001 [02:10:59]line ФМ: 0000000000874669 [02:10:59]line ФД: 139858 [02:10:59]line ФПД: 46913879708466 [02:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021100&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139858&fm=46913879708466&tin=02508201610067®Number=0000000000091631&sum=22700 [02:10:59]line 0 [02:10:59]Connected sock=11 [02:10: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 1C 02 00 00 F6 F3 14 02 E2 1B 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 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 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 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 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 58 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 6A 09 00 00 00 00 07 04 06 00 AC 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B4 38 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 22 02 00 35 04 06 00 2A AA FD 22 93 32 D7 F7 6D E5 25 67 9A 7B [02:10:59]written 0, free lines is 4095 [02:10: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 22 F1 47 00 00 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 52 22 02 00 F4 03 04 00 61 E4 23 67 B6 04 01 00 00 10 EC 2A 33 5C 66 E0 F7 [02:10:59]CommunicateWithHost err = 0 [02:10:59]CheckOFDResponse [02:10:59]1017 (14) - 77093643461234 [02:10:59]1041 (16) - 0000000000874669 [02:10:59]1040 (4) - 139858 [02:10:59]1012 (4) - 31.10.2024 20:11 [02:10:59]1206 (1) - 0 [02:10:59]OFD Sender: Remove packet 139858 [02:10:59]ProducePacketName [02:10:59]name=ofd_packets/00139858 [02:10:59]NVStorageDeleteData [02:11:00]Write to MH i2c: 01 00 00 50 3F 8F [02:11:00]Write i2c OK [02:11:00]MH_I2C_Read... [02:11:00]Read from MH i2c: 01 [02:11:00]MH_I2C_Read... [02:11:00]Read from MH i2c: 01 07 00 [02:11:00]MH_I2C_Read... [02:11:00]Read from MH i2c: 01 07 00 50 3F 00 00 00 00 00 41 0C E3 [02:11:00]RasterBufferAndPrint [02:11:00]line [02:11:00]line [02:11:00]line [02:11:00]line [02:11:00]line [02:11:00]written 0, free lines is 3146 [02:11:00]MH_Cut [02:11:00]Write to MH i2c: D1 01 00 57 3F 01 68 [02:11:00]Write i2c OK [02:11:00]MH_I2C_Read... [02:11:00]Read from MH i2c: D1 [02:11:00]MH_I2C_Read... [02:11:00]Read from MH i2c: D1 01 00 [02:11:00]MH_I2C_Read... [02:11:00]Read from MH i2c: D1 01 00 57 3F 00 67 [02:11:00]Write to MH i2c: 01 00 00 58 3F 97 [02:11:00]Write i2c OK [02:11:00]MH_I2C_Read... [02:11:00]OFD Sender: No OFD packet to send [02:11:00]*** Cut start [02:11:00]*** Partial cut [02:11:00]*** CUTSNS_PIN = 1 [02:11:01]*** CUTSNS_PIN = 0 [02:11:01]*** Brake cut motor [02:11:01]Read from MH i2c: 01 [02:11:01]MH_I2C_Read... [02:11:01]*** Stop cut motor [02:11:01]*** Cut end [02:11:01]Read from MH i2c: 01 07 00 [02:11:01]MH_I2C_Read... [02:11:01]Read from MH i2c: 01 07 00 58 3F 00 00 00 00 00 FF 0F AC [02:11:01]process_action close_receipt done [02:11:01]requested_data is exist [02:11:01]produce_requested_data [02:11:01]requested_item fm.sn is exist - process it [02:11:01]wFMCommunicate request_size=4 [02:11:01]MH_SAM_APDU [02:11:01]CAPDU: 80 11 00 00 [02:11:01]Write to MH i2c: E2 08 00 59 3F 80 11 00 00 00 00 00 00 12 [02:11:01]Write i2c OK [02:11:01]MH_I2C_Read... [02:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:11:01]Read from MH i2c: E2 [02:11:01]MH_I2C_Read... [02:11:01]Read from MH i2c: E2 17 00 [02:11:01]MH_I2C_Read... [02:11:01]Read from MH i2c: E2 17 00 59 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6D [02:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:11:01]wFMCommunicate OK [02:11:01]requested_item fd.num is exist - process it [02:11:01]SAM_PROTO_GetFieldsCounters [02:11:01]wFMCommunicate request_size=4 [02:11:01]MH_SAM_APDU [02:11:01]CAPDU: 80 13 00 00 [02:11:01]Write to MH i2c: E2 08 00 5A 3F 80 13 00 00 00 00 00 00 15 [02:11:01]Write i2c OK [02:11:01]MH_I2C_Read... [02:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:11:01]Read from MH i2c: E2 [02:11:01]MH_I2C_Read... [02:11:01]Read from MH i2c: E2 62 00 [02:11:01]MH_I2C_Read... [02:11:01]Read from MH i2c: E2 62 00 5A 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 52 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [02:11: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 52 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:11:01]wFMCommunicate OK [02:11:01]SAM_PROTO_GetFieldsCounters done [02:11:01]requested_item shift.num is exist - process it [02:11:01]requested_item shift.opened is exist - process it [02:11:01]req_shift_opened [02:11:01]FM_GetShiftState [02:11:01]SAM_PROTO_GetShiftState [02:11:01]wFMCommunicate request_size=4 [02:11:01]MH_SAM_APDU [02:11:01]CAPDU: 80 13 01 00 [02:11:01]Write to MH i2c: E2 08 00 5B 3F 80 13 01 00 00 00 00 00 17 [02:11:01]Write i2c OK [02:11:01]MH_I2C_Read... [02:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:11:01]Read from MH i2c: E2 [02:11:01]MH_I2C_Read... [02:11:01]Read from MH i2c: E2 0E 00 [02:11:01]MH_I2C_Read... [02:11:01]Read from MH i2c: E2 0E 00 5B 3F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 50 [02:11:01]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:11:01]wFMCommunicate OK [02:11:01]SAM_PROTO_GetShiftState done [02:11:01]FM_GetShiftState done [02:11:01]req_shift_opened done [02:11:01]requested_item shift.open_date is exist - process it [02:11:01]req_shift_open_date [02:11:01]req_shift_open_date done [02:11:01]produce_requested_data done [02:11:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139858,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:11:01]process_action_free close_receipt [02:11:01]json_value_free [02:11:01]json_value_free done [02:11:01]process_json_proto returns [02:11:01]Send response to host [02:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139858,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:11:01]free response buf [02:11:01]execute_script done [02:11:01]execute_script returns [02:11:01]free content buf [02:11:01]Sock 9.Close socket [02:11:01]Sock 9.Thread stoped [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:11]accept exits with 7 [02:13:11]New connection [02:13:11]New thread 3066510692 created [02:13:11]Thread 3066654052 joined [02:13:11]Waiting for new connection... [02:13:11] Sock 7.Parse request [02:13:11]Sock 7.Check first char [02:13:11]Sock 7.First char is OK [02:13:11]request: POST /json_proto HTTP/1.0 [02:13:11]Method: POST [02:13:11]URL: /json_proto [02:13:11]Method is POST - this is cgi request [02:13:11]url: /json_proto [02:13:11]query_string will be loaded in cgi processing [02:13:11]execute_cgi json_proto POST (null) [02:13:11]execute_cgi path=json_proto method=POST [02:13:11]POST find Content-Length [02:13:11]Host: 172.17.50.196:8080 [02:13:11]Content-Length: 620 [02:13:11]Content-Type: application/json [02:13:11] [02:13:11]POST finish read [02:13:11]Found Content-Length = 620 [02:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335678", "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" ] } } [02:13:11]execute_script... [02:13: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)335678", "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" ] } } [02:13:11]POST & json_proto [02:13:11]process_json_proto [02:13:11]json parsed OK: [02:13:11]protocol is kg_v1.0 [02:13:11]action value=close_receipt [02:13:11]process_action close_receipt [02:13:11]cmd_close_receipt [02:13:11]MH_GetDate [02:13:11]Write to MH i2c: F0 00 00 5C 3F 8A [02:13:11]Write i2c OK [02:13:11]MH_I2C_Read... [02:13:11]Read from MH i2c: F0 [02:13:11]MH_I2C_Read... [02:13:11]Read from MH i2c: F0 09 00 [02:13:11]MH_I2C_Read... [02:13:11]Read from MH i2c: F0 09 00 5C 3F 00 3B 39 24 67 72 0D 1C 67 94 [02:13:11]GetLastDocTimeStamp 1730427060 [02:13:11]current date 1730427195 [02:13:11]FM_GetShiftState [02:13:11]SAM_PROTO_GetShiftState [02:13:11]wFMCommunicate request_size=4 [02:13:11]MH_SAM_APDU [02:13:11]CAPDU: 80 13 01 00 [02:13:11]Write to MH i2c: E2 08 00 5D 3F 80 13 01 00 00 00 00 00 19 [02:13:11]Write i2c OK [02:13:11]MH_I2C_Read... [02:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:13:11]Read from MH i2c: E2 [02:13:11]MH_I2C_Read... [02:13:11]Read from MH i2c: E2 0E 00 [02:13:11]MH_I2C_Read... [02:13:11]Read from MH i2c: E2 0E 00 5D 3F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 52 [02:13:11]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:13:11]wFMCommunicate OK [02:13:11]SAM_PROTO_GetShiftState done [02:13:11]FM_GetShiftState done [02:13:11]opened in 1730419081 [02:13:11]opened+sec_in_day 1730505481 [02:13:11]quantity*price = 13900 [02:13:11]sum+1 = 13901 [02:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 40 01.11.2024 02:13 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139859 ФПД: 58300896444300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021315&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139859&fm=58300896444300&tin=02508201610067®Number=0000000000091631&sum=13900 0 [02:13:12]StoreToDocumentArchive [02:13:12]shift 558 fd 139859 [02:13:12]save to /storage/0558/doc_00139859 [02:13:12]save last doc name /storage/0558/doc_00139859 to /storage/kkm_last_doc_name [02:13:12]save OK [02:13:12]Clear old archive folders... [02:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=272 [02:13:12]tlvbuf is 00B5AF50 [02:13:12]SAM_PROTO_ClearQueue [02:13:12]wFMCommunicate request_size=4 [02:13:12]MH_SAM_APDU [02:13:12]CAPDU: 80 09 00 00 [02:13:12]Write to MH i2c: E2 08 00 6A 3F 80 09 00 00 00 00 00 00 1B [02:13:12]Write i2c OK [02:13:12]MH_I2C_Read... [02:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:13:12]Read from MH i2c: E2 [02:13:12]MH_I2C_Read... [02:13:12]Read from MH i2c: E2 03 00 [02:13:12]MH_I2C_Read... [02:13:12]Read from MH i2c: E2 03 00 6A 3F 00 90 00 1D [02:13:12]RAPDU: 90 00 [02:13:12]wFMCommunicate OK [02:13:12]SAM_PROTO_ClearQueue done [02:13:12]KKMCreateOFDPacket [02:13:12]OFDProtocolAddRootSTLVToBuf [02:13:12]FM_MakeSignedData [02:13:12]FM_MakeSignedData [02:13:12]SAM_PROTO_SignData [02:13:12]wFMCommunicate request_size=4 [02:13:12]MH_SAM_APDU [02:13:12]CAPDU: 80 0D 01 02 [02:13:12]Write to MH i2c: E2 08 00 6B 3F 80 0D 01 02 00 00 00 00 23 [02:13:12]Write i2c OK [02:13:12]MH_I2C_Read... [02:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:13:12]Read from MH i2c: E2 [02:13:12]MH_I2C_Read... [02:13:12]Read from MH i2c: E2 03 00 [02:13:12]MH_I2C_Read... [02:13:12]Read from MH i2c: E2 03 00 6B 3F 00 90 00 1E [02:13:12]RAPDU: 90 00 [02:13:12]wFMCommunicate OK [02:13:12]wFMCommunicate request_size=255 [02:13:12]MH_SAM_APDU [02:13:12]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 28 00 00 00 F4 03 04 00 3B 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [02:13:12]Write to MH i2c: E2 02 01 6C 3F 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 28 00 00 00 F4 03 04 00 3B 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 A6 [02:13:12]Write i2c OK [02:13:12]MH_I2C_Read... [02:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:13:13]Read from MH i2c: E2 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 03 00 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 03 00 6C 3F 00 90 00 1F [02:13:13]RAPDU: 90 00 [02:13:13]wFMCommunicate OK [02:13:13]wFMCommunicate request_size=31 [02:13:13]MH_SAM_APDU [02:13:13]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 53 22 02 00 35 04 06 00 35 06 3C 38 FF 8C [02:13:13]Write to MH i2c: E2 22 00 6D 3F 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 53 22 02 00 35 04 06 00 35 06 3C 38 FF 8C 00 00 0A [02:13:13]Write i2c OK [02:13:13]MH_I2C_Read... [02:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:13:13]Read from MH i2c: E2 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 03 00 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 03 00 6D 3F 00 90 00 20 [02:13:13]RAPDU: 90 00 [02:13:13]wFMCommunicate OK [02:13:13]wFMCommunicate request_size=4 [02:13:13]MH_SAM_APDU [02:13:13]CAPDU: 80 0D 03 02 [02:13:13]Write to MH i2c: E2 08 00 6E 3F 80 0D 03 02 00 00 00 00 28 [02:13:13]Write i2c OK [02:13:13]MH_I2C_Read... [02:13:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:13:13]Read from MH i2c: E2 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 0B 00 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 0B 00 6E 3F 00 ED F3 6D 51 80 07 68 E9 90 00 9F [02:13:13]RAPDU: ED F3 6D 51 80 07 68 E9 90 00 [02:13:13]wFMCommunicate OK [02:13:13]SAM_PROTO_SignData done [02:13:13]FM_MakeSignedData done [02:13:13]CreateOFDProtocolMessage [02:13:13]wFMCommunicate request_size=4 [02:13:13]MH_SAM_APDU [02:13:13]CAPDU: 80 11 00 00 [02:13:13]Write to MH i2c: E2 08 00 6F 3F 80 11 00 00 00 00 00 00 28 [02:13:13]Write i2c OK [02:13:13]MH_I2C_Read... [02:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:13:13]Read from MH i2c: E2 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 17 00 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: E2 17 00 6F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 83 [02:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:13:13]wFMCommunicate OK [02:13:13]CreateOFDProtocolMessage done [02:13:13]OFDSenderStorePacket 139859 [02:13:13]StoreOFDPacket docnum=139859 [02:13: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 24 01 00 00 F3 AB 1C 01 7D 5A 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 28 00 00 00 F4 03 04 00 3B 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 22 02 00 35 04 06 00 35 06 3C 38 FF 8C ED F3 6D 51 80 07 68 E9 [02:13:13]CheckFolder [02:13:13]dirname=/storage/ofd_packets [02:13:13]CheckFolder done [02:13:13]ProducePacketName [02:13:13]name=ofd_packets/00139859 [02:13:13]NVStorageSaveData ofd_packets/00139859 [02:13:13]File name is /storage/ofd_packets/00139859 [02:13:13]Write 322 bytes [02:13:13]NVStorageSaveData done [02:13:13]OFDSenderStorePacket done [02:13:13]KKMCreateOFDPacket done [02:13:13]NVStorageSaveData kkm_last_timestamp [02:13:13]File name is /storage/kkm_last_timestamp [02:13:13]Write 4 bytes [02:13:13]NVStorageSaveData done [02:13:13]ExternCall_PrintAddStr [02:13:13]wPrintStart [02:13:13]Write to MH i2c: 01 00 00 70 3F AF [02:13:13]Write i2c OK [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: 01 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: 01 07 00 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: 01 07 00 70 3F 00 00 00 00 00 FF 0F C4 [02:13:13]RasterBufferAndPrint [02:13:13]line Счет N : (3)335678 [02:13:13]line ИНН: 02508201610067 [02:13:13]line Контрольно-Кассовый Чек [02:13:13]line ПРОДАЖА [02:13:13]line Товар: 48745000 [02:13:13]line Сигареты Winston Purple Mix [02:13:13]line 1.000 * 139.00 [02:13:13]line = 139.00 [02:13:13]line НДС 12% НСП 1% [02:13:13]line > о реализуемом товаре [02:13:13]line ИТОГО: 139.00 [02:13:13]line НСП 1% : 1.23 [02:13:13]line НДС 12% : 14.76 [02:13:13]line Наличными: 139.00 [02:13:13]line Безнал.: 0.00 [02:13:13]line Место: АЗС № 101 "Партнер Нефть" [02:13:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:13:13]line СНО: Общий режим [02:13:13]line Чек 40 01.11.2024 02:13 [02:13:13]line Смена: 558 ФФД: 1.0 [02:13:13]line ЗНМ: 0300000081 [02:13:13]line РНМ: 0000000000091631 [02:13:13]line Версия ККМ: 001 [02:13:13]line ФМ: 0000000000874669 [02:13:13]line ФД: 139859 [02:13:13]line ФПД: 58300896444300 [02:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021315&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139859&fm=58300896444300&tin=02508201610067®Number=0000000000091631&sum=13900 [02:13:13]line 0 [02:13:13]written 0, free lines is 4095 [02:13:13]OFD Sender: Processing packet 139859 [packets to send 34, broken 33] [02:13:13]ProducePacketName [02:13:13]name=ofd_packets/00139859 [02:13:13]OFD Sender: To server: pG, [02:13:13]CommunicateWithHost lk.salyk.kg:30040 [02:13:13]ConnectInit lk.salyk.kg [02:13:13]Connected sock=10 [02:13: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 24 01 00 00 F3 AB 1C 01 7D 5A 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 28 00 00 00 F4 03 04 00 3B 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 22 02 00 35 04 06 00 35 06 3C 38 FF 8C ED F3 6D 51 80 07 68 E9 [02:13: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 49 74 47 00 3B 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 22 02 00 F4 03 04 00 E7 E4 23 67 B6 04 01 00 00 A2 56 8B C1 EC 37 05 25 [02:13:13]CommunicateWithHost err = 0 [02:13:13]CheckOFDResponse [02:13:13]1017 (14) - 77093643461234 [02:13:13]1041 (16) - 0000000000874669 [02:13:13]1040 (4) - 139859 [02:13:13]1012 (4) - 31.10.2024 20:13 [02:13:13]1206 (1) - 0 [02:13:13]OFD Sender: Remove packet 139859 [02:13:13]ProducePacketName [02:13:13]name=ofd_packets/00139859 [02:13:13]NVStorageDeleteData [02:13:13]Write to MH i2c: 01 00 00 98 3F D7 [02:13:13]Write i2c OK [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: 01 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: 01 07 00 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: 01 07 00 98 3F 00 00 00 00 00 0E 0D F9 [02:13:13]RasterBufferAndPrint [02:13:13]line [02:13:13]line [02:13:13]line [02:13:13]line [02:13:13]line [02:13:13]written 0, free lines is 3348 [02:13:13]MH_Cut [02:13:13]Write to MH i2c: D1 01 00 9F 3F 01 B0 [02:13:13]Write i2c OK [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: D1 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: D1 01 00 [02:13:13]MH_I2C_Read... [02:13:13]Read from MH i2c: D1 01 00 9F 3F 00 AF [02:13:13]Write to MH i2c: 01 00 00 A0 3F DF [02:13:13]Write i2c OK [02:13:13]MH_I2C_Read... [02:13:14]OFD Sender: No OFD packet to send [02:13:14]*** Cut start [02:13:14]*** Partial cut [02:13:14]*** CUTSNS_PIN = 1 [02:13:14]*** CUTSNS_PIN = 0 [02:13:14]*** Brake cut motor [02:13:14]Read from MH i2c: 01 [02:13:14]MH_I2C_Read... [02:13:14]*** Stop cut motor [02:13:14]*** Cut end [02:13:14]Read from MH i2c: 01 07 00 [02:13:14]MH_I2C_Read... [02:13:14]Read from MH i2c: 01 07 00 A0 3F 00 00 00 00 00 FF 0F F4 [02:13:14]process_action close_receipt done [02:13:14]requested_data is exist [02:13:14]produce_requested_data [02:13:14]requested_item fm.sn is exist - process it [02:13:14]wFMCommunicate request_size=4 [02:13:14]MH_SAM_APDU [02:13:14]CAPDU: 80 11 00 00 [02:13:15]Write to MH i2c: E2 08 00 A1 3F 80 11 00 00 00 00 00 00 5A [02:13:15]Write i2c OK [02:13:15]MH_I2C_Read... [02:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:13:15]Read from MH i2c: E2 [02:13:15]MH_I2C_Read... [02:13:15]Read from MH i2c: E2 17 00 [02:13:15]MH_I2C_Read... [02:13:15]Read from MH i2c: E2 17 00 A1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B5 [02: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 [02:13:15]wFMCommunicate OK [02:13:15]requested_item fd.num is exist - process it [02:13:15]SAM_PROTO_GetFieldsCounters [02:13:15]wFMCommunicate request_size=4 [02:13:15]MH_SAM_APDU [02:13:15]CAPDU: 80 13 00 00 [02:13:15]Write to MH i2c: E2 08 00 A2 3F 80 13 00 00 00 00 00 00 5D [02:13:15]Write i2c OK [02:13:15]MH_I2C_Read... [02:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:13:15]Read from MH i2c: E2 [02:13:15]MH_I2C_Read... [02:13:15]Read from MH i2c: E2 62 00 [02:13:15]MH_I2C_Read... [02:13:15]Read from MH i2c: E2 62 00 A2 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 53 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [02:13: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 53 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:13:15]wFMCommunicate OK [02:13:15]SAM_PROTO_GetFieldsCounters done [02:13:15]requested_item shift.num is exist - process it [02:13:15]requested_item shift.opened is exist - process it [02:13:15]req_shift_opened [02:13:15]FM_GetShiftState [02:13:15]SAM_PROTO_GetShiftState [02:13:15]wFMCommunicate request_size=4 [02:13:15]MH_SAM_APDU [02:13:15]CAPDU: 80 13 01 00 [02:13:15]Write to MH i2c: E2 08 00 A3 3F 80 13 01 00 00 00 00 00 5F [02:13:15]Write i2c OK [02:13:15]MH_I2C_Read... [02:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:13:15]Read from MH i2c: E2 [02:13:15]MH_I2C_Read... [02:13:15]Read from MH i2c: E2 0E 00 [02:13:15]MH_I2C_Read... [02:13:15]Read from MH i2c: E2 0E 00 A3 3F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 98 [02:13:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:13:15]wFMCommunicate OK [02:13:15]SAM_PROTO_GetShiftState done [02:13:15]FM_GetShiftState done [02:13:15]req_shift_opened done [02:13:15]requested_item shift.open_date is exist - process it [02:13:15]req_shift_open_date [02:13:15]req_shift_open_date done [02:13:15]produce_requested_data done [02:13:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139859,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:13:15]process_action_free close_receipt [02:13:15]json_value_free [02:13:15]json_value_free done [02:13:15]process_json_proto returns [02:13:15]Send response to host [02:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139859,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:13:15]free response buf [02:13:15]execute_script done [02:13:15]execute_script returns [02:13:15]free content buf [02:13:15]Sock 7.Close socket [02:13:15]Sock 7.Thread stoped [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:15]accept exits with 9 [02:16:15]New connection [02:16:15]New thread 3066654052 created [02:16:15]Thread 3066510692 joined [02:16:15]Waiting for new connection... [02:16:15] Sock 9.Parse request [02:16:15]Sock 9.Check first char [02:16:15]Sock 9.First char is OK [02:16:15]request: POST /json_proto HTTP/1.0 [02:16:15]Method: POST [02:16:15]URL: /json_proto [02:16:15]Method is POST - this is cgi request [02:16:15]url: /json_proto [02:16:15]query_string will be loaded in cgi processing [02:16:15]execute_cgi json_proto POST (null) [02:16:15]execute_cgi path=json_proto method=POST [02:16:15]POST find Content-Length [02:16:15]Host: 172.17.50.196:8080 [02:16:15]Content-Length: 1976 [02:16:15]Content-Type: application/json [02:16:15] [02:16:15]POST finish read [02:16:15]Found Content-Length = 1976 [02:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335679", "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": "4630007400266", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 90 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.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" : 2.000, "sum" : 8.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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 687.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:15]execute_script... [02:16: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)335679", "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": "4630007400266", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 90 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.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" : 2.000, "sum" : 8.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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 687.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:15]POST & json_proto [02:16:15]process_json_proto [02:16:15]json parsed OK: [02:16:15]protocol is kg_v1.0 [02:16:15]action value=close_receipt [02:16:15]process_action close_receipt [02:16:15]cmd_close_receipt [02:16:15]MH_GetDate [02:16:15]Write to MH i2c: F0 00 00 A4 3F D2 [02:16:15]Write i2c OK [02:16:15]MH_I2C_Read... [02:16:15]Read from MH i2c: F0 [02:16:15]MH_I2C_Read... [02:16:15]Read from MH i2c: F0 09 00 [02:16:15]MH_I2C_Read... [02:16:15]Read from MH i2c: F0 09 00 A4 3F 00 F3 39 24 67 72 0D 1C 67 94 [02:16:15]GetLastDocTimeStamp 1730427195 [02:16:15]current date 1730427379 [02:16:15]FM_GetShiftState [02:16:15]SAM_PROTO_GetShiftState [02:16:15]wFMCommunicate request_size=4 [02:16:15]MH_SAM_APDU [02:16:15]CAPDU: 80 13 01 00 [02:16:15]Write to MH i2c: E2 08 00 A5 3F 80 13 01 00 00 00 00 00 61 [02:16:15]Write i2c OK [02:16:15]MH_I2C_Read... [02:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:15]Read from MH i2c: E2 [02:16:15]MH_I2C_Read... [02:16:15]Read from MH i2c: E2 0E 00 [02:16:15]MH_I2C_Read... [02:16:15]Read from MH i2c: E2 0E 00 A5 3F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9A [02:16:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:16:15]wFMCommunicate OK [02:16:15]SAM_PROTO_GetShiftState done [02:16:15]FM_GetShiftState done [02:16:15]opened in 1730419081 [02:16:15]opened+sec_in_day 1730505481 [02:16:15]quantity*price = 17000 [02:16:15]sum+1 = 17001 [02:16:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400266 Арахис жарен Караван орехов 90 гр 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607084351385 Бисквит Чоко пай 12шт 1.000 * 340.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 69.00 = 69.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 687.00 НСП 1% : 6.07 НДС 12% : 72.96 Наличными: 0.00 Безнал.: 687.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 41 01.11.2024 02:16 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139860 ФПД: 158534402943417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021619&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139860&fm=158534402943417&tin=02508201610067®Number=0000000000091631&sum=68700 0 [02:16:17]StoreToDocumentArchive [02:16:17]shift 558 fd 139860 [02:16:17]save to /storage/0558/doc_00139860 [02:16:17]save last doc name /storage/0558/doc_00139860 to /storage/kkm_last_doc_name [02:16:17]save OK [02:16:17]Clear old archive folders... [02:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=744 [02:16:17]tlvbuf is 00B56AA0 [02:16:17]SAM_PROTO_ClearQueue [02:16:17]wFMCommunicate request_size=4 [02:16:17]MH_SAM_APDU [02:16:17]CAPDU: 80 09 00 00 [02:16:17]Write to MH i2c: E2 08 00 B2 3F 80 09 00 00 00 00 00 00 63 [02:16:17]Write i2c OK [02:16:17]MH_I2C_Read... [02:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:17]Read from MH i2c: E2 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 03 00 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 03 00 B2 3F 00 90 00 65 [02:16:17]RAPDU: 90 00 [02:16:17]wFMCommunicate OK [02:16:17]SAM_PROTO_ClearQueue done [02:16:17]KKMCreateOFDPacket [02:16:17]OFDProtocolAddRootSTLVToBuf [02:16:17]FM_MakeSignedData [02:16:17]FM_MakeSignedData [02:16:17]SAM_PROTO_SignData [02:16:17]wFMCommunicate request_size=4 [02:16:17]MH_SAM_APDU [02:16:17]CAPDU: 80 0D 01 02 [02:16:17]Write to MH i2c: E2 08 00 B3 3F 80 0D 01 02 00 00 00 00 6B [02:16:17]Write i2c OK [02:16:17]MH_I2C_Read... [02:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:17]Read from MH i2c: E2 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 03 00 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 03 00 B3 3F 00 90 00 66 [02:16:17]RAPDU: 90 00 [02:16:17]wFMCommunicate OK [02:16:17]wFMCommunicate request_size=255 [02:16:17]MH_SAM_APDU [02:16:17]CAPDU: 80 0D 02 02 FA 03 00 E8 02 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 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 [02:16:17]Write to MH i2c: E2 02 01 B4 3F 80 0D 02 02 FA 00 03 00 E8 02 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 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 3E [02:16:17]Write i2c OK [02:16:17]MH_I2C_Read... [02:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:17]Read from MH i2c: E2 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 03 00 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 03 00 B4 3F 00 90 00 67 [02:16:17]RAPDU: 90 00 [02:16:17]wFMCommunicate OK [02:16:17]wFMCommunicate request_size=255 [02:16:17]MH_SAM_APDU [02:16:17]CAPDU: 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 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 [02:16:17]Write to MH i2c: E2 02 01 B5 3F 80 0D 02 02 FA 00 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 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 00 00 F0 [02:16:17]Write i2c OK [02:16:17]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 B5 3F 00 90 00 68 [02:16:18]RAPDU: 90 00 [02:16:18]wFMCommunicate OK [02:16:18]wFMCommunicate request_size=253 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 0D 02 02 F8 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F3 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 22 02 00 35 04 06 00 90 2F AA C5 A9 B9 [02:16:18]Write to MH i2c: E2 00 01 B6 3F 80 0D 02 02 F8 00 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F3 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 22 02 00 35 04 06 00 90 2F AA C5 A9 B9 00 00 5E [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 B6 3F 00 90 00 69 [02:16:18]RAPDU: 90 00 [02:16:18]wFMCommunicate OK [02:16:18]wFMCommunicate request_size=4 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 0D 03 02 [02:16:18]Write to MH i2c: E2 08 00 B7 3F 80 0D 03 02 00 00 00 00 71 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 0B 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 0B 00 B7 3F 00 46 60 7B DC 2F 5D 44 75 90 00 B4 [02:16:18]RAPDU: 46 60 7B DC 2F 5D 44 75 90 00 [02:16:18]wFMCommunicate OK [02:16:18]SAM_PROTO_SignData done [02:16:18]FM_MakeSignedData done [02:16:18]CreateOFDProtocolMessage [02:16:18]wFMCommunicate request_size=4 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 11 00 00 [02:16:18]Write to MH i2c: E2 08 00 B8 3F 80 11 00 00 00 00 00 00 71 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 17 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 17 00 B8 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [02:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:16:18]wFMCommunicate OK [02:16:18]CreateOFDProtocolMessage done [02:16:18]OFDSenderStorePacket 139860 [02:16:18]StoreOFDPacket docnum=139860 [02:16: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 FC 02 00 00 97 41 F4 02 DD 15 5A 03 01 00 03 00 E8 02 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 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F3 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 22 02 00 35 04 06 00 90 2F AA C5 A9 B9 46 60 7B DC 2F 5D 44 75 [02:16:18]CheckFolder [02:16:18]dirname=/storage/ofd_packets [02:16:18]CheckFolder done [02:16:18]ProducePacketName [02:16:18]name=ofd_packets/00139860 [02:16:18]NVStorageSaveData ofd_packets/00139860 [02:16:18]File name is /storage/ofd_packets/00139860 [02:16:18]Write 794 bytes [02:16:18]NVStorageSaveData done [02:16:18]OFDSenderStorePacket done [02:16:18]KKMCreateOFDPacket done [02:16:18]NVStorageSaveData kkm_last_timestamp [02:16:18]File name is /storage/kkm_last_timestamp [02:16:18]Write 4 bytes [02:16:18]NVStorageSaveData done [02:16:18]ExternCall_PrintAddStr [02:16:18]wPrintStart [02:16:18]Write to MH i2c: 01 00 00 B9 3F F8 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: 01 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: 01 07 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: 01 07 00 B9 3F 00 00 00 00 00 FF 0F 0D [02:16:18]RasterBufferAndPrint [02:16:18]line Счет N : (3)335679 [02:16:18]line ИНН: 02508201610067 [02:16:18]line Контрольно-Кассовый Чек [02:16:18]line ПРОДАЖА [02:16:18]line Товар: 5449000176448 [02:16:18]line Сок Piko Pulpy апельсин ПЭТ 1л [02:16:18]line 1.000 * 170.00 [02:16:18]line = 170.00 [02:16:18]line НДС 12% НСП 1% [02:16:18]line > о реализуемом товаре [02:16:18]line Товар: 4630007400266 [02:16:18]line Арахис жарен Караван орехов 90 гр [02:16:18]line 1.000 * 100.00 [02:16:18]line = 100.00 [02:16:18]line НДС 12% НСП 1% [02:16:18]line > о реализуемом товаре [02:16:18]line Товар: 4607084351385 [02:16:18]line Бисквит Чоко пай 12шт [02:16:18]line 1.000 * 340.00 [02:16:18]line = 340.00 [02:16:18]line НДС 12% НСП 1% [02:16:18]line > о реализуемом товаре [02:16:18]line Товар: 2000031750019 [02:16:18]line Пакет Партнер Нефть [02:16:18]line 2.000 * 4.00 [02:16:18]line = 8.00 [02:16:18]line НДС 12% НСП 1% [02:16:18]line > о реализуемом товаре [02:16:18]line Товар: 4607065000790 [02:16:18]line Шок M&M`s с арахисом 45г [02:16:18]line 1.000 * 69.00 [02:16:18]line = 69.00 [02:16:18]line НДС 12% НСП 1% [02:16:18]line > о реализуемом товаре [02:16:18]line ИТОГО: 687.00 [02:16:18]line НСП 1% : 6.07 [02:16:18]line НДС 12% : 72.96 [02:16:18]line Наличными: 0.00 [02:16:18]line Безнал.: 687.00 [02:16:18]line Место: АЗС № 101 "Партнер Нефть" [02:16:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:16:18]line СНО: Общий режим [02:16:18]line Чек 41 01.11.2024 02:16 [02:16:18]line Смена: 558 ФФД: 1.0 [02:16:18]line ЗНМ: 0300000081 [02:16:18]line РНМ: 0000000000091631 [02:16:18]line Версия ККМ: 001 [02:16:18]line Платежная система: O! деньги [02:16:18]line ФМ: 0000000000874669 [02:16:18]line ФД: 139860 [02:16:18]line ФПД: 158534402943417 [02:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021619&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139860&fm=158534402943417&tin=02508201610067®Number=0000000000091631&sum=68700 [02:16:18]line 0 [02:16:18]OFD Sender: Processing packet 139860 [packets to send 34, broken 33] [02:16:18]ProducePacketName [02:16:18]name=ofd_packets/00139860 [02:16:18]OFD Sender: To server: pG, [02:16:18]CommunicateWithHost lk.salyk.kg:30040 [02:16:18]ConnectInit lk.salyk.kg [02:16:18]written 0, free lines is 4095 [02:16:18]Connected sock=10 [02:16: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 FC 02 00 00 97 41 F4 02 DD 15 5A 03 01 00 03 00 E8 02 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 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 F3 39 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 22 02 00 35 04 06 00 90 2F AA C5 A9 B9 46 60 7B DC 2F 5D 44 75 [02:16: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 C6 B9 47 00 99 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 22 02 00 F4 03 04 00 A0 E5 23 67 B6 04 01 00 00 B4 BD B3 A0 4F 00 E9 BD [02:16:19]CommunicateWithHost err = 0 [02:16:19]CheckOFDResponse [02:16:19]1017 (14) - 77093643461234 [02:16:19]1041 (16) - 0000000000874669 [02:16:19]1040 (4) - 139860 [02:16:19]1012 (4) - 31.10.2024 20:16 [02:16:19]1206 (1) - 0 [02:16:19]OFD Sender: Remove packet 139860 [02:16:19]ProducePacketName [02:16:19]name=ofd_packets/00139860 [02:16:19]NVStorageDeleteData [02:16:19]Write to MH i2c: 01 00 00 FD 3F 3C [02:16:19]Write i2c OK [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: 01 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: 01 07 00 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: 01 07 00 FD 3F 00 00 00 00 00 99 0B E7 [02:16:19]RasterBufferAndPrint [02:16:19]line [02:16:19]line [02:16:19]line [02:16:19]line [02:16:19]line [02:16:19]written 0, free lines is 2981 [02:16:19]MH_Cut [02:16:19]Write to MH i2c: D1 01 00 04 40 01 16 [02:16:19]Write i2c OK [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: D1 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: D1 01 00 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: D1 01 00 04 40 00 15 [02:16:19]Write to MH i2c: 01 00 00 05 40 45 [02:16:19]Write i2c OK [02:16:19]MH_I2C_Read... [02:16:19]OFD Sender: No OFD packet to send [02:16:20]*** Cut start [02:16:20]*** Partial cut [02:16:20]*** CUTSNS_PIN = 1 [02:16:20]*** CUTSNS_PIN = 0 [02:16:20]*** Brake cut motor [02:16:20]Read from MH i2c: 01 [02:16:20]MH_I2C_Read... [02:16:20]*** Stop cut motor [02:16:20]*** Cut end [02:16:20]Read from MH i2c: 01 07 00 [02:16:20]MH_I2C_Read... [02:16:20]Read from MH i2c: 01 07 00 05 40 00 00 00 00 00 FF 0F 5A [02:16:20]process_action close_receipt done [02:16:20]requested_data is exist [02:16:20]produce_requested_data [02:16:20]requested_item fm.sn is exist - process it [02:16:20]wFMCommunicate request_size=4 [02:16:20]MH_SAM_APDU [02:16:20]CAPDU: 80 11 00 00 [02:16:20]Write to MH i2c: E2 08 00 06 40 80 11 00 00 00 00 00 00 C0 [02:16:20]Write i2c OK [02:16:20]MH_I2C_Read... [02:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:21]Read from MH i2c: E2 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 17 00 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 17 00 06 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1B [02:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:16:21]wFMCommunicate OK [02:16:21]requested_item fd.num is exist - process it [02:16:21]SAM_PROTO_GetFieldsCounters [02:16:21]wFMCommunicate request_size=4 [02:16:21]MH_SAM_APDU [02:16:21]CAPDU: 80 13 00 00 [02:16:21]Write to MH i2c: E2 08 00 07 40 80 13 00 00 00 00 00 00 C3 [02:16:21]Write i2c OK [02:16:21]MH_I2C_Read... [02:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:21]Read from MH i2c: E2 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 62 00 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 62 00 07 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 54 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [02:16: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 54 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:16:21]wFMCommunicate OK [02:16:21]SAM_PROTO_GetFieldsCounters done [02:16:21]requested_item shift.num is exist - process it [02:16:21]requested_item shift.opened is exist - process it [02:16:21]req_shift_opened [02:16:21]FM_GetShiftState [02:16:21]SAM_PROTO_GetShiftState [02:16:21]wFMCommunicate request_size=4 [02:16:21]MH_SAM_APDU [02:16:21]CAPDU: 80 13 01 00 [02:16:21]Write to MH i2c: E2 08 00 08 40 80 13 01 00 00 00 00 00 C5 [02:16:21]Write i2c OK [02:16:21]MH_I2C_Read... [02:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:21]Read from MH i2c: E2 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 0E 00 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 0E 00 08 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FE [02:16:21]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:16:21]wFMCommunicate OK [02:16:21]SAM_PROTO_GetShiftState done [02:16:21]FM_GetShiftState done [02:16:21]req_shift_opened done [02:16:21]requested_item shift.open_date is exist - process it [02:16:21]req_shift_open_date [02:16:21]req_shift_open_date done [02:16:21]produce_requested_data done [02:16:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139860,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:16:21]process_action_free close_receipt [02:16:21]json_value_free [02:16:21]json_value_free done [02:16:21]process_json_proto returns [02:16:21]Send response to host [02:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139860,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:16:21]free response buf [02:16:21]execute_script done [02:16:21]execute_script returns [02:16:21]free content buf [02:16:21]Sock 9.Close socket [02:16:21]Sock 9.Thread stoped [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:31]accept exits with 7 [02:19:31]New connection [02:19:31]New thread 3066510692 created [02:19:31]Thread 3066654052 joined [02:19:31]Waiting for new connection... [02:19:31] Sock 7.Parse request [02:19:31]Sock 7.Check first char [02:19:31]Sock 7.First char is OK [02:19:31]request: POST /json_proto HTTP/1.0 [02:19:31]Method: POST [02:19:31]URL: /json_proto [02:19:31]Method is POST - this is cgi request [02:19:31]url: /json_proto [02:19:31]query_string will be loaded in cgi processing [02:19:31]execute_cgi json_proto POST (null) [02:19:31]execute_cgi path=json_proto method=POST [02:19:31]POST find Content-Length [02:19:31]Host: 172.17.50.196:8080 [02:19:31]Content-Length: 770 [02:19:31]Content-Type: application/json [02:19:31] [02:19:31]POST finish read [02:19:31]Found Content-Length = 770 [02:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335680", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:31]execute_script... [02: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)335680", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:31]POST & json_proto [02:19:31]process_json_proto [02:19:31]json parsed OK: [02:19:31]protocol is kg_v1.0 [02:19:31]action value=close_receipt [02:19:31]process_action close_receipt [02:19:31]cmd_close_receipt [02:19:31]MH_GetDate [02:19:31]Write to MH i2c: F0 00 00 09 40 38 [02:19:31]Write i2c OK [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: F0 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: F0 09 00 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: F0 09 00 09 40 00 B7 3A 24 67 72 0D 1C 67 BF [02:19:31]GetLastDocTimeStamp 1730427379 [02:19:31]current date 1730427575 [02:19:31]FM_GetShiftState [02:19:31]SAM_PROTO_GetShiftState [02:19:31]wFMCommunicate request_size=4 [02:19:31]MH_SAM_APDU [02:19:31]CAPDU: 80 13 01 00 [02:19:31]Write to MH i2c: E2 08 00 0A 40 80 13 01 00 00 00 00 00 C7 [02:19:31]Write i2c OK [02:19:31]MH_I2C_Read... [02:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:31]Read from MH i2c: E2 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: E2 0E 00 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: E2 0E 00 0A 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 00 [02:19:31]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:19:31]wFMCommunicate OK [02:19:31]SAM_PROTO_GetShiftState done [02:19:31]FM_GetShiftState done [02:19:31]opened in 1730419081 [02:19:31]opened+sec_in_day 1730505481 [02:19:31]quantity*price = 13400 [02:19:31]sum+1 = 13401 [02:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 0.00 Безнал.: 134.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 42 01.11.2024 02:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139861 ФПД: 136370075284856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021935&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139861&fm=136370075284856&tin=02508201610067®Number=0000000000091631&sum=13400 0 [02:19:32]StoreToDocumentArchive [02:19:32]shift 558 fd 139861 [02:19:32]save to /storage/0558/doc_00139861 [02:19:32]save last doc name /storage/0558/doc_00139861 to /storage/kkm_last_doc_name [02:19:32]save OK [02:19:32]Clear old archive folders... [02:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=261 [02:19:32]tlvbuf is 00B28A10 [02:19:32]SAM_PROTO_ClearQueue [02:19:32]wFMCommunicate request_size=4 [02:19:32]MH_SAM_APDU [02:19:32]CAPDU: 80 09 00 00 [02:19:32]Write to MH i2c: E2 08 00 17 40 80 09 00 00 00 00 00 00 C9 [02:19:32]Write i2c OK [02:19:32]MH_I2C_Read... [02:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:32]Read from MH i2c: E2 [02:19:32]MH_I2C_Read... [02:19:32]Read from MH i2c: E2 03 00 [02:19:32]MH_I2C_Read... [02:19:32]Read from MH i2c: E2 03 00 17 40 00 90 00 CB [02:19:32]RAPDU: 90 00 [02:19:32]wFMCommunicate OK [02:19:32]SAM_PROTO_ClearQueue done [02:19:32]KKMCreateOFDPacket [02:19:32]OFDProtocolAddRootSTLVToBuf [02:19:32]FM_MakeSignedData [02:19:32]FM_MakeSignedData [02:19:32]SAM_PROTO_SignData [02:19:32]wFMCommunicate request_size=4 [02:19:32]MH_SAM_APDU [02:19:32]CAPDU: 80 0D 01 02 [02:19:32]Write to MH i2c: E2 08 00 18 40 80 0D 01 02 00 00 00 00 D1 [02:19:32]Write i2c OK [02:19:32]MH_I2C_Read... [02:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:32]Read from MH i2c: E2 [02:19:32]MH_I2C_Read... [02:19:32]Read from MH i2c: E2 03 00 [02:19:32]MH_I2C_Read... [02:19:32]Read from MH i2c: E2 03 00 18 40 00 90 00 CC [02:19:32]RAPDU: 90 00 [02:19:32]wFMCommunicate OK [02:19:32]wFMCommunicate request_size=255 [02:19:32]MH_SAM_APDU [02:19:32]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B7 3A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 [02:19:32]Write to MH i2c: E2 02 01 19 40 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B7 3A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 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 C9 [02:19:32]Write i2c OK [02:19:32]MH_I2C_Read... [02:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:33]Read from MH i2c: E2 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 03 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 03 00 19 40 00 90 00 CD [02:19:33]RAPDU: 90 00 [02:19:33]wFMCommunicate OK [02:19:33]wFMCommunicate request_size=20 [02:19:33]MH_SAM_APDU [02:19:33]CAPDU: 80 0D 02 02 0F 00 55 22 02 00 35 04 06 00 7C 07 21 E5 35 78 [02:19:33]Write to MH i2c: E2 17 00 1A 40 80 0D 02 02 0F 00 00 55 22 02 00 35 04 06 00 7C 07 21 E5 35 78 00 00 E0 [02:19:33]Write i2c OK [02:19:33]MH_I2C_Read... [02:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:33]Read from MH i2c: E2 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 03 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 03 00 1A 40 00 90 00 CE [02:19:33]RAPDU: 90 00 [02:19:33]wFMCommunicate OK [02:19:33]wFMCommunicate request_size=4 [02:19:33]MH_SAM_APDU [02:19:33]CAPDU: 80 0D 03 02 [02:19:33]Write to MH i2c: E2 08 00 1B 40 80 0D 03 02 00 00 00 00 D6 [02:19:33]Write i2c OK [02:19:33]MH_I2C_Read... [02:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:33]Read from MH i2c: E2 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 0B 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 0B 00 1B 40 00 A0 D8 D2 28 89 5B 43 62 90 00 D2 [02:19:33]RAPDU: A0 D8 D2 28 89 5B 43 62 90 00 [02:19:33]wFMCommunicate OK [02:19:33]SAM_PROTO_SignData done [02:19:33]FM_MakeSignedData done [02:19:33]CreateOFDProtocolMessage [02:19:33]wFMCommunicate request_size=4 [02:19:33]MH_SAM_APDU [02:19:33]CAPDU: 80 11 00 00 [02:19:33]Write to MH i2c: E2 08 00 1C 40 80 11 00 00 00 00 00 00 D6 [02:19:33]Write i2c OK [02:19:33]MH_I2C_Read... [02:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:33]Read from MH i2c: E2 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 17 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 17 00 1C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 31 [02: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 [02:19:33]wFMCommunicate OK [02:19:33]CreateOFDProtocolMessage done [02:19:33]OFDSenderStorePacket 139861 [02:19:33]StoreOFDPacket docnum=139861 [02: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 19 01 00 00 FE 92 11 01 92 D7 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B7 3A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 22 02 00 35 04 06 00 7C 07 21 E5 35 78 A0 D8 D2 28 89 5B 43 62 [02:19:33]CheckFolder [02:19:33]dirname=/storage/ofd_packets [02:19:33]CheckFolder done [02:19:33]ProducePacketName [02:19:33]name=ofd_packets/00139861 [02:19:33]NVStorageSaveData ofd_packets/00139861 [02:19:33]File name is /storage/ofd_packets/00139861 [02:19:33]Write 311 bytes [02:19:33]NVStorageSaveData done [02:19:33]OFDSenderStorePacket done [02:19:33]KKMCreateOFDPacket done [02:19:33]NVStorageSaveData kkm_last_timestamp [02:19:33]File name is /storage/kkm_last_timestamp [02:19:33]Write 4 bytes [02:19:33]NVStorageSaveData done [02:19:33]ExternCall_PrintAddStr [02:19:33]wPrintStart [02:19:33]Write to MH i2c: 01 00 00 1D 40 5D [02:19:33]Write i2c OK [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: 01 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: 01 07 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: 01 07 00 1D 40 00 00 00 00 00 FF 0F 72 [02:19:33]RasterBufferAndPrint [02:19:33]line Счет N : (3)335680 [02:19:33]line ИНН: 02508201610067 [02:19:33]line Контрольно-Кассовый Чек [02:19:33]line ПРОДАЖА [02:19:33]line Товар: 48741156 [02:19:33]line Сигареты LD Blue [02:19:33]line 1.000 * 134.00 [02:19:33]line = 134.00 [02:19:33]line НДС 12% НСП 1% [02:19:33]line > о реализуемом товаре [02:19:33]line ИТОГО: 134.00 [02:19:33]line НСП 1% : 1.19 [02:19:33]line НДС 12% : 14.23 [02:19:33]line Наличными: 0.00 [02:19:33]line Безнал.: 134.00 [02:19:33]line Место: АЗС № 101 "Партнер Нефть" [02:19:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:19:33]line СНО: Общий режим [02:19:33]line Чек 42 01.11.2024 02:19 [02:19:33]line Смена: 558 ФФД: 1.0 [02:19:33]line ЗНМ: 0300000081 [02:19:33]line РНМ: 0000000000091631 [02:19:33]line Версия ККМ: 001 [02:19:33]line Платежная система: O! деньги [02:19:33]line ФМ: 0000000000874669 [02:19:33]line ФД: 139861 [02:19:33]line ФПД: 136370075284856 [02:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T021935&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139861&fm=136370075284856&tin=02508201610067®Number=0000000000091631&sum=13400 [02:19:33]OFD Sender: Processing packet 139861 [packets to send 34, broken 33] [02:19:33]ProducePacketName [02:19:33]name=ofd_packets/00139861 [02:19:33]OFD Sender: To server: pG, [02:19:33]CommunicateWithHost lk.salyk.kg:30040 [02:19:33]ConnectInit lk.salyk.kg [02:19:33]line 0 [02:19:33]written 0, free lines is 4095 [02:19:33]Connected sock=10 [02: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 19 01 00 00 FE 92 11 01 92 D7 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B7 3A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 22 02 00 35 04 06 00 7C 07 21 E5 35 78 A0 D8 D2 28 89 5B 43 62 [02:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FF 1A 47 00 60 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 22 02 00 F4 03 04 00 63 E6 23 67 B6 04 01 00 00 E5 DD CE D5 DB 11 97 15 [02:19:34]CommunicateWithHost err = 0 [02:19:34]CheckOFDResponse [02:19:34]1017 (14) - 77093643461234 [02:19:34]1041 (16) - 0000000000874669 [02:19:34]1040 (4) - 139861 [02:19:34]1012 (4) - 31.10.2024 20:19 [02:19:34]1206 (1) - 0 [02:19:34]OFD Sender: Remove packet 139861 [02:19:34]ProducePacketName [02:19:34]name=ofd_packets/00139861 [02:19:34]NVStorageDeleteData [02:19:34]Write to MH i2c: 01 00 00 47 40 87 [02:19:34]Write i2c OK [02:19:34]MH_I2C_Read... [02:19:34]Read from MH i2c: 01 [02:19:34]MH_I2C_Read... [02:19:34]Read from MH i2c: 01 07 00 [02:19:34]MH_I2C_Read... [02:19:34]Read from MH i2c: 01 07 00 47 40 00 00 00 00 00 EF 0C 89 [02:19:34]RasterBufferAndPrint [02:19:34]line [02:19:34]line [02:19:34]line [02:19:34]line [02:19:34]line [02:19:34]written 0, free lines is 3318 [02:19:34]MH_Cut [02:19:34]Write to MH i2c: D1 01 00 4E 40 01 60 [02:19:34]Write i2c OK [02:19:34]MH_I2C_Read... [02:19:34]Read from MH i2c: D1 [02:19:34]MH_I2C_Read... [02:19:34]Read from MH i2c: D1 01 00 [02:19:34]MH_I2C_Read... [02:19:34]Read from MH i2c: D1 01 00 4E 40 00 5F [02:19:34]Write to MH i2c: 01 00 00 4F 40 8F [02:19:34]Write i2c OK [02:19:34]MH_I2C_Read... [02:19:34]OFD Sender: No OFD packet to send [02:19:34]*** Cut start [02:19:34]*** Partial cut [02:19:34]*** CUTSNS_PIN = 1 [02:19:34]*** CUTSNS_PIN = 0 [02:19:35]*** Brake cut motor [02:19:35]Read from MH i2c: 01 [02:19:35]MH_I2C_Read... [02:19:35]*** Stop cut motor [02:19:35]*** Cut end [02:19:35]Read from MH i2c: 01 07 00 [02:19:35]MH_I2C_Read... [02:19:35]Read from MH i2c: 01 07 00 4F 40 00 00 00 00 00 FF 0F A4 [02:19:35]process_action close_receipt done [02:19:35]requested_data is exist [02:19:35]produce_requested_data [02:19:35]requested_item fm.sn is exist - process it [02:19:35]wFMCommunicate request_size=4 [02:19:35]MH_SAM_APDU [02:19:35]CAPDU: 80 11 00 00 [02:19:35]Write to MH i2c: E2 08 00 50 40 80 11 00 00 00 00 00 00 0A [02:19:35]Write i2c OK [02:19:35]MH_I2C_Read... [02:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:35]Read from MH i2c: E2 [02:19:35]MH_I2C_Read... [02:19:35]Read from MH i2c: E2 17 00 [02:19:35]MH_I2C_Read... [02:19:35]Read from MH i2c: E2 17 00 50 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 65 [02: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 [02:19:35]wFMCommunicate OK [02:19:35]requested_item fd.num is exist - process it [02:19:35]SAM_PROTO_GetFieldsCounters [02:19:35]wFMCommunicate request_size=4 [02:19:35]MH_SAM_APDU [02:19:35]CAPDU: 80 13 00 00 [02:19:35]Write to MH i2c: E2 08 00 51 40 80 13 00 00 00 00 00 00 0D [02:19:35]Write i2c OK [02:19:35]MH_I2C_Read... [02:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:35]Read from MH i2c: E2 [02:19:35]MH_I2C_Read... [02:19:35]Read from MH i2c: E2 62 00 [02:19:35]MH_I2C_Read... [02:19:35]Read from MH i2c: E2 62 00 51 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 55 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [02: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 55 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:19:35]wFMCommunicate OK [02:19:35]SAM_PROTO_GetFieldsCounters done [02:19:35]requested_item shift.num is exist - process it [02:19:35]requested_item shift.opened is exist - process it [02:19:35]req_shift_opened [02:19:35]FM_GetShiftState [02:19:35]SAM_PROTO_GetShiftState [02:19:35]wFMCommunicate request_size=4 [02:19:35]MH_SAM_APDU [02:19:35]CAPDU: 80 13 01 00 [02:19:35]Write to MH i2c: E2 08 00 52 40 80 13 01 00 00 00 00 00 0F [02:19:35]Write i2c OK [02:19:35]MH_I2C_Read... [02:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:35]Read from MH i2c: E2 [02:19:35]MH_I2C_Read... [02:19:35]Read from MH i2c: E2 0E 00 [02:19:35]MH_I2C_Read... [02:19:35]Read from MH i2c: E2 0E 00 52 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 48 [02:19:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:19:35]wFMCommunicate OK [02:19:35]SAM_PROTO_GetShiftState done [02:19:35]FM_GetShiftState done [02:19:35]req_shift_opened done [02:19:35]requested_item shift.open_date is exist - process it [02:19:35]req_shift_open_date [02:19:35]req_shift_open_date done [02:19:35]produce_requested_data done [02:19:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139861,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:19:35]process_action_free close_receipt [02:19:35]json_value_free [02:19:35]json_value_free done [02:19:35]process_json_proto returns [02:19:35]Send response to host [02:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139861,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:19:35]free response buf [02:19:35]execute_script done [02:19:35]execute_script returns [02:19:35]free content buf [02:19:35]Sock 7.Close socket [02:19:35]Sock 7.Thread stoped [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]accept exits with 9 [02:27:04]New connection [02:27:04]New thread 3066654052 created [02:27:04]Thread 3066510692 joined [02:27:04]Waiting for new connection... [02:27:04] Sock 9.Parse request [02:27:04]Sock 9.Check first char [02:27:04]Sock 9.First char is OK [02:27:04]request: POST /json_proto HTTP/1.0 [02:27:04]Method: POST [02:27:04]URL: /json_proto [02:27:04]Method is POST - this is cgi request [02:27:04]url: /json_proto [02:27:04]query_string will be loaded in cgi processing [02:27:04]execute_cgi json_proto POST (null) [02:27:04]execute_cgi path=json_proto method=POST [02:27:04]POST find Content-Length [02:27:04]Host: 172.17.50.196:8080 [02:27:04]Content-Length: 836 [02:27:04]Content-Type: application/json [02:27:04] [02:27:04]POST finish read [02:27:04]Found Content-Length = 836 [02:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335681", "tax_sys" : 0, "items" : [ { "code": "5449000325891", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043F\u0440\u0430\u0439\u0442 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:27:04]execute_script... [02:27: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)335681", "tax_sys" : 0, "items" : [ { "code": "5449000325891", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043F\u0440\u0430\u0439\u0442 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:27:04]POST & json_proto [02:27:04]process_json_proto [02:27:04]json parsed OK: [02:27:04]protocol is kg_v1.0 [02:27:04]action value=close_receipt [02:27:04]process_action close_receipt [02:27:04]cmd_close_receipt [02:27:04]MH_GetDate [02:27:04]Write to MH i2c: F0 00 00 53 40 82 [02:27:04]Write i2c OK [02:27:04]MH_I2C_Read... [02:27:04]Read from MH i2c: F0 [02:27:04]MH_I2C_Read... [02:27:04]Read from MH i2c: F0 09 00 [02:27:04]MH_I2C_Read... [02:27:04]Read from MH i2c: F0 09 00 53 40 00 7C 3C 24 67 72 0D 1C 67 D0 [02:27:04]GetLastDocTimeStamp 1730427575 [02:27:04]current date 1730428028 [02:27:04]FM_GetShiftState [02:27:04]SAM_PROTO_GetShiftState [02:27:04]wFMCommunicate request_size=4 [02:27:04]MH_SAM_APDU [02:27:04]CAPDU: 80 13 01 00 [02:27:04]Write to MH i2c: E2 08 00 54 40 80 13 01 00 00 00 00 00 11 [02:27:04]Write i2c OK [02:27:04]MH_I2C_Read... [02:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:04]Read from MH i2c: E2 [02:27:04]MH_I2C_Read... [02:27:04]Read from MH i2c: E2 0E 00 [02:27:04]MH_I2C_Read... [02:27:04]Read from MH i2c: E2 0E 00 54 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4A [02:27:04]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:27:04]wFMCommunicate OK [02:27:04]SAM_PROTO_GetShiftState done [02:27:04]FM_GetShiftState done [02:27:04]opened in 1730419081 [02:27:04]opened+sec_in_day 1730505481 [02:27:04]quantity*price = 9000 [02:27:04]sum+1 = 9001 [02:27:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 43 01.11.2024 02:27 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874669 ФД: 139862 ФПД: 260959057806418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T022708&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139862&fm=260959057806418&tin=02508201610067®Number=0000000000091631&sum=9000 0 [02:27:05]StoreToDocumentArchive [02:27:05]shift 558 fd 139862 [02:27:05]save to /storage/0558/doc_00139862 [02:27:05]save last doc name /storage/0558/doc_00139862 to /storage/kkm_last_doc_name [02:27:05]save OK [02:27:05]Clear old archive folders... [02:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=282 [02:27:05]tlvbuf is 00A3ACC0 [02:27:05]SAM_PROTO_ClearQueue [02:27:05]wFMCommunicate request_size=4 [02:27:05]MH_SAM_APDU [02:27:05]CAPDU: 80 09 00 00 [02:27:05]Write to MH i2c: E2 08 00 61 40 80 09 00 00 00 00 00 00 13 [02:27:05]Write i2c OK [02:27:05]MH_I2C_Read... [02:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:27:05]Read from MH i2c: E2 [02:27:05]MH_I2C_Read... [02:27:05]Read from MH i2c: E2 03 00 [02:27:05]MH_I2C_Read... [02:27:05]Read from MH i2c: E2 03 00 61 40 00 90 00 15 [02:27:05]RAPDU: 90 00 [02:27:05]wFMCommunicate OK [02:27:05]SAM_PROTO_ClearQueue done [02:27:05]KKMCreateOFDPacket [02:27:05]OFDProtocolAddRootSTLVToBuf [02:27:05]FM_MakeSignedData [02:27:05]FM_MakeSignedData [02:27:05]SAM_PROTO_SignData [02:27:05]wFMCommunicate request_size=4 [02:27:05]MH_SAM_APDU [02:27:05]CAPDU: 80 0D 01 02 [02:27:05]Write to MH i2c: E2 08 00 62 40 80 0D 01 02 00 00 00 00 1B [02:27:05]Write i2c OK [02:27:05]MH_I2C_Read... [02:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:27:05]Read from MH i2c: E2 [02:27:05]MH_I2C_Read... [02:27:05]Read from MH i2c: E2 03 00 [02:27:05]MH_I2C_Read... [02:27:05]Read from MH i2c: E2 03 00 62 40 00 90 00 16 [02:27:05]RAPDU: 90 00 [02:27:05]wFMCommunicate OK [02:27:05]wFMCommunicate request_size=255 [02:27:05]MH_SAM_APDU [02:27:05]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 3C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [02:27:05]Write to MH i2c: E2 02 01 63 40 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 3C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 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 F1 [02:27:05]Write i2c OK [02:27:05]MH_I2C_Read... [02:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:06]Read from MH i2c: E2 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 03 00 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 03 00 63 40 00 90 00 17 [02:27:06]RAPDU: 90 00 [02:27:06]wFMCommunicate OK [02:27:06]wFMCommunicate request_size=41 [02:27:06]MH_SAM_APDU [02:27:06]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 56 22 02 00 35 04 06 00 ED 57 43 F1 04 52 [02:27:06]Write to MH i2c: E2 2C 00 64 40 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 56 22 02 00 35 04 06 00 ED 57 43 F1 04 52 00 00 3D [02:27:06]Write i2c OK [02:27:06]MH_I2C_Read... [02:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:06]Read from MH i2c: E2 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 03 00 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 03 00 64 40 00 90 00 18 [02:27:06]RAPDU: 90 00 [02:27:06]wFMCommunicate OK [02:27:06]wFMCommunicate request_size=4 [02:27:06]MH_SAM_APDU [02:27:06]CAPDU: 80 0D 03 02 [02:27:06]Write to MH i2c: E2 08 00 65 40 80 0D 03 02 00 00 00 00 20 [02:27:06]Write i2c OK [02:27:06]MH_I2C_Read... [02:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:27:06]Read from MH i2c: E2 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 0B 00 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 0B 00 65 40 00 06 C4 2F 9E 3D 5C 7C 03 90 00 D0 [02:27:06]RAPDU: 06 C4 2F 9E 3D 5C 7C 03 90 00 [02:27:06]wFMCommunicate OK [02:27:06]SAM_PROTO_SignData done [02:27:06]FM_MakeSignedData done [02:27:06]CreateOFDProtocolMessage [02:27:06]wFMCommunicate request_size=4 [02:27:06]MH_SAM_APDU [02:27:06]CAPDU: 80 11 00 00 [02:27:06]Write to MH i2c: E2 08 00 66 40 80 11 00 00 00 00 00 00 20 [02:27:06]Write i2c OK [02:27:06]MH_I2C_Read... [02:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:06]Read from MH i2c: E2 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 17 00 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: E2 17 00 66 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7B [02:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:27:06]wFMCommunicate OK [02:27:06]CreateOFDProtocolMessage done [02:27:06]OFDSenderStorePacket 139862 [02:27:06]StoreOFDPacket docnum=139862 [02:27: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 2E 01 00 00 DE 26 26 01 67 DB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 3C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 22 02 00 35 04 06 00 ED 57 43 F1 04 52 06 C4 2F 9E 3D 5C 7C 03 [02:27:06]CheckFolder [02:27:06]dirname=/storage/ofd_packets [02:27:06]CheckFolder done [02:27:06]ProducePacketName [02:27:06]name=ofd_packets/00139862 [02:27:06]NVStorageSaveData ofd_packets/00139862 [02:27:06]File name is /storage/ofd_packets/00139862 [02:27:06]Write 332 bytes [02:27:06]NVStorageSaveData done [02:27:06]OFDSenderStorePacket done [02:27:06]KKMCreateOFDPacket done [02:27:06]NVStorageSaveData kkm_last_timestamp [02:27:06]File name is /storage/kkm_last_timestamp [02:27:06]Write 4 bytes [02:27:06]NVStorageSaveData done [02:27:06]ExternCall_PrintAddStr [02:27:06]wPrintStart [02:27:06]Write to MH i2c: 01 00 00 67 40 A7 [02:27:06]Write i2c OK [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: 01 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: 01 07 00 [02:27:06]MH_I2C_Read... [02:27:06]Read from MH i2c: 01 07 00 67 40 00 00 00 00 00 FF 0F BC [02:27:06]RasterBufferAndPrint [02:27:06]line Счет N : (3)335681 [02:27:06]line ИНН: 02508201610067 [02:27:06]line Контрольно-Кассовый Чек [02:27:06]line ПРОДАЖА [02:27:06]line Товар: 5449000325891 [02:27:06]line Напиток Спрайт 0,45л ж/б [02:27:06]line 1.000 * 90.00 [02:27:06]line = 90.00 [02:27:06]line НДС 12% НСП 1% [02:27:06]line > о реализуемом товаре [02:27:06]line ИТОГО: 90.00 [02:27:06]line НСП 1% : 0.80 [02:27:06]line НДС 12% : 9.56 [02:27:06]line Наличными: 0.00 [02:27:06]line Безнал.: 90.00 [02:27:06]line Место: АЗС № 101 "Партнер Нефть" [02:27:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:27:06]line СНО: Общий режим [02:27:06]line Чек 43 01.11.2024 02:27 [02:27:06]line Смена: 558 ФФД: 1.0 [02:27:06]line ЗНМ: 0300000081 [02:27:06]line РНМ: 0000000000091631 [02:27:06]line Версия ККМ: 001 [02:27:06]line Платежная система: Бакай Банк [02:27:06]line ФМ: 0000000000874669 [02:27:06]line ФД: 139862 [02:27:06]line ФПД: 260959057806418 [02:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T022708&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139862&fm=260959057806418&tin=02508201610067®Number=0000000000091631&sum=9000 [02:27:06]line 0 [02:27:06]OFD Sender: Processing packet 139862 [packets to send 34, broken 33] [02:27:06]ProducePacketName [02:27:06]name=ofd_packets/00139862 [02:27:06]OFD Sender: To server: pG, [02:27:06]CommunicateWithHost lk.salyk.kg:30040 [02:27:06]ConnectInit lk.salyk.kg [02:27:06]written 0, free lines is 4095 [02:27:06]Connected sock=10 [02:27: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 2E 01 00 00 DE 26 26 01 67 DB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 38 39 31 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7C 3C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 22 02 00 35 04 06 00 ED 57 43 F1 04 52 06 C4 2F 9E 3D 5C 7C 03 [02:27: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 36 F8 47 00 1A 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 56 22 02 00 F4 03 04 00 28 E8 23 67 B6 04 01 00 00 0E A0 1F FB 65 DF D4 09 [02:27:06]CommunicateWithHost err = 0 [02:27:06]CheckOFDResponse [02:27:06]1017 (14) - 77093643461234 [02:27:06]1041 (16) - 0000000000874669 [02:27:06]1040 (4) - 139862 [02:27:06]1012 (4) - 31.10.2024 20:27 [02:27:06]1206 (1) - 0 [02:27:06]OFD Sender: Remove packet 139862 [02:27:06]ProducePacketName [02:27:06]name=ofd_packets/00139862 [02:27:06]NVStorageDeleteData [02:27:07]Write to MH i2c: 01 00 00 91 40 D1 [02:27:07]Write i2c OK [02:27:07]MH_I2C_Read... [02:27:07]Read from MH i2c: 01 [02:27:07]MH_I2C_Read... [02:27:07]Read from MH i2c: 01 07 00 [02:27:07]MH_I2C_Read... [02:27:07]Read from MH i2c: 01 07 00 91 40 00 00 00 00 00 F8 0C DC [02:27:07]RasterBufferAndPrint [02:27:07]line [02:27:07]line [02:27:07]line [02:27:07]line [02:27:07]line [02:27:07]written 0, free lines is 3326 [02:27:07]MH_Cut [02:27:07]Write to MH i2c: D1 01 00 98 40 01 AA [02:27:07]Write i2c OK [02:27:07]MH_I2C_Read... [02:27:07]Read from MH i2c: D1 [02:27:07]MH_I2C_Read... [02:27:07]Read from MH i2c: D1 01 00 [02:27:07]MH_I2C_Read... [02:27:07]Read from MH i2c: D1 01 00 98 40 00 A9 [02:27:07]Write to MH i2c: 01 00 00 99 40 D9 [02:27:07]Write i2c OK [02:27:07]MH_I2C_Read... [02:27:07]OFD Sender: No OFD packet to send [02:27:07]*** Cut start [02:27:07]*** Partial cut [02:27:07]*** CUTSNS_PIN = 1 [02:27:07]*** CUTSNS_PIN = 0 [02:27:08]*** Brake cut motor [02:27:08]Read from MH i2c: 01 [02:27:08]MH_I2C_Read... [02:27:08]*** Stop cut motor [02:27:08]*** Cut end [02:27:08]Read from MH i2c: 01 07 00 [02:27:08]MH_I2C_Read... [02:27:08]Read from MH i2c: 01 07 00 99 40 00 00 00 00 00 FF 0F EE [02:27:08]process_action close_receipt done [02:27:08]requested_data is exist [02:27:08]produce_requested_data [02:27:08]requested_item fm.sn is exist - process it [02:27:08]wFMCommunicate request_size=4 [02:27:08]MH_SAM_APDU [02:27:08]CAPDU: 80 11 00 00 [02:27:08]Write to MH i2c: E2 08 00 9A 40 80 11 00 00 00 00 00 00 54 [02:27:08]Write i2c OK [02:27:08]MH_I2C_Read... [02:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:08]Read from MH i2c: E2 [02:27:08]MH_I2C_Read... [02:27:08]Read from MH i2c: E2 17 00 [02:27:08]MH_I2C_Read... [02:27:08]Read from MH i2c: E2 17 00 9A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AF [02:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:27:08]wFMCommunicate OK [02:27:08]requested_item fd.num is exist - process it [02:27:08]SAM_PROTO_GetFieldsCounters [02:27:08]wFMCommunicate request_size=4 [02:27:08]MH_SAM_APDU [02:27:08]CAPDU: 80 13 00 00 [02:27:08]Write to MH i2c: E2 08 00 9B 40 80 13 00 00 00 00 00 00 57 [02:27:08]Write i2c OK [02:27:08]MH_I2C_Read... [02:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:27:08]Read from MH i2c: E2 [02:27:08]MH_I2C_Read... [02:27:08]Read from MH i2c: E2 62 00 [02:27:08]MH_I2C_Read... [02:27:08]Read from MH i2c: E2 62 00 9B 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 56 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [02:27: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 56 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:27:08]wFMCommunicate OK [02:27:08]SAM_PROTO_GetFieldsCounters done [02:27:08]requested_item shift.num is exist - process it [02:27:08]requested_item shift.opened is exist - process it [02:27:08]req_shift_opened [02:27:08]FM_GetShiftState [02:27:08]SAM_PROTO_GetShiftState [02:27:08]wFMCommunicate request_size=4 [02:27:08]MH_SAM_APDU [02:27:08]CAPDU: 80 13 01 00 [02:27:08]Write to MH i2c: E2 08 00 9C 40 80 13 01 00 00 00 00 00 59 [02:27:08]Write i2c OK [02:27:08]MH_I2C_Read... [02:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:08]Read from MH i2c: E2 [02:27:08]MH_I2C_Read... [02:27:08]Read from MH i2c: E2 0E 00 [02:27:08]MH_I2C_Read... [02:27:08]Read from MH i2c: E2 0E 00 9C 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 92 [02:27:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:27:08]wFMCommunicate OK [02:27:08]SAM_PROTO_GetShiftState done [02:27:08]FM_GetShiftState done [02:27:08]req_shift_opened done [02:27:08]requested_item shift.open_date is exist - process it [02:27:08]req_shift_open_date [02:27:08]req_shift_open_date done [02:27:08]produce_requested_data done [02:27:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139862,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:27:08]process_action_free close_receipt [02:27:08]json_value_free [02:27:08]json_value_free done [02:27:08]process_json_proto returns [02:27:08]Send response to host [02:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139862,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:27:08]free response buf [02:27:08]execute_script done [02:27:08]execute_script returns [02:27:08]free content buf [02:27:08]Sock 9.Close socket [02:27:08]Sock 9.Thread stoped [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:04]accept exits with 7 [02:41:04]New connection [02:41:04]New thread 3066510692 created [02:41:04]Thread 3066654052 joined [02:41:04]Waiting for new connection... [02:41:04] Sock 7.Parse request [02:41:04]Sock 7.Check first char [02:41:04]Sock 7.First char is OK [02:41:04]request: POST /json_proto HTTP/1.0 [02:41:04]Method: POST [02:41:04]URL: /json_proto [02:41:04]Method is POST - this is cgi request [02:41:04]url: /json_proto [02:41:04]query_string will be loaded in cgi processing [02:41:04]execute_cgi json_proto POST (null) [02:41:04]execute_cgi path=json_proto method=POST [02:41:04]POST find Content-Length [02:41:04]Host: 172.17.50.196:8080 [02:41:04]Content-Length: 706 [02:41:04]Content-Type: application/json [02:41:04] [02:41:04]POST finish read [02:41:04]Found Content-Length = 706 [02:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335682", "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" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:04]execute_script... [02:41: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)335682", "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" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:04]POST & json_proto [02:41:04]process_json_proto [02:41:04]json parsed OK: [02:41:04]protocol is kg_v1.0 [02:41:04]action value=close_receipt [02:41:04]process_action close_receipt [02:41:04]cmd_close_receipt [02:41:04]MH_GetDate [02:41:04]Write to MH i2c: F0 00 00 9D 40 CC [02:41:04]Write i2c OK [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: F0 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: F0 09 00 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: F0 09 00 9D 40 00 C4 3F 24 67 72 0D 1C 67 65 [02:41:04]GetLastDocTimeStamp 1730428028 [02:41:04]current date 1730428868 [02:41:04]FM_GetShiftState [02:41:04]SAM_PROTO_GetShiftState [02:41:04]wFMCommunicate request_size=4 [02:41:04]MH_SAM_APDU [02:41:04]CAPDU: 80 13 01 00 [02:41:04]Write to MH i2c: E2 08 00 9E 40 80 13 01 00 00 00 00 00 5B [02:41:04]Write i2c OK [02:41:04]MH_I2C_Read... [02:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:04]Read from MH i2c: E2 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: E2 0E 00 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: E2 0E 00 9E 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 94 [02:41:04]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:41:04]wFMCommunicate OK [02:41:04]SAM_PROTO_GetShiftState done [02:41:04]FM_GetShiftState done [02:41:04]opened in 1730419081 [02:41:04]opened+sec_in_day 1730505481 [02:41:04]quantity*price = 24000 [02:41:04]sum+1 = 24001 [02:41:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 44 01.11.2024 02:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139863 ФПД: 68480419679536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024108&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139863&fm=68480419679536&tin=02508201610067®Number=0000000000091631&sum=24000 0 [02:41:05]StoreToDocumentArchive [02:41:05]shift 558 fd 139863 [02:41:05]save to /storage/0558/doc_00139863 [02:41:05]save last doc name /storage/0558/doc_00139863 to /storage/kkm_last_doc_name [02:41:05]save OK [02:41:05]Clear old archive folders... [02:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=298 [02:41:05]tlvbuf is 00AE6650 [02:41:05]SAM_PROTO_ClearQueue [02:41:05]wFMCommunicate request_size=4 [02:41:05]MH_SAM_APDU [02:41:05]CAPDU: 80 09 00 00 [02:41:05]Write to MH i2c: E2 08 00 AB 40 80 09 00 00 00 00 00 00 5D [02:41:05]Write i2c OK [02:41:05]MH_I2C_Read... [02:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:41:05]Read from MH i2c: E2 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 AB 40 00 90 00 5F [02:41:05]RAPDU: 90 00 [02:41:05]wFMCommunicate OK [02:41:05]SAM_PROTO_ClearQueue done [02:41:05]KKMCreateOFDPacket [02:41:05]OFDProtocolAddRootSTLVToBuf [02:41:05]FM_MakeSignedData [02:41:05]FM_MakeSignedData [02:41:05]SAM_PROTO_SignData [02:41:05]wFMCommunicate request_size=4 [02:41:05]MH_SAM_APDU [02:41:05]CAPDU: 80 0D 01 02 [02:41:05]Write to MH i2c: E2 08 00 AC 40 80 0D 01 02 00 00 00 00 65 [02:41:05]Write i2c OK [02:41:05]MH_I2C_Read... [02:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:41:05]Read from MH i2c: E2 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 AC 40 00 90 00 60 [02:41:05]RAPDU: 90 00 [02:41:05]wFMCommunicate OK [02:41:05]wFMCommunicate request_size=255 [02:41:05]MH_SAM_APDU [02:41:05]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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C4 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [02:41:05]Write to MH i2c: E2 02 01 AD 40 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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C4 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 D0 [02:41:05]Write i2c OK [02:41:05]MH_I2C_Read... [02:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:06]Read from MH i2c: E2 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 03 00 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 03 00 AD 40 00 90 00 61 [02:41:06]RAPDU: 90 00 [02:41:06]wFMCommunicate OK [02:41:06]wFMCommunicate request_size=57 [02:41:06]MH_SAM_APDU [02:41:06]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 57 22 02 00 35 04 06 00 3E 48 57 16 CD 30 [02:41:06]Write to MH i2c: E2 3C 00 AE 40 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 57 22 02 00 35 04 06 00 3E 48 57 16 CD 30 00 00 93 [02:41:06]Write i2c OK [02:41:06]MH_I2C_Read... [02:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:06]Read from MH i2c: E2 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 03 00 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 03 00 AE 40 00 90 00 62 [02:41:06]RAPDU: 90 00 [02:41:06]wFMCommunicate OK [02:41:06]wFMCommunicate request_size=4 [02:41:06]MH_SAM_APDU [02:41:06]CAPDU: 80 0D 03 02 [02:41:06]Write to MH i2c: E2 08 00 AF 40 80 0D 03 02 00 00 00 00 6A [02:41:06]Write i2c OK [02:41:06]MH_I2C_Read... [02:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:06]Read from MH i2c: E2 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 0B 00 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 0B 00 AF 40 00 39 24 05 CD 8E 23 E6 35 90 00 66 [02:41:06]RAPDU: 39 24 05 CD 8E 23 E6 35 90 00 [02:41:06]wFMCommunicate OK [02:41:06]SAM_PROTO_SignData done [02:41:06]FM_MakeSignedData done [02:41:06]CreateOFDProtocolMessage [02:41:06]wFMCommunicate request_size=4 [02:41:06]MH_SAM_APDU [02:41:06]CAPDU: 80 11 00 00 [02:41:06]Write to MH i2c: E2 08 00 B0 40 80 11 00 00 00 00 00 00 6A [02:41:06]Write i2c OK [02:41:06]MH_I2C_Read... [02:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:06]Read from MH i2c: E2 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 17 00 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: E2 17 00 B0 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C5 [02:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:41:06]wFMCommunicate OK [02:41:06]CreateOFDProtocolMessage done [02:41:06]OFDSenderStorePacket 139863 [02:41:06]StoreOFDPacket docnum=139863 [02:41: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 3E 01 00 00 7F 75 36 01 07 70 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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C4 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 22 02 00 35 04 06 00 3E 48 57 16 CD 30 39 24 05 CD 8E 23 E6 35 [02:41:06]CheckFolder [02:41:06]dirname=/storage/ofd_packets [02:41:06]CheckFolder done [02:41:06]ProducePacketName [02:41:06]name=ofd_packets/00139863 [02:41:06]NVStorageSaveData ofd_packets/00139863 [02:41:06]File name is /storage/ofd_packets/00139863 [02:41:06]Write 348 bytes [02:41:06]NVStorageSaveData done [02:41:06]OFDSenderStorePacket done [02:41:06]KKMCreateOFDPacket done [02:41:06]NVStorageSaveData kkm_last_timestamp [02:41:06]File name is /storage/kkm_last_timestamp [02:41:06]Write 4 bytes [02:41:06]NVStorageSaveData done [02:41:06]ExternCall_PrintAddStr [02:41:06]wPrintStart [02:41:06]Write to MH i2c: 01 00 00 B1 40 F1 [02:41:06]Write i2c OK [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: 01 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: 01 07 00 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: 01 07 00 B1 40 00 00 00 00 00 FF 0F 06 [02:41:06]RasterBufferAndPrint [02:41:06]line Счет N : (3)335682 [02:41:06]line ИНН: 02508201610067 [02:41:06]line Контрольно-Кассовый Чек [02:41:06]line ПРОДАЖА [02:41:06]line Товар: 5449000189356 [02:41:06]line Холодный чай Fuse манго ананас 1л [02:41:06]line 2.000 * 120.00 [02:41:06]line = 240.00 [02:41:06]line НДС 12% НСП 1% [02:41:06]line > о реализуемом товаре [02:41:06]line ИТОГО: 240.00 [02:41:06]line НСП 1% : 2.12 [02:41:06]line НДС 12% : 25.49 [02:41:06]line Наличными: 240.00 [02:41:06]line Безнал.: 0.00 [02:41:06]line Место: АЗС № 101 "Партнер Нефть" [02:41:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:41:06]line СНО: Общий режим [02:41:06]line Чек 44 01.11.2024 02:41 [02:41:06]line Смена: 558 ФФД: 1.0 [02:41:06]line ЗНМ: 0300000081 [02:41:06]line РНМ: 0000000000091631 [02:41:06]line Версия ККМ: 001 [02:41:06]line ФМ: 0000000000874669 [02:41:06]line ФД: 139863 [02:41:06]line ФПД: 68480419679536 [02:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024108&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139863&fm=68480419679536&tin=02508201610067®Number=0000000000091631&sum=24000 [02:41:06]line 0 [02:41:06]OFD Sender: Processing packet 139863 [packets to send 34, broken 33] [02:41:06]ProducePacketName [02:41:06]name=ofd_packets/00139863 [02:41:06]OFD Sender: To server: pG, [02:41:06]CommunicateWithHost lk.salyk.kg:30040 [02:41:06]ConnectInit lk.salyk.kg [02:41:06]written 0, free lines is 4095 [02:41:06]Connected sock=10 [02:41: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 3E 01 00 00 7F 75 36 01 07 70 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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C4 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 22 02 00 35 04 06 00 3E 48 57 16 CD 30 39 24 05 CD 8E 23 E6 35 [02:41: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 39 B9 47 00 CF E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 22 02 00 F4 03 04 00 70 EB 23 67 B6 04 01 00 00 22 F6 15 41 14 E3 04 6B [02:41:06]CommunicateWithHost err = 0 [02:41:06]CheckOFDResponse [02:41:06]1017 (14) - 77093643461234 [02:41:06]1041 (16) - 0000000000874669 [02:41:06]1040 (4) - 139863 [02:41:06]1012 (4) - 31.10.2024 20:41 [02:41:06]1206 (1) - 0 [02:41:06]OFD Sender: Remove packet 139863 [02:41:06]ProducePacketName [02:41:06]name=ofd_packets/00139863 [02:41:06]NVStorageDeleteData [02:41:07]Write to MH i2c: 01 00 00 DA 40 1A [02:41:07]Write i2c OK [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: 01 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: 01 07 00 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: 01 07 00 DA 40 00 00 00 00 00 FB 0C 28 [02:41:07]RasterBufferAndPrint [02:41:07]line [02:41:07]line [02:41:07]line [02:41:07]line [02:41:07]line [02:41:07]written 0, free lines is 3330 [02:41:07]MH_Cut [02:41:07]Write to MH i2c: D1 01 00 E1 40 01 F3 [02:41:07]Write i2c OK [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: D1 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: D1 01 00 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: D1 01 00 E1 40 00 F2 [02:41:07]Write to MH i2c: 01 00 00 E2 40 22 [02:41:07]Write i2c OK [02:41:07]MH_I2C_Read... [02:41:07]OFD Sender: No OFD packet to send [02:41:07]*** Cut start [02:41:07]*** Partial cut [02:41:07]*** CUTSNS_PIN = 1 [02:41:07]*** CUTSNS_PIN = 0 [02:41:07]*** Brake cut motor [02:41:08]Read from MH i2c: 01 [02:41:08]MH_I2C_Read... [02:41:08]*** Stop cut motor [02:41:08]*** Cut end [02:41:08]Read from MH i2c: 01 07 00 [02:41:08]MH_I2C_Read... [02:41:08]Read from MH i2c: 01 07 00 E2 40 00 00 00 00 00 FF 0F 37 [02:41:08]process_action close_receipt done [02:41:08]requested_data is exist [02:41:08]produce_requested_data [02:41:08]requested_item fm.sn is exist - process it [02:41:08]wFMCommunicate request_size=4 [02:41:08]MH_SAM_APDU [02:41:08]CAPDU: 80 11 00 00 [02:41:08]Write to MH i2c: E2 08 00 E3 40 80 11 00 00 00 00 00 00 9D [02:41:08]Write i2c OK [02:41:08]MH_I2C_Read... [02:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:08]Read from MH i2c: E2 [02:41:08]MH_I2C_Read... [02:41:08]Read from MH i2c: E2 17 00 [02:41:08]MH_I2C_Read... [02:41:08]Read from MH i2c: E2 17 00 E3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F8 [02:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:41:08]wFMCommunicate OK [02:41:08]requested_item fd.num is exist - process it [02:41:08]SAM_PROTO_GetFieldsCounters [02:41:08]wFMCommunicate request_size=4 [02:41:08]MH_SAM_APDU [02:41:08]CAPDU: 80 13 00 00 [02:41:08]Write to MH i2c: E2 08 00 E4 40 80 13 00 00 00 00 00 00 A0 [02:41:08]Write i2c OK [02:41:08]MH_I2C_Read... [02:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:08]Read from MH i2c: E2 [02:41:08]MH_I2C_Read... [02:41:08]Read from MH i2c: E2 62 00 [02:41:08]MH_I2C_Read... [02:41:08]Read from MH i2c: E2 62 00 E4 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 57 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [02:41: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 57 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:41:08]wFMCommunicate OK [02:41:08]SAM_PROTO_GetFieldsCounters done [02:41:08]requested_item shift.num is exist - process it [02:41:08]requested_item shift.opened is exist - process it [02:41:08]req_shift_opened [02:41:08]FM_GetShiftState [02:41:08]SAM_PROTO_GetShiftState [02:41:08]wFMCommunicate request_size=4 [02:41:08]MH_SAM_APDU [02:41:08]CAPDU: 80 13 01 00 [02:41:08]Write to MH i2c: E2 08 00 E5 40 80 13 01 00 00 00 00 00 A2 [02:41:08]Write i2c OK [02:41:08]MH_I2C_Read... [02:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:08]Read from MH i2c: E2 [02:41:08]MH_I2C_Read... [02:41:08]Read from MH i2c: E2 0E 00 [02:41:08]MH_I2C_Read... [02:41:08]Read from MH i2c: E2 0E 00 E5 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DB [02:41:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:41:08]wFMCommunicate OK [02:41:08]SAM_PROTO_GetShiftState done [02:41:08]FM_GetShiftState done [02:41:08]req_shift_opened done [02:41:08]requested_item shift.open_date is exist - process it [02:41:08]req_shift_open_date [02:41:08]req_shift_open_date done [02:41:08]produce_requested_data done [02:41:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139863,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:41:08]process_action_free close_receipt [02:41:08]json_value_free [02:41:08]json_value_free done [02:41:08]process_json_proto returns [02:41:08]Send response to host [02:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139863,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:41:08]free response buf [02:41:08]execute_script done [02:41:08]execute_script returns [02:41:08]free content buf [02:41:08]Sock 7.Close socket [02:41:08]Sock 7.Thread stoped [02:41:10]accept exits with 9 [02:41:10]New connection [02:41:10]New thread 3066654052 created [02:41:10]Thread 3066510692 joined [02:41:10]Waiting for new connection... [02:41:10] Sock 9.Parse request [02:41:10]Sock 9.Check first char [02:41:10]Sock 9.First char is OK [02:41:10]request: POST /json_proto HTTP/1.0 [02:41:10]Method: POST [02:41:10]URL: /json_proto [02:41:10]Method is POST - this is cgi request [02:41:10]url: /json_proto [02:41:10]query_string will be loaded in cgi processing [02:41:10]execute_cgi json_proto POST (null) [02:41:10]execute_cgi path=json_proto method=POST [02:41:10]POST find Content-Length [02:41:10]Host: 172.17.50.196:8080 [02:41:10]Content-Length: 666 [02:41:10]Content-Type: application/json [02:41:10] [02:41:10]POST finish read [02:41:10]Found Content-Length = 666 [02:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335683", "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" ] } } [02:41:10]execute_script... [02:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335683", "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" ] } } [02:41:10]POST & json_proto [02:41:10]process_json_proto [02:41:10]json parsed OK: [02:41:10]protocol is kg_v1.0 [02:41:10]action value=close_receipt [02:41:10]process_action close_receipt [02:41:10]cmd_close_receipt [02:41:10]MH_GetDate [02:41:10]Write to MH i2c: F0 00 00 E6 40 15 [02:41:10]Write i2c OK [02:41:10]MH_I2C_Read... [02:41:10]Read from MH i2c: F0 [02:41:10]MH_I2C_Read... [02:41:10]Read from MH i2c: F0 09 00 [02:41:10]MH_I2C_Read... [02:41:10]Read from MH i2c: F0 09 00 E6 40 00 CA 3F 24 67 72 0D 1C 67 B4 [02:41:10]GetLastDocTimeStamp 1730428868 [02:41:10]current date 1730428874 [02:41:10]FM_GetShiftState [02:41:10]SAM_PROTO_GetShiftState [02:41:10]wFMCommunicate request_size=4 [02:41:10]MH_SAM_APDU [02:41:10]CAPDU: 80 13 01 00 [02:41:10]Write to MH i2c: E2 08 00 E7 40 80 13 01 00 00 00 00 00 A4 [02:41:10]Write i2c OK [02:41:10]MH_I2C_Read... [02:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:10]Read from MH i2c: E2 [02:41:10]MH_I2C_Read... [02:41:10]Read from MH i2c: E2 0E 00 [02:41:10]MH_I2C_Read... [02:41:10]Read from MH i2c: E2 0E 00 E7 40 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DD [02:41:10]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:41:10]wFMCommunicate OK [02:41:10]SAM_PROTO_GetShiftState done [02:41:10]FM_GetShiftState done [02:41:10]opened in 1730419081 [02:41:10]opened+sec_in_day 1730505481 [02:41:10]quantity*price = 9900 [02:41:10]sum+1 = 9901 [02:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 45 01.11.2024 02:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139864 ФПД: 212553237407181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024114&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139864&fm=212553237407181&tin=02508201610067®Number=0000000000091631&sum=9900 0 [02:41:11]StoreToDocumentArchive [02:41:11]shift 558 fd 139864 [02:41:11]save to /storage/0558/doc_00139864 [02:41:11]save last doc name /storage/0558/doc_00139864 to /storage/kkm_last_doc_name [02:41:11]save OK [02:41:11]Clear old archive folders... [02:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=293 [02:41:11]tlvbuf is 00B31CD0 [02:41:11]SAM_PROTO_ClearQueue [02:41:11]wFMCommunicate request_size=4 [02:41:11]MH_SAM_APDU [02:41:11]CAPDU: 80 09 00 00 [02:41:11]Write to MH i2c: E2 08 00 F4 40 80 09 00 00 00 00 00 00 A6 [02:41:11]Write i2c OK [02:41:11]MH_I2C_Read... [02:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:41:11]Read from MH i2c: E2 [02:41:11]MH_I2C_Read... [02:41:11]Read from MH i2c: E2 03 00 [02:41:11]MH_I2C_Read... [02:41:11]Read from MH i2c: E2 03 00 F4 40 00 90 00 A8 [02:41:11]RAPDU: 90 00 [02:41:11]wFMCommunicate OK [02:41:11]SAM_PROTO_ClearQueue done [02:41:11]KKMCreateOFDPacket [02:41:11]OFDProtocolAddRootSTLVToBuf [02:41:11]FM_MakeSignedData [02:41:11]FM_MakeSignedData [02:41:11]SAM_PROTO_SignData [02:41:11]wFMCommunicate request_size=4 [02:41:11]MH_SAM_APDU [02:41:11]CAPDU: 80 0D 01 02 [02:41:11]Write to MH i2c: E2 08 00 F5 40 80 0D 01 02 00 00 00 00 AE [02:41:11]Write i2c OK [02:41:11]MH_I2C_Read... [02:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:41:11]Read from MH i2c: E2 [02:41:11]MH_I2C_Read... [02:41:11]Read from MH i2c: E2 03 00 [02:41:11]MH_I2C_Read... [02:41:11]Read from MH i2c: E2 03 00 F5 40 00 90 00 A9 [02:41:11]RAPDU: 90 00 [02:41:11]wFMCommunicate OK [02:41:11]wFMCommunicate request_size=255 [02:41:11]MH_SAM_APDU [02:41:11]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 2D 00 00 00 F4 03 04 00 CA 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [02:41:11]Write to MH i2c: E2 02 01 F6 40 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 2D 00 00 00 F4 03 04 00 CA 3F 24 67 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 FB [02:41:12]Write i2c OK [02:41:12]MH_I2C_Read... [02:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:12]Read from MH i2c: E2 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 03 00 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 03 00 F6 40 00 90 00 AA [02:41:12]RAPDU: 90 00 [02:41:12]wFMCommunicate OK [02:41:12]wFMCommunicate request_size=52 [02:41:12]MH_SAM_APDU [02:41:12]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 58 22 02 00 35 04 06 00 C1 50 E8 36 25 CD [02:41:12]Write to MH i2c: E2 37 00 F7 40 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 58 22 02 00 35 04 06 00 C1 50 E8 36 25 CD 00 00 14 [02:41:12]Write i2c OK [02:41:12]MH_I2C_Read... [02:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:12]Read from MH i2c: E2 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 03 00 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 03 00 F7 40 00 90 00 AB [02:41:12]RAPDU: 90 00 [02:41:12]wFMCommunicate OK [02:41:12]wFMCommunicate request_size=4 [02:41:12]MH_SAM_APDU [02:41:12]CAPDU: 80 0D 03 02 [02:41:12]Write to MH i2c: E2 08 00 F8 40 80 0D 03 02 00 00 00 00 B3 [02:41:12]Write i2c OK [02:41:12]MH_I2C_Read... [02:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:12]Read from MH i2c: E2 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 0B 00 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 0B 00 F8 40 00 C6 82 53 B9 8F BC 84 70 90 00 47 [02:41:12]RAPDU: C6 82 53 B9 8F BC 84 70 90 00 [02:41:12]wFMCommunicate OK [02:41:12]SAM_PROTO_SignData done [02:41:12]FM_MakeSignedData done [02:41:12]CreateOFDProtocolMessage [02:41:12]wFMCommunicate request_size=4 [02:41:12]MH_SAM_APDU [02:41:12]CAPDU: 80 11 00 00 [02:41:12]Write to MH i2c: E2 08 00 F9 40 80 11 00 00 00 00 00 00 B3 [02:41:12]Write i2c OK [02:41:12]MH_I2C_Read... [02:41:12]OFD Sender: No OFD packet to send [02:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:12]Read from MH i2c: E2 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 17 00 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: E2 17 00 F9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [02: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 [02:41:12]wFMCommunicate OK [02:41:12]CreateOFDProtocolMessage done [02:41:12]OFDSenderStorePacket 139864 [02:41:12]StoreOFDPacket docnum=139864 [02:41: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 39 01 00 00 31 81 31 01 3C 3E 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 2D 00 00 00 F4 03 04 00 CA 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 22 02 00 35 04 06 00 C1 50 E8 36 25 CD C6 82 53 B9 8F BC 84 70 [02:41:12]CheckFolder [02:41:12]dirname=/storage/ofd_packets [02:41:12]CheckFolder done [02:41:12]ProducePacketName [02:41:12]name=ofd_packets/00139864 [02:41:12]NVStorageSaveData ofd_packets/00139864 [02:41:12]File name is /storage/ofd_packets/00139864 [02:41:12]Write 343 bytes [02:41:12]NVStorageSaveData done [02:41:12]OFDSenderStorePacket done [02:41:12]KKMCreateOFDPacket done [02:41:12]NVStorageSaveData kkm_last_timestamp [02:41:12]File name is /storage/kkm_last_timestamp [02:41:12]Write 4 bytes [02:41:12]NVStorageSaveData done [02:41:12]ExternCall_PrintAddStr [02:41:12]wPrintStart [02:41:12]Write to MH i2c: 01 00 00 FA 40 3A [02:41:12]Write i2c OK [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: 01 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: 01 07 00 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: 01 07 00 FA 40 00 00 00 00 00 FF 0F 4F [02:41:12]RasterBufferAndPrint [02:41:12]line Счет N : (3)335683 [02:41:12]line ИНН: 02508201610067 [02:41:12]line Контрольно-Кассовый Чек [02:41:12]line ПРОДАЖА [02:41:12]line Товар: 4870022003305 [02:41:12]line Напиток Gorilla эн нат ж/б 0,5/0,45л [02:41:12]line 1.000 * 99.00 [02:41:12]line = 99.00 [02:41:12]line НДС 12% НСП 1% [02:41:12]line > о реализуемом товаре [02:41:12]line ИТОГО: 99.00 [02:41:12]line НСП 1% : 0.88 [02:41:12]line НДС 12% : 10.51 [02:41:12]line Наличными: 99.00 [02:41:12]line Безнал.: 0.00 [02:41:12]line Место: АЗС № 101 "Партнер Нефть" [02:41:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:41:12]line СНО: Общий режим [02:41:12]line Чек 45 01.11.2024 02:41 [02:41:12]line Смена: 558 ФФД: 1.0 [02:41:12]line ЗНМ: 0300000081 [02:41:12]line РНМ: 0000000000091631 [02:41:12]line Версия ККМ: 001 [02:41:12]line ФМ: 0000000000874669 [02:41:12]line ФД: 139864 [02:41:12]line ФПД: 212553237407181 [02:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024114&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139864&fm=212553237407181&tin=02508201610067®Number=0000000000091631&sum=9900 [02:41:12]line 0 [02:41:12]written 0, free lines is 4095 [02:41:12]OFD Sender: Processing packet 139864 [packets to send 34, broken 33] [02:41:12]ProducePacketName [02:41:12]name=ofd_packets/00139864 [02:41:12]OFD Sender: To server: pG, [02:41:12]CommunicateWithHost lk.salyk.kg:30040 [02:41:12]ConnectInit lk.salyk.kg [02:41:12]Connected sock=10 [02:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 31 81 31 01 3C 3E 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 2D 00 00 00 F4 03 04 00 CA 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 22 02 00 35 04 06 00 C1 50 E8 36 25 CD C6 82 53 B9 8F BC 84 70 [02:41: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 7E 7A 47 00 97 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 22 02 00 F4 03 04 00 76 EB 23 67 B6 04 01 00 00 7A B5 E3 97 F2 CB 65 9A [02:41:12]CommunicateWithHost err = 0 [02:41:12]CheckOFDResponse [02:41:12]1017 (14) - 77093643461234 [02:41:12]1041 (16) - 0000000000874669 [02:41:12]1040 (4) - 139864 [02:41:12]1012 (4) - 31.10.2024 20:41 [02:41:12]1206 (1) - 0 [02:41:12]OFD Sender: Remove packet 139864 [02:41:12]ProducePacketName [02:41:12]name=ofd_packets/00139864 [02:41:12]NVStorageDeleteData [02:41:12]Write to MH i2c: 01 00 00 23 41 64 [02:41:12]Write i2c OK [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: 01 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: 01 07 00 [02:41:12]MH_I2C_Read... [02:41:12]Read from MH i2c: 01 07 00 23 41 00 00 00 00 00 0D 0D 85 [02:41:12]RasterBufferAndPrint [02:41:12]line [02:41:12]line [02:41:12]line [02:41:12]line [02:41:12]line [02:41:12]written 0, free lines is 3358 [02:41:13]MH_Cut [02:41:13]Write to MH i2c: D1 01 00 2A 41 01 3D [02:41:13]Write i2c OK [02:41:13]MH_I2C_Read... [02:41:13]Read from MH i2c: D1 [02:41:13]MH_I2C_Read... [02:41:13]Read from MH i2c: D1 01 00 [02:41:13]MH_I2C_Read... [02:41:13]Read from MH i2c: D1 01 00 2A 41 00 3C [02:41:13]Write to MH i2c: 01 00 00 2B 41 6C [02:41:13]Write i2c OK [02:41:13]MH_I2C_Read... [02:41:13]OFD Sender: No OFD packet to send [02:41:13]*** Cut start [02:41:13]*** Partial cut [02:41:13]*** CUTSNS_PIN = 1 [02:41:13]*** CUTSNS_PIN = 0 [02:41:13]*** Brake cut motor [02:41:14]Read from MH i2c: 01 [02:41:14]MH_I2C_Read... [02:41:14]*** Stop cut motor [02:41:14]*** Cut end [02:41:14]Read from MH i2c: 01 07 00 [02:41:14]MH_I2C_Read... [02:41:14]Read from MH i2c: 01 07 00 2B 41 00 00 00 00 00 FF 0F 81 [02:41:14]process_action close_receipt done [02:41:14]requested_data is exist [02:41:14]produce_requested_data [02:41:14]requested_item fm.sn is exist - process it [02:41:14]wFMCommunicate request_size=4 [02:41:14]MH_SAM_APDU [02:41:14]CAPDU: 80 11 00 00 [02:41:14]Write to MH i2c: E2 08 00 2C 41 80 11 00 00 00 00 00 00 E7 [02:41:14]Write i2c OK [02:41:14]MH_I2C_Read... [02:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:14]Read from MH i2c: E2 [02:41:14]MH_I2C_Read... [02:41:14]Read from MH i2c: E2 17 00 [02:41:14]MH_I2C_Read... [02:41:14]Read from MH i2c: E2 17 00 2C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 42 [02:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:41:14]wFMCommunicate OK [02:41:14]requested_item fd.num is exist - process it [02:41:14]SAM_PROTO_GetFieldsCounters [02:41:14]wFMCommunicate request_size=4 [02:41:14]MH_SAM_APDU [02:41:14]CAPDU: 80 13 00 00 [02:41:14]Write to MH i2c: E2 08 00 2D 41 80 13 00 00 00 00 00 00 EA [02:41:14]Write i2c OK [02:41:14]MH_I2C_Read... [02:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:14]Read from MH i2c: E2 [02:41:14]MH_I2C_Read... [02:41:14]Read from MH i2c: E2 62 00 [02:41:14]MH_I2C_Read... [02:41:14]Read from MH i2c: E2 62 00 2D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 58 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [02:41: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 58 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:41:14]wFMCommunicate OK [02:41:14]SAM_PROTO_GetFieldsCounters done [02:41:14]requested_item shift.num is exist - process it [02:41:14]requested_item shift.opened is exist - process it [02:41:14]req_shift_opened [02:41:14]FM_GetShiftState [02:41:14]SAM_PROTO_GetShiftState [02:41:14]wFMCommunicate request_size=4 [02:41:14]MH_SAM_APDU [02:41:14]CAPDU: 80 13 01 00 [02:41:14]Write to MH i2c: E2 08 00 2E 41 80 13 01 00 00 00 00 00 EC [02:41:14]Write i2c OK [02:41:14]MH_I2C_Read... [02:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:14]Read from MH i2c: E2 [02:41:14]MH_I2C_Read... [02:41:14]Read from MH i2c: E2 0E 00 [02:41:14]MH_I2C_Read... [02:41:14]Read from MH i2c: E2 0E 00 2E 41 00 09 00 01 89 19 24 67 00 00 00 00 90 00 25 [02:41:14]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:41:14]wFMCommunicate OK [02:41:14]SAM_PROTO_GetShiftState done [02:41:14]FM_GetShiftState done [02:41:14]req_shift_opened done [02:41:14]requested_item shift.open_date is exist - process it [02:41:14]req_shift_open_date [02:41:14]req_shift_open_date done [02:41:14]produce_requested_data done [02:41:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139864,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:41:14]process_action_free close_receipt [02:41:14]json_value_free [02:41:14]json_value_free done [02:41:14]process_json_proto returns [02:41:14]Send response to host [02:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139864,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:41:14]free response buf [02:41:14]execute_script done [02:41:14]execute_script returns [02:41:14]free content buf [02:41:14]Sock 9.Close socket [02:41:14]Sock 9.Thread stoped [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:41:59]accept exits with 7 [02:41:59]New connection [02:41:59]New thread 3066510692 created [02:41:59]Thread 3066654052 joined [02:41:59]Waiting for new connection... [02:41:59] Sock 7.Parse request [02:41:59]Sock 7.Check first char [02:41:59]Sock 7.First char is OK [02:41:59]request: POST /json_proto HTTP/1.0 [02:41:59]Method: POST [02:41:59]URL: /json_proto [02:41:59]Method is POST - this is cgi request [02:41:59]url: /json_proto [02:41:59]query_string will be loaded in cgi processing [02:41:59]execute_cgi json_proto POST (null) [02:41:59]execute_cgi path=json_proto method=POST [02:41:59]POST find Content-Length [02:41:59]Host: 172.17.50.196:8080 [02:41:59]Content-Length: 672 [02:41:59]Content-Type: application/json [02:41:59] [02:41:59]POST finish read [02:41:59]Found Content-Length = 672 [02:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335684", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\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" ] } } [02:41:59]execute_script... [02:41: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)335684", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\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" ] } } [02:41:59]POST & json_proto [02:41:59]process_json_proto [02:41:59]json parsed OK: [02:41:59]protocol is kg_v1.0 [02:41:59]action value=close_receipt [02:41:59]process_action close_receipt [02:41:59]cmd_close_receipt [02:41:59]MH_GetDate [02:41:59]Write to MH i2c: F0 00 00 2F 41 5F [02:41:59]Write i2c OK [02:41:59]MH_I2C_Read... [02:41:59]Read from MH i2c: F0 [02:41:59]MH_I2C_Read... [02:41:59]Read from MH i2c: F0 09 00 [02:41:59]MH_I2C_Read... [02:41:59]Read from MH i2c: F0 09 00 2F 41 00 FB 3F 24 67 72 0D 1C 67 2F [02:41:59]GetLastDocTimeStamp 1730428874 [02:41:59]current date 1730428923 [02:41:59]FM_GetShiftState [02:41:59]SAM_PROTO_GetShiftState [02:41:59]wFMCommunicate request_size=4 [02:41:59]MH_SAM_APDU [02:41:59]CAPDU: 80 13 01 00 [02:41:59]Write to MH i2c: E2 08 00 30 41 80 13 01 00 00 00 00 00 EE [02:41:59]Write i2c OK [02:41:59]MH_I2C_Read... [02:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:59]Read from MH i2c: E2 [02:41:59]MH_I2C_Read... [02:41:59]Read from MH i2c: E2 0E 00 [02:41:59]MH_I2C_Read... [02:41:59]Read from MH i2c: E2 0E 00 30 41 00 09 00 01 89 19 24 67 00 00 00 00 90 00 27 [02:41:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:41:59]wFMCommunicate OK [02:41:59]SAM_PROTO_GetShiftState done [02:41:59]FM_GetShiftState done [02:41:59]opened in 1730419081 [02:41:59]opened+sec_in_day 1730505481 [02:41:59]quantity*price = 4900 [02:41:59]sum+1 = 4901 [02:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 46 01.11.2024 02:42 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139865 ФПД: 1518516815119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024203&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139865&fm=1518516815119&tin=02508201610067®Number=0000000000091631&sum=4900 0 [02:42:00]StoreToDocumentArchive [02:42:00]shift 558 fd 139865 [02:42:00]save to /storage/0558/doc_00139865 [02:42:00]save last doc name /storage/0558/doc_00139865 to /storage/kkm_last_doc_name [02:42:00]save OK [02:42:00]Clear old archive folders... [02:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=287 [02:42:00]tlvbuf is 00A7EEA0 [02:42:00]SAM_PROTO_ClearQueue [02:42:00]wFMCommunicate request_size=4 [02:42:00]MH_SAM_APDU [02:42:00]CAPDU: 80 09 00 00 [02:42:00]Write to MH i2c: E2 08 00 3D 41 80 09 00 00 00 00 00 00 F0 [02:42:00]Write i2c OK [02:42:00]MH_I2C_Read... [02:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:00]Read from MH i2c: E2 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: E2 03 00 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: E2 03 00 3D 41 00 90 00 F2 [02:42:00]RAPDU: 90 00 [02:42:00]wFMCommunicate OK [02:42:00]SAM_PROTO_ClearQueue done [02:42:00]KKMCreateOFDPacket [02:42:00]OFDProtocolAddRootSTLVToBuf [02:42:00]FM_MakeSignedData [02:42:00]FM_MakeSignedData [02:42:00]SAM_PROTO_SignData [02:42:00]wFMCommunicate request_size=4 [02:42:00]MH_SAM_APDU [02:42:00]CAPDU: 80 0D 01 02 [02:42:00]Write to MH i2c: E2 08 00 3E 41 80 0D 01 02 00 00 00 00 F8 [02:42:00]Write i2c OK [02:42:00]MH_I2C_Read... [02:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:00]Read from MH i2c: E2 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: E2 03 00 [02:42:00]MH_I2C_Read... [02:42:00]Read from MH i2c: E2 03 00 3E 41 00 90 00 F3 [02:42:00]RAPDU: 90 00 [02:42:00]wFMCommunicate OK [02:42:00]wFMCommunicate request_size=255 [02:42:00]MH_SAM_APDU [02:42:00]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2E 00 00 00 F4 03 04 00 FB 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [02:42:00]Write to MH i2c: E2 02 01 3F 41 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2E 00 00 00 F4 03 04 00 FB 3F 24 67 0E 04 04 00 2E 02 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 C3 [02:42:00]Write i2c OK [02:42:00]MH_I2C_Read... [02:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:01]Read from MH i2c: E2 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 3F 41 00 90 00 F4 [02:42:01]RAPDU: 90 00 [02:42:01]wFMCommunicate OK [02:42:01]wFMCommunicate request_size=46 [02:42:01]MH_SAM_APDU [02:42:01]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 59 22 02 00 35 04 06 00 01 61 8E A7 C5 0F [02:42:01]Write to MH i2c: E2 31 00 40 41 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 59 22 02 00 35 04 06 00 01 61 8E A7 C5 0F 00 00 73 [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:01]Read from MH i2c: E2 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 03 00 40 41 00 90 00 F5 [02:42:01]RAPDU: 90 00 [02:42:01]wFMCommunicate OK [02:42:01]wFMCommunicate request_size=4 [02:42:01]MH_SAM_APDU [02:42:01]CAPDU: 80 0D 03 02 [02:42:01]Write to MH i2c: E2 08 00 41 41 80 0D 03 02 00 00 00 00 FD [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:01]Read from MH i2c: E2 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 0B 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 0B 00 41 41 00 0F A5 4E DF 27 24 BC 8A 90 00 70 [02:42:01]RAPDU: 0F A5 4E DF 27 24 BC 8A 90 00 [02:42:01]wFMCommunicate OK [02:42:01]SAM_PROTO_SignData done [02:42:01]FM_MakeSignedData done [02:42:01]CreateOFDProtocolMessage [02:42:01]wFMCommunicate request_size=4 [02:42:01]MH_SAM_APDU [02:42:01]CAPDU: 80 11 00 00 [02:42:01]Write to MH i2c: E2 08 00 42 41 80 11 00 00 00 00 00 00 FD [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:01]Read from MH i2c: E2 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 17 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: E2 17 00 42 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 58 [02:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:42:01]wFMCommunicate OK [02:42:01]CreateOFDProtocolMessage done [02:42:01]OFDSenderStorePacket 139865 [02:42:01]StoreOFDPacket docnum=139865 [02:42: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 33 01 00 00 C6 EA 2B 01 43 00 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2E 00 00 00 F4 03 04 00 FB 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 22 02 00 35 04 06 00 01 61 8E A7 C5 0F 0F A5 4E DF 27 24 BC 8A [02:42:01]CheckFolder [02:42:01]dirname=/storage/ofd_packets [02:42:01]CheckFolder done [02:42:01]ProducePacketName [02:42:01]name=ofd_packets/00139865 [02:42:01]NVStorageSaveData ofd_packets/00139865 [02:42:01]File name is /storage/ofd_packets/00139865 [02:42:01]Write 337 bytes [02:42:01]NVStorageSaveData done [02:42:01]OFDSenderStorePacket done [02:42:01]KKMCreateOFDPacket done [02:42:01]NVStorageSaveData kkm_last_timestamp [02:42:01]File name is /storage/kkm_last_timestamp [02:42:01]Write 4 bytes [02:42:01]NVStorageSaveData done [02:42:01]ExternCall_PrintAddStr [02:42:01]wPrintStart [02:42:01]Write to MH i2c: 01 00 00 43 41 84 [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: 01 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: 01 07 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: 01 07 00 43 41 00 00 00 00 00 FF 0F 99 [02:42:01]RasterBufferAndPrint [02:42:01]line Счет N : (3)335684 [02:42:01]line ИНН: 02508201610067 [02:42:01]line Контрольно-Кассовый Чек [02:42:01]line ПРОДАЖА [02:42:01]line Товар: 46214621 [02:42:01]line Р/ж mentos тутти-фрутти ролл 16г [02:42:01]line 1.000 * 49.00 [02:42:01]line = 49.00 [02:42:01]line НДС 12% НСП 1% [02:42:01]line > о реализуемом товаре [02:42:01]line ИТОГО: 49.00 [02:42:01]line НСП 1% : 0.43 [02:42:01]line НДС 12% : 5.20 [02:42:01]line Наличными: 49.00 [02:42:01]line Безнал.: 0.00 [02:42:01]line Место: АЗС № 101 "Партнер Нефть" [02:42:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:42:01]line СНО: Общий режим [02:42:01]line Чек 46 01.11.2024 02:42 [02:42:01]line Смена: 558 ФФД: 1.0 [02:42:01]line ЗНМ: 0300000081 [02:42:01]line РНМ: 0000000000091631 [02:42:01]line Версия ККМ: 001 [02:42:01]line ФМ: 0000000000874669 [02:42:01]line ФД: 139865 [02:42:01]line ФПД: 1518516815119 [02:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T024203&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139865&fm=1518516815119&tin=02508201610067®Number=0000000000091631&sum=4900 [02:42:01]line 0 [02:42:01]OFD Sender: Processing packet 139865 [packets to send 34, broken 33] [02:42:01]ProducePacketName [02:42:01]name=ofd_packets/00139865 [02:42:01]OFD Sender: To server: pG, [02:42:01]CommunicateWithHost lk.salyk.kg:30040 [02:42:01]ConnectInit lk.salyk.kg [02:42:01]written 0, free lines is 4095 [02:42:01]Connected sock=10 [02:42: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 33 01 00 00 C6 EA 2B 01 43 00 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2E 00 00 00 F4 03 04 00 FB 3F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 22 02 00 35 04 06 00 01 61 8E A7 C5 0F 0F A5 4E DF 27 24 BC 8A [02:42: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 B1 2C 47 00 C3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 22 02 00 F4 03 04 00 A7 EB 23 67 B6 04 01 00 00 C7 40 71 DA 9D FE 60 99 [02:42:01]CommunicateWithHost err = 0 [02:42:01]CheckOFDResponse [02:42:01]1017 (14) - 77093643461234 [02:42:01]1041 (16) - 0000000000874669 [02:42:01]1040 (4) - 139865 [02:42:01]1012 (4) - 31.10.2024 20:42 [02:42:01]1206 (1) - 0 [02:42:01]OFD Sender: Remove packet 139865 [02:42:01]ProducePacketName [02:42:01]name=ofd_packets/00139865 [02:42:01]NVStorageDeleteData [02:42:01]Write to MH i2c: 01 00 00 6C 41 AD [02:42:01]Write i2c OK [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: 01 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: 01 07 00 [02:42:01]MH_I2C_Read... [02:42:01]Read from MH i2c: 01 07 00 6C 41 00 00 00 00 00 E9 0C A9 [02:42:01]RasterBufferAndPrint [02:42:01]line [02:42:01]line [02:42:01]line [02:42:01]line [02:42:01]line [02:42:01]written 0, free lines is 3312 [02:42:02]MH_Cut [02:42:02]Write to MH i2c: D1 01 00 73 41 01 86 [02:42:02]Write i2c OK [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: D1 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: D1 01 00 [02:42:02]MH_I2C_Read... [02:42:02]Read from MH i2c: D1 01 00 73 41 00 85 [02:42:02]Write to MH i2c: 01 00 00 74 41 B5 [02:42:02]Write i2c OK [02:42:02]MH_I2C_Read... [02:42:02]OFD Sender: No OFD packet to send [02:42:02]*** Cut start [02:42:02]*** Partial cut [02:42:02]*** CUTSNS_PIN = 1 [02:42:02]*** CUTSNS_PIN = 0 [02:42:02]*** Brake cut motor [02:42:03]Read from MH i2c: 01 [02:42:03]MH_I2C_Read... [02:42:03]*** Stop cut motor [02:42:03]*** Cut end [02:42:03]Read from MH i2c: 01 07 00 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: 01 07 00 74 41 00 00 00 00 00 FF 0F CA [02:42:03]process_action close_receipt done [02:42:03]requested_data is exist [02:42:03]produce_requested_data [02:42:03]requested_item fm.sn is exist - process it [02:42:03]wFMCommunicate request_size=4 [02:42:03]MH_SAM_APDU [02:42:03]CAPDU: 80 11 00 00 [02:42:03]Write to MH i2c: E2 08 00 75 41 80 11 00 00 00 00 00 00 30 [02:42:03]Write i2c OK [02:42:03]MH_I2C_Read... [02:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:03]Read from MH i2c: E2 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: E2 17 00 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: E2 17 00 75 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8B [02:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:42:03]wFMCommunicate OK [02:42:03]requested_item fd.num is exist - process it [02:42:03]SAM_PROTO_GetFieldsCounters [02:42:03]wFMCommunicate request_size=4 [02:42:03]MH_SAM_APDU [02:42:03]CAPDU: 80 13 00 00 [02:42:03]Write to MH i2c: E2 08 00 76 41 80 13 00 00 00 00 00 00 33 [02:42:03]Write i2c OK [02:42:03]MH_I2C_Read... [02:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:03]Read from MH i2c: E2 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: E2 62 00 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: E2 62 00 76 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 59 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [02:42: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 59 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:42:03]wFMCommunicate OK [02:42:03]SAM_PROTO_GetFieldsCounters done [02:42:03]requested_item shift.num is exist - process it [02:42:03]requested_item shift.opened is exist - process it [02:42:03]req_shift_opened [02:42:03]FM_GetShiftState [02:42:03]SAM_PROTO_GetShiftState [02:42:03]wFMCommunicate request_size=4 [02:42:03]MH_SAM_APDU [02:42:03]CAPDU: 80 13 01 00 [02:42:03]Write to MH i2c: E2 08 00 77 41 80 13 01 00 00 00 00 00 35 [02:42:03]Write i2c OK [02:42:03]MH_I2C_Read... [02:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:03]Read from MH i2c: E2 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: E2 0E 00 [02:42:03]MH_I2C_Read... [02:42:03]Read from MH i2c: E2 0E 00 77 41 00 09 00 01 89 19 24 67 00 00 00 00 90 00 6E [02:42:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:42:03]wFMCommunicate OK [02:42:03]SAM_PROTO_GetShiftState done [02:42:03]FM_GetShiftState done [02:42:03]req_shift_opened done [02:42:03]requested_item shift.open_date is exist - process it [02:42:03]req_shift_open_date [02:42:03]req_shift_open_date done [02:42:03]produce_requested_data done [02:42:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139865,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:42:03]process_action_free close_receipt [02:42:03]json_value_free [02:42:03]json_value_free done [02:42:03]process_json_proto returns [02:42:03]Send response to host [02:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139865,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:42:03]free response buf [02:42:03]execute_script done [02:42:03]execute_script returns [02:42:03]free content buf [02:42:03]Sock 7.Close socket [02:42:03]Sock 7.Thread stoped [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:41]accept exits with 9 [02:52:41]New connection [02:52:41]New thread 3066654052 created [02:52:41]Thread 3066510692 joined [02:52:41]Waiting for new connection... [02:52:41] Sock 9.Parse request [02:52:41]Sock 9.Check first char [02:52:41]Sock 9.First char is OK [02:52:41]request: POST /json_proto HTTP/1.0 [02:52:41]Method: POST [02:52:41]URL: /json_proto [02:52:41]Method is POST - this is cgi request [02:52:41]url: /json_proto [02:52:41]query_string will be loaded in cgi processing [02:52:41]execute_cgi json_proto POST (null) [02:52:41]execute_cgi path=json_proto method=POST [02:52:41]POST find Content-Length [02:52:41]Host: 172.17.50.196:8080 [02:52:41]Content-Length: 1358 [02:52:41]Content-Type: application/json [02:52:41] [02:52:41]POST finish read [02:52:41]Found Content-Length = 1358 [02:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335685", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:41]execute_script... [02:52: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)335685", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:41]POST & json_proto [02:52:41]process_json_proto [02:52:41]json parsed OK: [02:52:41]protocol is kg_v1.0 [02:52:41]action value=close_receipt [02:52:41]process_action close_receipt [02:52:41]cmd_close_receipt [02:52:41]MH_GetDate [02:52:41]Write to MH i2c: F0 00 00 78 41 A8 [02:52:41]Write i2c OK [02:52:41]MH_I2C_Read... [02:52:41]Read from MH i2c: F0 [02:52:41]MH_I2C_Read... [02:52:41]Read from MH i2c: F0 09 00 [02:52:41]MH_I2C_Read... [02:52:41]Read from MH i2c: F0 09 00 78 41 00 7C 42 24 67 72 0D 1C 67 FC [02:52:41]GetLastDocTimeStamp 1730428923 [02:52:41]current date 1730429564 [02:52:41]FM_GetShiftState [02:52:41]SAM_PROTO_GetShiftState [02:52:41]wFMCommunicate request_size=4 [02:52:41]MH_SAM_APDU [02:52:41]CAPDU: 80 13 01 00 [02:52:41]Write to MH i2c: E2 08 00 79 41 80 13 01 00 00 00 00 00 37 [02:52:41]Write i2c OK [02:52:41]MH_I2C_Read... [02:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:41]Read from MH i2c: E2 [02:52:41]MH_I2C_Read... [02:52:41]Read from MH i2c: E2 0E 00 [02:52:41]MH_I2C_Read... [02:52:41]Read from MH i2c: E2 0E 00 79 41 00 09 00 01 89 19 24 67 00 00 00 00 90 00 70 [02:52:41]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:52:41]wFMCommunicate OK [02:52:41]SAM_PROTO_GetShiftState done [02:52:41]FM_GetShiftState done [02:52:41]opened in 1730419081 [02:52:41]opened+sec_in_day 1730505481 [02:52:41]quantity*price = 4000 [02:52:41]sum+1 = 4001 [02:52:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607120854177 Снек Орехи BEERKa Арахис 30г 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.23 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 47 01.11.2024 02:52 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139866 ФПД: 145739360249541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T025244&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139866&fm=145739360249541&tin=02508201610067®Number=0000000000091631&sum=14000 0 [02:52:42]StoreToDocumentArchive [02:52:42]shift 558 fd 139866 [02:52:42]save to /storage/0558/doc_00139866 [02:52:42]save last doc name /storage/0558/doc_00139866 to /storage/kkm_last_doc_name [02:52:42]save OK [02:52:42]Clear old archive folders... [02:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=560 [02:52:42]tlvbuf is 00AE6580 [02:52:42]SAM_PROTO_ClearQueue [02:52:42]wFMCommunicate request_size=4 [02:52:42]MH_SAM_APDU [02:52:42]CAPDU: 80 09 00 00 [02:52:42]Write to MH i2c: E2 08 00 86 41 80 09 00 00 00 00 00 00 39 [02:52:42]Write i2c OK [02:52:42]MH_I2C_Read... [02:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:42]Read from MH i2c: E2 [02:52:42]MH_I2C_Read... [02:52:42]Read from MH i2c: E2 03 00 [02:52:42]MH_I2C_Read... [02:52:42]Read from MH i2c: E2 03 00 86 41 00 90 00 3B [02:52:42]RAPDU: 90 00 [02:52:42]wFMCommunicate OK [02:52:42]SAM_PROTO_ClearQueue done [02:52:42]KKMCreateOFDPacket [02:52:42]OFDProtocolAddRootSTLVToBuf [02:52:42]FM_MakeSignedData [02:52:42]FM_MakeSignedData [02:52:42]SAM_PROTO_SignData [02:52:42]wFMCommunicate request_size=4 [02:52:42]MH_SAM_APDU [02:52:42]CAPDU: 80 0D 01 02 [02:52:42]Write to MH i2c: E2 08 00 87 41 80 0D 01 02 00 00 00 00 41 [02:52:42]Write i2c OK [02:52:42]MH_I2C_Read... [02:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:42]Read from MH i2c: E2 [02:52:42]MH_I2C_Read... [02:52:42]Read from MH i2c: E2 03 00 [02:52:42]MH_I2C_Read... [02:52:42]Read from MH i2c: E2 03 00 87 41 00 90 00 3C [02:52:42]RAPDU: 90 00 [02:52:42]wFMCommunicate OK [02:52:42]wFMCommunicate request_size=255 [02:52:42]MH_SAM_APDU [02:52:42]CAPDU: 80 0D 02 02 FA 03 00 30 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 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 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 [02:52:42]Write to MH i2c: E2 02 01 88 41 80 0D 02 02 FA 00 03 00 30 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 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 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 70 [02:52:42]Write i2c OK [02:52:42]MH_I2C_Read... [02:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:42]Read from MH i2c: E2 [02:52:42]MH_I2C_Read... [02:52:42]Read from MH i2c: E2 03 00 [02:52:42]MH_I2C_Read... [02:52:42]Read from MH i2c: E2 03 00 88 41 00 90 00 3D [02:52:42]RAPDU: 90 00 [02:52:42]wFMCommunicate OK [02:52:42]wFMCommunicate request_size=255 [02:52:42]MH_SAM_APDU [02:52:42]CAPDU: 80 0D 02 02 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 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 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 42 24 67 0E 04 04 00 2E 02 00 [02:52:42]Write to MH i2c: E2 02 01 89 41 80 0D 02 02 FA 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 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 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 42 24 67 0E 04 04 00 2E 02 00 00 00 BC [02:52:42]Write i2c OK [02:52:42]MH_I2C_Read... [02:52:42]OFD Sender: No OFD packet to send [02:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:43]Read from MH i2c: E2 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 03 00 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 03 00 89 41 00 90 00 3E [02:52:43]RAPDU: 90 00 [02:52:43]wFMCommunicate OK [02:52:43]wFMCommunicate request_size=69 [02:52:43]MH_SAM_APDU [02:52:43]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 22 02 00 35 04 06 00 84 8C 96 CC 26 C5 [02:52:43]Write to MH i2c: E2 48 00 8A 41 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 22 02 00 35 04 06 00 84 8C 96 CC 26 C5 00 00 38 [02:52:43]Write i2c OK [02:52:43]MH_I2C_Read... [02:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:43]Read from MH i2c: E2 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 03 00 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 03 00 8A 41 00 90 00 3F [02:52:43]RAPDU: 90 00 [02:52:43]wFMCommunicate OK [02:52:43]wFMCommunicate request_size=4 [02:52:43]MH_SAM_APDU [02:52:43]CAPDU: 80 0D 03 02 [02:52:43]Write to MH i2c: E2 08 00 8B 41 80 0D 03 02 00 00 00 00 47 [02:52:43]Write i2c OK [02:52:43]MH_I2C_Read... [02:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:43]Read from MH i2c: E2 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 0B 00 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 0B 00 8B 41 00 DF 2D 2D 4D EC 68 0C 2E 90 00 5C [02:52:43]RAPDU: DF 2D 2D 4D EC 68 0C 2E 90 00 [02:52:43]wFMCommunicate OK [02:52:43]SAM_PROTO_SignData done [02:52:43]FM_MakeSignedData done [02:52:43]CreateOFDProtocolMessage [02:52:43]wFMCommunicate request_size=4 [02:52:43]MH_SAM_APDU [02:52:43]CAPDU: 80 11 00 00 [02:52:43]Write to MH i2c: E2 08 00 8C 41 80 11 00 00 00 00 00 00 47 [02:52:43]Write i2c OK [02:52:43]MH_I2C_Read... [02:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:43]Read from MH i2c: E2 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 17 00 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: E2 17 00 8C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A2 [02:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:52:43]wFMCommunicate OK [02:52:43]CreateOFDProtocolMessage done [02:52:43]OFDSenderStorePacket 139866 [02:52:43]StoreOFDPacket docnum=139866 [02:52: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 44 02 00 00 E8 9B 3C 02 DC 52 5A 03 01 00 03 00 30 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 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 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 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 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 42 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 22 02 00 35 04 06 00 84 8C 96 CC 26 C5 DF 2D 2D 4D EC 68 0C 2E [02:52:43]CheckFolder [02:52:43]dirname=/storage/ofd_packets [02:52:43]CheckFolder done [02:52:43]ProducePacketName [02:52:43]name=ofd_packets/00139866 [02:52:43]NVStorageSaveData ofd_packets/00139866 [02:52:43]File name is /storage/ofd_packets/00139866 [02:52:43]Write 610 bytes [02:52:43]NVStorageSaveData done [02:52:43]OFDSenderStorePacket done [02:52:43]KKMCreateOFDPacket done [02:52:43]NVStorageSaveData kkm_last_timestamp [02:52:43]File name is /storage/kkm_last_timestamp [02:52:43]Write 4 bytes [02:52:43]NVStorageSaveData done [02:52:43]ExternCall_PrintAddStr [02:52:43]wPrintStart [02:52:43]Write to MH i2c: 01 00 00 8D 41 CE [02:52:43]Write i2c OK [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: 01 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: 01 07 00 [02:52:43]MH_I2C_Read... [02:52:43]Read from MH i2c: 01 07 00 8D 41 00 00 00 00 00 FF 0F E3 [02:52:43]RasterBufferAndPrint [02:52:43]line Счет N : (3)335685 [02:52:43]line ИНН: 02508201610067 [02:52:43]line Контрольно-Кассовый Чек [02:52:43]line ПРОДАЖА [02:52:43]line Товар: 4630007400969 [02:52:43]line Арахис жарен Караван орехов Стандарт 40 [02:52:43]line 1.000 * 40.00 [02:52:43]line = 40.00 [02:52:43]line НДС 12% НСП 1% [02:52:43]line > о реализуемом товаре [02:52:43]line Товар: 4607120854177 [02:52:43]line Снек Орехи BEERKa Арахис 30г [02:52:43]line 1.000 * 25.00 [02:52:43]line = 25.00 [02:52:43]line НДС 12% НСП 1% [02:52:43]line > о реализуемом товаре [02:52:43]line Товар: 5449000189349 [02:52:43]line Холодный чай Fuse манго ананас 0,5л [02:52:43]line 1.000 * 75.00 [02:52:43]line = 75.00 [02:52:43]line НДС 12% НСП 1% [02:52:43]line > о реализуемом товаре [02:52:43]line ИТОГО: 140.00 [02:52:43]line НСП 1% : 1.23 [02:52:43]line НДС 12% : 14.86 [02:52:43]line Наличными: 140.00 [02:52:43]line Безнал.: 0.00 [02:52:43]line Место: АЗС № 101 "Партнер Нефть" [02:52:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:52:43]line СНО: Общий режим [02:52:43]line Чек 47 01.11.2024 02:52 [02:52:43]line Смена: 558 ФФД: 1.0 [02:52:43]line ЗНМ: 0300000081 [02:52:43]line РНМ: 0000000000091631 [02:52:43]line Версия ККМ: 001 [02:52:43]line ФМ: 0000000000874669 [02:52:43]line ФД: 139866 [02:52:43]line ФПД: 145739360249541 [02:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T025244&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139866&fm=145739360249541&tin=02508201610067®Number=0000000000091631&sum=14000 [02:52:43]OFD Sender: Processing packet 139866 [packets to send 34, broken 33] [02:52:43]ProducePacketName [02:52:43]name=ofd_packets/00139866 [02:52:43]OFD Sender: To server: pG, [02:52:43]CommunicateWithHost lk.salyk.kg:30040 [02:52:43]ConnectInit lk.salyk.kg [02:52:43]line 0 [02:52:43]written 0, free lines is 4095 [02:52:43]Connected sock=10 [02:52: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 44 02 00 00 E8 9B 3C 02 DC 52 5A 03 01 00 03 00 30 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 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 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 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 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 7C 42 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 22 02 00 35 04 06 00 84 8C 96 CC 26 C5 DF 2D 2D 4D EC 68 0C 2E [02:52: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 C2 33 47 00 C5 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 5A 22 02 00 F4 03 04 00 29 EE 23 67 B6 04 01 00 00 20 53 62 AE D0 C1 39 D0 [02:52:44]CommunicateWithHost err = 0 [02:52:44]CheckOFDResponse [02:52:44]1017 (14) - 77093643461234 [02:52:44]1041 (16) - 0000000000874669 [02:52:44]1040 (4) - 139866 [02:52:44]1012 (4) - 31.10.2024 20:52 [02:52:44]1206 (1) - 0 [02:52:44]OFD Sender: Remove packet 139866 [02:52:44]ProducePacketName [02:52:44]name=ofd_packets/00139866 [02:52:44]NVStorageDeleteData [02:52:44]Write to MH i2c: 01 00 00 C4 41 05 [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: 01 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: 01 07 00 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: 01 07 00 C4 41 00 00 00 00 00 26 0C 3E [02:52:44]RasterBufferAndPrint [02:52:44]line [02:52:44]line [02:52:44]line [02:52:44]line [02:52:44]line [02:52:44]written 0, free lines is 3116 [02:52:44]MH_Cut [02:52:44]Write to MH i2c: D1 01 00 CB 41 01 DE [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: D1 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: D1 01 00 [02:52:44]MH_I2C_Read... [02:52:44]Read from MH i2c: D1 01 00 CB 41 00 DD [02:52:44]Write to MH i2c: 01 00 00 CC 41 0D [02:52:44]Write i2c OK [02:52:44]MH_I2C_Read... [02:52:44]OFD Sender: No OFD packet to send [02:52:45]*** Cut start [02:52:45]*** Partial cut [02:52:45]*** CUTSNS_PIN = 1 [02:52:45]*** CUTSNS_PIN = 0 [02:52:45]*** Brake cut motor [02:52:45]Read from MH i2c: 01 [02:52:45]MH_I2C_Read... [02:52:45]*** Stop cut motor [02:52:45]*** Cut end [02:52:45]Read from MH i2c: 01 07 00 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: 01 07 00 CC 41 00 00 00 00 00 FF 0F 22 [02:52:45]process_action close_receipt done [02:52:45]requested_data is exist [02:52:45]produce_requested_data [02:52:45]requested_item fm.sn is exist - process it [02:52:45]wFMCommunicate request_size=4 [02:52:45]MH_SAM_APDU [02:52:45]CAPDU: 80 11 00 00 [02:52:45]Write to MH i2c: E2 08 00 CD 41 80 11 00 00 00 00 00 00 88 [02:52:45]Write i2c OK [02:52:45]MH_I2C_Read... [02:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:45]Read from MH i2c: E2 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: E2 17 00 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: E2 17 00 CD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [02:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:52:45]wFMCommunicate OK [02:52:45]requested_item fd.num is exist - process it [02:52:45]SAM_PROTO_GetFieldsCounters [02:52:45]wFMCommunicate request_size=4 [02:52:45]MH_SAM_APDU [02:52:45]CAPDU: 80 13 00 00 [02:52:45]Write to MH i2c: E2 08 00 CE 41 80 13 00 00 00 00 00 00 8B [02:52:45]Write i2c OK [02:52:45]MH_I2C_Read... [02:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:45]Read from MH i2c: E2 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: E2 62 00 [02:52:45]MH_I2C_Read... [02:52:45]Read from MH i2c: E2 62 00 CE 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [02:52: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 5A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:52:45]wFMCommunicate OK [02:52:45]SAM_PROTO_GetFieldsCounters done [02:52:45]requested_item shift.num is exist - process it [02:52:45]requested_item shift.opened is exist - process it [02:52:45]req_shift_opened [02:52:45]FM_GetShiftState [02:52:45]SAM_PROTO_GetShiftState [02:52:45]wFMCommunicate request_size=4 [02:52:45]MH_SAM_APDU [02:52:45]CAPDU: 80 13 01 00 [02:52:45]Write to MH i2c: E2 08 00 CF 41 80 13 01 00 00 00 00 00 8D [02:52:45]Write i2c OK [02:52:45]MH_I2C_Read... [02:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:46]Read from MH i2c: E2 [02:52:46]MH_I2C_Read... [02:52:46]Read from MH i2c: E2 0E 00 [02:52:46]MH_I2C_Read... [02:52:46]Read from MH i2c: E2 0E 00 CF 41 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C6 [02:52:46]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [02:52:46]wFMCommunicate OK [02:52:46]SAM_PROTO_GetShiftState done [02:52:46]FM_GetShiftState done [02:52:46]req_shift_opened done [02:52:46]requested_item shift.open_date is exist - process it [02:52:46]req_shift_open_date [02:52:46]req_shift_open_date done [02:52:46]produce_requested_data done [02:52:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139866,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [02:52:46]process_action_free close_receipt [02:52:46]json_value_free [02:52:46]json_value_free done [02:52:46]process_json_proto returns [02:52:46]Send response to host [02:52:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139866,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [02:52:46]free response buf [02:52:46]execute_script done [02:52:46]execute_script returns [02:52:46]free content buf [02:52:46]Sock 9.Close socket [02:52:46]Sock 9.Thread stoped [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send